/* ============================================================
   Alan Taveras Sepúlveda — site
   Design language cloned from the marianamazzucato.com layout:
   heavy sans-serif, coral accent, gray / navy / dark section bands.
   ============================================================ */

:root {
  /* Palette built around a soft mint/seafoam (#e3f3ec).
     "--coral" is kept as the token name for the accent, now jade-green. */
  --coral: #0f9d74;         /* jade accent — for dark backgrounds, fills, borders, large text */
  --coral-deep: #0b7c5b;    /* darker jade (hover) */
  --coral-text: #0a7250;    /* jade for small text on light backgrounds — WCAG AA (>=4.5:1 on white/mint) */
  --ink: #10241e;           /* dark teal-green — dark sections */
  --dark-bg: #10241e;
  --navy: #0e5140;          /* deep pine — the "Fomento" band */
  --gray-bg: #e3f3ec;       /* mint — light bands */
  --gray-band: #d6ede2;
  --gray-btn: #6f6f6f;
  --text: #1d2a25;
  --muted: #576b62;
  --muted-light: #a2bcb0;
  --line: rgba(16, 36, 30, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);

  --maxw: 1400px;
  --pad: clamp(1.25rem, 5vw, 6rem);
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.08; }

/* ---------- Keyboard accessibility ---------- */
/* Visible focus ring for keyboard users (mouse clicks don't trigger :focus-visible) */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On dark backgrounds the ring needs to read against the green — use white */
.section--dark :focus-visible,
.hero :focus-visible,
.contact :focus-visible,
.countdown-band :focus-visible,
.site-header :focus-visible {
  outline-color: #fff;
}

