/* ==========================================================================
   ADEL MORAZAN - SISTEMA DE DISEÑO PERSONALIZADO (CSS PREMIUM)
   ========================================================================== */

/* 1. FUENTES LOCALES (DE ACUERDO AL MANUAL DE MARCA) */
@font-face {
    font-family: 'Harabara';
    src: url('../fonts/Harabara.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Utendo';
    src: url('../fonts/Utendo-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Utendo';
    src: url('../fonts/Utendo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Utendo';
    src: url('../fonts/Utendo-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Utendo';
    src: url('../fonts/Utendo-Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Utendo';
    src: url('../fonts/Utendo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Utendo';
    src: url('../fonts/Utendo-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* 2. VARIABLES DEL SISTEMA DE DISEÑO (COLORES HEX MANUAL DE MARCA) */
:root {
    /* Paleta Institucional y Marca Ampliada */
    --color-primary: #1A5C2E;         /* Verde Oscuro */
    --color-medium: #2D8A4E;          /* Verde Medio */
    --color-light: #3AAA62;           /* Verde Claro */
    --color-mint: #6FCF97;            /* Verde Menta */
    --color-soft-bg: #F2F6F3;         /* Fondo Suave */
    --color-white: #FFFFFF;
    
    /* Nuevos colores del Manual de Marca e Imagen */
    --color-brand-yellow-light: #F9E79F;
    --color-brand-green-strong: #04530E;
    --color-brand-green-medium: #2E5339;
    --color-brand-gold: #E8C037;
    --color-brand-orange: #FF7A00;
    --color-brand-red: #CC3300;
    
    /* Tipografía y Contraste */
    --color-text-dark: #1A3A24;       /* Texto Principal (Verde casi negro) */
    --color-text-body: #333333;       /* Texto estándar body */
    --color-text-muted: #4A6354;      /* Texto secundario */
    --color-border: #DDE5E0;
    
    /* Degradados de Marca */
    --gradient-hero: linear-gradient(135deg, #1A5C2E 0%, #2D8A4E 60%, #3AAA62 100%);
    --gradient-hero-light: linear-gradient(135deg, #FFFFFF 0%, #F5FBF7 100%);
    --gradient-btn: linear-gradient(90deg, #2D8A4E 0%, #3AAA62 100%);
    --gradient-btn-hover: linear-gradient(90deg, #1A5C2E 0%, #2D8A4E 100%);
    --gradient-footer: linear-gradient(180deg, #1A3A24 0%, #0D2218 100%);
    --gradient-header: linear-gradient(180deg, #1A3A24 0%, #0D2218 100%);
    --gradient-accent: linear-gradient(90deg, #1A5C2E, #6FCF97);

    /* Sombras y Bordes */
    --shadow-sm: 0 2px 4px rgba(26, 58, 36, 0.05);
    --shadow-md: 0 4px 10px rgba(26, 58, 36, 0.08);
    --shadow-lg: 0 10px 25px rgba(26, 58, 36, 0.12);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;

    /* Fuentes */
    --font-titles: 'Harabara', Arial, sans-serif;
    --font-body: 'Utendo', Helvetica, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* 3. ESTILOS GLOBALES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

/* Scroll margin para compensar el header fijo */
section[id] {
    scroll-margin-top: 100px;
}

/* Preloader del sitio */
.site-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    width: 80px;
    animation: preloaderPulse 1.2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

/* Animaciones de entrada al scroll */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

a {
    color: var(--color-medium);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titles);
    color: var(--color-text-dark);
    font-weight: normal; /* Harabara es bold nativo */
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }

p {
    margin-bottom: 1.2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}
.container-wide {
    width: 100%;
    padding-inline: 40px;
    box-sizing: border-box;
}

/* 4. BOTONES Y COMPONENTES INTERACTIVOS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-btn);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(45, 138, 78, 0.25);
}

.btn-primary:hover {
    background: var(--gradient-btn-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 92, 46, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    background: var(--color-soft-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* 5. CABECERA Y NAVBAR RESPONSIVE */
.site-header {
    background: var(--gradient-header);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header.scrolled {
    height: 70px;
    background: rgba(26, 58, 36, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo img {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.site-header.scrolled .site-logo img {
    height: 42px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-menu li {
    position: relative;
    padding: 20px 0; /* Espacio para que el hover no se pierda al mover el cursor al submenú */
}

.nav-menu a {
    color: var(--color-white);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-brand-gold);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--color-brand-yellow-light);
}

/* Estilos de Desplegables (Dropdowns / Sub-menus) */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: #112d1b;
    min-width: 230px;
    display: block;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    border-top: 3px solid var(--color-brand-gold);
    padding: 10px 0;
    z-index: 999;
    list-style: none;
}

/* Flecha del submenú */
.nav-menu .sub-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent var(--color-brand-gold) transparent;
}

.nav-menu li:hover > .sub-menu,
.nav-menu li.focus > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .sub-menu li {
    padding: 0;
    width: 100%;
}

.nav-menu .sub-menu a {
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 24px;
    display: block;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-menu .sub-menu a::after {
    display: none; /* Quita la línea de hover del menú principal */
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu .current-menu-item > a {
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--color-brand-yellow-light);
    padding-left: 28px;
}

/* Indicador de menú padre en menú principal */
.menu-item-has-children > a::before {
    content: '▾';
    margin-right: 5px;
    font-size: 12px;
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Hamburguesa móvil */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 6. HERO COMPONENT - PREMIER SLIDER INTERACTIVO (COMO EL MANUAL DE MARCA Y CORREO) */
.hero-slider-container {
    background: var(--gradient-hero-light);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--color-soft-bg);
    min-height: 650px;
}

/* Engranaje institucional de fondo giratorio */
.hero-slider-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background-image: url('../images/ISOTIPO.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.03;
    top: -100px;
    right: -100px;
    z-index: 0;
    pointer-events: none;
    animation: spin-slow 80s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
}

.hero-badge {
    background: #e8f5ec;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(45, 138, 78, 0.15);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--color-primary);
}

.hero-title {
    font-size: 3.2rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 35px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* MARCO PREMIUM CON ESQUINAS DE COLORES (VECTOR SHAPES ACCORDING TO BRAND MANUAL) */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    padding: 12px; /* Espacio para que las esquinas decoren adecuadamente */
}

/* Contenedor del marco principal */
.premium-slide-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--color-soft-bg);
    border: 4px solid var(--color-white);
    z-index: 2;
}

/* Imagen principal */
.premium-slide-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease;
}

.hero-slide.active .premium-slide-frame img {
    transform: scale(1.04);
}

/* Formas Vectoriales Decorativas de las Esquinas (Dd, Aa, Ee, Ll) */
.premium-slide-frame::before,
.premium-slide-frame::after,
.hero-image-wrapper::before,
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    z-index: 5;
    pointer-events: none;
    transition: all 0.5s ease;
}

/* 1. Esquina Superior Izquierda (Forma 1 - Dd: Verde Oscuro / Negro) */
.premium-slide-frame::before {
    top: -5px;
    left: -5px;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--color-brand-green-strong) 0%, #0d2218 100%);
    border-bottom-right-radius: 65px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
}

/* 2. Esquina Superior Derecha (Forma 2 - Aa: Naranja / Oro) */
.premium-slide-frame::after {
    top: -5px;
    right: -5px;
    width: 75px;
    height: 75px;
    background: linear-gradient(135deg, var(--color-brand-orange) 0%, var(--color-brand-gold) 100%);
    border-bottom-left-radius: 55px;
    box-shadow: -2px 2px 8px rgba(0,0,0,0.15);
}

/* 3. Esquina Inferior Izquierda (Forma 3 - Ee: Verde Degradado) */
.hero-image-wrapper::before {
    bottom: 8px;
    left: 8px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-mint) 100%);
    border-top-right-radius: 60px;
    box-shadow: 2px -2px 8px rgba(0,0,0,0.15);
    z-index: 3;
}

/* 4. Esquina Inferior Derecha (Forma 4 - Ll: Amarillo / Naranja) */
.hero-image-wrapper::after {
    bottom: 8px;
    right: 8px;
    width: 95px;
    height: 95px;
    background: linear-gradient(135deg, var(--color-brand-yellow-light) 0%, var(--color-brand-orange) 100%);
    border-top-left-radius: 70px;
    box-shadow: -2px -2px 8px rgba(0,0,0,0.15);
    z-index: 3;
}

/* Burbuja Flotante de Estadísticas */
.hero-stats-floating {
    position: absolute;
    bottom: -15px;
    left: -20px;
    background: var(--color-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-stats-floating span {
    font-family: var(--font-titles);
    font-size: 32px;
    color: var(--color-medium);
    line-height: 1;
}

/* Elementos de Navegación del Slider */
.slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    position: relative;
    z-index: 10;
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 58, 36, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 6px;
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

.slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.slider-arrow:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* 7. QUICK STATS BAR */
.stats-bar {
    padding: 50px 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 8. GRID DE PROGRAMAS Y PROYECTOS (ESTILO PREMIUM) */
.section-padding {
    padding: 100px 0;
}

.section-bg {
    background-color: var(--color-soft-bg);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    color: var(--color-medium);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--color-border);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-mint);
}

.project-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.project-thumb img,
.project-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-thumb img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-card-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
}

.project-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link svg {
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
}

.project-card:hover .project-link svg {
    transform: translateX(4px);
}

/* 9. NOTICIAS GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    box-shadow: var(--shadow-lg);
}

.news-thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-excerpt {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* 10. PIE DE PÁGINA INSTITUCIONAL */
.site-footer {
    background: var(--gradient-footer);
    color: rgba(255, 255, 255, 0.85);
    padding: 80px 0 30px;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}

/* Marca de agua de engranaje en footer */
.site-footer::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background-image: url('../images/ISOTIPO.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.02;
    bottom: -60px;
    left: -60px;
    z-index: 0;
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget-title {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-brand-gold);
    border-radius: var(--radius-sm);
}

.footer-about img {
    height: 55px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social-icons {
    display: flex;
    gap: 12px;
}

.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-icon-btn:hover {
    background: var(--color-brand-gold);
    color: var(--color-text-dark);
    transform: translateY(-3px);
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.75);
}

.footer-links-list a:hover {
    color: var(--color-brand-yellow-light);
    padding-left: 5px;
}

.footer-contact-info {
    list-style: none;
}

.footer-contact-info li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.footer-contact-info svg {
    fill: var(--color-brand-gold);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* 11. TIMELINE Y EVOLUCIÓN (QUIÉNES SOMOS) */
.staggered-timeline-banner {
    display: flex;
    flex-wrap: wrap;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 40px 0;
}

.staggered-item {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: var(--gradient-header);
    color: var(--color-white);
    position: relative;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.staggered-item:last-child {
    border-right: none;
}

.staggered-item:nth-child(even) {
    background: var(--color-primary);
}

.staggered-item:hover {
    background: var(--color-brand-green-strong);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.staggered-year {
    font-family: var(--font-titles);
    font-size: 2rem;
    color: var(--color-brand-gold);
    margin-bottom: 15px;
    display: block;
}

.staggered-title {
    color: var(--color-white);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.staggered-desc {
    color: rgba(255,255,255,0.8);
    font-size: 14.5px;
    line-height: 1.7;
}

/* HISTORIA WATERMARK */
.historia-watermark {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 600px;
    height: 600px;
    background-image: url('../images/ISOTIPO.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    z-index: 1;
    pointer-events: none;
    animation: spin-slow 120s linear infinite;
}

/* 12. PENSAMIENTO FILOSÓFICO (MISIÓN / VISIÓN) */
.mission-vision-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 140px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.mission-vision-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.mission-vision-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(5px);
    z-index: 1;
    pointer-events: none;
}

.mission-banner::before {
    background-image: url('../images/mision-bg.webp');
}
.mission-banner::after {
    background: linear-gradient(90deg, rgba(13,34,24,0.92) 0%, rgba(26,58,36,0.6) 100%);
}

.vision-banner::before {
    background-image: url('../images/vision-bg.webp');
}
.vision-banner::after {
    background: linear-gradient(270deg, rgba(13,34,24,0.92) 0%, rgba(26,58,36,0.6) 100%);
}

.mv-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    max-width: 800px;
}

.mv-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.9);
}

/* 13. TEAM CARDS */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-soft-bg) 0%, #e8f5ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: var(--font-titles);
    font-size: 32px;
    color: var(--color-primary);
    font-weight: bold;
    border: 3px solid var(--color-white);
    box-shadow: 0 4px 15px rgba(26, 92, 46, 0.15);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(26, 92, 46, 0.25);
    border-color: var(--color-brand-yellow-light);
    color: var(--color-brand-gold);
    background: linear-gradient(135deg, var(--color-brand-green-strong) 0%, var(--color-primary) 100%);
}

.team-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* 14. FORMULARIO DE CONTACTO Y SOPORTE */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info-panel {
    background: var(--gradient-footer);
    color: rgba(255, 255, 255, 0.85);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-info-panel h3 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.contact-form-panel {
    background: var(--color-white);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-medium);
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 138, 78, 0.1);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* 15. ALIANZAS Y COOPERANTES GRID */
.allies-group-title {
    text-align: center;
    font-size: 1.8rem;
    margin: 50px 0 30px;
    position: relative;
}

.allies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.ally-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 140px;
    transition: all 0.3s ease;
}

.ally-card:hover {
    border-color: var(--color-mint);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.ally-name {
    font-family: var(--font-titles);
    font-size: 1.2rem;
    color: var(--color-primary);
    text-align: center;
    margin-top: 10px;
}

.ally-logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e8f5ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
    font-size: 24px;
    color: var(--color-primary);
    font-weight: bold;
}

/* 16. RESPONSIVIDAD (MEDIA QUERIES) */
@media (max-width: 1024px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.9rem; }
    .hero-title { font-size: 2.6rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-desc { margin: 0 auto 30px; }
    .hero-actions { justify-content: center; }
    .hero-image-wrapper { max-width: 500px; margin: 0 auto; }
    .projects-grid, .news-grid, .stats-grid, .allies-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #112d1b;
        flex-direction: column;
        padding: 40px 30px;
        gap: 0;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        align-items: flex-start;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-menu a {
        display: block;
        width: 100%;
        padding: 8px 0;
        font-size: 16px;
    }
    
    .nav-menu a::after {
        display: none; /* Quitar barra de hover en móvil */
    }
    
    /* Dropdowns en Móvil */
    .nav-menu .sub-menu {
        position: static;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        background: rgba(0, 0, 0, 0.2);
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 8px 0 8px 20px;
        margin-top: 10px;
        border-radius: var(--radius-sm);
    }
    
    .nav-menu .sub-menu::before {
        display: none; /* Quitar flechita en móvil */
    }
    
    .nav-menu .sub-menu li {
        border-bottom: none;
        padding: 5px 0;
    }
    
    .nav-menu .sub-menu a {
        font-size: 14px;
        padding: 6px 0;
        color: rgba(255, 255, 255, 0.75);
    }
    
    .nav-menu .sub-menu a:hover {
        background: transparent;
        color: var(--color-brand-yellow-light);
        padding-left: 5px;
    }
    
    .nav-menu li.open > .sub-menu {
        display: block;
    }
    
    .menu-item-has-children > a::before {
        content: '▾';
        float: right;
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .nav-menu li.open > a::before {
        transform: rotate(180deg);
        color: var(--color-brand-gold);
    }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline::after { left: 40px; }
    .timeline-item { width: 100%; padding-left: 80px; padding-right: 20px; }
    .timeline-item::after { left: 30px; }
    .right-item { left: 0; }
    .right-item::after { left: 30px; }
    .philosophy-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-title { font-size: 2.1rem; }
    .projects-grid, .news-grid, .stats-grid, .allies-grid, .team-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; gap: 10px; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .hero-stats-floating { display: none; }
}

/* 17. CTA BANNER (CALL TO ACTION) */
.cta-banner {
    background: var(--gradient-hero);
    padding: 80px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0 !important;
}

/* Eliminar espacio blanco entre CTA y footer en todas las páginas */
.site-main,
main#primary,
.site-content-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* CTA es siempre la última sección - sin margen inferior */
.page-template-page-quienes-somos .cta-banner,
.page-template-page-quienes-somos > main > section:last-child,
.page-template-page-quienes-somos main > section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 80px;
}



.cta-banner::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background-image: url('../images/ISOTIPO.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.05;
    top: -80px;
    right: -80px;
    z-index: 0;
    pointer-events: none;
}

.cta-banner .container {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 35px;
}

.cta-banner .btn-white {
    font-size: 16px;
    padding: 14px 36px;
}

/* 18. BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--gradient-btn);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 92, 46, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* 19. SEPARADOR DECORATIVO */
.section-divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-btn);
    border-radius: var(--radius-xl);
    margin: 0 auto 30px;
}

/* 20. HERO DE PÁGINAS INTERNAS - PREMIUM (CON DEGRADADO COMO HEADER/FOOTER) */
.page-hero-banner {
    background: var(--gradient-header);
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--color-brand-gold);
}

.hero-bg-quienes-somos {
    background: linear-gradient(180deg, rgba(26, 58, 36, 0.85) 0%, rgba(13, 34, 24, 0.95) 100%),
                url('../images/hero-quienes-somos.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.hero-bg-quienes-somos::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    backdrop-filter: blur(4px);
    z-index: 0;
    pointer-events: none;
}

.page-hero-banner::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background-image: url('../images/ISOTIPO.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.04;
    top: -120px;
    right: -80px;
    z-index: 0;
    pointer-events: none;
    animation: spin-slow 80s linear infinite;
}

.page-hero-banner .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-hero-banner .hero-badge {
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-brand-yellow-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    margin-bottom: 24px;
}

.page-hero-banner .hero-badge svg {
    fill: var(--color-brand-gold);
}

.page-hero-banner .hero-badge span {
    color: var(--color-brand-yellow-light);
    letter-spacing: 1.5px;
    font-weight: 600;
}

.page-hero-banner h1 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.page-hero-banner h1 span {
    color: var(--color-brand-gold);
}

.page-hero-banner p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.page-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.page-breadcrumb a:hover {
    color: var(--color-brand-yellow-light);
}

.page-breadcrumb span {
    color: var(--color-brand-gold);
    font-weight: 600;
}

/* 21. GRID DE VALORES INSTITUCIONALES */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-btn);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-mint);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f5ec, #c8ecd4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.value-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary);
}

.value-title {
    font-family: var(--font-titles);
    font-size: 1.15rem;
    color: var(--color-text-dark);
    margin-bottom: 10px;
}

.value-desc {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 22. BADGE DE COOPERANTES (INLINE PILL) */
.cooperante-badge {
    display: inline-block;
    background: var(--color-soft-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .page-hero-banner h1 { font-size: 2.2rem; }
    .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .page-hero-banner { padding: 100px 0 50px; }
    .page-hero-banner h1 { font-size: 1.9rem; }
}

/* 20. TOOLTIP DE ACCESIBILIDAD */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--color-text-dark);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 100;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   19. CARRUSEL 3D DE PROYECTOS (NUEVO REDISEÑO)
   ========================================================================== */

.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0 80px;
    margin-bottom: 20px;
    perspective: 1200px;
    outline: none;
    user-select: none;
}

.carousel-3d-container {
    position: relative;
    width: 100%;
    height: 440px;
    transform-style: preserve-3d;
}

.project-3d-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 280px;
    height: 390px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s ease, box-shadow 0.6s ease;
    background: var(--color-white);
    will-change: transform, opacity;
    margin-top: -195px; /* half of height to vertically center */
}

/* Hover effect on active card only */
.project-3d-card.active:hover {
    box-shadow: 0 25px 50px rgba(26, 92, 46, 0.4);
    transform: translateX(-50%) translateZ(20px) scale(1.02) !important;
}

.card-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-3d-card.active:hover .card-bg img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 60px 20px 20px;
    background: linear-gradient(to top, rgba(13, 34, 24, 0.95) 0%, rgba(13, 34, 24, 0.7) 60%, transparent 100%);
    color: var(--color-white);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transition: all 0.4s ease;
}

.card-logo {
    font-family: var(--font-titles);
    font-size: 14px;
    color: var(--color-brand-gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-title {
    color: var(--color-white);
    font-size: 1.4rem;
    margin: 0;
    line-height: 1.3;
}

/* Controles del Carrusel */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 20;
}

.carousel-btn {
    pointer-events: auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Contenedor de Detalles Acordeón */
.project-details-container {
    max-width: 1000px;
    margin: 0 auto 60px;
    position: relative;
}

.project-detail-content {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    padding: 40px;
    margin-top: 20px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, max-height 0.6s cubic-bezier(0, 1, 0, 1), transform 0.5s ease;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.project-detail-content.open {
    opacity: 1;
    max-height: 2000px;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
    transition: opacity 0.5s ease, max-height 0.8s ease-in-out, transform 0.5s ease;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--color-soft-bg);
    padding-bottom: 15px;
}

.detail-header h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin: 0;
}

.close-detail {
    background: #fcece9;
    color: #d9534f;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-detail:hover {
    background: #d9534f;
    color: white;
    transform: rotate(90deg);
}

.detail-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-dark);
    margin-bottom: 15px;
}

