/* ============================================================
   VAEA / EXODUS & RESILIENCE — Venezuela Chapter
   Main Stylesheet · v3.0 · Bilingual
   ============================================================ */

/* 1 — CSS VARIABLES */
:root {
  --ink:        #0B0B0B;
  --ink-mid:    #4A4540;
  --ink-light:  #8A837C;
  --ivory:      #FAF8F4;
  --ivory-dark: #F0EBE3;
  --white:      #FFFFFF;
  --accent:     #B8432A;
  --accent-dk:  #8F3320;
  --border:     rgba(11,11,11,0.10);
  --border-md:  rgba(11,11,11,0.18);
  --shadow:     0 2px 24px rgba(11,11,11,0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --max-w:   1280px;
  --px:      clamp(20px, 5vw, 64px);
  --section: clamp(64px, 8vw, 112px);
  --radius:  3px;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  0.18s;
  --t-med:   0.32s;
}

/* 2 — RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* 3 — TYPOGRAPHY */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.75; color: var(--ink-mid); }
strong { color: var(--ink); font-weight: 600; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

/* 4 — LAYOUT */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.section { padding-block: var(--section); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }

/* ============================================================
   5 — HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--px);
  background: transparent;
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  background: var(--ivory);
  box-shadow: 0 1px 0 var(--border);
}

/* ============================================================
   DUAL LOGO BRAND — VAEA + E&R
   ============================================================ */
.brand.brand-dual {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
  transition: opacity var(--t-fast);
}
.brand.brand-dual:hover { opacity: 0.76; }

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-logo img, .brand-logo svg {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-logo-vaea img, .brand-logo-vaea svg { width: 92px; max-height: 34px; }
.brand-logo-er  img, .brand-logo-er  svg  { width: 42px; max-height: 34px; }

.brand-separator {
  width: 1px;
  height: 26px;
  background: rgba(250,248,244,0.28);
  display: inline-block;
  flex-shrink: 0;
  transition: background var(--t-med) var(--ease);
}
.site-header.is-scrolled .brand-separator { background: rgba(11,11,11,0.18); }

/* Logo light/dark switching */
.logo-dark  { display: none; }
.logo-light { display: block; }

.site-header.is-scrolled .logo-light { display: none; }
.site-header.is-scrolled .logo-dark  { display: block; }

/* SVG fallback color switching */
.brand-svg-light { display: block; }
.brand-svg-dark  { display: none; }
.site-header.is-scrolled .brand-svg-light { display: none; }
.site-header.is-scrolled .brand-svg-dark  { display: block; }

/* Text fallback brand (when no logo images loaded) */
.brand-text-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-vaea-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--t-med) var(--ease);
}
.brand-sep-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--t-med) var(--ease);
}
.brand-er-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  transition: color var(--t-med) var(--ease);
}
.site-header.is-scrolled .brand-vaea-text { color: var(--ink); }
.site-header.is-scrolled .brand-sep-text  { color: var(--ink-light); }
.site-header.is-scrolled .brand-er-text   { color: var(--ink-mid); }

/* ============================================================
   6 — DESKTOP NAV
   ============================================================ */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.desktop-nav a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 6px 10px;
  border-radius: 2px;
  transition: color var(--t-fast), background var(--t-fast);
}
.desktop-nav a:hover { color: var(--white); background: rgba(255,255,255,0.08); }
.site-header.is-scrolled .desktop-nav a       { color: var(--ink-mid); }
.site-header.is-scrolled .desktop-nav a:hover { color: var(--ink); background: var(--ivory-dark); }
.desktop-nav a.active { color: var(--accent) !important; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.language-switch {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 2px;
  transition: all var(--t-fast);
}
.language-switch:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }
.site-header.is-scrolled .language-switch { color: var(--ink-mid); border-color: var(--border-md); }
.site-header.is-scrolled .language-switch:hover { color: var(--ink); border-color: var(--ink); }

.btn-support {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 2px;
  transition: background var(--t-fast);
}
.btn-support:hover { background: var(--accent-dk); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: all var(--t-fast);
}
.site-header.is-scrolled .menu-toggle span { background: var(--ink); }

