/* --------------------------------------------
   TU CÓDIGO CSS COMPLETO, UNIFICADO Y CORREGIDO
   -------------------------------------------- */

/* ========== 1. MANTENIMIENTO ========== */
.maintenance-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f5f5f5; /* Fondo suave */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra */
    margin: 20px auto;
    max-width: 600px;
}

.maintenance-gif {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.maintenance-text {
    font-family: 'Arial', serif;
    font-size: 18px;
    color: #333;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .maintenance-container {
        padding: 20px;
    }
    .maintenance-text {
        font-size: 16px; /* Ajusta el tamaño del texto */
    }
}

/* ========== 2. VIDEO DE LINE ========== */
.line-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.line-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

/* ========== 3. ESTILOS GENERALES ========== */
body {
    font-family: 'Arial', serif;
    margin: 0;
    padding: 0;
    background-color: #e6e0e0;
    box-sizing: border-box;
    overflow-x: hidden; /* Evita desplazamiento horizontal */
}

/* ========== 4. MENÚ HORIZONTAL ========== */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0d0d0e;
    padding: 10px 5%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: top 0.3s ease; 
}

body .menu {
    background-color: #09075fec; /* Cambia el color aquí */
}

.menu.hidden {
    transform: translateY(-100%);
}



/* ========== 5. SECCIÓN CONTADOR ========== */
.counter-section {
    text-align: center;
    padding: 20px;
}
.counter-container {
    margin: 0 auto;
    max-width: 600px;
}
.green-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.green-button:hover {
    background-color: #218838;
}

/* ========== 6. MODAL GENÉRICO ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal.hidden {
    display: none;
}
.modal-content {
    position: relative;
    width: 80%;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.modal-image {
    width: 100%;
    border-radius: 10px;
}
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #b60808;
    cursor: pointer;
}
.close-button:hover {
    color: #000;
}

/* ========== 7. FOOTER ========== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; 
    height: 40px; 
    background-color: #1f1e6d;
    color: #fff; 
    z-index: 999; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: bottom 0.3s ease;
}
.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}
.footer-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 2;
    gap: 10px;
}

/* Redes sociales en el footer */
.submenu-social a {
    margin: 0 10px;
}
.social-icon {
    width: 40px;
    height: 40px;
}

/* Contactos en el footer */
.contact-image .contact-img {
    max-width: 120px;
    height: auto;
}
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.submenu-item {
    display: flex;
    align-items: center;
    gap: 1px;
}
.contact-icon {
    width: 20px;
    height: 20px;
}

/* Línea separadora */
.separator {
    width: 2px;
    background-color: #fff;
    border: 1px solid #ccc;
    margin: 0 20px;
    height: auto;
}

/* Ajuste general del footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #1f1e6d;
    padding: 0px 5% 75px; 
    color: #fff;
    font-family: Arial, sans-serif;
    flex-wrap: wrap;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10; 
    transition: bottom 0.3s ease;
}

/* Columna de redes sociales */
.social-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 40px; 
}
.submenu-social a {
    margin: 0 10px;
}
.social-icon {
    width: 40px;
    height: 40px;
}

/* Columna de contactos */
.contact-section {
    flex: 2;
    padding: 15px;
}
.contact-content {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.contact-left .contact-img {
    max-width: 120px;
    height: auto;
}

/* Separador vertical del footer */
.separator {
    width: 2px;
    background-color: #fff;
    border: 1px solid #ccc;
    align-self: stretch;
}
.contact-content {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
}
.contact-left .contact-img {
    margin-top: 60px; 
}

/* Ajustes para info de contacto */
.contact-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.contact-icon {
    width: 20px;
    height: 20px;
}

/* Responsive en el footer */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
    }
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    .separator {
        display: none; 
    }
}
/* Para el logo en contacto*/
@media (max-width: 768px) {
    .contact-details-wrapper .logo-img {
      position: relative ;
      top: 8 ;
      left: 50% ;
      transform: translateX(-50%) ;
      margin: -1px auto 0 auto ; /* Ajusta este valor según lo necesites */
      width: 200px; /* Puedes ajustar el tamaño si es necesario */
    }
  }
  
  
