/* 
------------------------------------------------------
------------------------HEADER------------------------
------------------------------------------------------
*/

/* Header Styles */
header {
    background: #fafaff; /* color liso, casi blanco */
    padding-top: 10px;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5); /* línea difuminada abajo */
    border-bottom: 1px solid #ececec;
}

/* Seccion que tiene logo, titulo y secciones (nav) */
.headerContainer {
    display: flex;
    flex-direction: row;
    align-items: center; /* Centra verticalmente los hijos */
    justify-content: left;
    width: 100%;
    gap: 1vw;
}

/* a que contiene el hipervinculo a inicio */
.hipervinculoInicio {
        display: flex;
        text-decoration: none; 
        color: inherit;
    }
/* Div que contiene la imagen del logo y el h1 y el h3 que conforman el titulo */
    .logoTitulo {
        display: flex;
        flex-direction: row;
        align-items: center;
        margin-left: 15px;
        width:auto;
    }

        /* Imagen logo */
        #imgHeader {
            width: 90px;
            height: auto;
            align-self: center;
        }


        /* Titulo Clinica Kotlik Oftalmología */
        #titulo {
            text-align: left;
            margin: 0;
        }

            #titulo h1 {
                font-size: 2rem;
                font-weight: 700;
                letter-spacing: 0.15em;
                margin: 0;
                width: auto;
            }

            #titulo h3 {
                margin: 0;
                font-size: 1rem;
                text-align: right;
                font-weight: 500;
                letter-spacing: 0.07em;
            }

    /* Secciones */
    .headerContainer nav {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Lista de secciones */
    .headerContainer nav ul {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        text-align: center;
        
        
    }

        /* Items o secciones del nav */
        nav ul li {
            margin: 0 10px; 
            padding: 10px;
            width: auto;
        }

            #reservarHeader {
                color: #fff;
                background: #005b7cd8;
                border-radius: 28px;
                padding: 15px;
            }

            #reservarHeader:hover {
                text-decoration: none;
            }

        /* Link para cada sección */
        nav ul li a {
            color: rgb(64, 56, 56);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.2rem;
            display: block;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration-thickness: 1.5px;
            text-underline-offset: 4px;
        }

        /* Mantener cursor en la seccion */
        nav ul li a:hover {
            transform: scale(1.08);
            text-decoration: underline;
        }

        .btnDespLista {
            display: none;
            font-size: 28px;
            background: none;
            border: none;
            cursor: pointer;
        }

#seccionesSuperposicion {
    position: absolute;  /* Oculta la sección */    
    top: -9999px;        /* Fuera de la vista */
    right: -9999px;
    width: 0;            /* Sin ancho */
    height: 0;           /* Sin alto */
    background: transparent; /* Sin fondo */
    z-index: -1;         /* Detrás de todo */
    display: none;       /* No se muestra */

}

    #seccionesSuperposicion ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        #seccionesSuperposicion ul li{
            margin: 25px;
            margin: 30px;
        }

            #seccionesSuperposicion li a {
                color: #fff;
                font-family: "Barlow Condensed", sans-serif;
                text-decoration: none;
                font-weight: 500;
                font-size: 1.2rem;
                display: inline-block;
                margin-left: 5px;
            }

            #reservarHeaderMedia{
                color: #fff;
                background: #4ac6f4d8;
                border-radius: 28px;
                padding: 15px;
                margin-left: 0px !important; 
            }


            #seccionesSuperposicion li a:hover {
                /* color: #005A7C;
                background: #fff;
                                padding: 0.2em 0.48em;
                transform: scale(1.03);
                    border-bottom: 2px solid; */
                 transform: scale(1.03);
            text-decoration: underline;
            text-decoration-thickness: 1.5px;
            text-underline-offset: 4px;
            }

#seccionesSuperposicion.active {
    position: fixed;     /* Fijo en pantalla */
    top: 0;
    right: 0;
    width: 80vw;        /* Ocupa todo el ancho */
    height: 100vh;       /* Ocupa todo el alto */
    background: rgb(0, 2, 20); /* Fondo semitransparente */
    z-index: 9999;       /* Muy por encima de otros elementos */
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    display: block;
}

