/* Reset de márgenes y paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*estilos del cuerpo*/
body {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: white; /* Color de respaldo */
}

/* Banner Principal */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    flex-direction: column; /* Mantener en columna */
    justify-content: center; /* Centrar verticalmente los elementos hijos */
    align-items: center; /* Centrar horizontalmente */
    color: #fff;
    text-align: center; /* Alinear el texto al centro */
    overflow: hidden;
}

.seccion-oculta
{
    position: relative;
    height: 75vh;
    display: flex;
    flex-direction: column; /* Mantener en columna */
    justify-content: center; /* Centrar verticalmente los elementos hijos */
    align-items: center; /* Centrar horizontalmente */
    color: #fff;
    text-align: center; /* Alinear el texto al centro */
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.slide {
    width: 100%; /* La imagen ocupará el 50% del ancho de la pantalla */
    height: 100%;
    margin-left: auto; /* Alinea el contenedor de la imagen hacia la derecha */
    display: block;
}

.slide img {
    width: 100%; /* Asegúrate de que la imagen sea responsiva */
    height: 100%; /* Ajusta la altura */
    object-fit: cover; /* Mantiene la proporción y cubre el área del contenedor */
    object-position: top center; /* Opcional: ajusta la posición del contenido dentro del contenedor */
}


.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Puedes cambiar el color aquí según la diapositiva */
    background-color: rgba(11,33,72, 0.7); /* #2F2569 con 40% de opacidad */
    /* Alternativas:
       - Teal: rgba(76, 188, 144, 0.4) /* #4CBC90 con 40% de opacidad */
       /*- Magenta: rgba(177, 42, 144, 0.4) /* #B12A90 con 40% de opacidad */
    
    /* Si prefieres un gradiente, descomenta la línea siguiente y ajusta según prefieras */
    /* background: linear-gradient(to bottom, rgba(47, 37, 105, 0.4), rgba(47, 37, 105, 0.2)); */
}

/* Ajustes para la Hero Content para que esté por encima de las imágenes */
.hero-content {
    position: absolute; /* Mantener la posición absoluta para superponerse */
    top: 55%; /* Centrar verticalmente */
    left: 50%;
    transform: translate(-50%, -50%); /* Ajuste para centrar el contenido */
    z-index: 2; /* Mantiene el contenido sobre el slideshow */
    max-width: 650px; /* Limitar el ancho del contenido */
    text-align: left; /* Alinear el texto a la izquierda */
    padding: 0; /* Ajusta este valor si es necesario */
}

.hero h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 48px;
    line-height: 1.2; 
    text-align: center;
}

.hero p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 20px;
    margin-bottom: 30px; /* Espacio entre el párrafo y los botones */
    text-align: justify;
}


/* Fade Animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Mostrar el primer slide por defecto */
.slideshow-container .slide:first-child {
    display: block;
}


.btn-container {
    position: absolute;
    bottom: 35px;
    display: flex; /* Usar flexbox para centrar los botones */
    justify-content: center; /* Centra los botones horizontalmente */
    margin-top: 20px; /* Espacio entre el texto y los botones */
  
}

.btn-container-oculto {
    position: relative;
    display: none; /* Usar flexbox para centrar los botones */
    justify-content: center; /* Centra los botones horizontalmente */
    margin-top: 20px; /* Espacio entre el texto y los botones */
}

.btn {
    background: #2a1c73;
    border: none; /* Eliminar borde para que no sobresalga */
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    height: 125px; /* Altura fija para uniformidad */
    width: 125px; /* Ancho fijo */
    padding: 10px; /* Padding interno más reducido */
    opacity: 90%; /* Opacidad */
    margin: 0 10px; /* Añadir margen horizontal entre botones */
}


.btn img {
    width: 48px; /* Ajustar tamaño de la imagen */
    height: 48px; /* Ajustar tamaño de la imagen */
    margin-bottom: 5px; /* Espacio entre la imagen y el texto */
    transition: transform 0.6s;
}

.btn span {
    font-size: 14px; /* Tamaño de texto */
    color: #fff; /* Color del texto */
    font-weight: bold; /* Peso del texto */
    text-align: center; /* Alinear el texto al centro */
}

/* Efecto Hover: Rotación del Ícono */
.btn:hover img {
    transform: rotate(360deg);
}

.btn:hover {
    background-color: #e68900; /* Color al pasar el mouse */
    transform: scale(1.05); /* Escala al pasar el mouse */
}


.btn-container.btn:hover {
    background-color: #e68900;
}

