/* ====================================================================== */
/* 🚀 INICIO - VARIABLES Y RESET */
/* ====================================================================== */
: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 */
    --h4-size-mobile: 1rem;

    /* Body */
    --body1-size-desktop: 1.125rem;
    /* 18px */
    --body1-size-mobile: 1rem;
    /* 16px */
    --body2-size: 1rem;
    /* 16px */
    --body3-size: 0.875rem;
    /* 14px */
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--family-Body);
    line-height: 1.6;
}

/* Contenedor principal para aplicar el margen lateral responsivo de manera uniforme */
.section-container {
    max-width: 1200px;
    /* margin: 0 auto; */
    /* Se aplica el margen lateral en media queries para Desktop/Tablet */
}

/* Contenedor de sección general con padding vertical */
.section-content {
    padding: var(--section-padding-y) 0;
}

p {
    color: var(--text-Body);
    font-family: var(--family-Body);
    font-size: var(--body1-size-desktop);
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
}

/* ====================================================================== */
/* 🖥️ COMPONENTES Y UTILIDADES */
/* ====================================================================== */

.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-style: normal;
    font-weight: 700;
    line-height: 120%;
}

.subtitulo-seccion {
    align-self: stretch;
    color: var(--text-title);
    text-align: center;
    font-family: var(--family-Title);
    font-size: var(--h3-size-desktop);
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.04rem;
    margin-bottom: 1rem;
}

.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;
}

/* ---------WHATSAPP-------- */
.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 i {
    font-size: 30px;
    color: var(--white);
}

.whatsapp-float:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    background: #128C7E;
}


/* ====================================================================== */
/* 🧭 NAVEGACIÓN (NAVBAR & DROPDOWN) */
/* ====================================================================== */

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;
    /* Usar el valor numérico para consistencia */
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- 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;
}

/* ====================================================================== */
/* 🖼️ PORTADA (HERO SECTION) */
/* ====================================================================== */
.portada {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background-image: url('./../../images/Banner-principal.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.portada-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    /* Usa la variable de padding para desktop y se ajusta en mobile */
    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-style: normal;
    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-style: normal;
    font-weight: 400;
    line-height: 120%;
}

/*-------De donde venimos------- */
/* Estilos para el contenedor de la sección (opcional, pero buena práctica) */
.seccion-de-donde-venimos {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    /* Centra el contenedor si su padre es más grande */
}

/* Estilos CLAVE para la imagen responsiva */
/* Estos estilos se aplicarán al <img> dentro de <picture> */
.seccion-de-donde-venimos img.imagen-responsiva {
    width: 100%;
    height: auto;
    display: block;
}

/* Opcional: Si necesitas estilos específicos para <picture> en sí, 
   aunque generalmente los estilos van directo al <img> */
.seccion-de-donde-venimos picture {
    display: block;
    /* Asegura que <picture> se comporte como un bloque para ocupar el ancho completo */
    width: 100%;
    height: auto;
}


/* ==================================== */
/* 7. SECCIÓN IMPACTO                   */
/* ==================================== */
.Image-fondo{
 
    background-image: url('./../../images/Fondo-section.jpg');
    background-size: cover;
    background-position: center;
}

.nuestro-impacto {
    max-width: 1200px;
    margin: auto var(--content-padding-x-desktop);
    padding: var(--section-padding-y) 0;
    display: flex;
    flex-direction: column;
    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 {

    font-family: var(--family-Title);
    font-size: var(--h1-size-desktop);
    font-weight: 700;
    line-height: 120%;
    color:var(--text-body-white)
}

.impacto-texto p{
    color:var(--text-body-white)
}

.impacto-datos {
    flex: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-content: start;
    
}

.dato-item {
    padding: 15px 0;
   
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dato-item .numero {
    color: var(--text-Body);
    font-family: var(--family-Title);
    font-size: var(--h1-size-desktop);
    font-weight: 700;
    line-height: 120%;
    color:var(--text-body-white)
}

.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;
    color:var(--text-body-white)
}

.dato-item p{
    color:var(--text-body-white)
}
/* ====================================================================== */
/* 👥 NOSOTROS (MISIÓN, VISIÓN, FILOSOFÍA) */
/* ====================================================================== */

.nosotros {
    background-color: var(--background-light);
}

.container-nosotros {
    /* Unificado: usa section-container y section-content */
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--section-padding-y) var(--content-padding-x-desktop);
}


.nosotros-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 29rem;
    overflow: hidden;
}