.btnCerrarListHeader {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
    
/* Relacion con el ancho de la ventana */ 
@media (max-width: 1047px) {
    .btnDespLista {
        display: block;
    }

    .seccionHeader {
        display: none; /* Oculta las secciones */
    }

    .headerContainer {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }

    .logoTitulo {
        align-items: center;
        margin-right: 0;
        min-width: unset;
    }

    #titulo {
        text-align: center;
    }

    .headerContainer nav ul {
        flex-direction: column;
        gap: 0.5rem;
        width: auto;
    }
    
} 

/* 
----------------------------------------------------------
-------------------------SECCIONES------------------------
---------------------------------------------------------- 
*/    
section {
    margin: 2rem;
    padding: 1rem;
    /* background-color: #f5f5f5; */
	background-color: transparent;
    /* border-radius: 8px; */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); */
}


/* 
-----------------------------------------------------
-------------------------BODY------------------------
-----------------------------------------------------
*/

/* Estilo del cuerpo */
body {
    font-family: "Barlow Condensed", "Arial Narrow", "Helvetica Condensed", Arial, sans-serif;
    margin: 0px;
    padding: 0px;
	background: #fff; 
    color: #333;
    max-width: 100%;
    align-content: center;
    justify-content: center;
}

body.active {
    overflow: hidden;
}

    /* Contiene el subtitulo y el carrusel */
    .carrusel {
        justify-content: center;
        align-items: center;
        width:100%;
        padding: 0px;
        margin: 0px;
    }

        /* Subtitulos en h2*/
        .subtitulo h2 {
            color: #333;
            border: 1px;
            font-weight: 500;
            font-size: 40px;
            text-align: center;
            margin-bottom: 30px;
            letter-spacing: 0.03em;
        }

        /* Estilo del carrusel */
        .carouselContainer {
            position:relative;
            width: 100%;
            max-width: 100%;
            height: 700px;
            overflow: hidden;
            /* margin-bottom: 30px; */
            padding: 0px;
        }

            /* Estilo de las imagenes del carrusel */
            .carousel {
                display: flex;
                align-items: center;
                position: relative;
                height: 100%;
                width: 100%;
                margin: 0px;
            }

                /* Imagenes del carrusel */
                .carouselImages {
                    display: flex;
                    transition: transform 0.5s ease-in-out;
                    height: 100%;
                    width: 100%;
                }

                /* Cada item del carrusel */
                .carouselItem {
                    position: relative;
                    width: 100%;
                    min-width: 100%;
                    height: auto;
                    flex-shrink: 0;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    overflow: hidden;
                }


                /* Imagen dentro de cada item del carrusel */
                .carouselItem img {
                    width: 100%;
                    height: auto;
                    object-fit: cover;
                    position: relative;
                    z-index: 1;
                }

                /* Botones del carrusel */
                .carouselBtn {
                    position: absolute;
                    /* top: 50%; */
                    /* transform: translateY(-50%); */
                    background: transparent;
                    border: none; 
                    font-family: "Barlow Condensed", sans-serif;
                    color: #d3d3d3;
                    font-size: 40px;
                    font-weight: 600;
                    /* padding: 10px; */
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 40px;
                    height: 40px;
                    z-index: 2;
                    margin: 20px;
                }

                /* Imagen dentro de los botones del carrusel */

                    /* Boton Izquierdo */
                    .carouselBtn.prev {
                        left: 10px;
                    }

                    /* Boton Derecho */
                    .carouselBtn.next {
                        right: 10px;
                    }

                /* Efecto hover en los botones del carrusel */
                .carouselBtn:hover {
                    color: #005A7C; 
                }
.carrusel::after {
    content: '';
    position: relative;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #005A7C 50%, transparent 100%);
}
                
                /* Carrousel para pantallas pequeñas */
