/* ============ 1. DESIGN TOKENS & SYSTEM VARIABLES ============ */
:root {
    --paper: #FFFFFF;       /* Pure white page background */
    --paper-dim: #F3F3F1;   /* Soft warm-gray surface for content containers */
    --ink: #141414;         /* High-contrast structural near-black text */
    --ink-soft: #5C5C5C;    /* Muted gray optimized for prolonged reading */
    --red: #EA033F;         /* Statement crimson accent */
    --gold: #9C7A1E;        /* Deep gold tone used for secondary accents */
    --rule: rgba(20, 20, 20, 0.12);
    --maxw: 900px;
    --font-stack: 'Raleway', sans-serif;
}

/* ============ 2. BASE CORE RESET & SCROLL BEHAVIOR ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-stack);
    font-size: 11pt;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 100px;
}

/* Offsets anchors cleanly below the sticky navigation bar line */
section {
    scroll-margin-top: 90px;
    padding-top: 40px;
}

/* ============ 3. GLOBAL NAVIGATION HEADER LAYER ============ */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-logo {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 10pt;
    letter-spacing: 1px;
    color: var(--ink);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a.active {
    color: var(--red);
}

/* ============ 4. GENERAL SITE LAYOUT WRAPPERS ============ */
.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 60px 24px 0 24px;
}

/* ============ 5. REUSABLE SYSTEM TYPOGRAPHY ============ */
h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: .85;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    margin: 40px 0 24px 0;
    color: var(--ink);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: .9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin: 50px 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
}

h3 {
    font-size: 16pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 32px 0 16px 0;
    color: var(--gold);
}

p {
    font-weight: 400;
    font-size: 13pt;
    color: var(--ink-soft);
    margin-bottom: 20px;
    line-height: 1.6;
}

strong {
    font-weight: 700;
    color: var(--ink);
}

.eyebrow {
    font-size: 9pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--red);
    margin-bottom: 8px;
    display: block;
}

blockquote {
    margin: 40px 0;
    padding: 32px;
    background-color: var(--paper-dim);
    border-left: 3px solid var(--red);
    font-style: italic;
}

/* ============ 6. INTERACTIVE ACTIONS & ATOMS ============ */
.btn-container {
    margin: 24px 0;
}

.btn {
    display: inline-block;
    font-size: 9pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: var(--paper);
    background-color: var(--ink);
    padding: 14px 28px;
    margin-right: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--ink);
    transition: all 0.2s ease;
    cursor: pointer;
    font-family: var(--font-stack);
}

.btn-secondary {
    background-color: transparent;
    color: var(--ink);
    border: 1px solid var(--rule);
}

.btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* ============ 7. COMPONENT PATTERNS (PIPELINES, PROJECTS, FILTERING) ============ */
.pipeline-container {
    background-color: var(--paper-dim);
    padding: 32px;
    margin: 40px 0;
    border-left: 3px solid var(--gold);
}

.pipeline-step {
    font-size: 12pt;
    font-weight: 400;
    margin-bottom: 12px;
    color: var(--ink-soft);
}

.pipeline-step strong {
    font-weight: 900;
    color: var(--ink);
}

.project-block {
    margin-bottom: 40px;
    padding: 24px;
    background-color: var(--paper-dim);
    border: 1px solid var(--rule);
}

.project-list {
    padding-left: 20px;
    margin: 16px 0;
}

.project-list li {
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 10.5pt;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 32px 0 24px;
}

.filter-btn {
    font-size: 9pt;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--ink-soft);
    border: 1px solid var(--rule);
    padding: 10px 16px;
    cursor: pointer;
    font-family: var(--font-stack);
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.hidden {
    display: none !important;
}

/* ============ 8. POSTER HERO BLOCK SPECIFICS ============ */
.poster-hero {
    padding-top: 80px;
    margin-bottom: 60px;
}
.poster {
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.04em;
}
.poster .line { font-size: clamp(2.5rem, 7vw, 5.5rem); }
.poster .line-small { font-size: clamp(1.5rem, 4vw, 3rem); color: var(--ink-soft); }
.poster .red { color: var(--red); }
.poster .gold { color: var(--gold); }
.hero-attribution { font-weight: 700; text-transform: uppercase; font-size: 10pt; margin-top: 12px; color: var(--ink); }
.hero-meta { margin-top: 40px; }
.hero-subtitle { font-size: 12pt; font-weight: 900; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 16px; }

/* ============ 9. FOOTER LAYER ============ */
.footer {
    margin-top: 120px;
    padding: 40px 24px;
    border-top: 1px solid var(--rule);
    font-size: 9pt;
    font-weight: 400;
    color: var(--ink-soft);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer a {
    color: var(--ink-soft);
    text-decoration: none;
}

.footer a:hover {
    color: var(--gold);
}

/* ============ 10. ADAPTIVE MOBILE BREAKPOINTS ============ */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--rule);
    width: 38px;
    height: 34px;
    border-radius: 2px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.nav-toggle span { width: 16px; height: 1px; background: var(--ink); }

@media (max-width: 780px) {
    .nav-links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--paper);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--rule);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-links.open { max-height: 500px; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--rule); }
    .nav-toggle { display: flex; }
}

.nav-logo {
    display: inline-block;
    min-width: 180px; /* Forces space for your logo brand name */
    height: 20px;
}

.nav-logo img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain; /* Prevents stretching */
}
/* ============ WHITE CONTENT SECTIONS ============ */
.bg-white-canvas {
    background-color: var(--paper) !important;
    color: var(--ink);
    /* Safely breakouts container edges while retaining structural alignment */
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50% + 24px);
    padding-right: calc(50vw - 50% + 24px);
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Forces deep text elements inside a white block to follow strict high readability contrast */
.bg-white-canvas p {
    color: var(--ink-soft) !important;
}
.bg-white-canvas h2 {
    color: var(--ink) !important;
    border-bottom: 1px solid var(--rule);
}
.bg-white-canvas .pipeline-step {
    color: var(--ink-soft) !important;
}
.bg-white-canvas .pipeline-step strong {
    color: var(--ink) !important;
}

/* ============ STICKY NAVIGATION MENU ============ */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #CFB53B; /* Updated to your specified background color */
    border-bottom: 1px solid var(--rule);
    z-index: 1000;
    padding: 16px 0;
}

.nav-links a {
    color: #141414; /* Changed from var(--ink-soft) to dark black for high contrast */
    text-decoration: none;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #FFFFFF; /* Links change to clean white when hovered */
}

.nav-links a.active {
    color: #FFFFFF; /* Active page link turns white to stand out */
}

/* ============ STICKY NAVIGATION MENU ============ */
.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #CFB53B; /* Tu color de fondo gold */
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(20, 20, 20, 0.15);
    z-index: 1000;
    padding: 16px 0;
}

.nav-container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-logo {
    font-weight: 900;
    text-transform: uppercase;
    font-size: 10pt;
    letter-spacing: 1px;
    color: #141414; /* Logo en negro para contrastar */
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    flex-wrap: wrap;
}

.nav-links a {
    color: #141414; /* Texto en negro para que sea legible sobre el fondo oro */
    text-decoration: none;
    font-size: 9pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: #FFFFFF; /* Cambia a blanco al pasar el mouse */
}

.nav-links a.active {
    color: #FFFFFF; /* El link de la página activa se queda en blanco fijo */
}