/* Import Google Fonts (Poppins, Outfit, & Permanent Marker) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Permanent+Marker&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');

/* Font faces for Marhaban and MarhabanSwash */
@font-face {
    font-family: 'Marhaban';
    src: url('../fonts/Marhaban-Regular.ttf') format('truetype'),
         url('../fonts/Marhaban-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

/* Core Design System & CSS Variables — MODO OSCURO PERMANENTE */
:root {
    /* Brand Palette */
    --brand-dark-blue: #203352;
    --brand-teal: #27505F;
    --brand-medium-blue: #4A8094;
    --brand-light-blue: #99D5DC;
    --brand-pale-yellow: #FFF5C2; /* Color crema de las diapositivas */
    --brand-salmon: #FE9C7C;
    --brand-rose: #C9676A;

    /* Dark Theme — Único modo */
    --bg-primary: rgb(18, 30, 37);
    --bg-secondary: #121E25; /* Fondo más oscuro y sólido */
    --text-primary: #FFFFFF;
    --text-secondary: #FFF5C2; /* Color crema para destacados */
    --text-muted: #99D5DC;
    --accent: #4A8094;
    --accent-glow: rgba(74, 128, 148, 0.4);
    --border-color: #27505F;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --card-shadow: 0 10px 30px var(--shadow-color);
    --sidebar-bg: #27505F;
    --nav-hover-bg: rgba(74, 128, 148, 0.3);
    --body-font: 'Poppins', sans-serif;
    --title-font: 'Outfit', sans-serif; /* Cambiado a Outfit */
    --bg-texture: url('../Imagenes%20texturas/Bitmap%20(2).jpg');
    --title-color: #FFFFFF;
    --title-base-color: rgb(50, 129, 150);
    --text-title-color: #FFFFFF;

    /* Texturas para secciones específicas */
    --tex-cracked:    url('../Imagenes%20texturas/Bitmap%20(2).jpg');
    --tex-dark-panel: url('../Imagenes%20texturas/Bitmap%20(3).jpg');
    --tex-geo-blue:   url('../Imagenes%20texturas/Bitmap%20(6).jpg');
    --tex-graffiti:   url('../Imagenes%20texturas/Bitmap%20(10).jpg');
    --tex-stars:      url('../Imagenes%20texturas/Bitmap%20(8).jpg');
    --tex-concrete:   url('../Imagenes%20texturas/Bitmap%20(1).jpg');
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
    overscroll-behavior-y: none;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
    min-height: 100%;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-texture);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.22; /* Textura base fuerte en toda la página */
    z-index: -2;
    pointer-events: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-salmon);
}

/* Layout structure */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
}

/* Header Styling (Collapsible Top Navigation) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 30, 37, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 245, 194, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    will-change: transform;
    transform: translateZ(0);
}

.header-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 3rem;
    background-color: transparent;
    color: #FFFFFF;
    height: 75px;
    position: relative;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 1;
    min-width: 0;
}

.header-logo img {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-brand-name {
    font-family: var(--title-font);
    font-size: 1.6rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1;
    display: inline-block;
    letter-spacing: 0.5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
}

/* Botón de tema eliminado — solo modo oscuro */
.theme-toggle-btn {
    display: none !important;
}

.menu-toggle-btn {
    background-color: rgba(255, 245, 194, 0.08);
    border: 1px solid rgba(255, 245, 194, 0.25);
    color: var(--brand-pale-yellow);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--title-font);
    font-weight: 750;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-toggle-btn:hover {
    background-color: var(--brand-pale-yellow);
    color: #121E25;
    border-color: var(--brand-pale-yellow);
}

/* Custom login button styling overrides */
#auth-header-btn {
    font-family: var(--title-font) !important;
    font-weight: 800 !important;
    background: var(--brand-pale-yellow) !important;
    color: #121E25 !important;
    border: 1px solid var(--brand-pale-yellow) !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
}

#auth-header-btn:hover {
    background: transparent !important;
    color: var(--brand-pale-yellow) !important;
}

/* Horizontal Navigation Dropdown */
.horizontal-nav {
    background-color: rgba(18, 30, 37, 0.9);
    border-top: 1px solid rgba(255, 245, 194, 0.1);
    border-bottom: 1.5px solid var(--brand-pale-yellow);
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: 600px;
    opacity: 1;
}

.horizontal-nav.collapsed {
    max-height: 0 !important;
    opacity: 0;
    border-bottom: none;
}

.nav-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 3rem;
    gap: 0.6rem;
}

.horizontal-nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: clamp(0.6rem, 1.6vw, 2rem);
    width: 100%;
}