@media (max-width: 900px) {
    .carouselContainer {
        height: 220px; /* Ajusta la altura para mobile si quieres */
    }
}

 .btnPedirTurno {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btnTurno {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 0.7em;
    background: white;
    color: #333;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.7em 2em;
    border: none;
    border-radius: 30px;
    box-shadow: 0 2px 12px -2px rgba(0,0,0,0.10);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin: 1.5em auto;
}

    .btnTurno .icon {
        transition: transform 0.2s;
    }

    .btnTurno:hover {
        background: rgba(255, 255, 255, 0.744);
        box-shadow: 0 4px 18px -2px rgba(0,0,0,0.18);
        transform: translateY(-2px) scale(1.03);
    }

    .btnTurno:hover .icon {
        transform: translateX(4px) scale(1.1);
    } 

/*
-------------------------------------------------------- 
---------------------PREVIA RESERVA--------------------
--------------------------------------------------------
*/

.previaReserva {
    position: relative;
    width: 100%;
    min-height: 500px;
    background-image: url('imagenes/index/instalaciones3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    /* padding: 60px 20px; */
    padding: 0;
}

.previaReserva::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.contenedorPreviaReserva {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recuadroPreviaReserva {
    background: rgb(255, 255, 255);
    /* border-radius: 16px; */
    padding: 40px 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.recuadroPreviaReserva:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.recuadroPreviaReserva h2 {
  color: #005691;
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #005691 0%, #0165a8 50%, #014c7d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding: 20px 0;
}

.recuadroPreviaReserva p {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 25px;
    font-family: "Inter", sans-serif;
}

#formularioPreviaReserva {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.inputContainer {
    position: relative;
    width: 90%;
    max-width: 400px;
}

#dniPreviaInput {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

#dniPreviaInput:focus {
    outline: none;
    border-color: #005691;
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.1);
}

#dniPreviaInput::-webkit-outer-spin-button,
#dniPreviaInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.floatingLabel {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #9ca3af;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    padding: 0;
    z-index: 1;
}

/* Cuando el input tiene foco o contenido, el label se mueve arriba */
#dniPreviaInput:focus + .floatingLabel,
#dniPreviaInput:not(:placeholder-shown) + .floatingLabel {
    top: -18px;
    left: 12px;
    transform: translateY(0);
    font-size: 0.75rem;
    color: #005691;
    font-weight: 600;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Fallback para navegadores que no soportan :not(:placeholder-shown) */
.inputContainer.active .floatingLabel {
    top: -18px;
    left: 12px;
    transform: translateY(0);
    font-size: 0.75rem;
    color: #005691;
    font-weight: 600;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.btnSubmitPrevia {
    background-color: #f7f8fa;
    border: #005691 2px solid;
    color: #005691;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* box-shadow: 0 4px 15px rgba(0, 121, 107, 0.3); */
}

.btnSubmitPrevia:hover {
    background-color: #005691;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 121, 107, 0.4);
    color: white;
}

.btnSubmitPrevia:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 121, 107, 0.3);
}

.mensajeError {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-align: center;
    margin: 10px 0;
    animation: fadeIn 0.3s ease-in;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .previaReserva {
        min-height: 400px;
    }
    
    .recuadroPreviaReserva {
        padding: 30px 25px;
        width: 80%;
    }
    
    .recuadroPreviaReserva h2 {
        font-size: 1.8rem;
    }
    
    .recuadroPreviaReserva p {
        font-size: 1rem;
    }
}

/*
-------------------------------------------------------- 
------------------ESPECIALIDADES INDEX------------------
--------------------------------------------------------
*/

.especialidades {
    text-align: center;
    background: linear-gradient(135deg, #fafdff 0%, #e6f0fa 100%);
    padding: 20px 0;
    margin: 0;


}

#tituloEspecialidades {
    font-size: 2.2rem;
    font-family: "Crimson Text", serif;
}

.containerCartasEspecialidades {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    align-items: stretch;
    margin: 3rem auto;
    max-width: 1200px;
    flex-wrap: wrap;
}

.cardEspecialidad {
    background: linear-gradient(135deg, #fafdff 0%, #e6f0fa 100%);
    box-shadow: 0 6px 32px -8px rgba(0, 90, 124, 0.13), 0 1.5px 8px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.18s cubic-bezier(.77,0,.18,1), box-shadow 0.18s;
    max-width: 380px;
    width: 360px;
    min-width: 260px;
    height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1.5px solid #e3eaf3;
    position: relative;
}

.cardEspecialidad:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px -8px rgba(0, 90, 124, 0.18), 0 2px 12px rgba(0,0,0,0.10);
}

.especialidadImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1.5px solid #e3eaf3;
    background: #f5faff;
    position: absolute;
}

.especialidadText {
    padding: 0.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    position: absolute;
    bottom: 10px;
    text-align: left;

}

.especialidadText h2 {
    font-family: 'Crimson Text', serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    letter-spacing: 0.04em;
}