/* ============================================================
   7 — MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.7);
  padding: 4px 0;
  transition: color var(--t-fast);
}
.mobile-menu nav a:hover { color: var(--white); }
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: var(--px);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 8px;
  transition: color var(--t-fast);
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu-close:hover { color: var(--white); }

/* ============================================================
   8 — HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  background: var(--ink);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-bg img, .hero-bg video {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.35;
}
.hero-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,11,0.92) 0%, rgba(11,11,11,0.4) 50%, rgba(11,11,11,0.2) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 120px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 400; line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 2rem; max-width: 16ch;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65; color: rgba(255,255,255,0.72);
  max-width: 52ch; margin-bottom: 2.5rem;
}
.hero-actions {
  display: flex; align-items: center;
  gap: 16px; margin-bottom: 3.5rem; flex-wrap: wrap;
}
.hero-metrics {
  display: flex; gap: 40px;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; color: var(--white);
  line-height: 1; margin-bottom: 4px;
}
.hero-metric span {
  font-family: var(--font-mono);
  font-size: 0.66rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}

/* ============================================================
   9 — PAGE HERO
   ============================================================ */
.page-hero {
  padding-top: 140px;
  padding-bottom: clamp(40px, 6vw, 72px);
  background: var(--ink);
}
.page-hero .kicker { color: rgba(255,255,255,0.5); }
.page-hero h1 { color: var(--white); max-width: 18ch; }
.page-intro {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7; color: rgba(255,255,255,0.65);
  max-width: 58ch; margin-top: 1.5rem;
}

/* ============================================================
   10 — BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.7rem;
  font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 13px 24px; border-radius: 2px;
  transition: all var(--t-fast); text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dk); }
.btn-secondary { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.25); }
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #2a2420; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border-md); }
.btn-outline:hover { border-color: var(--ink); }

/* ============================================================
   11 — EDITORIAL SECTIONS
   ============================================================ */
.editorial { padding-block: var(--section); }
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.editorial-label { position: sticky; top: 96px; }
.editorial-label h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.1; }
.editorial-body h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
  margin-top: 2.5rem; margin-bottom: 0.75rem;
}
.editorial-body h3:first-child { margin-top: 0; }
.editorial-body p { margin-bottom: 1.2rem; }
.editorial-body h4 {
  font-family: var(--font-mono); font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-top: 2rem; margin-bottom: 0.5rem;
}
.editorial-body ul { padding-left: 1.2rem; list-style: disc; }
.editorial-body ul li {
  font-size: 0.96rem; line-height: 1.7; color: var(--ink-mid); margin-bottom: 0.4rem;
}

/* ============================================================
   12 — CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 48px;
}
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.card:hover { border-color: var(--border-md); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-num {
  font-family: var(--font-mono); font-size: 0.65rem;
  font-weight: 600; letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: 1rem; display: block;
}
.card h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); margin-bottom: 0.75rem; line-height: 1.2; }
.card p { font-size: 0.92rem; line-height: 1.65; }
.card-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.card-dark .card-num { color: var(--accent); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: rgba(255,255,255,0.65); }

/* ============================================================
   13 — STAT BAND
   ============================================================ */
.stat-band { background: var(--ink); padding-block: clamp(48px, 6vw, 80px); }
.stat-band .kicker { color: rgba(255,255,255,0.45); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0; border-left: 1px solid rgba(255,255,255,0.1); margin-top: 40px;
}
.stat-item { padding: 28px 32px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-n {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  font-weight: 400; color: var(--white);
  line-height: 1; display: block; margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-mono); font-size: 0.67rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45);
}

/* ============================================================
   14 — QUOTE BLOCK
   ============================================================ */
.quote-block { padding-block: var(--section); background: var(--ivory-dark); }
.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400; line-height: 1.2; letter-spacing: -0.02em;
  color: var(--ink); max-width: 36ch;
}
.quote-text em { font-style: italic; color: var(--accent); }
.quote-source {
  margin-top: 1.5rem; font-family: var(--font-mono);
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-light);
}

/* ============================================================
   15 — FUNDERS / FOUNDATIONS
   ============================================================ */
.funders-section { padding-block: var(--section); background: var(--ivory-dark); }
.funder-group { margin-top: 40px; }
.funder-group-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-light);
  border-bottom: 1px solid var(--border); padding-bottom: 8px; margin-bottom: 20px;
}
.funder-list { display: flex; flex-wrap: wrap; gap: 10px; }
.funder-tag {
  font-family: var(--font-mono); font-size: 0.67rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  background: var(--white); border: 1px solid var(--border); color: var(--ink-mid);
  transition: all var(--t-fast);
}
.funder-tag.priority { border-color: var(--accent); color: var(--accent); background: rgba(184,67,42,0.05); }

