@view-transition {
    navigation: auto;
}

::view-transition-group(*){
    animation-duration: 0.5s;
}

::view-transition-old(root){
    animation: slide-out-to-left 0.5s forwards;
}

::view-transition-new(root){
    animation: slide-in-from-right 0.5s forwards;
}

@keyframes slide-out-to-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

@keyframes slide-in-from-right {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

main {
    margin: 0;
    height: 95vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../res/bg-consultorio.jpeg');
    background-size: cover;
    filter: blur(3px);
    z-index: -1;
}

footer {
    color: rgba(255, 255, 255, 0.5);
    font-size: xx-small;
    display: flex;
    justify-content: center;
    justify-items: center;
}

footer .dev {
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.social {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    justify-items: center;
    align-items: center;
    align-content: space-between;
}

.social a {
    background-color: #ffffff96;
    padding: 10px;
    border-radius: 35px;
}

.btn-direct {
    background-color: #ffffff88;
    padding: 15px 30px;
    font-size: 20px;
    border: none;
    border-radius: 8px;
    color: rgb(0, 0, 0);
    width: 75dvw;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bolder;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-contenido {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cerrar {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.politica {
    display: flex;
    gap: 20px;
    align-items: center;
}

.politica p {
    text-align: left;
    margin: 5px;
}

.accion {
    background-color: rgb(85, 168, 85);
    color: rgb(255, 255, 255);
    border-radius: 30px;
    border: none;
    padding: 8px 20px 8px 20px;
}