
/* ================================
   1. General Slider Container Styles
=================================== */
.splide {
    max-width: 100%;
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none; /* Puedes ajustar o combinar box-shadow según tus necesidades */
    position: relative; 
  }
  
  /* ================================
     2. Slide Image Styles
  =================================== */
  .splide__slide img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Ajusta la imagen sin deformarla */
    border-radius: 0px;
  }
  
  /* ================================
     3. Navigation Arrows
  =================================== */
  .splide__arrow {
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }
  
  .splide__arrow svg {
    fill: white; /* Color del icono de la flecha */
  }
  
  /* ================================
     4. Pagination Dots
  =================================== */
  .splide__pagination {
    bottom: 12%;
    justify-content: center;
    display: flex;
  }
  
  .splide__pagination__page {
    background: white;
    width: 20px;
    height: 20px;
    border-radius: 0;
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s ease, width 0.3s, height 0.3s;
    margin: 2px;
  }
  
  .splide__pagination__page.is-active {
    background: #ffffff;
    opacity: 1;
    transform: scaleX(1);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.5);
    width: 37px;
  }

 /* ================================
   1. Overlay General
=================================== */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0; /* Inicialmente invisible */
    transition: opacity 0.5s ease;
}

/* ================================
   3. Activar Overlay al Estar Activo el Slide
=================================== */
.splide__slide.is-active .overlay {
    opacity: 1;
}

/* ================================
   4. Left Side Content (Título, Subtítulo, Botón)
=================================== */
.left-side, .left-side2 {
    color: white;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 150px;
    opacity: 0; /* Estado inicial para animar */
}

.left-side2{
    padding-bottom: 120px;
}

/* Títulos y subtítulos */
.title, .title2 {
    font-size: 70px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    color: #03727b;
    line-height: 70px;
    opacity: 0;
}

.title{
    color: #ffa92e;
}

.subtitle, .subtitle2 {
    font-size: 25px;
    font-weight: 500;
    margin: 0;
    color: black;
    line-height: 27px;
    opacity: 0;
}

/* Botón CTA */
.cta-button, .overlay__button {
    font-family: 'Cormorant Infant', sans-serif;
    padding: 12px 70px;
    background-color: #03727b;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0;
}

.cta-button:hover, .overlay__button:hover {
    background-color: #199a8f;
}

 .left-side2 .cta-button{
    background-color: #ffa92e;
}

.left-side2 .cta-button:hover{
    background-color: #f5be72;
}


/* ================================
   5. Right Side Content (Imagen Adicional)
=================================== */
.right-side {
    max-width: 50%;
    max-height: 100%;
}

.right-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

/* ================================
   6. Botones de Hover (CTA y Transición)
=================================== */
.transRight button, .transLeft .overlay__button {
    margin-top: 5px;
    transition: 0.5s, color 0.10s;
}

.transRight button:hover, .transLeft .overlay__button:hover {
    transform: translateX(20px);
    box-shadow: 0px 0px 10px 0 #0000000c, 0 8px 10px 0 #00000028;
    margin-left: 20px;
}

/* ================================
   7. Animaciones al Activar la Diapositiva
=================================== */
.splide__slide.is-active .left-side,
.splide__slide.is-active .left-side2 {
    animation: fadeInLeft 1.5s forwards;
    animation-delay: 0.2s;
}

.splide__slide.is-active .title, .splide__slide.is-active .title2 {
    animation: fadeInUp 1.5s forwards;
    animation-delay: 0.3s;
}

.splide__slide.is-active .subtitle, .splide__slide.is-active .subtitle2 {
    animation: fadeInUp 1.7s forwards;
    animation-delay: 0.5s;
}

.splide__slide.is-active .cta-button, .splide__slide.is-active .overlay__button {
    animation: fadeInRight 1.8s forwards;
    animation-delay: 0.7s;
}

.splide__slide.is-active .right-side img {
    animation: fadeInLeft 1.5s forwards;
    animation-delay: 0.4s;
}