.detail-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.styled-list {
    list-style: none;
    padding: 0;
}

.styled-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.styled-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-mint);
    font-weight: bold;
}

@media (max-width: 991px) {
    .detail-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .project-3d-card {
        width: 260px;
        height: 350px;
    }
}

/* Typography Spacing */
h1, h2, h3, .card-title {
    letter-spacing: 0.5px;
}
.section-subtitle {
    letter-spacing: 2px !important;
}

/* ==========================================================================
   20. DETALLE DE PROYECTOS — COMPONENTES VISUALES PREMIUM
   ========================================================================== */

/* Tag / etiqueta de encabezado */
.detail-tag {
    display: inline-block;
    background: var(--color-soft-bg);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 8px;
    border: 1px solid rgba(26,92,46,0.15);
}

/* Hero image con overlay de pills */
.detail-hero-img {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 28px;
}
.detail-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.detail-hero-img:hover img {
    transform: scale(1.04);
}
.detail-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(13,34,24,0.75) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
}
.detail-stat-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.stat-pill {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.stat-pill strong {
    color: var(--color-brand-gold);
}

/* Photo grid 3 columns */
.detail-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.detail-photo-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform 0.4s ease;
}
.detail-photo-grid img:hover {
    transform: scale(1.04);
}

/* Two column layout */
.detail-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 28px;
}