@media (max-width: 768px) { 
    .hero {
        height: 50vh; /* Aumentar la altura del hero */
        padding: 0; /* Eliminar padding para evitar espacio extra */
        margin: 0; /* Asegurarse de que no hay margen */
    }

    .slideshow-container {
        width: 100%;
        height: 100%; /* Asegurarte que el contenedor ocupe toda la altura */
        overflow: hidden;
    }

    .slide {
        width: 100%;
        display: block; /* Asegurarse de que el slide esté bloqueado */
        height: 100%; /* Asegurarse de que el slide ocupe toda la altura */
        margin: 40px auto; /* Centrar el círculo y margen superior */
    }

    .slide img {
        width: 100%; /* Asegúrate de que la imagen sea responsiva */
        height: 100%; /* Ajustar la altura para ocupar toda la sección */
        object-fit: cover; /* Mantiene la proporción y cubre el área */
        display: block; /* Asegúrate de que no haya espacio debajo de la imagen */
        object-position: center;
    }

    .hero-content {
        position: absolute; /* Mantener la posición absoluta para superponerse */
        top: 70%; /* Centrar verticalmente */
        left: 50%; /* Centrar horizontalmente */
        transform: translate(-50%, -50%); /* Ajuste para centrar el contenido */
        z-index: 2; /* Mantiene el contenido sobre el slideshow */
        max-width: 250px; /* Limitar el ancho del contenido */
        width: 100%;
        text-align: left; /* Alinear el texto a la izquierda */
    }

    .hero h2 {
        margin-bottom: 10px;
        font-size: 20px;
        line-height: 1.2; 
        margin: 0; /* Sin margen adicional */
    }
    
    .hero p {
        text-align: justify;
        font-size: 15px;
        margin: 0; /* Sin margen adicional */
        margin-top: 20px;
    }
    
    .btn-container {
        display: none; /* Asegurarse de que los botones no se muestren */
    }

    .btn-container-oculto {
        display: grid;
        grid-template-columns: repeat(2, calc(50% - 50px)); /* Ajusta el valor según sea necesario */
        gap: 20px; /* Espacio entre las filas y columnas */
        align-items: center; /* Centra los botones verticalmente */
        justify-items: center; /* Centra los botones horizontalmente */
        padding: auto;
    }

    .btn-container-oculto .btn {
        width:100%;
        height: 140px; /* Ajusta la altura según sea necesario */
    }

}