.circulo {
    position: absolute;
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-family: var(--family-Title);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.circulo .contenido {
    padding: 4rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    /* Overlay para mejor legibilidad */
}

.circulo h3 {
    font-size: 1.8rem;
    margin-bottom: 0.625rem;
    font-weight: bold;
}

.circulo p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-body-white);
}

/* Posicionamiento: Mantenido en REM para Desktop */
#vision {
    background-image: url('./../../images/Vision.jpg');
    background-size: cover;
    background-position: center;
    top: 0rem;
    left: calc(50% - 26rem);
    z-index: 2;
}

#mision {
    background-image: url('./../../images/Mision.jpg');
    background-size: cover;
    background-position: center;
    top: 0rem;
    left: calc(50% - 2rem);
    z-index: 1;
}

#filosofia {
    background-image: url('./../../images/Vision.jpg');
    background-size: cover;
    background-position: center;
    top: 18.75rem;
    left: calc(50% - 14rem);
    z-index: 3;
}

/* Sección de Cards (Se asume que va en .nosotros) */
.card {
    flex: 1;
    max-width: 500px;
    min-width: 350px;
    min-height: 350px;
    padding: 2rem 1.5rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card p {
    flex-grow: 1;
    margin-bottom: 0.5rem;
}

.card-icon {
    color: var(--accent-color);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.card-icon svg {
    width: 50px;
    height: 50px;
    stroke-width: 1.5;
}

.card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.15);
}


/* ==================================== */
/* 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(--body2-size);
    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;
}

/* ====================================================================== */
/* 📜 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(2, 1fr);
    gap: 2rem;
}

/* 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(--body1-size-mobile);
    /* 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 */
    }
}


/* --------------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);
}

.Video-historia {
    width: 100%;
    display: flex;
    justify-content: center;
}


/* El contenedor es opcional si solo quieres el video responsivo */
.video-local-responsive {
    max-width: 100%;
    margin: 0 auto; /* Para centrarlo si hay espacio */
}

/* Aplica estilo a la etiqueta <video> dentro de su contenedor */
.video-local-responsive video {
    /* Clave para la responsividad: el 100% del ancho del contenedor */
    width: 100%;
    /* Altura automática para mantener la proporción */
    height: auto; 
    /* Elimina el borde de la etiqueta de video */
    border: none;
    /* Asegura que el video se muestre como un elemento de bloque */
    display: block; 
    border-radius: 1rem;
}



/* ==================================== */
/* 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;
    
}




/* ====================================================================== */
/* 📱 MEDIA QUERIES (Responsividad Unificada) */
/* ====================================================================== */