.especialidadText p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    line-height: 1.5;

}

.especialidadText a {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    
}

.especialidadText h2,
.especialidadText p,
.especialidadText a {
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.992); /* mejora la legibilidad sobre fondos variados */
}

.especialidadText a:hover {
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
    .containerCartasEspecialidades {
        gap: 1.2rem;
        max-width: 100%;
    }
    .cardEspecialidad {
        width: 95vw;
        min-width: unset;
        margin: 0 auto;
    }
}


/*
-------------------------------------------------------- 
---------------------ESTUDIOS Y EXÁMENES----------------
--------------------------------------------------------
*/

.estudiosExamenes {
    text-align: center;
    width: auto;
    padding: 60px 20px;
    margin: 0px;
    background: linear-gradient(135deg, #fafdff 0%, #e6f0fa 100%);
 
}

.contenedorFilas {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.filaEstudios {
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0px;
    position: relative;
}

.contenedorCartas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); /* Responsive y profesional */
    gap: 15px 10px;
    justify-content: center;
    padding: 20px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.cardEstudio {
    left: 0px;
    width: 100%;
    min-width: 100%;
    height: 100%;
    text-align: left;
}




.estudiosExamenes h3{
    color: #333;
    border: 1px;
    font-weight: 400;
    font-size: 25px;
    text-align: center;
    letter-spacing: 0.03em;
    font-family: 'Source Sans 3', sans-serif;
}

    .estudioHover {
        position: relative;
        width: 100%;
        overflow: hidden;
        cursor: pointer;
        height: 80%;
        margin-bottom: 8px;
    }

    .estudioHover img {
        width: 100%;
        height: 220px;
    }


        .estudioDescrip {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 2;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7); 
            display: flex;
            flex-direction: column;
            align-items: center;
            opacity: 0;
            transition: 0.3s ease;
            color: white;
            font-size: 1.2em;
            
        }

        .descripHover {
            flex: 1; /* ocupa todo el espacio disponible */
            display: flex;
            align-items: center; /* centra verticalmente su contenido */
            justify-content: center; /* centra horizontalmente el texto */
            text-align: center;
            width: 90%;
            font-family: 'Source Sans 3', sans-serif;
        }

        /* .estudioDescrip a {
            height: 20%; 
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #000000;
            text-decoration: none;
            background-color: white;
            border-radius: 30px;
            width: 70%;
            margin-bottom: 10px;
        }

        .estudioDescrip a span {
            font-family: 'Source Sans 3', sans-serif;
            padding-bottom: 3px;
            font-weight: 400;
            font-size: 1rem;
        }

        .estudioDescrip a:hover {
            background-color: rgba(244, 240, 240, 0.7); 

        } */

        .estudioDescrip a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 0.65rem 1.2rem;
            min-height: 44px;
            color: #0b1220;
            text-decoration: none;
            background: linear-gradient(135deg, #ffffff 0%, #f3f7fb 100%);
            border-radius: 999px;
            width: 60%;
            max-width: 280px;
            margin-bottom: 12px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
            box-sizing: border-box;
        }

        .estudioDescrip a:hover,
        .estudioDescrip a:focus-visible {
            background: linear-gradient(135deg, #f5f8fb 0%, #e9f1f8 100%);
            transform: translateY(-2px);
            box-shadow: 0 12px 28px rgba(0,0,0,0.12);
            outline: none;
        }

        .estudioDescrip a span {
            display: block;
            font-family: 'Source Sans 3', sans-serif;
            padding-bottom: 3px;
            font-weight: 500;
            font-size: 1rem;
            line-height: 1.2;
            color: inherit;
        }

        @media (max-width: 900px) {
            .estudioDescrip a {
                width: 85%;
                max-width: 320px;
                padding: 0.6rem 1rem;
            }
        }

        .estudioHover:hover img {
            transform: scale(1.05); 
            border-radius: 10px;
        }

        .estudioHover:hover .estudioDescrip {
            opacity: 1;
        }

        .estudioDescrip.active {
            opacity: 1;
        }


.cardEstudioText {
    font-family: 'Source Sans 3', sans-serif;
    text-align: center;
    color: #333;
    font-weight: 600;
    font-size: 1.2rem;
    margin-top: 10px;
    padding-left: 2px;
    /* text-transform: uppercase; */
}

      .btnEstudio {
                    position: absolute;
                    background: transparent;
                    border: none; 
                    font-family: "Barlow Condensed", sans-serif;
                    color: #d3d3d3;
                    font-size: 40px;
                    font-weight: 600;
                    cursor: pointer;
                    display: flex;
                    /* align-items: center; */
                    /* justify-content: center; */
                    /* width: 40px;
                    height: 40px; */
                    z-index: 2;
                    margin: 0px;
                    opacity: 0;
                }

                    /* Boton Izquierdo */
                    .btnEstudio.prev {
                        left: 5%;
                        bottom: 50%;
                    }

                    /* Boton Derecho */
                    .btnEstudio.next {
                        right: 5%;
                        bottom: 50%;
                    }

                    .btnEstudio:hover {
                    color: #005A7C; 
                }

/* Escritorio: 4 columnas */
@media (min-width: 1200px) {
  .contenedorCartas {
    grid-template-columns: repeat(3, 330px);
  }
}


/* Tablet: 3 columnas */
@media (min-width: 900px) and (max-width: 1199px) {
  .contenedorCartas {
    grid-template-columns: repeat(2, 330px);
  }
}

/* Móvil: 2 columnas */
@media (max-width: 900px) {

    .contenedorFilas {
        overflow: hidden;
        width: 100%;
        /* position: relative; */
    }

    /* contenedor de las imagenes y botones del carrusel */
    .filaEstudios {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: center;
    }

    /* Todas las Imagenes del carrusel */
    .contenedorCartas {
        justify-content: start;
        display: flex;
        transition: transform 0.5s ease;
        will-change: transform;
        padding-left: 0px;
        width: 100%;
        gap: 0px;
    }

    /* Cada item del carrusel */
    .cardEstudio {
        width: 100%;
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .estudioHover {
        width: 280px;
        height: 250px;
    }

    .estudioHover img {
        width: 100%;
        min-width: 100%;
    }

    .btnEstudio {
        opacity: 1;
    }
}

/*
---------------------------------------------------------------
--------------------PEDIR TURNO SECCION------------------------
---------------------------------------------------------------
*/

.pedirTurno {
    width: 100%;
    height: auto;
    max-height: 500px;
    padding: 0;
    margin: 0px;
    position: relative;
    overflow: hidden;
}

.pedirTurno img {
    width: 100%;
    display: block;
    position: relative;
    filter: brightness(0.7);
}

#divDeTexto {
    position: absolute;
    width: 100%;
    bottom: 20px;
    left: 5%;
    font-family: 'Crimson Text', serif;
    font-weight: 100;
}

.pedirTurno div h2 {
    color: #fff;
    font-size: 4rem;
    font-weight: 400;
    margin: 0;
    width: 70%;
    font-family: 'Crimson Text', serif;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.692);
}