/* Column title with icon */
.detail-col-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-weight: 700;
}
.col-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Check list with icons */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.check-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #e8f5ec;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.check-list li div strong {
    display: block;
    font-weight: 700;
    color: var(--color-text-dark);
    font-size: 14px;
    margin-bottom: 2px;
}
.check-list li div p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* Steps list */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
.step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--gradient-btn);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-titles);
}
.step-item div strong {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text-dark);
    margin-bottom: 2px;
}
.step-item div p {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0;
}

/* CTA box */
.detail-cta-box {
    background: linear-gradient(135deg, #e8f5ec, #f5fdf7);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    border-left: 4px solid var(--color-primary);
}
.detail-cta-box p {
    font-size: 14px;
    color: var(--color-text-dark);
    margin-bottom: 14px;
    font-weight: 500;
}
.detail-cta-box .btn {
    gap: 8px;
    font-size: 14px;
    padding: 10px 20px;
}

/* Impact numbers card */
.detail-impact-card {
    background: linear-gradient(135deg, var(--color-soft-bg), #f0f9f3);
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid rgba(26,92,46,0.1);
}
.detail-impact-card h4 {
    color: var(--color-primary);
    font-size: 1rem;
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0.5px;
}
.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.impact-item {
    text-align: center;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    box-shadow: var(--shadow-sm);
}
.impact-num {
    display: block;
    font-family: var(--font-titles);
    font-size: 1.8rem;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.impact-label {
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Partner chip grid */
.partner-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
}
.partner-chip {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--color-primary);
}
.partner-chip strong {
    display: block;
    font-size: 13px;
    color: var(--color-text-dark);
    font-weight: 700;
}
.partner-chip span {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* Quote box */
.detail-quote-box {
    background: var(--color-soft-bg);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 22px;
    margin-bottom: 0;
}
.detail-quote-box p {
    font-size: 15px;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin: 8px 0;
}
.detail-quote-box span {
    font-size: 12px;
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Highlight strip */
.detail-highlight-strip {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 20px 0 28px;
    background: linear-gradient(90deg, #e8f5ec, #f5fdf7);
}
.detail-highlight-strip span {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    border-right: 1px solid rgba(26,92,46,0.1);
}
.detail-highlight-strip span:last-child {
    border-right: none;
}

/* Circular model for CESAL */
.circular-model {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.circular-step {
    flex: 1;
    min-width: 80px;
    text-align: center;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    box-shadow: var(--shadow-sm);
}
.c-num {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00695c, #00897b);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    line-height: 28px;
    margin: 0 auto 6px;
}
.circular-step strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 3px;
}
.circular-step p {
    font-size: 11px;
    color: var(--color-text-muted);
    margin: 0;
}
.c-arrow {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .detail-two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .detail-photo-grid {
        grid-template-columns: 1fr 1fr;
    }
    .detail-photo-grid img:last-child {
        grid-column: 1 / -1;
    }
    .impact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 600px) {
    .detail-photo-grid {
        grid-template-columns: 1fr;
    }
    .detail-highlight-strip {
        flex-direction: column;
    }
    .detail-highlight-strip span {
        border-right: none;
        border-bottom: 1px solid rgba(26,92,46,0.1);
    }
    .circular-model {
        flex-direction: column;
    }
    .c-arrow {
        transform: rotate(90deg);
    }
}

/* ==========================================================================
   21. PÁGINA DE NOTICIAS — LAYOUT CON SIDEBAR
   ========================================================================== */

.news-page-section {
    background: #f8faf9;
}

/* Layout principal: 2 columnas */
.news-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ---- NOTICIA DESTACADA ---- */
.news-featured-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}
.news-featured-card:hover {
    box-shadow: var(--shadow-lg);
}
.news-featured-img-link {
    display: block;
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}
.news-featured-img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-featured-card:hover .news-featured-img-link img {
    transform: scale(1.04);
}
.news-featured-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}
.news-cat-badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
}
.news-featured-body {
    padding: 28px 32px 32px;
}
.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: 10px;
}
.news-featured-title {
    font-size: 1.7rem;
    margin-bottom: 14px;
    line-height: 1.3;
}
.news-featured-title a {
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.2s;
}
.news-featured-title a:hover {
    color: var(--color-primary);
}
.news-featured-excerpt {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}
.news-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 11px 24px;
}