/* Tablet y Escritorio Pequeño (max-width: 1024px) */
@media screen and (max-width: 1024px) {

    /* NAV - Móvil (Menú Hamburguesa) */
    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.active .dropdown-menu {
        position: static;
        display: block;
        background-color: transparent;
        padding-left: 20px;
    }

    .nav-links.active .dropdown {
        width: 100%;
    }

    /* PORTADA */
    .portada {
        align-items: center;
    }

    .portada-content {
        margin: 0 var(--content-padding-x-mobile) 0;
    }

    /* NOSOTROS - Cards */
    /* Asumo que las cards son las que se apilan primero */
    /* El contenedor de las tarjetas debería ser flex-wrap: wrap en el HTML */
    .card {
        flex-basis: 100%;
        max-width: 100%;
        min-width: unset;
        width: 100%;
        margin-bottom: 1rem;
    }

    /* 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);
    }

    /* --- Secciones Valores --- */
    .valor-item {
        width: 100%;
    }


    /* --- 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);
    }
}

/* Móvil (max-width: 768px) */
@media screen and (max-width: 768px) {

    /* Fuentes y Espaciado */
    p {
        font-size: var(--body1-size-mobile);
        /* 1rem */
    }

    /* Títulos */
    .section-title h1 {
        font-size: var(--h1-size-mobile);
    }

    .subtitulo-seccion {
        font-size: var(--h3-size-mobile);
    }

    /* PORTADA */
    .portada h1 {
        font-size: 2.5rem;
        /* Ajustado */
    }
    .impacto-texto h1{
        font-size: var(--h1-size-mobile);
    }
    .dato-item .descripcion{
        font-size: var(--h4-size-mobile);
    }

    .portada p {
        font-size: var(--body1-size-mobile);
        /* 1rem */
    }

    /* NOSOTROS - Contenedor general */
    .container-nosotros,
    .seccion-documentos,
    .galeria,
    .seccion-white {
        margin: auto 0;
        /* Ya no necesita auto 1rem */
        padding: var(--section-padding-y) var(--content-padding-x-mobile);
    }

    /* NOSOTROS - Círculos (Visión/Misión/Filosofía) */
    .nosotros-content {
        height: auto;
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 0;
        /* Padding interno para separar los círculos */
    }

    .circulo {
        /* Desactiva el posicionamiento absoluto */
        position: static;
        /* Redimensiona para móvil */
        width: 18.75rem;
        height: 18.75rem;
        margin: 0 auto;
        z-index: auto;
    }

    /* Limpieza de Posicionamiento Absoluto */
    #vision,
    #mision,
    #filosofia {
        left: auto;
        top: auto;
    }

    .circulo h3 {
        font-size: 1.5rem;
    }

    .circulo p {
        font-size: 0.8rem;
    }

    /* RESPONSABILIDADES - Dirección */
    .info-container {
        flex-direction: column;
    }

    .cuadros-direccion-container {
        padding: 0;
    }

    .fila-cuadros {
        flex-direction: column;
        gap: 1rem;
    }

    /* LIBROS */
    .categoria {
        flex-direction: column;
        gap: 1rem;
    }

    .categoria__titulo {
        width: 100%;
        font-size: var(--h4-size-desktop);
        /* 1.5rem */
    }

    .item__nombre {
        font-size: var(--body2-size);
        /* 1rem */
    }

    /* FOOTER */
    .footer-content {
        flex-direction: column;
        align-items: center;
        margin: auto 0;
        padding: var(--section-padding-y) var(--content-padding-x-mobile);
    }

    .social-links-desktop {
        display: none;
    }

    .social-links-mobile {
        display: flex;
        flex-direction: row;
        margin-top: 1rem;
    }

    .social-links-mobile a {
        font-size: 1.8em;
        margin: 0 10px;
    }

    .footer-logo-info,
    .footer-contact-social {
        flex-basis: 100%;
        width: 100%;
        align-items: center;
        
    }

    .contact-info p {
        justify-content: center;
    }

    .footer-bottom {
        padding: 2rem var(--content-padding-x-mobile);
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Tablet Horizontal (min-width: 768px) para secciones específicas */
@media (min-width: 48rem) {
    /* 768px */

    /* LIBROS (Documentos) */
    .categoria {
        flex-direction: row;
    }

    .categoria__titulo {
        width: 30%;
        min-width: 15rem;
    }

    .categoria__contenedores {
        width: 70%;
        grid-template-columns: repeat(2, 1fr);
    }

    .contenedor-item--full {
        grid-column: span 2;
    }
}

/* ORGANIGRAMA - Responsivo para < 768px (48rem) */
@media (max-width: 48rem) {
    .organizacion__nivel--inferior {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-top: 0;
    }

    .organizacion__tarjeta {
        min-width: 90%;
        width: 90%;
    }

    .organizacion__linea--principal {
        height: 1.5rem;
        margin: 1rem auto;
    }

    .organizacion__linea--principal::before {
        display: none;
    }

    .organizacion__nivel--inferior::before {
        content: '';
        position: absolute;
        top: -1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 0.15rem;
        height: calc(100% + 1.5rem);
        background-color: var(--background-dark);
        /* Usar dark color */
        z-index: 0;
    }

    .organizacion__nivel--inferior>.organizacion__tarjeta::before {
        display: none;
    }
}

/* ====================================================================== */
/* 🏁 FIN */
/* ====================================================================== */