/* Ajustes de íconos en redes */
.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}
.social-icon.youtube {
    width: 40px;
    height: 40px;
}
.social-icon.facebook {
    width: 45px;
    height: 45px;
}
.social-icon:hover {
    transform: scale(1.2);
}

/* Título de contactos */
.contact-title {
    font-size: 20px;
    margin-left: 10px;
}

/* ========== 8. BOTÓN FLOTANTE DE WHATSAPP ========== */
.whatsapp-btn {
    position: fixed;    /* Fijo para que permanezca visible */
    bottom: 20px;       /* Ubicación inicial */
    right: 20px;        /* Ubicación inicial */
    z-index: 1000;
    cursor: move;       /* Indicamos que se puede arrastrar */
    display: inline-block;  /* Para que ocupe el espacio del contenido */
  }
  
  .whatsapp-btn:hover {
    transform: scale(1.1); /* Efecto al pasar el mouse */
    transition: transform 0.2s ease;
  }
  
  .whatsapp-icon {
    width: 50px;
    height: 50px;
    user-select: none; /* Evita que se seleccione la imagen al arrastrar */
  }
  

/* Ajustes de íconos */
.contact-icon {
    width: 30px;
    height: auto;
    margin-right: 10px;
}
.contact-icon.phone {
    width: 25px; 
}
.contact-icon.email {
    width: 35px; 
}
.contact-icon.gps {
    width: 40px; 
}
.submenu-content a:hover {
    text-decoration: underline;
}

/* Logo del menú */
.logo img {
    height: auto;
    width: auto;
    transition: transform 0.3s ease;
    cursor: pointer;
}
.logo img:hover {
    transform: scale(2.1);
}

/* ========== 9. SECCIÓN DE VIDEO ========== */
.video-section {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: 0;
    height: auto;
}
.video-section video {
    width: 70%;
    height: auto;
}

/* ========== 10. SECCIÓN DE TEXTO ========== */
.text-section {
    flex: 2;
    text-align: center;
    font-size: 1.5rem;
    color: #46af98;
    padding: 0 20px;
}
.service-item {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}
.line-section {
    margin: 95px 0 0 0;
}

/* Íconos de redes sociales */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.whatsapp-icon {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    z-index: 1000;
}
.facebook-icon {
    width: 45px;
    height: 45px;
    margin-right: 10px;
}
.instagram-icon {
    width: 40px;
    height: 40px;
}
.social-icons img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* ========== 11. MENÚ (ESTILOS ADICIONALES) ========== */
.menu {
    display: flex;
    justify-content: space-between;
    align-items: left;
    background-color: black;
    padding: 10px 5%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
.logo img {
    height: 70px;
    width: auto;
    cursor: pointer;
}

/* Enlaces de navegación */
.nav-links a {
    /* estilo base */
    font-size: 16px; 
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, font-weight 0.3s ease;
  }
  
  /* Al pasar el mouse, aumenta el tamaño */
  .nav-links a:hover {
    transform: scale(1.2); /* Agranda */
  }
  
  /* Cuando se hace clic, o si deseas en .active, poner en negrita */
  .nav-links a:active,
  .nav-links a.active {
    font-weight: bold; /* Se pone en negrita */
  }
  
.nav-links {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: flex-start;
    transition: all 0.3s ease;
}
.nav-links a {
    padding: 15px 50px;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
    background-color: azul; /* Ajusta el color si deseas */
}

/* Botón de menú hamburguesa */
.hamburger {
    display: none; /* Oculto en pantallas grandes */
    flex-direction: column;
    cursor: pointer;
    margin-right: 60px;
}
.hamburger span {
    height: 3px;
    width: 25px;
    background-color: white;
    margin: 3px 0;
}

/* Menú activo en móviles */
.nav-links.active {
    background-color: #09075fec;
    color: #333;
}
.nav-links a.active {
    background-color: #ccc;
    color: black;
}

/* Responsive para el menú en pantallas pequeñas */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex; 
    }
    .submenu {
        flex-direction: column;
        align-items: flex-end;
        padding-right: 15px;
    }
    submenu-item {
        font-size: 0.9rem;
    }
}