/* ---- TARJETAS HORIZONTALES ---- */
.news-card-h {
    display: grid;
    grid-template-columns: 220px 1fr;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.news-card-h:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.news-card-h-img {
    display: block;
    position: relative;
    overflow: hidden;
    height: 180px;
}
.news-card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card-h:hover .news-card-h-img img {
    transform: scale(1.06);
}
.news-cat-badge-sm {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
}
.news-card-h-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-card-h-title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 8px 0 10px;
}
.news-card-h-title a {
    color: var(--color-text-dark);
    text-decoration: none;
}
.news-card-h-title a:hover {
    color: var(--color-primary);
}
.news-card-h-excerpt {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
    flex: 1;
}
.news-read-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    transition: gap 0.2s ease;
    text-decoration: none;
    cursor: pointer;
}
.news-read-link:hover {
    gap: 8px;
}

/* Paginación */
.news-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.news-pagination .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-dark);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* ====== SIDEBAR ====== */
.news-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 22px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.sidebar-widget-dark {
    background: var(--gradient-header);
    border: none;
}

.sidebar-widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-soft-bg);
    letter-spacing: 0.3px;
}

/* Búsqueda */
.sidebar-search-form {
    display: flex;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.sidebar-search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--color-soft-bg);
    color: var(--color-text-dark);
}
.sidebar-search-btn {
    padding: 10px 16px;
    background: var(--color-primary);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.sidebar-search-btn:hover {
    background: var(--color-medium);
}

/* Categorías */
.sidebar-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-soft-bg);
}
.sidebar-cat-list li:last-child {
    border-bottom: none;
}
.sidebar-cat-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-text-body);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.sidebar-cat-list a:hover {
    color: var(--color-primary);
}
.cat-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-primary);
    display: inline-block;
    flex-shrink: 0;
}
.cat-count {
    font-size: 11px;
    background: var(--color-soft-bg);
    color: var(--color-text-muted);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

/* Noticias recientes */
.sidebar-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.sidebar-recent-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}
.sidebar-recent-item:hover {
    transform: translateX(3px);
}
.sidebar-recent-img {
    width: 72px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}