.horizontal-nav li {
    display: inline-block;
}

.horizontal-nav a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.horizontal-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: var(--brand-pale-yellow);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.horizontal-nav a:hover, 
.horizontal-nav a.active {
    color: var(--brand-pale-yellow);
}

.horizontal-nav a.active::after,
.horizontal-nav a:hover::after {
    transform: scaleX(1);
}

.color-bar-container {
    width: 100%;
    max-width: 450px;
    margin-top: 0.2rem;
}

.color-bar {
    display: flex;
    height: 6px;
    width: 100%;
    border-radius: 3px;
    overflow: hidden;
}

.color-bar-segment {
    flex: 1;
    height: 100%;
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    margin-left: 0;
    margin-top: 75px; /* Offset for header top bar */
    padding: 4rem 4rem;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

/* Section Common Styling */
section {
    padding-top: 2rem;
    scroll-margin-top: 3rem;
}

/* Custom Clean Title styling - Reemplazo de pinceladas */
.brush-title-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
    z-index: 10;
    width: 100%;
    text-align: center;
}

.brush-title-bg,
.brush-title-drip {
    display: none !important; /* Desactivar fondo de pintura y goteras */
}

.brush-title {
    font-family: var(--title-font);
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--brand-pale-yellow);
    position: relative;
    z-index: 3;
    letter-spacing: 0.5px;
    padding: 5px 0;
    line-height: 1.1;
    display: inline-block;
    text-transform: none;
    transform: none; /* Quitar inclinación */
}

/* Nuevos Estilos del Título Editorial Limpio (con líneas a los lados) */
.clean-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin-bottom: 3.5rem;
    text-align: center;
}

.clean-title-line {
    flex-grow: 1;
    height: 1px;
    background-color: var(--brand-pale-yellow);
    opacity: 0.5;
}

.clean-title {
    font-family: var(--title-font);
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--brand-pale-yellow);
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .clean-title {
        font-size: 2.2rem;
        white-space: normal;
    }
    .brush-title {
        font-size: 2.2rem;
    }
    .header-brand-name {
        display: none !important;
    }
}



/* SECTION 1: HERO */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

/* ── TEXTURAS DE SECCIÓN ─────────────────────────────────────── */

/* Quiénes Somos — textura de muro agrietado con elementos urbanos */
#quienes-somos {
    position: relative;
}
#quienes-somos::before {
    content: '';
    position: absolute;
    inset: -4rem -4rem;
    background-image: var(--tex-cracked);
    background-size: cover;
    background-position: center top;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
}
#quienes-somos > * { position: relative; z-index: 1; }

/* Tabs (misión/visión) — textura geométrica azul oscuro */
.tabs-container {
    position: relative;
    overflow: hidden;
}
.tabs-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--tex-geo-blue);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
}
.tabs-container > * { position: relative; z-index: 1; }

/* Editorial Principios & Valores — textura stars/urban aplicada al nuevo contenedor */
.editorial-pv-section {
    position: relative;
}
.editorial-pv-section::before {
    content: '';
    position: absolute;
    inset: -2rem -4rem;
    background-image: var(--tex-stars);
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    z-index: 0;
    pointer-events: none;
}
.editorial-pv-section > * { position: relative; z-index: 1; }


.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(110%) brightness(35%);
    z-index: 1;
    transition: transform 10s ease;
}

.hero-section:hover .hero-bg {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(39, 80, 95, 0.4) 0%, rgba(21, 30, 36, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 4rem;
    max-width: 800px;
    margin: 0 auto; /* Centrar el bloque en la sección */
    text-align: center; /* Centrar el texto */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrar los botones y flex items */
}

.hero-tagline {
    font-weight: 700;
    font-style: italic;
    color: var(--brand-salmon);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-family: var(--title-font);
    font-size: 2.5rem;
    color: var(--title-color);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s ease 0.2s both;
    display: inline-block;
    transform: skewX(-12deg); /* Endereza el título en el Hero */
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 650px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center; /* Centrar los botones horizontalmente */
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary,
.btn-secondary {
    background-color: var(--brand-salmon);
    color: #FFFFFF;
    border: none;
    font-family: var(--body-font);
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(254, 156, 124, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--brand-rose);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(201, 103, 106, 0.5);
}

/* SECTION 2: QUIENES SOMOS */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-bottom: 4rem;
    align-items: center;
}

.intro-text-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.intro-desc {
    font-size: 1.15rem;
    font-weight: 400;
}

.nature-badge {
    background-color: var(--bg-secondary);
    border-left: 5px solid var(--brand-medium-blue);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    box-shadow: var(--card-shadow);
}

.nature-badge h4 {
    font-family: var(--title-font);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-title-color);
}