/* Skip link: hidden until focused, then pinned to the top-left */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--coral-deep);
  color: #fff;
  font-weight: 700;
  padding: 0.7em 1.2em;
  border-radius: 4px;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.section-wrap { max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.7em 1.5em;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-solid { background: var(--coral-deep); color: #fff; }
.btn-solid:hover { background: #095f46; }
.btn-outline { border-color: var(--coral); color: var(--coral-text); background: transparent; }
.btn-outline:hover { background: var(--coral); color: #fff; }
.btn-outline-light { border-color: var(--coral); color: #fff; background: transparent; }
.btn-outline-light:hover { background: var(--coral); }

/* ---------- Section headings ---------- */
.section-index {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-text);
}
.section--dark .section-index { color: var(--coral); }
.section-index--light { color: var(--coral); }
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0.7rem 0 0.8rem;
  max-width: 22ch;
}
.section-title--light { color: #fff; }
.section-intro { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0 0 clamp(2rem, 4vw, 3rem); }
.section-intro--light { color: rgba(255,255,255,0.82); }

.section { background: #fff; border-top: 1px solid var(--line); }
.section--gray { background: var(--gray-bg); }
.eyebrow { margin: 0; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-text); }
.section--navy { background: var(--navy); color: #fff; }

/* Dark green sections (same green as the footer) */
.section--dark { background: var(--ink); color: #fff; }
.section--dark .section-title { color: #fff; }
.section--dark .section-intro { color: rgba(255, 255, 255, 0.82); }
.section--dark .stack-layer {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-light);
}
.section--dark .stack-copy h3 { color: #fff; }
.section--dark .stack-copy p { color: rgba(255, 255, 255, 0.78); }
.section--dark .stack-layer:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(20, 20, 20, 0.5);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.7rem; }
.logo-mark { height: 44px; width: 44px; display: block; border-radius: 9px; }
.logo-word { display: flex; flex-direction: column; line-height: 1.05; font-weight: 800; letter-spacing: 0.03em; }
.logo-first { color: #fff; font-size: 1rem; }
.logo-last { color: var(--coral); font-size: 1rem; }

.header-right { display: flex; align-items: center; gap: 1.3rem; }
.lang-toggle {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  padding: 0.4em 0.75em;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.lang-toggle:hover { border-color: var(--coral); color: var(--coral); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { color: #fff; font-weight: 700; font-size: 1.02rem; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
/* Underline on hover/focus gives a non-color cue for colorblind users */
.main-nav ul a:hover, .main-nav ul a:focus-visible { color: var(--coral); text-decoration-color: currentColor; }
.social-cta { color: var(--coral); font-weight: 800; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: text-decoration-color 0.2s ease, color 0.2s ease; }
.social-cta:hover, .social-cta:focus-visible { color: #fff; text-decoration-color: currentColor; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 0.4rem; }
.nav-toggle span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 85% 12%, rgba(15,157,116,0.30) 0%, rgba(15,157,116,0) 60%),
    radial-gradient(120% 95% at 70% 42%, #2a5348 0%, #1c3d34 42%, #122b22 72%, #0b1a14 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9,22,17,0.82) 0%, rgba(9,22,17,0.42) 48%, rgba(9,22,17,0.08) 75%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 7rem var(--pad) 3rem;
}
.hero-eyebrow {
  margin: 0 0 1.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
}
.hero-quote {
  margin: 0;
  color: #fff;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  max-width: 18ch;
}
.hero-lede {
  margin: 1.6rem 0 2rem;
  max-width: 52ch;
  color: rgba(255,255,255,0.85);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-roles {
  margin-top: clamp(2.5rem, 10vh, 7rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 0.3em;
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.hero-roles span:not(:last-child)::after {
  content: "·";
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
  margin: 0 0.6em;
}
.hero-roles span:nth-child(1) { color: var(--coral); }
.hero-roles span:nth-child(2) { color: #fff; }
.hero-roles span:nth-child(3) { color: var(--coral); }

/* Desktop: the portrait is pinned to the right 46%; keep all hero text
   in the left column so nothing overlaps Alan's photo. */
@media (min-width: 821px) {
  .hero-content { padding-right: 50%; }
  /* Keep the roles on a single line, scaled down to fit the left column. */
  .hero-roles {
    flex-wrap: nowrap;
    white-space: nowrap;
    font-size: clamp(0.7rem, 1vw, 1.2rem);
    margin-top: clamp(2rem, 8vh, 5rem);
  }
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats { background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.stats-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.stat { border-left: 3px solid var(--coral); padding-left: 1.2rem; }
.stat-num { display: block; color: var(--ink); font-weight: 800; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; letter-spacing: -0.02em; }
.stat-num--sm { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.stat-label { display: block; margin-top: 0.7rem; font-size: 0.9rem; color: var(--muted); }
.stats-source { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(1.8rem, 4vw, 2.6rem); color: var(--muted); font-size: 0.82rem; font-style: italic; }

/* ============================================================
   SPLIT (About)
   ============================================================ */
.split { background: #fff; }
.split-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.split-heading { color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 0.6rem 0 1.2rem; }
.split-text p { color: #333; margin: 0 0 1.4rem; font-size: 1.05rem; }
.split-text .btn { margin-top: 0.6rem; }
.split-quote { margin: 0; padding-top: 0.5rem; }
.split-quote p {
  font-style: italic;
  color: #6a6a6a;
  font-size: clamp(1.2rem, 2.1vw, 1.7rem);
  line-height: 1.4;
  margin: 0;
}
.split-quote p::before { content: "\201C"; color: var(--coral); font-size: 2.2em; line-height: 0; position: relative; top: 0.32em; margin-right: 0.08em; }
.split-quote p::after { content: "\201D"; color: var(--coral); font-weight: 800; }
.split-quote cite { display: block; margin-top: 1rem; color: var(--coral-text); font-weight: 700; font-style: normal; }

/* ============================================================
   01 · CAPITAL STACK
   ============================================================ */
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.stack-layer {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.stack-layer:hover { transform: translateX(6px); box-shadow: 0 14px 30px rgba(30,30,30,0.1); }
.stack-layer[data-tier="1"] { margin-inline: 0 12%; }
.stack-layer[data-tier="2"] { margin-inline: 0 8%; }
.stack-layer[data-tier="3"] { margin-inline: 0 4%; }
.stack-layer[data-tier="4"] { margin-inline: 0 0; }
.stack-tier { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-text); padding-top: 0.3rem; }
.stack-copy h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.4rem; }
.stack-copy p { color: var(--muted); margin: 0; font-size: 1rem; }

/* ============================================================
   02 · TRACK RECORD
   ============================================================ */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: clamp(120px, 14vw, 180px); top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--line); }
.tl-item { display: grid; grid-template-columns: clamp(120px, 14vw, 180px) 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding: 1.3rem 0; position: relative; }
.tl-item::before { content: ""; position: absolute; left: clamp(120px, 14vw, 180px); top: 1.9rem; width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--muted-light); transform: translateX(-4.5px); }
.tl-item--current::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 5px rgba(242,107,94,0.18); }
.tl-years { font-weight: 800; color: var(--coral-text); font-size: 0.95rem; padding-top: 0.1rem; }
.tl-copy { padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.tl-copy h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.2; }
.tl-copy p { color: var(--muted); margin: 0.35rem 0 0; font-size: 1rem; }

/* ============================================================
   03 · FOMENTO LOCAL (navy)
   ============================================================ */
.axes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
.axis { background: rgba(255,255,255,0.06); border: 1px solid var(--line-light); border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.2rem); }
.axis-tag { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-bottom: 1rem; }
.axis h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 0.6rem; }
.axis p { color: rgba(255,255,255,0.8); margin: 0; font-size: 1rem; }

/* ============================================================
   04 · BOARDS & EDUCATION
   ============================================================ */
.boards-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
/* Dossier: boards list + stacked education/awards blocks */
.dossier { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }
.dossier-label { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-text); margin: 0 0 1rem; }
.dossier-block + .dossier-block { margin-top: 2.2rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 0.4em 0.95em; font-size: 0.88rem; font-weight: 600; }
.boards-list { list-style: none; margin: 0; padding: 0; }
.boards-list li { display: flex; align-items: center; gap: 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
.boards-list li:first-child { border-top: 1px solid var(--line); }
.board-logo {
  position: relative;
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.board-mono { font-weight: 800; font-size: 0.78rem; letter-spacing: 0.02em; color: var(--coral-text); }
.board-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.board-org { flex: 1 1 auto; font-weight: 800; font-size: 1.1rem; }
.board-role { color: var(--coral-text); font-weight: 700; font-size: 0.88rem; white-space: nowrap; text-align: right; }
.education { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.6rem, 3vw, 2.2rem); }
.education-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 1.3rem; }
.edu-item + .edu-item { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.edu-degree { font-weight: 700; margin: 0 0 0.2rem; }
.edu-school { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.contact-map {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: var(--coral);
  opacity: 0.12;
}
.contact-map svg { width: min(1150px, 118%); height: auto; display: block; }
.contact-map path { fill: currentColor; }
.contact-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) var(--pad); text-align: center; }
.contact-title { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; max-width: 20ch; margin: 0 auto 2rem; }
.contact-channels { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); justify-content: center; margin: 0 0 2.2rem; }
.channel { display: flex; flex-direction: column; gap: 0.35rem; }
.channel-label { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
.channel a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, 0.3); padding-bottom: 1px; }
.channel a:hover { border-bottom-color: var(--coral); color: var(--coral); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.contact-copy { margin: 2.8rem 0 0; color: var(--muted-light); font-size: 0.88rem; }

/* ============================================================
   MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .split-inner { grid-template-columns: 1fr; }
  .axes { grid-template-columns: 1fr; }
  .boards-grid { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .stack-layer[data-tier] { margin-inline: 0; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    background: rgba(18,18,18,0.97);
    padding: 1.6rem var(--pad);
    border-bottom: 1px solid var(--line-light);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 1rem; }
}
@media (max-width: 560px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stack-layer { grid-template-columns: 1fr; gap: 0.6rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .timeline::before, .tl-item::before { display: none; }
  .tl-copy { padding-left: 1.2rem; border-left: 2px solid var(--line); }
  .boards-list li { flex-wrap: wrap; }
  .board-org { flex: 1 1 auto; }
  .board-role { white-space: normal; flex-basis: 100%; text-align: left; padding-left: calc(46px + 1rem); }
}

/* ============================================================
   ENHANCEMENTS — depth, motion, micro-interactions
   ============================================================ */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, var(--coral), #14b487);
  z-index: 100;
  transition: width 0.1s linear;
}

/* Hero badge with live countdown + pulse */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5em 1em;
  margin-bottom: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.hero-badge .countdown { color: var(--coral); }
.hero-badge-sep { opacity: 0.45; }
.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--coral);
  flex: 0 0 auto;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15, 157, 116, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(15, 157, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 157, 116, 0); }
}

/* Hero map motif + emphasis + scroll cue */
.hero-map {
  position: absolute;
  top: 50%; right: -4%;
  transform: translateY(-50%);
  width: min(760px, 64%);
  color: var(--coral);
  opacity: 0.12;
  z-index: 1;
  pointer-events: none;
}
.hero-map svg { width: 100%; height: auto; display: block; }
.hero-quote em { color: var(--coral); font-style: normal; }
.hero-scroll {
  position: absolute;
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll:hover { color: #fff; border-color: #fff; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* Live countdown band (between hero and first section) */
.countdown-band {
  background: var(--ink);
  color: #fff;
  border-top: 2px solid var(--coral);
  position: relative;
  overflow: hidden;
}
.countdown-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 85% 50%, rgba(15,157,116,0.14), rgba(15,157,116,0) 70%);
  pointer-events: none;
}
.cd-band-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.6rem) var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  flex-wrap: wrap;
}
.cd-band-head { display: flex; flex-direction: column; gap: 0.25rem; }
.cd-band-eyebrow { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.cd-band-date { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.01em; }
.cd-timer { display: flex; gap: 0.6rem; }
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 0.55rem 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.cd-num { font-size: 1.7rem; font-weight: 800; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.cd-cap { margin-top: 0.35rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); }

/* Animated nav underline */
.main-nav ul a { position: relative; }
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav ul a:hover::after { transform: scaleX(1); }

/* Button hover lift */
.btn { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15, 157, 116, 0.32); }
.btn-outline:hover, .btn-outline-light:hover { transform: translateY(-2px); }

/* Section index gets a leading rule */
.section-index { display: inline-flex; align-items: center; gap: 0.7rem; }
.section-index::before { content: ""; width: 28px; height: 2px; background: var(--coral); display: inline-block; }

/* Gradient stat numerals */
.stat-num {
  background: linear-gradient(135deg, #14b487 0%, #0b6b50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Axis cards: top accent reveal + hover lift */
.axis { position: relative; overflow: hidden; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.axis::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.axis:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); }
.axis:hover::before { transform: scaleX(1); }

/* Stack layers: stronger hover + accent on hover */
.stack-layer:hover { border-left-color: var(--coral); box-shadow: 0 16px 36px rgba(16, 36, 30, 0.12); }
.section--dark .stack-layer:hover { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35); border-color: rgba(15, 157, 116, 0.5); }

/* Caribe Unido connections motif (Fomento Local background) */
.fomento-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.fomento-bg svg {
  position: absolute;
  top: -4%; right: -2%;
  width: min(680px, 56%);
  height: auto;
  opacity: 0.55;
}
.fomento-bg .fl-map { fill: rgba(15, 157, 116, 0.22); }
.fomento-bg .fl-line {
  fill: none;
  stroke: rgba(20, 180, 135, 0.45);
  stroke-width: 1.2;
  stroke-dasharray: 5 6;
  animation: fl-flow 6s linear infinite;
}
.fomento-bg .fl-line--soft { stroke: rgba(20, 180, 135, 0.2); }
.fomento-bg .fl-node { fill: #35d6a6; }
.fomento-bg .fl-glow { fill: rgba(20, 180, 135, 0.16); }
.fomento-bg .fl-label {
  fill: rgba(190, 225, 210, 0.55);
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
}
@keyframes fl-flow { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) {
  .fomento-bg .fl-line { animation: none; }
}
@media (max-width: 820px) {
  .fomento-bg svg { opacity: 0.4; width: 120%; right: -20%; }
}

/* Ambient glow in dark sections */
.section--dark { position: relative; overflow: hidden; }
.section--dark::before {
  content: "";
  position: absolute;
  top: -25%; right: -12%;
  width: 55%; height: 150%;
  background: radial-gradient(closest-side, rgba(15, 157, 116, 0.16), rgba(15, 157, 116, 0));
  pointer-events: none;
}
.section--dark .section-wrap { position: relative; z-index: 1; }

/* Staggered reveal (delay set inline by JS) */
.reveal { transition-delay: var(--reveal-delay, 0ms); }

/* Hero portrait — tinted to sit on the dark-green hero */
.hero-portrait {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 46%;
  margin: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 20%;
  filter: contrast(1.02) saturate(0.95);
}
.hero-portrait::before { /* jade duotone */
  content: "";
  position: absolute; inset: 0;
  background: var(--coral);
  mix-blend-mode: color;
  opacity: 0.22;
}
.hero-portrait::after { /* left fade into the dark bg */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #10241e 0%, rgba(16,36,30,0.85) 16%, rgba(16,36,30,0.35) 45%, rgba(16,36,30,0.15) 100%);
}

/* Perfil portrait — clean, framed */
.split-inner.perfil { grid-template-columns: 0.82fr 1.18fr; }
.perfil-portrait {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--gray-band);
  box-shadow: 0 24px 60px rgba(16, 36, 30, 0.18);
  position: sticky;
  top: 6rem;
}
.perfil-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.split-text .split-quote { margin-top: 2.2rem; }

/* Graceful fallback when the portrait file is absent */
body.no-portrait .hero-portrait,
body.no-portrait .perfil-portrait { display: none; }
body.no-portrait .split-inner.perfil { grid-template-columns: 1fr 1fr; }

@media (prefers-reduced-motion: reduce) {
  .pulse, .hero-scroll { animation: none; }
  .scroll-progress { transition: none; }
}
@media (max-width: 980px) {
  .split-inner.perfil { grid-template-columns: 1fr; }
  .perfil-portrait { position: static; max-width: 380px; }
}
@media (max-width: 820px) {
  /* Split layout: portrait in a band on top, copy on the solid dark bg below —
     so the text never sits over Alan's figure. */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
  .hero-portrait {
    display: block;
    position: relative;
    inset: auto;
    order: -1;
    width: 100%;
    height: 58vh;
    min-height: 340px;
    max-height: 560px;
    /* reserve the translucent header's height so it never sits over his head */
    padding-top: calc(44px + 2.2rem);
    z-index: 1;
  }
  .hero-portrait img { object-position: 50% 12%; }
  .hero-portrait::before { opacity: 0.14; }
  .hero-portrait::after {
    /* only a soft bottom fade so the photo melts into the copy band below */
    background: linear-gradient(180deg,
      rgba(9, 22, 17, 0.28) 0%,
      rgba(9, 22, 17, 0) 26%,
      rgba(9, 22, 17, 0) 68%,
      rgba(16, 36, 30, 0.92) 100%);
  }
  .hero-content {
    padding-top: 2.4rem;
    padding-bottom: 3rem;
  }
  .hero-roles { margin-top: 2.5rem; }
  .hero-map { display: none; }
}
@media (max-width: 640px) {
  .cd-band-inner { justify-content: center; text-align: center; }
  .cd-band-head { align-items: center; }
}
@media (max-width: 420px) {
  .cd-unit { min-width: 0; flex: 1; padding: 0.5rem 0.3rem; }
  .cd-timer { gap: 0.4rem; }
  .cd-num { font-size: 1.4rem; }
}
@media (max-width: 700px) {
  .hero-map { opacity: 0.08; width: 90%; }
  .hero-scroll { display: none; }
}