/* Sección de Servicios */
.services {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.services h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.service-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.service {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    width: 250px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.service h3 {
    margin-bottom: 10px;
    color: #005b96;
}

.service p {
    font-size: 16px;
}

/* Testimonios */
.testimonials {
    padding: 40px 20px;
    text-align: center;
    background-color: #f4f4f4;
}

.testimonials h2 {
    margin-bottom: 20px;
    font-size: 32px;
   
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.testimonial {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial h4 {
    color: #005b96;
    font-weight: normal;
}

/* Noticias */
.news {
    padding: 40px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.news h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.news-item {
    background-color: #fff;
    padding: 20px;
    margin: 10px;
    width: 300px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.news-item h3 {
    margin-bottom: 10px;
    color: #005b96;
}

.news-item p {
    font-size: 16px;
    margin-bottom: 10px;
}

.news-item a {
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
}

.news-item a:hover {
    text-decoration: underline;
}


.hospital-section {
    margin: 0 auto;
    width: 1200px;
    padding: 40px;
    text-align: center;
    background-color: #ffffff;
}

.hospital-text-container
{
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;    /* Centra verticalmente */
    text-align: center;     /* Centra el texto dentro del h1 */
}
.hospital-section h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: 24px;
    color: #2a1c73;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Cambiado a 4 columnas fijas */
    gap: 20px;
}

.service-card {
    background-color: #e5e5e5;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.service-content {
    display: flex; /* Cambia a flex */
    align-items: center; /* Alinea verticalmente la imagen y el texto */
}

.service-content img {
    width: 50px; /* Ajusta el tamaño de la imagen según sea necesario */
    height: 50px; /* Ajusta el tamaño de la imagen según sea necesario */
    border-radius: 10px;
    margin-right: 10px; /* Espacio entre la imagen y el texto */
}

.service-card h2 {
    text-align: left;
    font-size: 16px;
    margin: 0; /* Elimina márgenes para mejor alineación */
    color: #333;
}


/* Responsive design */
@media (max-width: 1200px) {
    .hospital-section
    {
        width: 100%;
    }
    .services-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas más pequeñas */
    }
}


@media (max-width: 767px) {
    .hospital-section
    {
        width: 100%;
        padding: 10px;
    }
    .services-container {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr); /* 1 columna en pantallas pequeñas */
    }

    .services-container img {
        width: 6vw;
        height: 6vw;
    }

    .services-container h2 {
        font-size: 1em;
    }

    .hospital-section h1 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 17px;
        color: #2a1c73;
    }

}


@media (max-width: 480px) {
    .hospital-section
    {
        width: 100%;
        padding: 10px;
    }
    .services-container {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr); /* 1 columna en pantallas pequeñas */
    }

    .services-container img {
        width: 6vw;
        height: 6vw;
    }

    .services-container h2 {
        font-size: 1em;
    }

    .service-card h2 {
        text-align: left;
        font-size: 0.8em;
        margin: 0; /* Elimina márgenes para mejor alineación */
        color: #333;
    }

    .hospital-section h1 {
        text-align: center;
        margin-bottom: 20px;
        font-size: 17px;
        color: #2a1c73;
    }

}



.location {
    padding: 40px;
    text-align: center;
    background-color: #f9f9f9;
}

.map-container {
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 400px; /* Ajusta según sea necesario */
    border: none;
}


/* Estilos Generales para los Contenedores de Encabezado */
.heading-container, .sub-heading-container {
    margin: 0 auto;
    width: 100%;
    max-width: 1150px; /* Ajusta este valor según tus necesidades */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Añade padding para evitar que el contenido toque los bordes */
    box-sizing: border-box;
}

/* Estilos para el Sub-Encabezado */
.sub-heading-container h2 {
    font-size: 18px;
    font-weight: normal;
    text-align: left;
}

/* Estilos para el Encabezado Principal */
.heading-container h2 {
    margin-top: 20px;
    text-align: left;
}

/* Estilos para el Botón */
.btn-directorio-medico {
    margin-top: 20px;
    background-color: #fc5185;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 50px; /* Bordes completamente redondeados */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease; /* Animaciones suaves */
}

/* Efectos para el Botón */
.btn-directorio-medico:hover {
    background-color: #1e1560; /* Cambia color al hacer hover */
    transform: scale(1.1); /* Aumenta el tamaño al hacer hover */
}

.btn-directorio-medico:active {
    transform: translateY(-3px); /* Simula un salto al hacer clic */
}

/* Contenedor de las Tarjetas usando CSS Grid */
#cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* Espacio entre tarjetas */
    padding: 9px 9px;
    max-width: 1200px;
    margin: 20px auto;
    margin-bottom: 50px;
    
}

/* Estilos para centrar las tarjetas cuando hay menos de 4 */
#cards-container.centered {
    display: flex; /* Cambiar a flexbox para centrar */
    flex-wrap: wrap; /* Permitir que las tarjetas se envuelvan */
    justify-content: center; /* Centra las tarjetas */
    margin-bottom: 100px;
}


/* Estilos Generales para la Tarjeta del Médico */