.nature-badge p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
}

.intro-img-block {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 380px;
    position: relative;
}

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

.intro-img-block:hover img {
    transform: scale(1.05);
}

.img-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #FFFFFF;
    font-size: 0.85rem;
    font-style: italic;
}

/* Mision / Vision / Propósito (Tabs System) */
.tabs-container {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    margin-bottom: 4rem;
    border: 1px solid var(--border-color);
}

.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.1);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--brand-salmon);
}

.tab-btn.active {
    color: var(--brand-salmon);
    border-bottom-color: var(--brand-salmon);
    background-color: var(--bg-secondary);
}

.tabs-content {
    padding: 3rem;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-panel.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tab-panel-text h3 {
    font-family: var(--title-font);
    font-size: 2.5rem;
    color: var(--text-title-color);
    margin-bottom: 1.5rem;
}

.tab-panel-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.tab-subpoints {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.tab-subpoints li {
    position: relative;
    padding-left: 2rem;
    font-size: 1rem;
}

.tab-subpoints li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-salmon);
}

.tab-panel-img {
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tab-panel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Timeline (Evolución) Styling */
/* Sección Historia / Timeline — textura concreto oscuro con grietas */
#historia, .historia-section {
    position: relative;
}
#historia::before, .historia-section::before {
    content: '';
    position: absolute;
    inset: -4rem -4rem;
    background-image: var(--tex-cracked);
    background-size: cover;
    background-position: center bottom;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
}
#historia > *, .historia-section > * { position: relative; z-index: 1; }

.timeline-title {
    text-align: center;
    font-family: var(--title-font);
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    color: var(--text-title-color);
}

/* Indicador de deslizamiento para la línea de tiempo */
.timeline-scroll-helper {
    display: none;
    text-align: center;
    margin-top: -2rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-salmon);
    font-style: italic;
}

.timeline-scroll-helper span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-secondary);
    border: 2px solid var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    box-shadow: 3px 3px 0px var(--title-base-color);
}

.timeline-scroll-helper span::after {
    content: '➔';
    animation: arrowSlide 1.5s infinite ease-in-out;
}

@keyframes arrowSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

@media (max-width: 992px) {
    .timeline-scroll-helper {
        display: block;
    }
}

.horizontal-timeline-container {
    position: relative;
    width: 100%;
    min-height: 480px;
    margin: 5rem 0;
    padding: 2rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--brand-salmon) var(--bg-secondary);
}

.horizontal-timeline-container::-webkit-scrollbar {
    height: 8px;
    display: block;
}

.horizontal-timeline-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.horizontal-timeline-container::-webkit-scrollbar-thumb {
    background: var(--brand-salmon);
    border-radius: 4px;
}

.horizontal-timeline-line {
    position: absolute;
    top: 220px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-salmon);
    z-index: 1;
}

.horizontal-timeline-items {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    min-width: 1100px;
    height: 440px;
    padding: 0 50px;
}

.horizontal-timeline-item {
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Timeline dot precisely on the line */
.timeline-node {
    width: 20px;
    height: 20px;
    background: var(--bg-primary);
    border: 4px solid var(--brand-salmon);
    border-radius: 50%;
    position: absolute;
    top: 212px; /* Center 20px dot on the 220px line */
    z-index: 4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Odd items: trigger is ABOVE the line, detail is BELOW the line */
.horizontal-timeline-item:nth-child(odd) .timeline-trigger {
    position: absolute;
    top: 90px;
    text-align: center;
    width: 150px;
}

.horizontal-timeline-item:nth-child(odd) .timeline-detail {
    position: absolute;
    top: 260px;
    text-align: center;
}

/* Even items: trigger is BELOW the line, detail is ABOVE the line */
.horizontal-timeline-item:nth-child(even) .timeline-trigger {
    position: absolute;
    top: 260px;
    text-align: center;
    width: 150px;
}

.horizontal-timeline-item:nth-child(even) .timeline-detail {
    position: absolute;
    top: 20px;
    text-align: center;
}

.timeline-trigger {
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.timeline-trigger .timeline-year {
    display: inline-block;
    background: var(--brand-salmon);
    color: #FFFFFF;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: background 0.3s ease;
}

.timeline-trigger h3 {
    font-size: 1.05rem;
    font-family: var(--body-font);
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.timeline-detail {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: var(--card-shadow);
    border: 2px solid var(--border-color);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 10;
}

.horizontal-timeline-item:nth-child(even) .timeline-detail {
    transform: translateY(-15px) scale(0.95);
}

.horizontal-timeline-item:hover .timeline-detail {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    border-color: var(--brand-salmon);
}

.horizontal-timeline-item:hover .timeline-node {
    background: var(--brand-rose);
    border-color: var(--brand-rose);
    transform: scale(1.3);
    box-shadow: 0 0 12px var(--brand-rose);
}

.horizontal-timeline-item:hover .timeline-trigger h3 {
    color: var(--brand-salmon);
}

.horizontal-timeline-item:hover .timeline-trigger .timeline-year {
    background: var(--brand-rose);
}

.timeline-detail h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.timeline-detail p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* SECTION 3: LINEAS DE ACCION */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.action-card {
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border: 1.5px solid var(--brand-pale-yellow);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 245, 194, 0.1);
}

.action-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--brand-pale-yellow);
}

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

.action-card:hover .action-card-img img {
    transform: scale(1.08);
}

.action-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(39, 80, 95, 0.1), rgba(21, 30, 36, 0.7));
}