/* ========== 12. SECCIÓN DEL CONTADOR (REPETIDA ABAJO) ========== */
.counter-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40vh;
    background-color: #d5d7db;
    margin: 0;
}
.counter-container {
    text-align: center;
}
.counter-container h2 {
    font-family: 'Arial', sans-serif;
    color: #333;
    font-size: 2rem;
    margin-bottom: 10px;
}
.counter #counter-value {
    font-family: 'Arial', sans-serif;
    color: #2f8b2f;
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.counter span:last-child {
    font-family: 'Arial', sans-serif;
    color: #4caf50;
    font-size: 4rem;
    margin-left: 5px;
}
.counter-container h8 {
    display: block;
    font-family: 'Arial', sans-serif;
    color: #555;
    font-size: 1rem;
    margin-top: 10px;
}

/* ========== 13. SECCIÓN CONÓCENOS ========== */
.content-container {
    text-align: left;
    margin: 0 auto;
    padding: 0px;
    max-width: 700px;
}
.center-image {
    width: var(--image-width, 30%);
    height: var(--image-height, auto);
    display: block;
    margin: 0 auto 20px auto;
}
.description {
    font-family: 'Arial', serif;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    padding: 10px;
    color: #333;
}
.title {
    font-family: 'Satisfy', cursive;
    font-size: 36px;
    font-weight: bold;
    color: #333;
    text-align: left;
    margin: 20px 0;
    padding: 0;
}

/* Sección de botones */
.buttons-section {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}
.button-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.button-column {
    flex: 1;
    text-align: center;
}
.info-button {
    font-family: 'Arial', serif;
    font-size: 16px;
    padding: 30px 20px;
    cursor: pointer;
    border: 2px solid #2e3192;
    background-color: #fff;
    color: #2e3192;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.info-button:hover {
    background-color: #2e3192;
    color: #fff;
}

/* ========== 14. MODAL (SERVICIOS) ========== */
/* El modal está oculto por defecto */
.modal.hidden {
    display: none;
  }
  
  /* Contenedor del modal: cubre toda la pantalla con un fondo semitransparente */
  .modal {
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
  
    display: flex;          /* Para centrar con flexbox */
    justify-content: center;
    align-items: center;
  }
  
  /* Contenido del modal */
  .modal-content {
    background-color: #fff;
    width: 80%;
    max-width: 600px;
    max-height: 70vh;       /* Limita la altura para forzar scroll si es muy grande */
    overflow-y: auto;       /* Barra de scroll vertical interna */
    border-radius: 8px;
    padding: 20px;
    position: relative;
  }
  
  /* Botón de cierre (la X) */
  .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Estilos base para la tabla */
  .two-column-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #87CEEB;  /* Celeste */
  }
  
  .two-column-table td {
    border: 1px solid #fff; /* Bordes blancos */
    padding: 8px;
    vertical-align: top;
    color: #333;
    font-family: Arial, sans-serif;
  }
  
  /* Ajuste de la “services-section” */
  .services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px;
  }
  
  /* Filas de servicios */
  .services-row {
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  /* Item de servicio */
  .service-item {
    text-align: center;
    max-width: 200px;
    cursor: pointer;
  }
  
  /* Imagen de servicio */
  .service-image {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
  }
  
  /* Botón flotante de WhatsApp: draggable */
  .whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: move;  /* Indica que se puede arrastrar */
  }
  
  .whatsapp-icon {
    width: 50px;
    height: 50px;
  }
  
  
/* Título Servicios */
.title {
    font-family: 'Satisfy', cursive;
    font-size: 48px;
    color: #333;
    text-align: left;
    margin: 100px 0;
    padding-left: 20px;
}

/* Sección de servicios */
.services-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px;
}
.services-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.service-item {
    text-align: center;
    max-width: 200px;
    cursor: pointer;
}
.service-image {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
}

/* ========== 15. MODAL (ALIADOS) ========== */