/* ============================================================
   16 — TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 48px;
}
.team-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.team-role { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.team-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; color: var(--ink); margin-bottom: 12px; line-height: 1.1; }
.team-org { font-family: var(--font-mono); font-size: 0.67rem; color: var(--ink-light); letter-spacing: 0.06em; margin-bottom: 12px; text-transform: uppercase; }
.team-bio { font-size: 0.9rem; line-height: 1.65; color: var(--ink-mid); }

/* ============================================================
   17 — SDG PILLARS
   ============================================================ */
.sdg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 40px;
}
.sdg-card { padding: 24px; border-left: 3px solid var(--accent); background: var(--white); }
.sdg-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 400; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.sdg-title { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.sdg-desc { font-size: 0.82rem; line-height: 1.6; color: var(--ink-mid); }

/* ============================================================
   18 — OBSERVATORY ENTRIES
   ============================================================ */
.obs-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0;
}
.filter-btn {
  font-family: var(--font-mono); font-size: 0.66rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border: 1px solid var(--border-md);
  border-radius: 100px; background: transparent; color: var(--ink-mid);
  cursor: pointer; transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.obs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px; margin-top: 32px;
}
.obs-entry {
  padding: 28px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--white);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.obs-entry:hover { border-color: var(--accent); transform: translateY(-2px); }
.obs-entry h4 {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 500; color: var(--ink); line-height: 1.2; margin-bottom: 10px;
}
.obs-meta {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: 12px; line-height: 1.6;
}
.obs-entry p { font-size: 0.9rem; line-height: 1.65; }
.obs-entry a {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.67rem;
  font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}
.obs-entry a:hover { text-decoration: underline; }
.obs-entry.hidden { display: none; }

/* ============================================================
   19 — SUPPORT TIERS
   ============================================================ */
.support-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 40px;
}
.tier-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.tier-card.featured { border-color: var(--accent); }
.tier-level { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.tier-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--ink); margin-bottom: 16px; line-height: 1; }
.tier-benefits { list-style: none; margin-bottom: 20px; }
.tier-benefits li { font-size: 0.88rem; color: var(--ink-mid); padding: 6px 0; border-bottom: 1px solid var(--border); line-height: 1.5; }
.tier-benefits li:last-child { border: none; }

/* ============================================================
   20 — CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px; align-items: start;
}
.contact-block { margin-bottom: 2rem; }
.contact-label { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-light); margin-bottom: 4px; }
.contact-value { font-size: 1rem; color: var(--ink); }
.contact-value a { color: var(--accent); text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mid); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-md);
  border-radius: 2px; font-family: var(--font-body); font-size: 0.92rem;
  color: var(--ink); background: var(--white); transition: border-color var(--t-fast); outline: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 120px; }

/* ============================================================
   21 — FOOTER WITH LOGOS
   ============================================================ */
.site-footer { background: var(--ink); padding-block: clamp(40px, 6vw, 72px); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px; align-items: start;
}

/* Footer logos */
.footer-logos {
  display: flex; align-items: center;
  gap: 18px; margin-bottom: 22px;
}
.footer-logo { display: block; width: auto; height: auto; object-fit: contain; }
.footer-logo-vaea { width: 120px; max-height: 44px; }
.footer-logo-er   { width: 58px;  max-height: 58px; }

/* Footer text */
.footer-brand { max-width: 720px; }
.footer-program { font-size: 0.9rem; color: rgba(250,248,244,0.74); margin: 0 0 6px 0; }
.footer-er { font-size: 0.85rem; color: rgba(250,248,244,0.6); margin: 0 0 12px 0; font-style: italic; }
.footer-legal {
  font-size: 0.78rem; color: rgba(250,248,244,0.45);
  border-top: 1px solid rgba(250,248,244,0.12);
  padding-top: 12px; margin-top: 12px;
}
.footer-contact { margin-top: 16px; font-size: 0.85rem; }
.footer-contact a { color: rgba(250,248,244,0.65); text-decoration: underline; transition: color var(--t-fast); }
.footer-contact a:hover { color: var(--ivory); }

/* Footer nav */
.footer-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px;
}
.footer-nav a {
  font-family: var(--font-mono); font-size: 0.66rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); transition: color var(--t-fast); padding: 3px 0;
}
.footer-nav a:hover { color: rgba(255,255,255,0.85); }

/* ============================================================
   22 — REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   23 — UTILITY
   ============================================================ */