.sidebar-recent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-recent-body {
    flex: 1;
}
.sidebar-recent-date {
    display: block;
    font-size: 11px;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sidebar-recent-body p {
    font-size: 13px;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}

/* Proyectos widget */
.sidebar-projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sidebar-projects-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s, padding-left 0.2s;
}
.sidebar-projects-list li:last-child a {
    border-bottom: none;
}
.sidebar-projects-list li a::before {
    content: '→';
    color: var(--color-brand-gold);
    font-size: 12px;
}
.sidebar-projects-list li a:hover {
    color: var(--color-brand-gold);
    padding-left: 4px;
}

/* Social button */
.sidebar-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sidebar-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    color: #fff;
}
.sidebar-social-btn:hover {
    color: #fff;
}
.sidebar-social-btn.facebook {
    background: #1877f2;
}
.sidebar-social-btn.facebook:hover {
    background: #1464d2;
    transform: translateY(-2px);
}
.sidebar-social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.sidebar-social-btn.instagram:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
}
.sidebar-social-btn.youtube {
    background: #ff0000;
}
.sidebar-social-btn.youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .news-page-layout {
        grid-template-columns: 1fr 280px;
        gap: 28px;
    }
}
@media (max-width: 768px) {
    .news-page-layout {
        grid-template-columns: 1fr;
    }
    .news-sidebar {
        position: static;
    }
    .news-featured-img-link {
        height: 240px;
    }
    .news-card-h {
        grid-template-columns: 1fr;
    }
    .news-card-h-img {
        height: 200px;
    }
    .news-featured-body {
        padding: 20px;
    }
    .news-featured-title {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   22. PÁGINA QUIÉNES SOMOS — REDISEÑO PREMIUM
   ========================================================================== */

/* Quiénes Somos — secciones full-width sin márgenes ni padding lateral */
.page-template-page-quienes-somos .section-padding {
    padding: 55px 0 !important;
}



/* --- 22.1. HISTORIA ASIMÉTRICA --- */
.historia-section {
    background: var(--color-white);
    position: relative;
    overflow: hidden;
}
.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: start;
}
.historia-badge-container {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}
.historia-main-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
    object-fit: cover;
    object-position: center;
}
.historia-badge-floating {
    position: absolute;
    top: -20px;
    left: -20px;
    background: #a2cf3d; /* Verde brillante del manual */
    color: #0b2814;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--color-brand-gold);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 10;
}
.badge-num {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    font-family: var(--font-titles);
}
.badge-txt {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-top: 2px;
}
.historia-areas-box {
    background: var(--color-soft-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    border-left: 3px solid var(--color-primary);
}
.areas-intro {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 14px;
}
.historia-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.historia-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-body);
    font-weight: 500;
}
.check-icon {
    width: 22px;
    height: 22px;
    background: #a2cf3d;
    color: #0b2814;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.historia-title {
    font-size: 3.2rem;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.1;
}
.historia-paragraphs p {
    font-size: 15.5px;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: justify;
}
.historia-paragraphs p strong {
    color: var(--color-text-dark);
}
.historia-img-wrapper-action {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 30px;
    box-shadow: var(--shadow-md);
}
.historia-secondary-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.historia-img-wrapper-action:hover .historia-secondary-img {
    transform: scale(1.04);
}
.floating-action-circle {
    position: absolute;
    bottom: -5px;
    left: -5px;
    width: 80px;
    height: 80px;
    background: #a2cf3d;
    color: #0b2814;
    border-top-right-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    z-index: 5;
    padding-right: 10px;
    padding-top: 10px;
}
.floating-action-circle:hover {
    background: var(--color-brand-gold);
    color: #fff;
    transform: scale(1.08);
}

