:root {
    /* Colores */
    --primary-dark: #003466;
    --primary-light: #1B6DEE;
    --accent-color: #a0b9ff;

    --text-dark: #2C3E50;
    --white: #FFFFFF;
    --text-title: #1B1B1B;
    --text-Body: #373737;
    --text-body-white: #FFFFFF;
    --background-light: #E8F1FF;
    --background-dark: #000000;
    --background-card: #F2F2F2;
    --background-card-accent: #B5DAFF;

    /* Tipografía */
    --family-Body: Poppins, sans-serif;
    --family-Title: Poppins, sans-serif;


    /* Espaciado y Transiciones */
    --transition-speed: 0.3s;
    /* Margen general del contenido en desktop (7.5rem) y tablet/mobile (1rem) */
    --content-padding-x-desktop: 7.5rem;
    --content-padding-x-mobile: 1rem;
    --section-padding-y: 4rem;

    /* Títulos */
    --h1-size-desktop: 3.5rem;
    /* 56px */
    --h1-size-mobile: 2rem;
    /* 40px */
    --h3-size-desktop: 2rem;
    /* 32px */
    --h3-size-mobile: 1.5rem;
    /* 24px */
    --h4-size-desktop: 1.5rem;
    /* 24px */

    /* Body */
    --body1-size-desktop: 1.125rem;
    /* 18px */
    --body1-size-mobile: 1rem;
    /* 16px */
    --body2-size: 1rem;
    /* 16px */
    --body3-size: 0.875rem;
    /* 14px */
}

/* ==================================== */
/* 1. ESTILOS GLOBALES Y RESETS         */
/* ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: var(--family-Body);
    line-height: 1.6;
}

p {
    color: var(--text-Body);
    font-family: var(--family-Body);
    font-size: var(--body1-size-desktop);
    font-weight: 400;
    line-height: 130%;
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h1 {
    position: relative;
    color: var(--text-title);
    text-align: center;
    font-family: var(--family-Title);
    font-size: var(--h1-size-desktop);
    font-weight: 700;
    line-height: 120%;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(143, 233, 255, 0.4);
}

.cta-button:hover {
    transform: translateY(-5px);
    background-color: #a8f0ff;
}

.primary-button {
    display: flex;
    padding: 0.5rem;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    border-radius: 1.5rem;
    background: var(--primary-light);
    border-style: none;
    color: var(--text-body-white);
    text-align: center;
    font-family: var(--family-Title);
    font-size: var(--body1-size-desktop);
    font-weight: 700;
    line-height: 120%;
    width: 12rem;
}

.onda {
    width: 100%;
    height: auto;
    display: block;
}

/* ==================================== */
/* 2. NAVEGACIÓN (DESKTOP)              */
/* ==================================== */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Usar padding responsivo aquí */
    padding: 1rem var(--content-padding-x-desktop);

    background-color: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(10px);
    /* Unificado el valor del blur */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 60px;
    border-radius: 50%;
}

.isologo {
    color: var(--white);
    text-align: center;
    font-family: var(--family-Title);
    font-size: 32px;
    /* Mantenido 32px para logo */
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.64px;


}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 3px 0;
    transition: var(--transition-speed);
    border-radius: 6px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-body-white);
    position: relative;
    transition: none;
    text-align: center;
    font-family: var(--family-Body);
    font-size: var(--body2-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--text-body-white);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--text-body-white);
    font-weight: 800;
}

.nav-links a:hover::after {
    width: 100%;
}

/* .nav-toggle,
.display-section {
    display: none;
}

.social-media-header {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
} */

/* Dropdown */
.nav-links .dropdown {
    position: relative;
    margin-left: 20px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 10px 0;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.75);
    /* Aumentado un poco la opacidad */
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    z-index: 100;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu li a {
    padding: 10px 20px;
    display: block;
    width: 100%;
    transition: all 0.2s ease;
    font-weight: 400;
    /* Asegurar que no sea bold por defecto */
}