.accent { color: var(--accent); }
.bg-dark { background: var(--ink); }
.bg-light { background: var(--ivory-dark); }
.bg-white { background: var(--white); }
.text-muted { color: var(--ink-mid); }
.divider { border: none; border-top: 1px solid var(--border); margin-block: 32px; }
.badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
  background: rgba(184,67,42,0.1); color: var(--accent); border: 1px solid rgba(184,67,42,0.2);
}
.inline-link { color: var(--accent); text-decoration: underline; }
.inline-link:hover { color: var(--accent-dk); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ============================================================
   24 — RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .brand-logo-vaea img, .brand-logo-vaea svg { width: 78px; max-height: 30px; }
  .brand-logo-er  img, .brand-logo-er  svg  { width: 36px; max-height: 30px; }
  .brand-logo-group { gap: 10px; }
  .brand-separator { height: 22px; }
}

@media (max-width: 980px) {
  .desktop-nav { display: none !important; }
  .menu-toggle { display: flex; }
  .brand-logo-vaea img, .brand-logo-vaea svg { width: 74px; max-height: 30px; }
  .brand-logo-er  img, .brand-logo-er  svg  { width: 34px; max-height: 30px; }
  .brand-logo-group { gap: 9px; }
  .brand-separator { height: 20px; }
}

@media (min-width: 981px) {
  .menu-toggle { display: none !important; }
  .mobile-menu { display: none !important; }
}