/* --- 22.2. MISIÓN Y VISIÓN ASIMÉTRICA --- */
.mv-asymmetric-section {
    padding: 60px 0;
    background: #f8faf9;
    position: relative;
}
.mv-isotipo-watermark {
    position: absolute;
    width: 380px;
    height: 380px;
    opacity: 0.035;
    pointer-events: none;
    z-index: 1;
    animation: rotateIsotipo 50s linear infinite;
}
.mv-isotipo-watermark.left {
    top: 5%;
    left: -100px;
}
.mv-isotipo-watermark.right {
    bottom: 5%;
    right: -100px;
}
.mv-isotipo-watermark img {
    width: 100%;
    height: 100%;
}
@keyframes rotateIsotipo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mv-asymmetric-container {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
    box-sizing: border-box;
}
.mv-card-wrapper {
    display: grid;
    width: 100%;
}
.mision-wrapper {
    grid-template-columns: 85% 15%;
}
.vision-wrapper {
    grid-template-columns: 15% 85%;
}
.mv-card-box {
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 3px solid rgba(162,207,61,0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 300px;
    display: flex;
    align-items: center;
}
.mision-card {
    border-radius: var(--radius-xl);
}
.vision-card {
    border-radius: var(--radius-xl);
}
.mv-card-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.mv-card-content {
    padding: 60px 40px;
    max-width: 70%;
    position: relative;
    z-index: 3;
}
.mision-card .mv-card-content {
    padding: 60px 50px;
    max-width: 70%;
}
.vision-card .mv-card-content {
    padding: 60px 50px;
    max-width: 70%;
    margin-left: auto;
    text-align: right;
}
.mv-card-tag {
    display: inline-block;
    color: var(--color-brand-gold);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}
.mv-card-title {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 18px;
}
.mv-card-title span {
    color: #a2cf3d;
}
.mv-card-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 1280px) {
    .mision-card .mv-card-content {
        padding-left: 60px;
        max-width: 80%;
    }
    .vision-card .mv-card-content {
        padding-right: 60px;
        max-width: 80%;
    }
}