/* Ocultamos la ventana por defecto */
.modal-aliados.hidden {
    display: none;
  }
  
  /* Ventana contenedora */
  .modal-aliados {
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* Contenido interno */
  .modal-aliados-content {
    background: #fff;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    /* Si quieres centrar texto: text-align: center; */
  }
  
  /* Botón de cierre (la X) */
  .modal-aliados-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
  
  /* Imagen (logo) en el modal, centrada */
  .modal-aliados-logo {
    display: block; 
    margin: 0 auto 20px auto; /* Centro horizontal y margen abajo */
    max-width: 200px;         /* Ajusta tamaño */
    height: auto;
  }
  
  /* Texto justificado, Arial */
  .modal-aliados-text {
    font-family: Arial, sans-serif;
    text-align: justify;  /* Justificado */
    margin-bottom: 20px;  /* Espacio inferior */
    line-height: 1.5;
  }
  .modal-content,
.modal-aliados-content {
  max-height: 80vh; /* o el valor que prefieras */
  overflow-y: auto;
}

  .modal-aliados-text p {
    margin: 1px 0; /* Ajusta el valor según lo necesites */
    padding: 0;
  }
  .contact-line {
    margin: 5px 0;
    font-size: 0.9rem; /* Por ejemplo, para ajustar el tamaño si es necesario */
  }
    
  /* Botón "Ir a la página web" con animación hover */
  .modal-aliados-btn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
  }
  
  .modal-aliados-btn:hover {
    transform: scale(1.1);
    /* Opcional: background-color: #0056b3; */
  }
  
    
  
  

/* Título Aliados */
.title {
    font-family: 'Satisfy', cursive;
    font-size: 48px;
    color: #333;
    text-align: left;
    margin: 100px 0;
    padding-left: 40px;
}

/* Sección de aliados */
/* Evita scroll horizontal */
body {
    overflow-x: hidden; 
    
  }
  
  /* Menú: al pasar el cursor, agranda; al hacer clic (active), negrita */
  .nav-links a {
    font-size: 16px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, font-weight 0.3s ease;
  }
  .nav-links a:hover {
    transform: scale(1.2);
  }
  .nav-links a:active,
  .nav-links a.active {
    font-weight: bold;
  }
  
  /* Botón flotante de WhatsApp, arrastrable */
  .whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    cursor: move;    /* Indicamos que se arrastra */
    display: inline-block;
  }
  .whatsapp-icon {
    width: 50px;
    height: 50px;
    user-select: none; /* Evita selección al arrastrar */
  }
  .whatsapp-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
  }
  
  /* Modal Aliados */
  .modal-aliados.hidden {
    display: none;
  }
  .modal-aliados {
    position: fixed;
    z-index: 9999;
    left: 0; 
    top: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .modal-aliados-content {
    background: #fff;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    text-align: center; /* O si lo deseas 'left' */
  }
  .modal-aliados-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
  }
  .modal-aliados-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 200px;
    height: auto;
  }
  .modal-aliados-text {
    font-family: Arial, sans-serif;
    text-align: justify;
    margin-bottom: 20px;
    line-height: 1.5;
  }
  .modal-aliados-btn {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    transition: transform 0.3s ease;
  }
  .modal-aliados-btn:hover {
    transform: scale(1.1);
  }
  