@media (max-width: 768px) {
    .pedirTurno div h2 {
        font-size: 1.8rem;
    }
    
    .pedirTurno .btnTurno {
        font-size: 1rem;
        padding: 0.5em 1.2em;
    }
}

@media (max-width: 420px) {
    .pedirTurno .btnTurno {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    .pedirTurno div h2 {
        font-size: 1.4rem;
        width: 95%;
    }
}

@media (max-width: 420px) {
    .pedirTurno .btnTurno {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    .pedirTurno div h2 {
        font-size: 1rem;
        width: 95%;
    }
}

/*
---------------------------------------------------------------
-------------------Conocer Directores--------------------------
---------------------------------------------------------------
*/.conocerDirectores {
    width: 100%;
    background: linear-gradient(135deg, #fafdff 0%, #e6f0fa 100%);
    padding: 60px 0 0 0;
    text-align: center;
    margin: 0 auto;

}

.conocerDirectores h2 {
    font-size: 2.5rem;
    font-family: 'Poppins', serif;
    color: #005691;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
  .conocerDirectores h2 {
    font-size: 2rem;
    margin: 40px 0 15px 0;
  }
}

.directores {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    width: 100%;
    margin: 0 auto;
}

.directorAlfredo, .directorVanesa {
    display: flex;
    background-color: white;
    flex-direction: column;
    align-items: center;
    width: 450px;
    height: 300px;
    box-shadow: 0 8px 32px -8px rgba(0, 90, 124, 0.13), 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.18s cubic-bezier(.77,0,.18,1), box-shadow 0.18s;
}

@media (max-width: 500px) {
    .directorAlfredo, .directorVanesa {
        width: 90%;
        height: auto;
    }
}

.directorAlfredo:hover, .directorVanesa:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 40px -8px rgba(0, 90, 124, 0.18), 0 2px 12px rgba(0,0,0,0.10);
}

.directorAlfredo img, .directorVanesa img {
    width: 100%;
    height: 80%;
    /* border: 3px solid #005691; */
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 90, 124, 0.10);
}

.directorAlfredo p, .directorVanesa p {
    font-size: 1.7rem;
    font-family: 'Crimson Text', serif;
    font-weight: 700;
    color: #005691;
    margin: 0;
    letter-spacing: 0.5px;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.btnTurnoDirectores {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 0.7em;
    background: white;
    color: #005691;
    border: #005691 2px solid;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.7em 2em;
    /* border-radius: 30px; */
    box-shadow: 0 2px 12px -2px rgba(0,0,0,0.10);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin: 1.5em auto;
}

    .btnTurnoDirectores .icon {
        transition: transform 0.2s;
    }

    .btnTurnoDirectores:hover {
        background: #005691;
        color: white;
        box-shadow: 0 4px 18px -2px rgba(0,0,0,0.18);
        transform: translateY(-2px) scale(1.03);
    }

    .btnTurnoDirectores:hover .icon {
        transform: translateX(4px) scale(1.1);
    }

@media (max-width: 1050px) {
    .directores {
        flex-direction: column;
        align-items: center;
    }
}

/*
---------------------------------------------------------------
-------------------WHATSAPP LINK-------------------------------
---------------------------------------------------------------
*/


/* Estilo general del enlace de WhatsApp */
.whatsappLink {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #25D366;
    border-radius: 50%;
    padding: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    font-family: "Poppins", sans-serif;

}

    /* Efecto hover en el enlace de WhatsApp */
    .whatsappLink:hover {
        transform: scale(1.1);
    }

/* Estilo de la imagen dentro del enlace de WhatsApp */
.whatsappLink img {
    width: 64px;
    height: 64px;
    display: block;
}

/* Estilo del texto que aparece al pasar el mouse por encima del enlace de WhatsApp */
.whatsappLink::after {
    content: "Reserva tu turno por WhatsApp";
    position: absolute;
    top: 50%;
	left: -210px;
    transform: translateY(-50%);
    background-color: #ffffff;
    color: #25D366;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    /* Efecto hover en el texto del enlace de WhatsApp */
    .whatsappLink:hover::after {
        opacity: 1;
    }



    /*
-------------------------------------------------------- 
---------------------EDUCACIÓN PARA EL PACIENTE---------
--------------------------------------------------------
*/

#enfermedadesCondiciones h2{
     color: #1e40af;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 60px 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Poppins', sans-serif;
}

#enfermedadesCondiciones h4{
    color: #6b7280;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  margin-bottom: 40px;

}


.textoContenedor {
    line-height: 44px;
}

/* Efecto hover para toda la sección */
#enfermedadesCondiciones:hover .lineaDecorativa {
  width: 100px;
  transition: width 0.3s ease;
}