.dropdown-menu li a::after {
    content: none;
}

.dropdown-menu li a:hover {
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-links .dropdown:hover .dropdown-menu {
    display: block;
}

.display-section {
    display: none;
}

.social-media-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* ==================================== */
/* 3. SECCIÓN PORTADA                   */
/* ==================================== */

.portada {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;

    background-image: url('../../images/Direccciones/DINAEM-Background.jpg');
    background-size: cover;
    background-position: center;

    color: var(--white);
    z-index: 0;
    overflow: hidden;
}

/* Video de Fondo */
.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.portada-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 var(--content-padding-x-desktop) 5.625rem;
}

.portada h1 {
    font-size: 5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--text-body-white);
    font-family: var(--family-Title);
    font-weight: 700;
    line-height: 110%;
}

.portada p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-weight: 400;
    line-height: 120%;
}

/* ==================================== */
/* 4. SECCIÓN NOSOTROS (Círculos)       */
/* ==================================== */

.nosotros {
    background-color: var(--background-light);
}

.container-nosotros {
    max-width: 1200px;
    margin: auto var(--content-padding-x-desktop);
    padding: var(--section-padding-y) 0;
}

.nosotros-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 28rem;
    overflow: hidden;
}

.circulo {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: var(--family-Title);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-speed) ease;
    cursor: pointer;
}

.circulo .contenido {
    padding: 4rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.4);
}

.circulo h3 {
    font-size: var(--h4-size-desktop);
    margin-bottom: 0.625rem;
    font-weight: bold;
}

.circulo p {
    font-size: var(--body3-size);
    line-height: 1.5;
    color: var(--text-body-white);
}

/* Posicionamiento Específico */
#vision {
    background-image: url('../../images/Direccciones/Vision-Dinaem.jpg');
    background-size: cover;
    background-position: center;
    top: 0rem;
    left: calc(50% - 26rem);
    z-index: 2;
}

#mision {
    background-image: url('../../images/Direccciones/Mision-Dinaem.jpg');
    background-size: cover;
    background-position: center;
    top: 0rem;
    left: calc(50% - 2rem);
    z-index: 1;
}

#filosofia {
    background-image: url('URL_IMAGEN_FILOSOFIA');
    background-size: cover;
    background-position: center;
    top: 18.75rem;
    left: calc(50% - 14rem);
    z-index: 3;
}


/* ====================================================================== */
/* 📜 AREAS ESTRATÉGICAS */
/* ====================================================================== */


/* Contenedor principal de la cuadrícula */
.areas-grid {
    display: grid;
    /* 2 columnas en desktop, espaciado de 2rem entre ellas */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* Estilos de las tarjetas */
.area-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed) ease;
    /* La tarjeta 4 usa el fondo var(--background-card) */
    background-color: var(--white);
}

.area-card:hover {
    transform: translateY(-5px);
}

/* Estilos para las tarjetas con imagen (las primeras 3) */
.card-with-image {
    color: var(--text-body-white);
}

.card-with-image .card-image-placeholder {
    width: 100%;
    height: 250px;
    /* Altura fija para las imágenes */
    overflow: hidden;
    position: relative;
}

.card-with-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.area-card:hover img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta (texto) */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    /* Gradiente oscuro para superponer el texto en las 3 primeras tarjetas */
    background: linear-gradient(183deg, rgba(0, 0, 0, 0.00) 2.06%, #000 94.26%);
}

/* La cuarta tarjeta (logotipos) tiene un estilo diferente */
.card-with-logos .card-content {
    position: static;
    /* Quita el posicionamiento absoluto */
    background: var(--background-card);
    /* Usa el fondo de la tarjeta */
    color: var(--text-Body);
    /* Color de texto oscuro */
    min-height: 120px;
    /* Asegura que tenga altura mínima similar */
    padding-top: 1rem;
}