.action-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.action-card h3 {
    font-family: var(--title-font);
    font-size: 1.4rem;
    font-weight: 850;
    margin-bottom: 0.8rem;
    color: var(--brand-pale-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sección Líneas de Acción — textura geométrica */
#lineas-accion, .lineas-accion-section {
    position: relative;
}
#lineas-accion::before, .lineas-accion-section::before {
    content: '';
    position: absolute;
    inset: -4rem -4rem;
    background-image: var(--tex-geo-blue);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}
#lineas-accion > *, .lineas-accion-section > * { position: relative; z-index: 1; }

.action-card p {
    font-size: 0.9rem;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 300;
}

/* SECTION 4: IMPACTO & GALERIA */
.impact-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

.impact-counter-card {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.impact-counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--brand-medium-blue), var(--brand-rose));
}

.stat-number {
    font-family: var(--title-font);
    font-size: 5rem;
    color: var(--brand-salmon);
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.stat-label {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.transparency-block {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 5rem;
}

.transparency-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.transparency-info h3 {
    font-family: var(--title-font);
    font-size: 2.2rem;
    color: var(--text-title-color);
    margin-bottom: 1rem;
}

.transparency-info p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.transparency-docs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.doc-download-card {
    background-color: var(--bg-primary);
    padding: 1.8rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.doc-download-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-salmon);
}

.doc-icon {
    font-size: 2.5rem;
}

.doc-download-card h4 {
    font-size: 1rem;
    font-weight: 700;
}

.doc-download-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.btn-download {
    font-size: 0.85rem;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    background-color: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.2s ease;
}

.btn-download:hover {
    background-color: var(--brand-salmon);
}

/* Gallery / Masonry Layout */
/* Sección Galería — textura graffiti real */
#galeria {
    position: relative;
}
#galeria::before {
    content: '';
    position: absolute;
    inset: -4rem -4rem;
    background-image: var(--tex-graffiti);
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
}
#galeria > * { position: relative; z-index: 1; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px;
    gap: 1.5rem;
    grid-auto-flow: dense;
}

/* Lightbox Viewer */
#lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}
#lightbox-overlay.active {
    display: flex;
}
#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    transition: opacity 0.25s ease;
}
#lightbox-caption {
    color: #FFF5C2;
    font-family: var(--title-font);
    font-size: 1.1rem;
    margin-top: 1rem;
    text-align: center;
    opacity: 0.9;
}
#lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    padding: 0.2rem 0.6rem;
    transition: color 0.2s;
}
#lightbox-close:hover { color: #FE9C7C; }
#lightbox-prev,
#lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 100000;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}
#lightbox-prev { left: 0.75rem; }
#lightbox-next { right: 0.75rem; }
#lightbox-prev:hover,
#lightbox-next:hover { background: rgba(254, 156, 124, 0.4); }
#lightbox-counter {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    margin-top: 0.4rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-item.tall {
    grid-row: span 2;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
        gap: 1rem;
    }
    .gallery-item.wide,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(39, 80, 95, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #FFFFFF;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-family: var(--title-font);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    font-weight: 300;
}

/* SECTION 5: CONTACTO */
/* Sección Contacto — textura de muro oscuro con panel */
#contacto {
    position: relative;
}
#contacto::before {
    content: '';
    position: absolute;
    inset: -4rem -4rem;
    background-image: var(--tex-dark-panel);
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
    border-radius: 20px;
}
#contacto > * { position: relative; z-index: 1; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Principios y Valores Cards — kept for legacy selectors */
.cards-headline {
    text-align: center;
    font-family: var(--title-font);
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    color: var(--text-title-color);
}