#enfermedadesCondiciones:hover h2 {
  color: #3b82f6;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  #enfermedadesCondiciones h2 {
    font-size: 2rem;
    margin: 40px 0 15px 0;
  }
  
  #enfermedadesCondiciones h4 {
    font-size: 1rem;
    padding: 0 20px;
    margin-bottom: 40px;
  }

}

.listaPatologias ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espacio entre tarjetas */
    justify-content: center;
}

.listaPatologias ul li {
    flex: 1 1 250px; /* Tamaño base de las tarjetas */
    max-width: 300px; /* Ancho máximo para evitar que las tarjetas sean demasiado grandes */
    text-align: center;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listaPatologias ul li:hover {
    transform: translateY(-5px); /* Efecto de elevación al pasar el cursor */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.listaPatologias ul li a {
    display: block;
    padding: 20px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    line-height: 1.5; /* Espaciado entre líneas para mejor legibilidad */
    height: 100%;
    box-sizing: border-box;
}

.listaPatologias ul li a:hover {
    color: #4682b4; /* Cambio de color al pasar el cursor */
}

/* Estilo para el texto largo */
.listaPatologias ul li a span {
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word; /* Permite que el texto se divida en varias líneas */
}

/* Estilos para el modal del iframe */
.modalIframe {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modalIframe.active {
    display: flex;
}

.modalIframe .modalContent {
    width: 90%;
    max-width: 1000px;
    height: 90%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.modalIframe iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para el botón de cerrar */
.modalIframe .cerrar {
    position: absolute;
    line-height: 40px;
    top: 10px;
    right: 10px;
    font-size: 40px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.modalIframe .cerrar:hover {
    background: rgba(255, 0, 0, 0.8);
}

 /* Esto genera la X para cerrar el modal  */

.modalIframe .cerrar::before,
.modalIframe .cerrar::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background-color: white;
    border-radius: 1px;
}

.modalIframe .cerrar::before {
    transform: rotate(45deg);
}

.modalIframe .cerrar::after {
    transform: rotate(-45deg);
}

/* Lo de arriba genera la X para cerrar el modal */

.logoAao {
    width: 100px; /* Ajusta el tamaño del logo (puedes cambiarlo según necesites) */
    height: auto; /* Mantiene la proporción de la imagen */
    vertical-align: middle; /* Alinea el logo verticalmente con el texto */
    margin-left: 10px; /* Espacio entre el texto y el logo */
}

.divBtnModal {
    position: absolute;
    bottom: 0%;
    left: 3%;
}

.btnTurnoModal {
    display: inline-flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    gap: 0.7em;
    background: linear-gradient(135deg, #004280 0%, #205b92 100%);
    color: #fff;
    font-family: 'Barlow Condensed', Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0.7em 2em;
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(59, 130, 246, 0.3);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin: 1.5em auto;
}

    /* Icono dentro del boton */
    .btnTurnoModal .icon {
        transition: transform 0.2s;
    }

    /* Efecto hover en el boton */
    .btnTurnoModal:hover {
        background: linear-gradient(135deg, #002f96 0%, #001a63 100%);
        box-shadow: 0 4px 18px -2px rgba(0,0,0,0.18);
        transform: translateY(-2px) scale(1.03);
    }

    /* Efecto hover en el icono del boton */
    .btnTurnoModal:hover .icon {
        transform: translateX(4px) scale(1.1);
    }

    .btnTurnoEducacion{
        background-color: #f7f8fa;
        border: #005691 2px solid;
        color: #005691;
        padding: 15px 40px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 1.4rem;
        font-weight: 700;
        font-family: 'Poppins', sans-serif;
        text-transform: uppercase;
        letter-spacing: 1px;
        text-decoration: none;
        display: block;
        margin: 40px auto;
        width: fit-content;
        
    }

    .btnTurnoEducacion:hover {
    background-color: #005691;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 52, 121, 0.4);
    color: white;
}

.btnTurnoEducacion:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 52, 121, 0.4);
} 


@media (max-width: 768px) {
    .btnTurnoEducacion {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    color: #333;
    z-index: 10;
}

.loading-spinner.hidden {
    display: none;
}

/*
-------------------------------------------------------- 
--------------------------FOOTER------------------------
--------------------------------------------------------
*/

/* Estilo general del footer */
footer {
    background-color: #444;
    color: #fff;
    text-align: center;
    font-family: Arial, sans-serif;
    align-items: center;
    align-content: center;
    width: 100%;
}

/* Logo del footer */
.footerLogo {
    width: 100px;
    margin: 40px;
}

/* Subtitulo footer h3*/
footer h3 {
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 2px solid #555;
    display: inline-block;
    padding-bottom: 5px;
}

/* Contiene los 2 divs del footer */
.contenedorFooter {
    display: flex;
    flex-direction: row;
    align-items: start;
    justify-content: center; /* <-- Esto centra horizontalmente */
    width: 100%;
    align-self: center;
    text-align: center;
    margin-bottom: 30px;
}

.playaEstacionamiento {
    margin-bottom: 30px;
}

.footerItems{
    justify-content: left;
}

/* Estilo de los enlaces de contacto */
.contactInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
    width: 40%;
}
/* Estilo de los horarios de atención */
.horariosAtencion {
    margin-top: 30px;
    width: 100%;
}

.horariosAtencion li {
    list-style: none;
    color: #d3d3d3;
    font-size: 14px;
    margin: 5px 0;
}

/* Estilo del mapa */
.direccionMapa{
    margin-left: 30px;
    width: 40%;
}

#mapa iframe {
    border-radius: 10px;
}
 
/* Estilo de cada item de contacto */
.contactItem {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d3d3d3;
    margin-bottom: 5px;
}

.contactItem:last-child {
    margin-top: 7px; /* Elimina el margen extra después del último */
}

/* Icono dentro de cada item de contacto */
.contactItem img.icon {
    width: 32px;
    height: 32px;
    background-color: white;
    border-radius: 50%;
    border: 2px solid #555;
    padding: 1px;
}

/* Estilo de los enlaces de redes sociales */
.footerSocial {
    color: #d3d3d3;
    font-size: 14px;
    display: inline-block;
    transition: color 0.3s ease-in-out;
}

    /* Efecto hover en los enlaces de redes sociales */    
    .footerSocial:hover {
        color: #4682b4;
        text-decoration: underline;
    }

/* Estilo del texto en el footer */
footer p {
    color: #d3d3d3;
    font-size: 14px;
    margin-top: 20px;
}

/* Prevenir que los enlaces de teléfono se vuelvan azules */
.contactItem a,
.contactItem a:link,
.contactItem a:visited,
.contactItem a:hover,
.contactItem a:active {
    color: #d3d3d3 !important;
    text-decoration: none !important;
}

@media (max-width: 700px) {

.contenedorFooter {
    display: block;
    /* flex-direction: row; */
    align-items: center;
    justify-content: center; /* <-- Esto centra horizontalmente */
    width: 100%;
    align-self: center;
    text-align: center;
    margin-bottom: 10px;
    }

    .footerItems{
    justify-content: center;
}

.contactInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0px;
    width: 100%;
}
/* Estilo de los horarios de atención */
.horariosAtencion {
    margin-top: 0px;
    width: 100%;
}

.horariosAtencion li {
    list-style: none;
    color: #d3d3d3;
    font-size: 14px;
    margin: 5px 0;
}

/* Estilo del mapa */
.direccionMapa{
    margin: 0;
    width: 100%;
}
#mapa iframe {
    border-radius: 10px;
    width: 80%;
}
 
}

.tituloInicioSeccion {
  color: #1e40af;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 60px 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.lineaDecorativa {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  margin: 0 auto 25px auto;
  border-radius: 2px;
  position: relative;
}

.lineaDecorativa::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
}