/* ================================
   8. Keyframes para Animaciones
=================================== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(-25px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(25px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   9. Animaciones cuando el Slide no está Activo (Estado Inicial)
=================================== */
.splide__slide:not(.is-active) .overlay__button {
    animation: buttonReturn 1s;
}

@keyframes buttonReturn {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(0);
    }
}


/* ================================
   10. Animaciones de Entrada para el Contenido Derecho
=================================== */
.splide__slide.is-active .overlay__content--right {
    animation: fadeInUp 1.5s;
    animation-delay: 0.3s;
}

.splide__slide.is-active .overlay__title {
    animation: slideInRight 1.6s;
    animation-delay: 0.4s;
}

.splide__slide.is-active .overlay__subtitle {
    animation: fadeInUp 1.7s;
    animation-delay: 0.5s;
}

.splide__slide.is-active .overlay__button {
    animation: slideInLeft 1.8s;
    animation-delay: 0.6s;
}


/* ================================
   11. Keyframes para Animaciones de Entrada del Contenido Derecho
=================================== */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(25px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-25px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================
   12. Animaciones de Contenido Derecho (Overlay)
=================================== */

.overlay__title {
    font-size: 80px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    color: #03727b;
    line-height: 70px;
    opacity: 0;
    text-align: right;
}

.overlay__subtitle {
    font-size: 25px;
    font-weight: 500;
    margin: 0;
    color: black;
    line-height: 27px;
    opacity: 0;
    text-align: right;
}

.overlay__button {
    font-family: 'Cormorant Infant', sans-serif;
    padding: 15px 70px;
    background-color: #ffa92e;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: 800;
    opacity: 0;
}

/* Botón CTA Hover */
.overlay__button:hover {
    background-color: #f5be72;
    margin-right: 20px;
    box-shadow: 0px 0px 10px 0 #0000000c, 0 8px 10px 0 #00000028;
}


.overlay__content--right {
    color: white;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-right: 150px;
    opacity: 0;
    align-items: flex-end;
    margin-top: 200px;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Cuando el slide está activo */
.splide__slide.is-active .overlay__content--right {
    opacity: 1;
    transform: translateX(0);
    animation: fadeInRight 1.5s forwards; /* Usamos 'forwards' para mantener la animación al final */
}
 
.overlay.parte4 .overlay__content--right{
    margin-top: -300px;
}

/* ================================
   13. Animaciones de Entrada del Contenido Derecho (Overlay)
=================================== */
.splide__slide.is-active .overlay__title {
    animation: slideInRight 1.6s forwards; /* Añadido 'forwards' para mantener el estado final */
    animation-delay: 0.4s;
}

.splide__slide.is-active .overlay__subtitle {
    animation: fadeInUp 1.7s forwards; /* Añadido 'forwards' para mantener el estado final */
    animation-delay: 0.5s;
}

.splide__slide.is-active .overlay__button {
    animation: slideInLeft 1.8s forwards; /* Añadido 'forwards' para mantener el estado final */
    animation-delay: 0.6s;
}

/* ================================
   14. Keyframes para Animaciones de Entrada del Contenido Derecho
=================================== */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(25px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-25px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(25px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



@media screen and (max-width: 1500px){

    .overlay__content--right {
        margin-top: 90px;
    }

    .right-side img{
        height: 600px;
    }
    
    .title{
        font-size: 50px;
    }

    .subtitle, .overlay__subtitle, .subtitle2{
        font-size: 25px;
    }
    
}


@media screen and (max-width: 400px){

    .splide__slide {
        height: 350px; /* Ajusta según lo necesites */
    }
    
    .splide__slide img {
        height: 100%;
        object-fit: cover; /* Asegura que la imagen se ajuste sin deformarse */
    }

    .overlay p{
        max-width: 60%;
    }

}



@media screen and (max-width: 800px) {
    .overlay {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -55%);
        padding: 0;
        margin: 0;
    }

    .splide__slide img {
        opacity: 0.5;
      }

    .splide__slide {
        height: 350px; /* Ajusta según lo necesites */
    }
    
    .splide__slide img {
        height: 100%;
        object-fit: cover; /* Asegura que la imagen se ajuste sin deformarse */
    }

    .left-side, .left-side2 {
        margin: 0;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 0;
    }

    .right-side img {
        display: none;
    }

    .overlay p{
        text-align: center;
    }
    

    .left-side2 {
        padding-bottom: 0px;
    }

    .subtitle, .subtitle2 {
        font-size: 16px;
        line-height: 18px;
    }
    
    .overlay h2{
        font-size: 30px;
        line-height: 30px;
    }

    .cta-button, .overlay__button {
        padding: 10px 50px;
        font-size: 14px;
    }

    .right-side {
        max-width: 80%;
        margin-top: 0px;
    }

    .right-side img {
        width: 100%;
        height: auto;
    }

    .overlay__content--right {
        margin-right: 0;
        align-items: center;
        text-align: center;
        margin-top: 0px;
    }

    .overlay__title {
        text-align: center;
    }

    .overlay__subtitle {
        font-size: 16px;
        text-align: center;
    }
}

@media screen and (max-width: 1030px){
    .right-side img {
        height: 140%;
    }

    .transRight a button{
        text-decoration: none;
    }
}

@media screen and (max-width: 1500px){
    .right-side img {
        height: 110%;
    }
}


.neuro-neuro{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.neurocirugia, .neuroclinica {
    display: flex;
    justify-content: center;
}

.neuroclinica{
    background-color: #f3f3f3;
}
    
.neurocirugia {
    background-image: url('/img/bg1.png');
    border-radius: 40px 40px 0 0;
    height: 1020px;
    background-size: cover;
    background-position: center;
    margin-top: -50px;
    z-index: 1;
}

.neurocirugia .img-text{
    view-timeline-name: --imagenes;
    view-timeline-axis: block;
    animation-timeline: --imagenes;
    animation-name: fadeInRight1; /* Corregido el nombre de la animación */
    animation-range: entry 20% cover 40%;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.46, 0.03, 0.52, 0.96);
}

.neuroclinica {
    background-color: white;
    background-image: url('/img/bg2.png');
    border-radius: 40px 40px 0 0;
    height: 1800px;
    margin-top: -1000px;
    z-index: 0;
}




.neuroclinica .img-text {
    display: flex;
    gap: 200px;
    align-items: flex-end;
    max-width: 75%;


    view-timeline-name: --imagenes;
    view-timeline-axis: block;
    animation-timeline: --imagenes;
    animation-name: fadeInLeft1;
    animation-range: entry 130% cover 90%;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.46, 0.03, 0.52, 0.96);
}


.neurocirugia .img-text{
    margin-top: 220px;
    display: flex;
    gap: 200px;
    justify-content: space-around;
    align-items: flex-start;
    max-width: 75%;
}


.contenido {
    display: flex;
    flex-direction: column;
}

.neurocirugia .imagenes, .neuroclinica .imagenes{
    transition: 0.2s;
}

.neurocirugia .imagenes:hover, .neuroclinica .imagenes:hover{
    transform: translateY(-25px);
}

.neuroclinica .img-text .contenido{
    margin-bottom: 300px;
}

.neuroclinica .img-text .contenido h2 {
    columns: #199a8f;
}


.neuroclinica .contenido h2 {
    color: #03727b;
}


.contenido h2 {
    color: white;
    font-size: 40px;
    text-transform: uppercase;
    margin: 0;
    line-height: 45px;
}

.contenido h2::after{
    content: "";
    display: block; /* o inline-block si lo necesitas en línea */
    width: 200px; /* ajusta a lo que necesites */
    height: 4px;
    margin-top: 10px;
    background-color: #ffa92e;
}


.testimonios h2, .neuro-section h2{
    padding-top: 70px;
    color: #03727b;
    font-size: 40px;
    text-transform: uppercase;
}


.testimonios h2::after, .neuro-section h2::after{
    content: "";
    display: block;
    width: 200px;
    height: 4px;
    margin: 20px auto 0; /* esto centra horizontalmente */
    background-color: #ffa92e;
  }

.secciones h2::after{
    content: none;

  }


p {
    font-size: 25px;
    color: black;
    font-weight: 600;
    line-height: 30px;
    text-align: left;
    margin-bottom: 40px;
}

.neurocirugia button, .neuroclinica button {
    font-family: 'Cormorant Infant', sans-serif;
    font-size: 20px;
    padding: 10px 70px;
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-weight: 900;
    text-decoration: none;
    background-color: #ffa92e;
    border: solid 2px #ffa92e;
}

.neuroclinica button {
    border: solid 2px #03727b;
    background-color: #03727b;
}

.neurocirugia button:hover, .neuroclinica button:hover {
    border: solid 2px white;
    color: white;
    background-color: #199a8f;
}

.neuroclinica button:hover {
    border: solid 2px white;
    color: white;
    background-color: #ffa92e;
}

/* Asegura que las imágenes estén centradas y sin márgenes innecesarios */



/* Animación para el fadeInLeft */
@keyframes fadeInLeft1 {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    40% {
        opacity: 1;
        transform: translateX(-50px);
    }
    80% {
        opacity: 1;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación para el fadeInRight */
@keyframes fadeInRight1 {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    40% {
        opacity: 1;
        transform: translateX(50px);
    }
    80% {
        opacity: 1;
        transform: translateX(10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}







@media screen and (max-width: 800px){



    .neurocirugia {
        background-image: url('');
        background-color: #199a8f;
        border-radius: 0px 0px 0 0;
        padding: 20px 0;
        margin-top: 0px;
        z-index: 1;
        height: 100%;
        align-items: center;
        justify-content: center;
    }



    .neurocirugia .img-text p,  .neurocirugia .img-text p{
        font-size: 16px ;
    }

    .splide__pagination {
        bottom: 10%;
      }

      .overlay.parte4 .overlay__content--right{
        margin-top: 0px;
    }

    .imagenes{
        display: none;
    }
    
    .neuroclinica {
        background-image: url('');
        background-color: #f3f3f3;
        border-radius: 0px 0px 0 0;
        margin-top: 0px;
        z-index: 1;
        height: 10%;
        align-items: center;
        justify-content: center;
        padding: 200px 0;
    }

    .neuroclinica .img-text{
        margin-top: 200px;
        animation-range: entry 20% cover 40%;
    }

    .neurocirugia .img-text{
        margin-top: 200px;
        margin-bottom: 200px;
        padding-bottom: 100px;
    }

    .neuroclinica .img-text p, .neurocirugia .img-text p{
        font-size: 16px;
        width: 70%;
        align-self: center;
        padding: 0px 0;
    }


    .neuroclinica .img-text .contenido{
        margin-bottom: 0px;
    }


    .contenido h2::after{
        margin: 10px auto 0; /* esto centra horizontalmente */
    }

    .neurocirugia, .neuroclinica {
        flex-direction: column; /* Cambia la dirección de los elementos a columna */
        align-items: center; /* Centra los elementos */
        margin-top: 100px 
    }


    p {
        font-size: 18px; /* Reduce el tamaño de la fuente */
        text-align: center; /* Centra el párrafo */
        line-height: 18px; /* Ajusta la altura de línea */
    }


}



@media screen and (max-width: 1030px){

    .neurocirugia, .neuroclinica{
        display: flex; /* Habilita flexbox */
        justify-content: space-between; /* Centra horizontalmente */
        margin: 0px !important;
        max-width: 100%;
        margin: 0 !important;
        height: 50vh !important;
        padding-top: 100px;
    }

    .neuroclinica{
        margin-bottom: 0px;
        padding-top: 0px;
        margin-top: 0px;
    }

    .img-text {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        max-width: 70%;
    }

    .contenido a{
        align-self: center;
    }

    .neuroclinica .img-text{
        flex-direction: column-reverse;
    }

    .neurocirugia h2, .neuroclinica h2 {
        text-align: center;
    }
    
    .neurocirugia p, .neuroclinica p{
        text-align: center;
    }

    .imagenes {
        height: 300px;
        padding: 0px;
        justify-content: center;
        border: none;
        margin: 0;
    }
    
}


@media screen and (max-width: 1500px){

    .neurocirugia, .neuroclinica{
        display: flex; /* Habilita flexbox */
        justify-content: center; /* Centra horizontalmente */
    }


    .contenido {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    p{
        text-align: left;
    }

    .neuroclinica .img-text {
        gap: 100px;
        max-width: 90%;}
        
    .neurocirugia .img-text{
        gap: 100px;
        max-width: 90%;
    }


}

.testimonials-section {
    max-width: 90%;
    margin: 0 auto;
    text-align: center;
}

.testimonios h2{
    text-align: center;
    margin: 80px 0;
    padding-bottom: 40px;
}

.testimonials-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.testimonial-card, .testimonial-card2 {
    background: white;
    padding: 0px 50px 50px 50px;
    border-radius: 40px;
    border: solid 2px #03727b;
    text-align: center;
    width: 250px;
    transition: .5s;

    /* Animación con scroll */
    view-timeline-name: --testimonial;
    view-timeline-axis: block;
    animation-timeline: --testimonial;
    animation-name: fadeInBounce;
    animation-range: entry 40% cover 70%;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Definición de la animación */
@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}


.testimonial-card:hover,  .testimonial-card2:hover{
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-10px);
}

.testimonial-card2{
    border: solid 2px #ffa92e;
}

.testimonial-card p,  .testimonial-card2 p{
    text-align: center;
    color: black;
}

.testimonial-card h3,  .testimonial-card2 h3{
    color: #03727b;
    line-height: 30px;
    font-size: 25px;
}

.testimonial-card i,  .testimonial-card2 i{
    transform: translateY(-30px);
    background-color: #03727b;
    padding: 0px;
    border-radius: 50%;
}


.testimonial-icon, .testimonial-icon2 {
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin: 0 auto 10px;
}

.testimonial-card2 i{
    background-color: #ffa92e;
}

@media screen and (max-width: 400px){
    .testimonials-container {
        display: flex !important;
        flex-direction: column;
    }

    .testimonials-container :first-child{
        margin-top: 0px;
    }

    .testimonial-card,  .testimonial-card2{
        margin-top: 60px;
    }
}

@media screen and (max-width: 800px){

}

@media screen and (max-width: 1030px){
    .testimonials-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }


    .testimonial-card,  .testimonial-card2{
        margin-top: 60px;
    }  

}


@media screen and (max-width: 1500px){
}

.neuro-section h2{
    text-align: center;
    padding-top: 130px;
    padding-bottom: 50px;
    margin: 40px 0;
}

.secciones{
    display: flex;
    width: 100%;
    margin-bottom: 160px;
}

.neuro-box {
    position: relative;
    width: 50%;
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adultos-seccion {
    position: relative;
    overflow: hidden; /* Para evitar que la imagen escale fuera del contenedor */
}

.adultos-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/neuro.jpg'); /* Reemplázalo con la imagen correcta */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease; /* Transición para suavizar el escalado */
}

.adultos-seccion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-color: #ffa82eb2; /* Color de fondo con transparencia */
    transition: 0.5s ease; /* Transición para suavizar el escalado */
}

.adultos-seccion:hover::before {
    transform: scale(1.1); /* Escala solo la imagen de fondo */
}

.adultos-seccion:hover::after {
    background-color: #ffa82ebb; /* Color de fondo con transparencia */
}



.adultos-seccion {
    position: relative;
    overflow: hidden; /* Para evitar que la imagen escale fuera del contenedor */
}

.adultos-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/neuro.jpg'); /* Reemplázalo con la imagen correcta */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease; /* Transición para suavizar el escalado */
}

.adultos-seccion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-color: #ffa82ecb; /* Color de fondo con transparencia */
    transition: 0.5s ease; /* Transición para suavizar el escalado */
}

.adultos-seccion:hover::before {
    transform: scale(1.05);
}

.adultos-seccion:hover::after {
    background-color: #ffa82e80; /* Color de fondo con transparencia */
}



.electro-seccion {
    position: relative;
    overflow: hidden; /* Para evitar que la imagen escale fuera del contenedor */
}

.electro-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/electro.webp'); /* Reemplázalo con la imagen correcta */
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease; /* Transición para suavizar el escalado */
}

.electro-seccion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-color: #ffa82ecb; /* Color de fondo con transparencia */
    transition: 0.5s ease; /* Transición para suavizar el escalado */
}