/* --- 22.3. CARRUSEL DE VALORES CON NAV LATERAL --- */
.values-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 30px;
    padding: 0 60px; /* Espacio para las flechas laterales */
}
.values-carousel-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 8px 20px;
    scrollbar-width: none; /* Firefox */
}
.values-carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.value-carousel-slide {
    flex: 0 0 320px;
    scroll-snap-align: start;
}
.value-card-carousel {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}
.value-card-carousel:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(26,92,46,0.15);
}
.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}
.value-title {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin-bottom: 12px;
    font-family: var(--font-titles);
}
.value-desc {
    font-size: 13.5px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}
.carousel-control-btn.side-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.carousel-control-btn.side-nav:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.carousel-control-btn.side-nav.prev {
    left: 0;
}
.carousel-control-btn.side-nav.next {
    right: 0;
}

/* --- 22.4. EJES TRANSVERSALES Y ESTRATÉGICOS COLLAGE --- */
.ejes-transversales-section {
    background: var(--color-white);
}
.ejes-transversales-grid,
.ejes-estrategicos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    box-sizing: border-box;
}
.ejes-collage {
    width: 100%;
}
.collage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 10px;
    width: 100%;
    height: auto;
}
.collage-img-box {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s;
}
.collage-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.collage-img-box:hover {
    transform: scale(1.02);
    z-index: 10;
}
/* img-1: large left, spans both rows */
.collage-img-box.img-1 {
    grid-column: 1;
    grid-row: 1 / span 2;
}
/* img-2: top right */
.collage-img-box.img-2 {
    grid-column: 2;
    grid-row: 1;
}
/* img-3: bottom right */
.collage-img-box.img-3 {
    grid-column: 2;
    grid-row: 2;
}
.ejes-title {
    font-size: 2.8rem;
    color: var(--color-primary);
    margin-bottom: 24px;
}
.ejes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.eje-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.eje-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.eje-icon-circle.gender {
    color: #c2185b;
    background: rgba(194,24,91,0.1);
}
.eje-icon-circle.environment {
    color: #2d8a4e;
    background: rgba(45,138,78,0.1);
}
.eje-icon-circle.knowledge {
    color: #008080;
    background: rgba(0,128,128,0.1);
}
.eje-icon-circle.strategic-cdmype {
    color: #008080;
    background: rgba(0,128,128,0.1);
}
.eje-icon-circle.strategic-agro {
    color: #f0a500;
    background: rgba(240,165,0,0.1);
}
.eje-icon-circle.strategic-inclusion {
    color: #2d8a4e;
    background: rgba(45,138,78,0.1);
}
.eje-body h3 {
    font-size: 1.15rem;
    font-family: var(--font-titles);
    color: var(--color-text-dark);
    margin-bottom: 6px;
}
.eje-body p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
    text-align: justify;
}