/* Estilos de los logotipos para la tarjeta 4 */
.card-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    /* Altura similar a las imágenes */
    background-color: var(--background-card);
    /* Fondo blanco/gris claro */
    gap: 2rem;
    padding: 1.5rem;
}

.logo-placeholder {
    width: 45%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Simulación de la apariencia de los logos */
    background-color: var(--white);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
}

/* Título de la tarjeta */
.card-title {
    font-family: var(--family-Title);
    font-size: var(--h3-size-desktop);
    /* 16px */
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-transform: uppercase;

}

/* Descripción de la tarjeta */
.card-description {
    font-family: var(--family-Body);
    font-size: var(--body2-size);
    /* 16px */
    font-weight: 300;
    margin: 0;
    color: var(--text-body-white, #FFFFFF);
}

/* --- Media Queries para Responsividad --- */

/* Tablet y dispositivos medianos */
@media (max-width: 1024px) {
    .strategic-areas-section {
        padding: var(--section-padding-y) var(--content-padding-x-mobile);
    }
}

/* Mobile y dispositivos pequeños */
@media (max-width: 768px) {
    .section-title {
        font-size: var(--h1-size-mobile);
    }

    .areas-grid {
        /* Pasa a una sola columna en mobile */
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-with-image .card-image-placeholder,
    .card-logos {
        height: 200px;
        /* Reduce un poco la altura en mobile */
    }

    .card-content {
        padding: 1rem;
    }

    .card-with-logos .card-content {
        min-height: auto;
        /* Permite que la altura sea automática */
    }

    .card-title {
        font-size: var(--body2-size);
        /* 16px */
    }

    .card-description {
        font-size: var(--body3-size);
        /* 14px */
    }
}

/* ==================================== */
/* 5. SECCIÓN VALORES                   */
/* ==================================== */

.valores-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

.valor-item {
    display: flex;
    align-items: flex-start;
    width: 50%;
    padding: 1rem;
    box-sizing: border-box;
    text-align: left;
}

.valor-icon-box {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.valor-icon {
    font-size: 2.5rem;
    color: var(--white);
}

.valor-text h3 {
    font-size: var(--h4-size-desktop);
    font-weight: bold;
    color: var(--text-title);
    margin-top: 0;
    margin-bottom: 5px;
}

.valor-text p {
    font-size: var(--body2-size);
    color: var(--text-Body);
    line-height: 1.4;
    margin: 0;
}


/* ======================= */
/* Comentario */
.comentario-container {
    display: flex;
    width: 100%;
    padding: 0 6.375rem;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.comentario {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    align-self: stretch;
}

.comentario h3 {
    align-self: stretch;
    color: var(--text-title);
    text-align: center;

    /* Headlines Bold/h4 */
    font-family: var(--family-Title, Poppins);
    font-size: var(--h4-size-desktop);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    /* 1.8rem */
    letter-spacing: -0.03rem;
}

.comentario p {
    color: var(--text-Body);
    text-align: center;

    /* Body/Body-1 */
    font-family: var(--family-Body, Poppins);
    font-size: var(--body1-size-desktop);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    /* 1.35rem */
}

.comentario-container h3 {
    align-self: stretch;
    color: var(--text-title);
    text-align: center;

    /* Headlines Bold/h4 */
    font-family: var(--family-Title, Poppins);
    font-size: var(--h4-size-desktop);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    /* 1.8rem */
    letter-spacing: -0.03rem;
}

/* ==================================== */
/* 6. SLIDER Y GALERÍA                  */
/* ==================================== */

.slider-container {
    max-width: 900px;
    position: relative;
    margin: auto;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2rem;
}

/* Navegación por menú de botones */
.menu-nav {
    display: flex;
    justify-content: flex-start;
    padding: 1rem 0;
    gap: 10px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.menu-nav::-webkit-scrollbar {
    display: none;
}

.menu-btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: color var(--transition-speed), font-weight var(--transition-speed);
    white-space: nowrap;
    color: var(--text-Body);
    font-family: var(--family-Body);
    font-size: var(--body2-size);
    font-weight: 400;
    line-height: 130%;
    flex-shrink: 0;
}

.menu-btn.active {
    font-weight: bold;
    border-bottom: 2px solid var(--primary-dark);
    color: var(--primary-dark);
}

/* --------------Impacto (Contenedor de secciones sin fondo)--------- */
.seccion-white {
    /* Unificado: usa section-container y section-content */
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding-y) var(--content-padding-x-desktop);
}

/* ==================================== */
/* 7. SECCIÓN IMPACTO                   */
/* ==================================== */

.nuestro-impacto {
    max-width: 1200px;
    margin: auto var(--content-padding-x-desktop);
    padding: var(--section-padding-y) 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4rem;
}

.impacto-texto {
    flex: 1;
    padding-right: 20px;
}

.impacto-linea {
    width: 50px;
    height: 5px;
    background-color: var(--primary-light);
    margin-bottom: 15px;
}

.impacto-texto h1 {
    color: var(--text-title);
    font-family: var(--family-Title);
    font-size: var(--h1-size-desktop);
    font-weight: 700;
    line-height: 120%;
}

.impacto-datos {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-content: start;
}

.dato-item {
    padding: 15px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.dato-item .numero {
    color: var(--text-Body);
    font-family: var(--family-Title);
    font-size: var(--h1-size-desktop);
    font-weight: 700;
    line-height: 120%;
}

.dato-item .descripcion {
    color: var(--text-Body);
    font-family: var(--family-Title);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.03rem;
}

/* ==================================== */
/* 8. HISTORIAS QUE TRANSFORMAN         */
/* ==================================== */

.historias-transforman {
    background-color: var(--background-light);
}

.historias-transforman .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1200px;
    margin: auto var(--content-padding-x-desktop);
    padding: var(--section-padding-y) 0;
}

.contenido-texto {
    width: 38rem;
}

.contenido-texto h1 {
    font-size: var(--h1-size-desktop);
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-title);
    line-height: 1.2;
}

.contenido-texto p {
    font-size: var(--body1-size-desktop);
    color: var(--text-Body);
    max-width: 600px;
    margin: 0 auto;
}

.imagen-galeria-7col {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    height: 400px;
}

.galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.5s ease-in-out;
}

/* Estilos de GRID (Se dejan como estaban) */
#img-c1-r1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

#img-c1-r2 {
    grid-column: 1 / 2;
    grid-row: 3 / 5;
}