.electro-seccion:hover::before {
    transform: scale(1.05);
}

.electro-seccion:hover::after {
    background-color: #ffa82e80; /* Color de fondo con transparencia */
}



.infantil-seccion {
    position: relative;
    overflow: hidden; /* Para evitar que la imagen escale fuera del contenedor */
}

.infantil-seccion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/neurologia.jpg'); /* Reemplázalo con la imagen correcta */
    background-size: cover;
    background-position: center;
    transition: transform 0.2s ease; /* Transición para suavizar el escalado */
}


.infantil-seccion::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-color: #03717bc0; /* Color de fondo con transparencia */
    transition: 0.2s ease; /* Transición para suavizar el escalado */
}

.infantil-seccion:hover::before {
    transform: scale(1.05); /* Escala solo la imagen de fondo */
}

.infantil-seccion:hover::after {
    background-color: #03717b52 /* Color de fondo con transparencia */
}


.infantil-seccion .content, .adultos-seccion .content, .electro-seccion .content {
    width: 80%;
    display: flex;
    align-items: flex-start; /* Alinea los elementos al inicio (izquierda) */
    color: white;
    z-index: 2;
}

.content {
    position: relative;
    color: white;
    z-index: 2;
    display: flex; /* Asegura que el contenido sea un contenedor flex */
    flex-direction: column; /* Alinea los elementos de arriba hacia abajo */
    height: 100%; /* Asegura que el contenedor ocupe todo el alto disponible */
    padding-bottom: 130px;
    justify-content: flex-end;
}