/* ═══════════════════════════════════════════════════════════════
   EDITORIAL PRINCIPIOS & VALORES — DISEÑO PREMIUM
   ═══════════════════════════════════════════════════════════════ */

.editorial-pv-section {
    margin-bottom: 5rem;
}

/* Eyebrow (over-heading) */
.editorial-eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.eyebrow-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--brand-medium-blue), transparent);
    opacity: 0.6;
}
.eyebrow-text {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-light-blue);
    white-space: nowrap;
}

/* Section headline */
.editorial-pv-headline {
    font-family: var(--title-font);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--brand-pale-yellow);
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}
.editorial-pv-headline em {
    font-style: italic;
    color: var(--brand-salmon);
    font-weight: 900;
}

/* Two-column grid with a thin divider column */
.editorial-pv-grid {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 0 3.5rem;
    align-items: start;
}

/* Vertical divider */
.editorial-pv-divider {
    background: linear-gradient(to bottom, transparent, var(--brand-pale-yellow) 20%, var(--brand-pale-yellow) 80%, transparent);
    opacity: 0.25;
    align-self: stretch;
}

/* Column */
.editorial-pv-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Column header */
.editorial-col-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 245, 194, 0.2);
}
.editorial-col-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--brand-pale-yellow);
    background-color: #121E25 !important;
}
.editorial-col-title {
    font-family: var(--title-font);
    font-size: 1.35rem;
    font-weight: 850;
    letter-spacing: -0.01em;
    color: var(--brand-pale-yellow);
}

/* ── PRINCIPIOS: Numbered editorial list (Grid 2 por fila) ── */
.editorial-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.editorial-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    background: #121E25;
    border-radius: 4px;
    border: 1px solid rgba(255, 245, 194, 0.15);
    cursor: default;
    transition: all 0.22s ease;
    overflow: hidden;
}
.editorial-list-item:hover {
    background: #121E25;
    border-color: var(--brand-pale-yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.eli-num {
    font-size: 0.9rem;
    font-weight: 900;
    font-family: var(--title-font);
    color: var(--brand-pale-yellow);
    min-width: 22px;
    flex-shrink: 0;
}

.eli-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    transition: color 0.2s ease;
}

@media (max-width: 600px) {
    .editorial-list {
        grid-template-columns: 1fr;
    }
}

/* ── VALORES: Letter mosaic grid ── */
.editorial-values-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.evm-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1rem;
    background: #121E25;
    border-radius: 4px;
    border: 1px solid rgba(255, 245, 194, 0.15);
    cursor: default;
    transition: all 0.22s ease;
    overflow: hidden;
}
.evm-item:hover {
    background: #121E25;
    border-color: var(--brand-pale-yellow);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.evm-letter {
    font-family: var(--title-font);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.9;
    font-style: italic;
    min-width: 22px;
}

.evm-label {
    font-family: var(--body-font);
    font-size: 0.875rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
}

/* ── Responsive editorial grid ── */
@media (max-width: 960px) {
    .editorial-pv-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .editorial-pv-divider {
        display: none;
    }
}
@media (max-width: 480px) {
    .editorial-values-mosaic {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CON QUIÉN TRABAJAMOS
   ═══════════════════════════════════════════════════════════════ */

.con-quien-section {
    margin-bottom: 5rem;
}

.con-quien-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 660px;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 400;
}

.con-quien-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cq-card {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 4px;
    padding: 2.2rem 1.8rem 1.8rem;
    border: 1.5px solid var(--brand-pale-yellow);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    overflow: hidden;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
    cursor: default;
}

.cq-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(255, 245, 194, 0.1);
}

/* Coloured top accent bar disabled */
.cq-accent {
    display: none !important;
}

/* Icon wrapper */
.cq-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #121E25;
    border: 1px solid var(--brand-pale-yellow);
    flex-shrink: 0;
    transition: all 0.3s ease;
    color: var(--brand-pale-yellow) !important;
}
.cq-card:hover .cq-icon-wrap {
    background: var(--brand-pale-yellow);
    color: #121E25 !important;
}

.cq-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cq-title {
    font-family: var(--title-font);
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--brand-pale-yellow);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.cq-desc {
    font-size: 0.9rem;
    color: #FFFFFF;
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 960px) {
    .con-quien-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 600px) {
    .con-quien-grid {
        grid-template-columns: 1fr;
    }
}

.contact-info-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.contact-icon {
    font-size: 1.8rem;
    background-color: var(--bg-secondary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.contact-detail-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-detail-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--brand-teal);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background-color: var(--brand-salmon);
    transform: translateY(-3px);
}

/* Contact Form Styling */
.contact-form-block {
    background-color: var(--bg-secondary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-salmon);
    box-shadow: 0 0 0 3px rgba(254, 156, 124, 0.25);
}

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