#img-c2-r1 {
    grid-column: 2 / 3;
    grid-row: 1 / -1;
    align-self: center;
    height: 50%;
}

#img-c3-r1 {
    grid-column: 3 / 4;
    grid-row: 1 / -1;
    align-self: start;
    height: 50%;
}

#img-c4-r1 {
    grid-column: 4 / 5;
    grid-row: 1 / 4;
    align-self: center;
    height: 60%;
}

#img-c5-r1 {
    grid-column: 5 / 6;
    grid-row: 1 / -1;
    align-self: start;
    height: 50%;
}

#img-c6-r1 {
    grid-column: 6 / 7;
    grid-row: 1 / -1;
    align-self: center;
    height: 50%;
}

#img-c7-r1 {
    grid-column: 7 / 8;
    grid-row: 1 / 3;
}

#img-c7-r2 {
    grid-column: 7 / 8;
    grid-row: 3 / 5;
}

/* ====================================================================== */
/* 📜 AREAS ESTRATEGICAS */
/* ====================================================================== */

.info-container {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.dinf-caja {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    display: flex;
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 0 0;
    border-radius: 1rem;
    background: var(--background-card-accent);
}

.caja-info-titulo {
    align-self: stretch;
    color: var(--text-title);
    font-family: var(--family-Title);
    font-size: var(--h4-size-desktop);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.03rem;
    text-align: center;
}

.caja-info p {
    align-self: stretch;
    color: var(--text-Body);
    font-family: var(--family-Body);
    font-size: var(--body1-size-desktop);
    /* Usa variable unificada */
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    text-align: center;
}

/* ==================================== */
/* 9. SECCIÓN OFRENDAR                  */
/* ==================================== */

.ofrendar {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url('./../../images/Banner-ofrendar.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.overlay_azul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(204deg, rgba(255, 255, 255, 0.00) 34.58%, rgba(27, 109, 238, 0.40) 77.98%, var(--primary-dark) 100%);
}

.overlay_negro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(199deg, rgba(255, 255, 255, 0.00) 26.28%, rgba(0, 0, 0, 0.20) 53.12%, #000000 100%);
}

.ofrendar-content {
    position: relative;
    z-index: 10;
    max-width: 30rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 var(--content-padding-x-desktop) 0rem;
}

.ofrendar h1 {
    font-size: var(--h1-size-desktop);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--text-body-white);
    font-family: var(--family-Title);
    font-weight: 700;
    line-height: 110%;
}

.ofrendar p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-weight: 400;
    line-height: 120%;
}