.allies-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px;
}
.allies-row {
    display: flex;
    justify-content: center;
    gap: 20px;
}
.ally {
    display: block;
    text-align: center;
    max-width: 200px;
}
.ally-logo {
    width: 150px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.ally-logo:hover {
    filter: none;
}

/* ========== 16. ASOCIADOS ========== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
.container {
    display: flex;
    height: 100vh;
}
.asociados-section {
    width: 30%;
    padding: 20px;
    overflow-y: auto;
    background-color: #f9f9f9;
}
.asociados-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.asociados-list button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    border-radius: 5px;
}
.asociados-list button:hover {
    background-color: #0056b3;
}
.map-section {
    width: 65%;
    height: 100vh;
}
.asoc-centros {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    width: 50%;
    height: auto;
}
.asoc-centros-contenido {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}
.cerrar-asoc {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* GIFs de menús */
.title-container {
    text-align: left;
    margin-top: 10px;
    margin-left: 0.5px;
}
.title-gif {
    width: 80%;
    max-width: 150px;
    height: auto;
}
.title-servicios {
    text-align: left;
    margin-top: 80px;
    margin-left: 0.5px;
}
.title-aliados {
    text-align: left;
    margin-top: 80px;
    margin-left: 0.5px;
}
.title-asociados {
    text-align: left;
    margin-top: 80px;
    margin-left: 0.5px;
}
.title-contactenos {
    text-align: left;
    margin-top: 70px;
    margin-left: 0.5px;
}
.contactenos-gif {
    width: 120%;
    max-width: 150px;
    height: auto;
}

/* ========== 17. MODAL ASOCIADOS UNIFICADO ========== */
/* ==== Estructura principal en la ventana emergente ==== */
.modal-header {
    display: flex;
    justify-content: space-between; /* Deja la info a la izquierda, imagen a la derecha */
    align-items: flex-start;        /* Alinea la imagen y texto arriba */
    flex-wrap: wrap;               /* Por si en móvil no caben en una sola línea */
    gap: 10px;                     /* Espacio horizontal */
  }
  
  /* Columna izquierda (texto) */
  .modal-left {
    flex: 1;                       /* Ocupará el espacio disponible */
    min-width: 200px;             /* Evita que se colapse demasiado en móviles */
  }
  
  .modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  /* Íconos y texto de contacto */
  .modal-info p {
    display: flex;
    align-items: center;
    margin: 5px 0;
  }
  
  /* Íconos clicables de teléfono, email, etc. */
  .icon-click {
    width: 24px;
    height: 24px;
    margin-right: 5px;
    cursor: pointer;     /* Muestra que es clickeable */
  }
  .icon {
    width: 24px;
    height: 24px;
    margin-right: 5px;
  }
  
  /* Columna derecha (imagen) */
  .modal-right {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .modal-logo {
    width: 80px;         /* Tamaño pequeño */
    height: auto;
    object-fit: contain; /* Ajusta si quieres recortar la imagen */
  }
  
  /* Subrayado en color (hr) */
  .materiales-hr {
    border: none;
    border-top: 2px solid blue; /* color azul, ajusta a gusto */
    margin: 10px 0;
  }
  
  /* Título MATERIALES QUE RECIBE */
  .materiales-title {
    font-size: 1.2rem;
    margin: 5px 0 15px;
    text-align: center;
    color: #333;         /* Ajusta a tu preferencia */
  }
  
  /* Grid de materiales */
  .materiales-grid {
    display: flex;
    flex-wrap: wrap;         /* Imágenes saltan de línea en móviles */
    justify-content: center; /* Centra las imágenes en una fila */
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .materiales-grid img {
    width: 60px;       /* Ajusta el tamaño de cada ícono */
    height: auto;
  }
  
  /* Botón "Ir al Lugar" */
  .maps-button {
    text-align: center; /* Centra el botón */
    margin-top: 10px;
  }
  .maps-button button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  .maps-button button:hover {
    background-color: #0056b3;
  }
  
  /* ==== Responsive ajustado a gusto ==== */
  @media (max-width: 600px) {
    .modal-header {
      flex-direction: column; /* Imagen y texto uno debajo de otro si no caben */
    }
    .modal-right {
      margin-top: 10px; /* Espacio cuando pasa abajo */
    }
    .materiales-grid img {
      width: 50px; /* Un poco más pequeño en pantallas reducidas */
    }
  }
  

/* 
   SECCIÓN IMPORTANTE: 
   Ajustes para centrar vertical y horizontalmente el contenido
   de la ventana emergente (.asoc-ventana) 
*/
.asoc-ventana {
    display: none; /* Cambiar a display: flex desde JS cuando se abra el modal */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Centra vertical/horizontal con flexbox */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}
.asoc-ventana-contenido {
    background: #fff;
    width: 60%;
    max-width: 800px;
    padding: 20px;
    border-radius: 8px;
    text-align: left    ;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
.cerrar-asoc {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #ff0000;
}
.asoc-ventana img {
    width: 12%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
}
.asoc-ciado img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 5px;
}
.asoc-conta img {
    width: 5%;              /* Perfecto para pantallas grandes */
    max-height: 300px;      /* Evita que crezca más de 300px */
    object-fit: cover;
    border-radius: 5px;
  }
  
  /* Cuando la pantalla es menor a 768px, queremos que la imagen sea más grande 
     (porque 5% se vuelve demasiado pequeña o se corta) */
  @media (max-width: 768px) {
    .asoc-conta img {
      width: 9%;           /* Ajusta según qué tan grande quieras la imagen en móvil */
      max-height: none;     /* Permite crecer sin recortarse, o ajusta a tu preferencia */
    }
  }
  
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==== Centrado total de la sección de asociados ==== */
/* 1) El contenedor principal ocupa la altura de la ventana 
   y alinea vertical/horizontal el contenido */
.container {
  display: flex;
  height: 100vh;         /* Ocupa todo el alto de la ventana */
  align-items: center;   /* Centra verticalmente el contenido */
  justify-content: space-between; /* Ajusta 'space-between' o 'center' */
}

/* 2) La parte de asociados (izquierda) se alinea en el medio 
   dentro del espacio que le corresponde. */
.asociados-section {
  width: 30%;            
  display: flex;
  flex-direction: column; 
  align-items: center;    
  justify-content: center; 
}

/* 3) Ajusta la sección del mapa a ocupar el resto. */
.map-section {
  width: 65%; /* Ajusta el porcentaje para no superar 100% con la izquierda */
  height: 100%;
}
@media (max-width: 768px) {
    .container {
      flex-direction: column; /* Coloca los elementos en columna */
    }
    .asociados-section, 
    .map-section {
      width: 100%;  /* Ambos ocuparán el 100% del ancho */
    }
    .map-section {
      height: 300px; /* Altura fija para el mapa en móviles (ajusta según necesites) */
    }
  }
  

/* ========== 18. SECCIÓN CONTACTO (RESPONSIVE) ========== */
.contact-container {
    display: flex;
    justify-content: space-between;
    margin: 40px auto;
    max-width: 1200px;
    gap: 20px;
}
.contact-left,
.contact-right {
    flex: 1;
}
.contact-left {
    padding: 2px;
}
.contact-right {
    background-color: #3366cc;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 10px;
}
h1.title {
    font-family: 'Satisfy', cursive;
    font-size: 36px;
    color: #333;
}
h2.subtitle {
    font-family: 'Arial', serif;
    font-size: 24px;
    text-align: center;
    margin-bottom: 10px;
}
.description {
    font-family: 'Arial', serif;
    font-size: 20px;
    text-align: justify;
    margin-bottom: 20px;
}
form .form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
form .form-group {
    flex: 1;
    margin-right: 10px;
}
form .form-group label {
    display: block;
    font-weight: bold;
    color: #333;
}
form .form-group input,
form .form-group textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
form .form-group textarea {
    resize: none;
}
.btn-submit {
    background-color: #3366cc;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}
.btn-submit:hover {
    background-color: #004c99;
}
.contact-right .social-icons img {
    width: 30px;
    margin-right: 10px;
}
.contact-right table {
    width: 100%;
    margin-top: 10px;
    border-spacing: 0;
}
.contact-right td {
    padding: 5px;
    color: white;
}
.schedule p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}
.schedule strong {
    margin-right: 10px;
}
.logo-img {
    position: absolute;
    top: 150px;
    left: 83%;
    transform: translateX(-50%);
    width: 250px;
    height: auto;
    z-index: 10;
}
.contact-details {
    background-color: #87CEEB;
    color: #333;
    border-radius: 20px;
    padding: 50px 20px 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    width: 100%;
    max-width: 500px;
    margin-top: 150px;
    margin-left: 10%;
    transform: translate(-10%, 20%);
}
.info-section {
    margin-bottom: 20px;
}
.info-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1f1e6d;
}
.info-section p,
.info-section a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}
.info-section a:hover {
    text-decoration: underline;
}

/* Iconos sociales en Contacto */
.contact-right a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-right a:hover {
    color: #004c99;
    text-decoration: underline;
}
.contact-icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    vertical-align: middle;
}
.submenu-item {
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    gap: 2px;
}
.contact-icon {
    width: 25px;
    height: 25px;
    margin-right: 1px;
}
.social-icons img {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}
.social-icons img:hover {
    transform: scale(1.2);
}
.contact-icon.gps {
    width: 20px;
    height: 25px;
    margin-right: 5px;
}
.contact-right {
    flex: 1;
    background-color: #1f1e6d;
    color: #fff;
    padding: 30px;
    border-radius: 1px;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: center;
    position: relative;
}
.contact-right > * {
    position: relative;
    top: -40px;
}
.contact-right img.logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
}
.info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 20px;
    gap: 20px;
}
.info-section {
    flex: 1;
}
.info-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: #fff;
}
.info-section p,
.info-section a {
    font-size: 14px;
    color: #fff;
    margin: 5px 0;
    text-decoration: none;
}
.info-section a:hover {
    text-decoration: underline;
}
.schedule {
    text-align: left;
}
.schedule p {
    font-size: 14px;
    margin: 5px 0;
}
.schedule strong {
    color: #fff;
}