.form-submit-btn {
    width: 100%;
    background-color: var(--brand-salmon);
    color: #FFFFFF;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--body-font);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(254, 156, 124, 0.3);
    transition: all 0.3s ease;
}

.form-submit-btn:hover {
    background-color: var(--brand-rose);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(201, 103, 106, 0.4);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.form-message.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Footer styles */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    margin-top: 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    width: 50px;
    height: auto;
}

.footer-brand {
    font-family: var(--title-font);
    font-size: 1.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* KEYFRAMES ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .main-content {
        padding: 3rem 2rem;
    }
    .hero-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 992px) {
    .header-top-bar {
        padding: 0.8rem 2.5rem 0.8rem 1.5rem;
    }
    
    .header-brand-name {
        font-size: 1.15rem;
    }
    
    .horizontal-nav {
        max-height: 600px;
    }
    
    .nav-container {
        padding: 0.8rem 1.5rem;
        gap: 0.8rem;
    }
    
    .horizontal-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .horizontal-nav a::after {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 3rem 1.5rem 1.5rem 1.5rem;
        margin-top: 75px;
    }
    
    .intro-grid,
    .tab-grid,
    .principles-grid,
    .transparency-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-form-block {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }
    
    .form-control {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .intro-img-block,
    .tab-panel-img {
        height: 320px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item.right {
        left: 0;
    }
    
    .timeline-item::after {
        left: 21px;
        right: auto;
    }
    
    .timeline-item.right::after {
        left: 21px;
    }
    
    .impact-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .header-top-bar {
        padding: 0.8rem 1.8rem 0.8rem 0.75rem;
        height: 70px;
    }
    
    .header-logo {
        flex-shrink: 1;
        min-width: 0;
    }
    
    .header-logo img {
        height: 56px;
        max-width: 180px;
        object-fit: contain;
    }
    
    .header-brand-name {
        display: none !important;
    }
    
    .header-controls {
        gap: 0.4rem;
        flex-shrink: 0;
        position: absolute !important;
        right: 1.8rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 99999 !important;
    }
    
    #auth-header-btn {
        padding: 0.35rem 0.65rem !important;
        font-size: 0.75rem !important;
    }
    
    .theme-toggle-btn {
        display: none !important;
    }
    
    .menu-toggle-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

    .main-content {
        margin-top: 70px;
        padding: 2rem 1rem 1rem 1rem;
        gap: 4rem;
    }
    
    .hero-content {
        padding: 2rem;
    }
    
    .hero-tagline {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
    
    .brush-title {
        font-size: 2.3rem;
    }
    
    .tabs-content {
        padding: 1.2rem;
    }
    
    .transparency-docs {
        grid-template-columns: 1fr;
    }
    
    footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Context Block in Lines of Action */
.intro-context-block {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 3rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.context-desc-box {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 245, 194, 0.2);
    padding-bottom: 2rem;
}

.context-desc-box .section-subtitle {
    font-family: var(--title-font);
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-pale-yellow);
    margin-bottom: 1rem;
    display: inline-block;
}

.context-columns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .context-columns-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.methodology-box h3,
.allies-box h3 {
    font-family: var(--title-font);
    font-size: 1.3rem;
    font-weight: 850;
    margin-bottom: 1.2rem;
    color: var(--brand-pale-yellow);
}

.allies-sticker-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.ally-sticker {
    background-color: var(--bg-primary);
    border: 1px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: default;
    transition: all 0.2s ease;
}

.ally-sticker:hover {
    transform: translateY(-2px);
    background-color: var(--brand-salmon);
    color: #FFFFFF;
    border-color: var(--brand-salmon);
}

/* Identity Grid in History Page */
.identity-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

@media (max-width: 992px) {
    .identity-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.vision-card {
    background-color: var(--bg-secondary);
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 245, 194, 0.1);
}

.vision-card h3 {
    font-family: var(--title-font);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 1.2rem;
    color: var(--brand-pale-yellow);
}

.experience-column {
    display: flex;
    flex-direction: column;
}

.experience-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

@media (max-width: 600px) {
    .experience-list-grid {
        grid-template-columns: 1fr;
    }
}

.exp-badge {
    background-color: #121E25;
    border: 1px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 0.85rem 1.2rem;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.22s ease;
    cursor: default;
    color: #FFFFFF;
}

.exp-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    border-color: var(--brand-pale-yellow);
}

.exp-badge span {
    font-size: 1.2rem;
}

/* ──────────────────────────────────────────────────────────────────────────
   DISEÑO EDITORIAL 2026 - RE-ESTRUCTURACIÓN COMPLETA (SLIDES MOCKUP)
   ────────────────────────────────────────────────────────────────────────── */

/* 1. EDITORIAL HERO (Slide 5 Vibe) */
.editorial-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    min-height: 85vh;
    padding: 7rem 3rem 4rem 3rem;
    align-items: center;
    position: relative;
    background-color: var(--bg-primary);
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-visuals {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    height: 500px;
    width: 100%;
}

.hero-img-large-wrap {
    grid-column: 1 / 10;
    grid-row: 1 / 11;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.hero-img-large-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-small-wrap {
    grid-column: 6 / 13;
    grid-row: 6 / 13;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
    z-index: 3;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.hero-img-small-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 4;
}

.hero-editorial-brand-block {
    background-color: #121E25;
    padding: 3rem;
    border: 1.5px solid var(--brand-pale-yellow);
    box-shadow: 10px 10px 0px rgba(255, 245, 194, 0.05);
    position: relative;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.hero-giant-text {
    font-family: var(--title-font);
    font-size: 5.2rem;
    font-weight: 900;
    line-height: 0.85;
    color: var(--brand-pale-yellow);
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-giant-word {
    display: block;
}

.hero-giant-word-offset {
    display: block;
    text-align: right;
    margin-right: 1.5rem;
}

.hero-capsule-row {
    display: flex;
    margin-top: 2rem;
    border: 1px solid var(--brand-pale-yellow);
    align-self: flex-start;
    border-radius: 4px;
    overflow: hidden;
}

.hero-capsule-yellow {
    background-color: var(--brand-pale-yellow);
    color: #121E25;
    font-weight: 900;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--title-font);
    text-transform: uppercase;
}

.hero-capsule-dark {
    background-color: #121E25;
    color: var(--brand-pale-yellow);
    font-weight: 800;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-family: var(--title-font);
}

.hero-slogan-bottom {
    font-family: var(--body-font);
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 245, 194, 0.15);
    padding-top: 1.5rem;
}

/* 2. QUIENES SOMOS (Slide 2 Vibe) */
.quienes-somos-redesign {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
    align-items: flex-start;
}

.quienes-somos-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.quienes-card {
    background-color: #121E25;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 0 0 2rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.quienes-card-tab {
    height: 12px;
    background-color: var(--brand-pale-yellow);
    width: 60%;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
}

.quienes-card-img {
    height: 250px;
    width: calc(100% - 2.5rem);
    margin: 1.5rem auto 1.25rem auto;
    border: 1px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
}

.quienes-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.quienes-card-body {
    padding: 0 1.25rem;
}

.quienes-card-title {
    font-family: var(--title-font);
    font-size: 1.25rem;
    font-weight: 850;
    color: var(--brand-pale-yellow);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.quienes-card-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #FFFFFF;
    font-weight: 300;
}

.quienes-somos-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.historia-mural-img {
    grid-column: span 2;
}

.quienes-somos-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.quienes-somos-mural-img {
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1.5rem;
    height: 320px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.quienes-somos-mural-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* 3. MISIÓN (Slide 3 Vibe) */
.mision-redesign {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    margin: 4rem 0;
    align-items: center;
}

.mision-visual {
    height: 540px;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.mision-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mision-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mision-item {
    margin-top: 1rem;
}

.mision-pill-header {
    background-color: var(--brand-pale-yellow);
    color: #121E25;
    font-family: var(--title-font);
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0.5rem 2rem;
    display: inline-block;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mision-item-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

/* 4. PROPÓSITO (Slide 5 Vibe) */
.proposito-redesign {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3.5rem;
    align-items: center;
    padding: 2rem 0;
}

.proposito-visual {
    height: 380px;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
}

/* 5. VISIÓN (Slide 4 Vibe) */
.vision-redesign {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 245, 194, 0.2);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    margin: 4rem 0;
}

.vision-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Imagenes utiles/ARTE URBANO.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(80%) brightness(15%);
    z-index: 1;
}

.vision-container-box {
    position: relative;
    z-index: 2;
    background-color: rgba(18, 30, 37, 0.9);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--brand-pale-yellow);
    padding: 3.5rem;
    max-width: 750px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    border-radius: 4px;
}

.vision-subtitle {
    font-family: var(--title-font);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--brand-pale-yellow);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.vision-text {
    font-size: 1.05rem;
    line-height: 1.72;
    color: #FFFFFF;
    font-weight: 300;
}

/* 5. TRANSPARENCIA (Slide 1 Vibe) */
.transparencia-page-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 3rem 4rem 3rem;
    overflow: hidden;
}

.transparencia-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Imagenes utiles/ARTE URBANO (4).jpg');
    background-size: cover;
    background-position: center 30%;
    filter: brightness(25%) contrast(110%);
    z-index: 1;
}