@media (max-width: 1024px) {
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-label { position: static; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .obs-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .hero-metrics { gap: 24px; flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .support-tiers { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
  .footer-logos { gap: 14px; }
  .footer-logo-vaea { width: 104px; max-height: 40px; }
  .footer-logo-er   { width: 52px;  max-height: 52px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .brand-logo-vaea img, .brand-logo-vaea svg { width: 66px; max-height: 26px; }
  .brand-logo-er  img, .brand-logo-er  svg  { width: 30px; max-height: 26px; }
  .brand-logo-group { gap: 8px; }
  .brand-separator { height: 18px; }
}
/* ============================================================
   FIX FINAL — LOGOS ORIGINALES VAEA + E&R
   ============================================================ */

.brand.brand-dual {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
}

.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-logo img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Logo VAEA */
.brand-logo-vaea img {
  width: 112px;
  max-height: 38px;
}

/* Logo E&R */
.brand-logo-er img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-separator {
  width: 1px;
  height: 30px;
  background: rgba(250, 248, 244, 0.32);
  display: inline-block;
}

/* Oculta cualquier marca textual anterior */
.brand-vaea,
.brand-sep,
.brand-er,
.brand-identity,
.brand-program,
.brand-mark,
.brand-name,
.logo-light,
.logo-dark {
  display: none !important;
}

/* Reactiva los logos correctos dentro del nuevo header */
.brand-dual .brand-logo,
.brand-dual .brand-logo img,
.brand-dual .brand-separator {
  display: inline-flex !important;
}

.site-header.is-scrolled .brand-separator {
  background: rgba(11, 11, 11, 0.2);
}

@media (max-width: 1100px) {
  .brand-logo-vaea img {
    width: 96px;
    max-height: 34px;
  }

  .brand-logo-er img {
    width: 36px;
    height: 36px;
  }

  .brand-logo-group {
    gap: 10px;
  }

  .brand-separator {
    height: 24px;
  }
}

@media (max-width: 768px) {
  .brand-logo-vaea img {
    width: 84px;
    max-height: 30px;
  }

  .brand-logo-er img {
    width: 32px;
    height: 32px;
  }

  .brand-logo-group {
    gap: 8px;
  }

  .brand-separator {
    height: 20px;
  }
}
/* ============================================================
   FINAL FOOTER LOGOS — ORIGINAL VAEA + E&R
   ============================================================ */

.footer-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.footer-logo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer-logo-vaea {
  width: 128px;
  max-height: 46px;
}

.footer-logo-er {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand {
  max-width: 720px;
}

.footer-program {
  font-size: 0.9rem;
  color: rgba(250, 248, 244, 0.78);
  margin: 0 0 6px 0;
}

.footer-er {
  font-size: 0.84rem;
  color: rgba(250, 248, 244, 0.66);
  font-style: italic;
  margin: 0 0 14px 0;
}

.footer-legal {
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(250, 248, 244, 0.58);
  border-top: 1px solid rgba(250, 248, 244, 0.16);
  padding-top: 14px;
  margin-top: 14px;
}

.footer-contact {
  margin-top: 20px;
  font-size: 0.85rem;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.footer-nav {
  display: grid;
  gap: 10px 40px;
}

.footer-nav a {
  color: rgba(250, 248, 244, 0.72);
  text-decoration: none;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-nav a:hover {
  color: var(--accent, #B8432A);
}

@media (max-width: 768px) {
  .footer-logos {
    gap: 14px;
    margin-bottom: 22px;
  }

  .footer-logo-vaea {
    width: 108px;
    max-height: 40px;
  }

  .footer-logo-er {
    width: 40px;
    height: 40px;
  }
}
/* ============================================================
   MOBILE FINAL FIX — HEADER, LOGOS, MENU
   ============================================================ */

/* Header base */
.site-header {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  box-sizing: border-box;
  z-index: 100;
}

/* Grupo de logos */
.brand.brand-dual {
  display: flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  max-width: 260px;
}

.brand-logo-group {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  line-height: 1 !important;
}

/* Logos desktop */
.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}

.brand-logo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
}

.brand-logo-vaea img {
  width: 104px !important;
  max-height: 34px !important;
}

.brand-logo-er img {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
}

.brand-separator {
  width: 1px !important;
  height: 28px !important;
  background: rgba(250, 248, 244, 0.32) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* Ocultar marcas textuales antiguas */
.brand-vaea,
.brand-sep,
.brand-er,
.brand-identity,
.brand-program,
.brand-mark,
.brand-name {
  display: none !important;
}

/* Desktop */
@media (min-width: 981px) {
  .desktop-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important;
  }

  .menu-toggle {
    display: none !important;
  }

  .mobile-menu {
    display: none !important;
  }
}

/* Mobile */
@media (max-width: 980px) {
  .site-header {
    min-height: 68px !important;
    padding: 14px 18px !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .language-switch,
  .btn-support,
  .support-link {
    font-size: 0.68rem !important;
    padding: 8px 10px !important;
  }

  .menu-toggle {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(250, 248, 244, 0.24) !important;
    border-radius: 999px !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  .menu-toggle span {
    display: block !important;
    width: 16px !important;
    height: 1px !important;
    background: currentColor !important;
    margin: 3px 0 !important;
  }

  .brand.brand-dual {
    max-width: 160px !important;
  }

  .brand-logo-group {
    gap: 8px !important;
  }

  .brand-logo-vaea img {
    width: 76px !important;
    max-height: 26px !important;
  }

  .brand-logo-er img {
    width: 28px !important;
    height: 28px !important;
  }

  .brand-separator {
    height: 20px !important;
  }
}

/* Mobile muy pequeño */
@media (max-width: 420px) {
  .site-header {
    padding: 12px 14px !important;
  }

  .brand-logo-vaea img {
    width: 68px !important;
    max-height: 24px !important;
  }

  .brand-logo-er img {
    width: 26px !important;
    height: 26px !important;
  }

  .brand-logo-group {
    gap: 7px !important;
  }

  .brand-separator {
    height: 18px !important;
  }

  .btn-support,
  .support-link {
    display: none !important;
  }
}

/* ============================================================
   MOBILE MENU FINAL FIX
   ============================================================ */

.mobile-menu {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  background: #0B0B0B !important;
  color: #FAF8F4 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 32px 24px !important;
  box-sizing: border-box !important;
  transition: opacity 280ms ease, visibility 280ms ease !important;
}

.mobile-menu.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.mobile-menu nav {
  display: grid !important;
  gap: 14px !important;
}

.mobile-menu nav a {
  font-family: var(--font-display, Georgia, serif) !important;
  font-size: clamp(2.8rem, 12vw, 5.4rem) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.06em !important;
  color: #FAF8F4 !important;
  text-decoration: none !important;
}

.mobile-menu-close {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 2 !important;
  border: 1px solid rgba(250, 248, 244, 0.24) !important;
  background: transparent !important;
  color: #FAF8F4 !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
/* ============================================================
   COOKIE BANNER
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 10000;
  max-width: 720px;
  background: #0B0B0B;
  color: #FAF8F4;
  border: 1px solid rgba(250, 248, 244, 0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.28);
  padding: 20px;
  display: none;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  color: rgba(250, 248, 244, 0.74);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
}

.cookie-banner a {
  color: #FAF8F4;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions button {
  font-family: var(--font-mono, monospace);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 2px;
  border: 1px solid rgba(250, 248, 244, 0.24);
  color: #FAF8F4;
  background: transparent;
}

.cookie-actions button:first-child {
  background: #B8432A;
  border-color: #B8432A;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions button {
    flex: 1;
  }
}