.lineaDecorativa::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: #3b82f6;
  border-radius: 50%;
}

.subtituloSeccion {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
}

/* Efecto hover especialidades */
.especialidades:hover .lineaDecorativa {
  width: 100px;
  transition: width 0.3s ease;
}

.especialidades:hover .tituloInicioSeccion {
  color: #3b82f6;
  transition: color 0.3s ease;
}

/* Efecto hover estudios*/
.estudiosExamenes:hover .lineaDecorativa {
  width: 100px;
  transition: width 0.3s ease;
}

.estudiosExamenes:hover .tituloInicioSeccion {
  color: #3b82f6;
  transition: color 0.3s ease;
}

/* Efecto hover Sintomas*/
.seccionSintomas:hover .lineaDecorativa {
  width: 100px;
  transition: width 0.3s ease;
}

.seccionSintomas:hover .tituloInicioSeccion {
  color: #3b82f6;
  transition: color 0.3s ease;
}

/* Efecto hover paginas Especialidades*/
.especialidadesEstudiosTitulo:hover .lineaDecorativa {
  width: 100px;
  transition: width 0.3s ease;
}

.especialidadesEstudiosTitulo:hover .tituloInicioSeccion {
  color: #3b82f6;
  transition: color 0.3s ease;
}

/* Efecto hover Nosotros*/
.seccionNosotros:hover .lineaDecorativa {
  width: 100px;
  transition: width 0.3s ease;
}

.seccionNosotros:hover .tituloInicioSeccion {
  color: #3b82f6;
  transition: color 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .tituloInicioSeccion {
    font-size: 2rem;
    margin: 40px 0 15px 0;
  }
  
  .subtituloSeccion {
    font-size: 1rem;
    padding: 0 20px;
    margin-bottom: 40px;
  }
  
  .lineaDecorativa {
    width: 60px;
  }
}



.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 1s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