/* ==================================== */
/* 10. FOOTER Y FLOTANTE WHATSAPP       */
/* ==================================== */

.footer {
    background-color: var(--background-dark);
    color: var(--text-body-white);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Alineación ajustada a flex-start */
    max-width: 1200px;
    margin: 0 auto; /* Centrado */
    /* Ajuste de padding para incluir el margen lateral responsivo */
    padding: 2rem var(--content-padding-x-desktop);
    gap: 2rem;
}
.footer-information {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 0 0;
    width: 100%;
}

.footer-logo-info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    flex-basis: 40%;
}

.footer-logo {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}
.info-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    align-self: stretch;
}

.info-details h3 {
    font-family: var(--family-Title);
    font-size: var(--h4-size-desktop);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.03rem;
}

.info-details p {
    margin: 5px 0;
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-size: var(--body2-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}
.statute-link {
    color: var(--text-body-white);
    text-decoration: underline;
}

.footer-contact-social {
    flex-basis: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Ajustado a flex-start */
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1 0 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-size: var(--body3-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
}

.contact-info a {
    color: var(--text-body-white);
    text-decoration: underline;
}

.contact-info i {
    margin-right: 0.5rem;
}

.social-links-desktop {
     display: flex;
    align-items: flex-start;
    gap: 0.4rem;
}
.social-links-desktop a:hover {
    color: #ccc;
}

.social-links-mobile {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding: 1rem var(--content-padding-x-desktop); /* Ajuste de padding */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separador */
}

.footer-bottom p {
    color: var(--text-body-white);
    font-family: var(--family-Body);
    font-size: var(--body3-size);
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    margin: 0;
    
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.4s ease;
    text-decoration: none;
    transform: scale(0.9);
}

.whatsapp-float:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    background: #128C7E;
}

/* ==================================== */
/* 11. MEDIA QUERIES (RESPONSIVE)       */
/* ==================================== */

/* Tablet y Móviles (Máximo 1024px) */
@media screen and (max-width: 1024px) {

    /* --- Navegación --- */
    nav {
        padding: 1rem var(--content-padding-x-mobile);
    }

    .social-media-header {
        position: fixed;
        right: -100%;
    }

    .display-section {
        display: flex;
        flex-direction: row;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 60%;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.5s;
        box-shadow: -10px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    /* NAV - Dropdown en Móvil */
    .nav-links .dropdown-menu {
        position: static;
        display: block;
        background-color: transparent;
        padding-left: 20px;
    }

    .nav-links.active .dropdown-menu {
        width: 100%;
    }

    /* --- Secciones Generales --- */
    .portada {
        align-items: center;
    }

    .portada-content {
        margin: 0 var(--content-padding-x-mobile) 0;
    }

    /* --- Sección Impacto --- */
    .nuestro-impacto {
        flex-direction: column;
        gap: 20px;
        margin: auto var(--content-padding-x-mobile);
        padding: var(--section-padding-y) 0;
    }

    .impacto-datos {
        grid-template-columns: repeat(2, 1fr);
    }

    /* --- Secciones Valores --- */
    .valor-item {
        width: 100%;
    }

    /* Unificación de Contenedores a móvil */
    .container-nosotros,
    .seccion-documentos,
    .seccion-white {
        padding-left: var(--content-padding-x-mobile);
        padding-right: var(--content-padding-x-mobile);
    }
}

/* Móviles (Máximo 768px) */
@media screen and (max-width: 768px) {

    /* --- Tipografía General --- */
    p {
        font-size: var(--body3-size);
    }

    .section-title h1,
    .impacto-texto h1 {
        font-size: var(--h1-size-mobile);
    }

    .portada h1 {
        font-size: 2.5rem;
    }

    .portada p,
    .ofrendar p {
        font-size: var(--body1-size-desktop);
    }

    .ofrendar h1 {
        font-size: 2rem;
    }



    /* --- Márgenes y Contenedores --- */
    .container-nosotros,
    .historias-transforman .container,
    .galeria,
    .footer-content {
        margin: auto var(--content-padding-x-mobile);
        padding: var(--section-padding-y) var(--content-padding-x-mobile);
    }

    /* NOSOTROS - Contenedor general */
    .seccion-white {
        margin: auto 0;
        /* Ya no necesita auto 1rem */
        padding: var(--section-padding-y) var(--content-padding-x-mobile);
    }



    .ofrendar-content {
        margin: auto var(--content-padding-x-mobile);
    }

    /* --- Círculos Misión/Visión (CORRECCIÓN CRÍTICA) --- */
    .nosotros-content {
        height: auto;
        flex-direction: column;
    }

    .circulo {
        position: static;
        width: 18.75rem;
        height: 18.75rem;
        margin-bottom: 2rem;
    }

    #vision,
    #mision,
    #filosofia {
        left: auto;
        top: auto;
    }

    /* --- Sección Impacto --- */
    .dato-item .numero {
        font-size: var(--h1-size-mobile);
    }

    .dato-item .descripcion {
        font-size: var(--body2-size);
    }

    /* ----------Comentario------ */
    .comentario-container {
        padding: 0;
    }

    .comentario-container .comentario h3 {
        font-size: var(--h3-size-mobile);
    }

    .comentario p {
        font-size: var(--body1-size-mobile);
    }
        /* RESPONSABILIDADES - Dirección */
    .info-container {
        flex-direction: column;
    }

    .cuadros-direccion-container {
        padding: 0;
    }

    .fila-cuadros {
        flex-direction: column;
        gap: 1rem;
    }

    /* --- Footer --- */
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo-info,
    .footer-contact-social {
        flex-basis: 100%;
        align-items: center;
        margin-bottom: 20px;
    }

    .social-links-desktop {
        display: none;
    }

    .social-links-mobile {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }

    .contact-info p {
        justify-content: center;
    }

    .footer-bottom {

        padding: 1rem;
    }
}

/* Móviles Pequeños (Máximo 576px) */
@media (max-width: 576px) {

    /* --- Galería (Historias) --- */
    .imagen-galeria-7col {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 0.2rem;
    }

    .contenido-texto {
        width: 100%;
    }

    .contenido-texto h1 {
        font-size: var(--h3-size-mobile);
    }

    /*     Ocultar la mayoría de las imágenes para simplificar en móvil */
    #img-c1-r1,
    #img-c1-r2,
    #img-c2-r1,
    #img-c6-r1,
    #img-c7-r1,
    #img-c7-r2 {
        display: none;
    }
}