.transparencia-content-box {
    position: relative;
    z-index: 2;
    background-color: #121E25;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 3.5rem 3rem;
    max-width: 780px;
    margin: 2rem auto 0 auto;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.transparencia-box-header {
    font-family: var(--title-font);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--brand-pale-yellow);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.transparencia-box-text {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #FFFFFF;
    font-weight: 300;
}

/* Adaptabilidad Responsiva para todos los elementos */
@media (max-width: 992px) {
    .editorial-hero {
        grid-template-columns: 1fr;
        padding-top: 8rem;
        gap: 3rem;
    }
    
    .hero-text-side {
        order: -1; /* Muestra el bloque del título y texto en la parte superior */
    }
    
    .hero-visuals {
        height: 380px;
    }
    
    .hero-giant-text {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .quienes-somos-redesign {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .quienes-somos-cards {
        grid-template-columns: 1fr; /* Stack cards vertically on tablet/mobile */
        gap: 2rem;
    }
    
    .historia-mural-img {
        grid-column: span 1 !important;
    }
    
    .quienes-somos-mural-img {
        height: 280px !important;
    }
    
    .quienes-somos-mural-img img {
        object-position: center center;
    }
    
    .mision-redesign {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .mision-visual {
        height: 260px;
    }
    
    .proposito-redesign {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .proposito-visual {
        height: 260px;
    }
    
    .vision-redesign {
        min-height: auto;
        padding: 2rem 0.5rem;
        margin: 2rem 0;
    }
}

@media (max-width: 600px) {
    .editorial-hero {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .quienes-somos-cards {
        grid-template-columns: 1fr;
    }
    
    .hero-editorial-brand-block {
        padding: 1.5rem; /* Reducir padding en móviles para ganar espacio horizontal */
    }
    
    .hero-giant-text {
        font-size: clamp(2.1rem, 9vw, 3rem);
        letter-spacing: -1px;
    }
    
    .hero-slogan-bottom {
        font-size: 1.15rem;
        padding-top: 1rem;
    }
    
    .hero-capsule-row {
        flex-direction: column;
        align-self: stretch;
    }
    
    .hero-capsule-yellow, .hero-capsule-dark {
        text-align: center;
        width: 100%;
    }
    
    .transparencia-content-box {
        padding: 2rem 1.25rem;
        max-width: 100%;
        margin: 1rem 0 0 0;
        border-radius: 8px;
    }
    
    .transparencia-box-text {
        font-size: 1rem;
    }
    
    .vision-container-box {
        padding: 1.75rem 1.25rem;
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }
}

/* History Page Redesign Layouts */
.identity-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.experience-split-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.experience-visual-wrap {
    height: 520px;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.experience-visual-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .identity-cards-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .experience-split-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .experience-visual-wrap {
        height: 380px;
    }
}

/* Qué Hacemos Slide-style Layout (Alternating boxes & photos) */
.que-hacemos-row {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
    margin: 3rem 0 5rem 0;
    align-items: flex-start;
}

.que-hacemos-left {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.que-hacemos-left h2 {
    font-family: var(--title-font);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-pale-yellow);
    margin: 0;
    line-height: 1.2;
}

.que-hacemos-left p {
    font-size: 1rem;
    line-height: 1.65;
    color: #FFFFFF;
    font-weight: 300;
}

.que-hacemos-left-img {
    height: 340px;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.que-hacemos-left-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qh-box-text-left {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 2rem;
    background-color: var(--bg-secondary);
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qh-box-image-left {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: center;
    border: 1.5px solid var(--brand-pale-yellow);
    border-radius: 4px;
    padding: 2rem;
    background-color: var(--bg-secondary);
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qh-box-title {
    font-family: var(--title-font);
    font-size: 1.35rem;
    font-weight: 850;
    color: var(--brand-pale-yellow);
    margin-bottom: 0.75rem;
}

.qh-box-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #FFFFFF;
    font-weight: 300;
}

.qh-box-img {
    height: 180px;
    border: 1px solid var(--brand-pale-yellow);
    border-radius: 4px;
    overflow: hidden;
}

.qh-box-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .que-hacemos-row {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .qh-box-text-left {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .qh-box-image-left {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .qh-box-image-left .qh-box-img {
        order: -1; /* Muestra la imagen primero en mobile */
    }
}

/* Vertical Quiénes Somos Cards layout for Homepage visual alignment */
.quienes-somos-cards-vertical {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}