/* Iconos Sociales en Contacto */
.social-section {
    margin-bottom: 20px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}
.social-icons img:hover {
    transform: scale(1.2);
}

/* Responsivo para Contacto */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
    .info-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-left,
    .contact-right {
        width: 100%;
    }
}

/* Responsivo para el menú en pantallas pequeñas */
@media (max-width: 768px) {
    .nav-links {
        display: none; 
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        z-index: 10;
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .submenu {
        flex-direction: column;
        align-items: flex-end;
        padding-right: 15px;
    }
    submenu-item {
        font-size: 0.9rem;
    }
}

/* Ajuste del título */
.contact-title {
    margin-right: 0;
    margin-bottom: 10px;
}

/* Sección de aliados (Diseño con .allies-row) */
.allies-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px;
}
.allies-row {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 20px;
}
.allies-row .ally {
    flex: 0 0 calc(33.333% - 20px);
    box-sizing: border-box;
    max-width: 200px;
    text-align: center;
}
@media (max-width: 768px) {
    .allies-row .ally {
        flex: 0 0 calc(50% - 20px);
    }
}
.ally-logo {
    width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}
.ally-logo:hover {
    filter: none;
}

/* ========== 2-FILAS EN MÓVIL (ASOCIADOS ARRIBA, MAPA ABAJO) ========== */
@media (max-width: 768px) {
    /* Convierte el .container en columnas */
    .container {
        flex-direction: column;
        height: auto; /* Permite expandir verticalmente */
    }
    .asociados-section {
        width: 100%;
        order: 1; /* Asociados arriba */
    }
    .map-section {
        width: 100%;
        order: 2; /* Mapa abajo */
    }

    /* Asocia 2 botones por fila en la lista de asociados */
    .asociados-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .asociados-list button {
        flex: 0 0 calc(50% - 10px); 
        box-sizing: border-box;
    }
}
/* Bloque adicional de copywrite al final de la página */
.page-footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    margin: 20px 0;
    padding: 10px 0;
    background-color: #f5f5f5; /* Opcional, para darle un fondo */
  }
  .copywrite {
    text-align: center;
    font-size: 0.8rem;
    color: #333;
    background-color: #f5f5f5; /* Opcional, para un fondo suave */
    padding: 10px 0;
    margin-top: 20px;
  }
  /* Asegúrate de que el footer se mantenga fijo en la parte inferior */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background-color: #1f1e6d;
  }
  
  /* Agrupamos el contenido principal del footer */
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 5%;
  }
  
  /* Estilos para el bloque de copywrite */
  .copywrite {
    text-align: center;
    font-size: 0.8rem;
    color: #fff;
    background-color: #1f1e6d; /* mismo fondo para que se integre */
    padding: 5px 0;
  }
  
  /* Si deseas que el copywrite se separe un poco del contenido del footer */
  .footer-content + .copywrite {
    border-top: 1px solid #fff;
  }
  
  /* Estilos básicos para el carrusel */
.carousel {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 20px;
  }
  
  .carousel-track-container {
    position: relative;
    overflow: hidden;
    width: 100%;
  }
  
  .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
  }
  
  .carousel-image {
    width: 100%;
    display: block;
  }
  
  /* Botones del carrusel */
  .carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 2;
  }
  
  .carousel-button--left {
    left: 10px;
  }
  
  .carousel-button--right {
    right: 10px;
  }
  
  .carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  