.doctor-card {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 270px; /* Altura fija para uniformidad */
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

/* Sección de la Foto del Médico */
.doctor-photo {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    position: relative;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-right: 2px solid #f0f0f0;
}

/* Sección de Información del Médico */
.doctor-info {
    flex: 2;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-name {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #2F2569;
}

.doctor-specialty {
    font-size: 1.0em;
    margin-bottom: 0px;
    color: blue;
}

.doctor-subspecialty {
    font-size: 0.9em;
    margin-bottom: 12px;
    color: blue;
}

.doctor-schedule {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #555555;
}

/* Enlace de WhatsApp */
.whatsapp-link {
    margin-top: auto; /* Empuja el botón al fondo del card */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    background-color: #2F2569;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(252, 81, 133, 0.5); /* Efecto glow */
    transition: background-color 0.3s;
}

.whatsapp-link:hover {
    background-color:#fc5185;
}

.fa-calendar-alt {
    margin-right: 8px;
    font-size: 0.9em;
}

@media (max-width: 1200px) and (min-width: 768px)
{
    #cards-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Mantiene las 2 columnas */
        gap: 20px; /* Espaciado entre tarjetas */
    }

    .doctor-card {
        display: flex;
        flex-direction: column; /* Asegura que el contenido interno esté bien alineado */
        min-height: 270px; /* Asegura que todas las tarjetas tengan la misma altura mínima */
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s, box-shadow 0.3s;
        height: 100%;
    }

    .doctor-photo {
        flex: none; /* Evita que crezca o se reduzca */
        width: 100%; /* Ocupa todo el ancho del card */
        object-position: top bottom;
        max-width: 100%;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        height: 300px; /* Altura fija para la foto en móviles */
    }

    .doctor-photo img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Recorta las imágenes para que todas se ajusten sin distorsión */
    }

    .doctor-info {
        flex: 1;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Cambiar la dirección de flex a columna y centrar elementos */
    .heading-container, .sub-heading-container {
        flex-direction: column;
        text-align: center;
        max-width: 90%; /* Ajusta el ancho máximo para pantallas pequeñas */
    }
    
    .heading-container h2, .sub-heading-container h2 {
        text-align: center;
        margin: 10px 0;
    }
    
    .btn-directorio-medico {
        margin-top: 10px;
    }
    .doctor-name {
        font-size: 1.2em;
    }

    .doctor-specialty {
        font-size: 1em;
    }

    .whatsapp-link {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .whatsapp-icon {
        margin-right: 5px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    

    #cards-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Mantiene las 2 columnas */
        gap: 5px; /* Espaciado entre tarjetas */
    }

    .doctor-card {
        display: flex;
        flex-direction: column; /* Asegura que el contenido interno esté bien alineado */
        min-height: 270px; /* Asegura que todas las tarjetas tengan la misma altura mínima */
        background-color: #ffffff;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: transform 0.3s, box-shadow 0.3s;
        height: 100%;
    }

    .doctor-photo {
        flex: none; /* Evita que crezca o se reduzca */
        width: 100%; /* Ocupa todo el ancho del card */
        object-position: top bottom;
        max-width: 100%;
        border-right: none;
        border-bottom: 2px solid #f0f0f0;
        height: 300px; /* Altura fija para la foto en móviles */
    }

    .doctor-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Recorta las imágenes para que todas se ajusten sin distorsión */
    }

    .doctor-info {
        flex: 1;
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

   
    
    /* Cambiar la dirección de flex a columna y centrar elementos */
    .heading-container, .sub-heading-container {
        flex-direction: column;
        text-align: center;
        max-width: 90%; /* Ajusta el ancho máximo para pantallas pequeñas */
    }
    
    .heading-container h2, .sub-heading-container h2 {
        text-align: center;
        margin: 10px 0;
    }
    
    .btn-directorio-medico {
        margin-top: 10px;
    }
    .doctor-name {
        font-size: 1.2em;
    }

    .doctor-specialty {
        font-size: 1em;
    }

    .whatsapp-link {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .whatsapp-icon {
        margin-right: 5px;
        font-size: 1em;
    }
}

@media (max-width: 468px) {

    .doctor-name {
        font-size: 1em;
    }

    .doctor-specialty {
        font-size: 0.9em;
    }

    .whatsapp-link {
        padding: 8px 16px;
        font-size: 0.8em;
    }

}


/* Sección info hospital */
.hospital-sectionv2 {
    position: relative;
    min-height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .background-imagev2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: 0% 0%; /* Centro-un poco abajo */
    object-fit: cover;
    z-index: 1;
  }

  .overlayv2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(47, 37, 105, 0.8), rgba(47, 37, 105, 0.6));
    z-index: 2;
  }

  .content-wrapperv2 {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 4rem;
    color: white;
    text-align: left;
    margin-right: 5%;
  }

  .categoryv2 {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .titlev2 {
    font-size: 3.2rem; /* Ligeramente más pequeño para el nuevo título */
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  }

  .descriptionv2 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8; /* Aumentado para mejor legibilidad del texto más largo */
    max-width: 650px; /* Aumentado para el texto más largo */
    opacity: 0.95; /* Mejor legibilidad */
    letter-spacing: 0.2px;
  }

  .counter-container {
    margin-top: 20px; /* Espacio entre la descripción y el contador */
    font-size: 48px; /* Tamaño del número */
    font-weight: bold; /* Estilo del texto */
    color: white; /* Color del texto */
    text-align: left; /* Alinea el texto al centro */
}

.counter-container span:first-child {
    padding-right: 10%; /* Ajusta el valor según sea necesario */
}

.textito-container {
    display: flex; /* Usar flexbox para alinear los elementos en línea */
    align-items: center; /* Alinea verticalmente si es necesario */
    flex-wrap: wrap; /* Permitir que los elementos hagan salto de línea */
}

.registration-text {
    max-width: 200px; /* Ancho máximo del primer span */
    font-size: 16px; /* Tamaño del texto */
    text-align: left; /* Alinea el texto a la izquierda */
    color: white; /* Color del texto */
    white-space: normal; /* Permitir saltos de línea */
    overflow-wrap: break-word; /* Rompe palabras largas si es necesario */
}

.registration-textv2 {
    max-width: 50px; /* Ancho máximo del segundo span */
    font-size: 16px; /* Tamaño del texto */
    text-align: left; /* Alinea el texto a la izquierda */
    margin-left: 10%; /* Agregar espacio a la izquierda */
    color: white; /* Color del texto */
}




  @media (max-width: 768px) {
    .content-wrapperv2 {
      padding: 2rem;
      margin-right: 0;
      text-align: center;
      width: 100%;
    }
    
    .content-wrapperv2 .categoryv2 {
        display: none;
      }

      .content-wrapperv2 h2{
        padding-bottom: 40%;
        font-size: 1.5rem;
      }

    .background-imagev2 {
        object-position: 0% 100%; /* Centro-un poco abajo */
        object-fit: cover;
      }

    .titlev2 {
      font-size: 2.3rem;
    }

    .descriptionv2 {
      padding-bottom: 10%;
      font-size: 1.2rem;
      margin-left: auto;
      text-align: justify;
      margin-right: auto;
    }

    .counter-container {
        display:flex;
        justify-content: center;
    }

    .textito-container
    {
        display:flex;
        justify-content: center;
    }

    .counter-container span:first-child {
        font-size: 36px; /* Tamaño del número */
    }

    .counter-container span:nth-child(2) {
        font-size: 36px; /* Tamaño del número */
    }
    
    .registration-text {
        max-width: 120px;
     }
  }

  @media (max-width: 480px) {
    .titlev2 {
      font-size: 2rem;
    }

    .descriptionv2 {
      font-size: 1rem;
      line-height: 1.6;
    }

    .counter-container {
        display:flex;
        justify-content: space-evenly;
    }

    .textito-container
    {
        display:flex;
        justify-content: space-evenly;
    }
    .counter-container span:first-child {
     
        font-size: 32px; /* Tamaño del número */
    }
    .counter-container span:nth-child(2) {
        font-size: 32px; /* Tamaño del número */
    }

    .registration-text {
        max-width: 120px;
     }

  }
/* seccion de maternidad*/
.maternity-section {
    position: relative;
    min-height: 75vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scaleX(-1);
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(47, 37, 105, 0.8), rgba(47, 37, 105, 0.6));
    z-index: 2;
  }

  .content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 4rem;
    color: white;
    text-align: left;
    margin-right: 5%;
  }

  .category {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
  }

  .title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  }

  .description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 600px;
  }

  .cta-button {
    background-color: #fc5185;
    color: #059669;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex; /* Cambiado a inline-flex */
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 180px; /* Ancho mínimo */
    max-width: 220px; /* Ancho máximo */
    white-space: nowrap; /* Evita que el texto se rompa */
  }

  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
  }

  @media (max-width: 768px) {
    .content-wrapper {
      padding: 2rem;
      margin-right: 0;
      text-align: center;
      width: 100%;
    }

    .title {
      font-size: 2.5rem;
    }

    .description {
      font-size: 1.1rem;
      margin-left: auto;
      margin-right: auto;
    }

    .cta-button {
      margin: 0 auto; /* Centra el botón en móvil */
    }

    .background-image {
        object-fit:cover;
        transform: scaleX(-1);
      }

  }

  @media (max-width: 480px) {
    .title {
      font-size: 2rem;
    }
  }

  .marquee-section {
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
  }
  .title-container
  {
    display: flex;
    justify-content: center; /* Para centrar horizontalmente */
    align-items: center; /* Para centrar verticalmente */
    height: 100px; /* Ajusta según sea necesario */
  }
  .title-container h1 {
    margin: 0 auto;
   }

  .marquee-container {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    gap: 20px;
    padding: 20px;
    animation: scroll 20s linear infinite;
    position: relative;
    z-index: 1;
  }

  .marquee-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    width: calc((800px - 100px) / 4);
    max-width: 100%;
  }

  .grid-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
  }

  

  .fade-overlay-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    z-index: 2;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-70%);
    }
  }

  /* Responsive */
  @media (max-width: 768px) {
    
    .marquee-section {
        max-width: 90vw;
      }
    
    .marquee-item {
      width: calc((100vw - 100px) / 4);
    }
    .fade-overlay-left,
    .fade-overlay-right {
      width: 100px;
    }
  }