/* --- 22.5. MEMORIAS 3D BOOK COVERS --- */
.memorias-section {
    background: #f8faf9;
}
.books-showcase {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.book-showcase-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    max-width: 350px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.book-perspective-wrapper {
    perspective: 1000px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 180px;
    height: 250px;
}
.book-3d {
    width: 150px;
    height: 220px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.book-showcase-item:hover .book-3d {
    transform: rotateY(-3deg) rotateX(2deg) translateY(-5px);
}
.book-side {
    position: absolute;
    height: 100%;
    background: #fff;
}
.book-front {
    width: 150px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0d2814 100%);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-left: 5px solid var(--color-brand-gold);
    transform: translateZ(10px);
    z-index: 10;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    color: #fff;
}
.book-cover-decor-top {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-brand-gold), transparent);
}
.book-cover-logo {
    width: 70px;
    margin: 8px auto 0;
}
.book-cover-logo img {
    width: 100%;
    height: auto;
    filter: brightness(1.2);
}
.book-cover-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.3;
    font-family: var(--font-titles);
    text-align: center;
    margin: 10px 0 4px;
    color: rgba(255,255,255,0.9);
}
.book-cover-year {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    color: #a2cf3d;
    font-family: var(--font-titles);
}
.book-cover-seal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-bottom: 4px;
}
.book-cover-seal svg {
    width: 18px;
    height: 18px;
    color: var(--color-brand-gold);
}
.book-cover-seal span {
    font-size: 8px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.7);
}
.book-spine {
    width: 20px;
    transform: rotateY(-90deg) translateZ(10px);
    background: #0d2814;
    z-index: 9;
    box-shadow: inset -3px 0 5px rgba(0,0,0,0.3);
}
.spine-text {
    transform: rotate(90deg);
    display: block;
    width: 220px;
    height: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 20px;
    transform-origin: 0 0;
    margin-left: 20px;
    white-space: nowrap;
}
.book-pages {
    width: 146px;
    transform: translateZ(0px);
    background: #fbfbf8;
    border: 1px solid #e0e0d8;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    z-index: 1;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}
.book-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.book-title {
    font-size: 1.15rem;
    font-family: var(--font-titles);
    color: var(--color-text-dark);
    margin-bottom: 8px;
}
.book-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}
.book-btn {
    width: 100%;
    font-size: 13.5px;
    padding: 10px 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* ====== QUIÉNES SOMOS RESPONSIVE ====== */
@media (max-width: 900px) {
    .historia-grid,
    .ejes-transversales-grid,
    .ejes-estrategicos-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .ejes-estrategicos-grid {
        direction: rtl; /* Hace que el collage colapse arriba y la lista abajo */
    }
    .ejes-estrategicos-grid > * {
        direction: ltr; /* Restaura dirección de lectura normal */
    }
    .historia-badge-floating {
        top: -10px;
        left: -10px;
        padding: 10px 14px;
    }
    .badge-num {
        font-size: 1.5rem;
    }
    .historia-title {
        font-size: 2.4rem;
        margin-top: 10px;
    }
    .mv-card-wrapper {
        grid-template-columns: 1fr !important;
    }
    .mv-card-content {
        max-width: 100% !important;
        padding: 30px 24px !important;
        text-align: left !important;
    }
    .mv-card-gap {
        display: none !important;
    }
    .ejes-collage {
    }
    .collage-container {
        grid-template-rows: 160px 160px;
        gap: 8px;
    }
}