.infantil-seccion .content{
    align-items: center;
}


.adultos-seccion .content {
    align-items: flex-end;
}


.adultos-seccion .content h2,  .infantil-seccion .content h2, .electro-seccion .content h2{
    text-align: center;
    font-size: 50px;
    margin-bottom: 0px;
    line-height: 45px;
    color: white;
    font-weight: 900;
}

.adultos-seccion .content h2 {
    text-align: right;
}

.electro-seccion .content h2 {
    text-align: left;
    font-size: 45px;
}

.neuro-section .btn {
    display: inline-block;
    padding: 10px 50px;
    color: white;
    background-color: #ffa92e;
    text-decoration: none;
    font-size: 20px;
    border-radius: 40px;
    transition: .3s;
}

.neuro-section .btn:hover {
    transform: translateY(-10px);
}



.neuro-section .adultos-seccion .btn, .electro-seccion .btn{
    background-color: #03727b;
}


@media screen and (max-width: 400px){
    .secciones{
        flex-direction: column;
    }

    .neuro-box {
        width: 100%;
    }
}
@media screen and (max-width: 800px){
    .adultos-seccion .content h2,  .infantil-seccion .content h2 {
        font-size: 40px;
    }
}
@media screen and (max-width: 1030px){}

@media screen and (max-width: 1500px){
    *{
        text-decoration: none;
    }
}




