/* ============================================================
   Lautaro · Editorial styles
   Paleta: papel cálido / tinta profunda / océano / óxido
   ============================================================ */

:root {
  --paper:      #efe7d6;
  --paper-2:    #e7dec9;
  --paper-deep: #d9cdb1;
  --ink:        #14110c;
  --ink-soft:   #3a342a;
  --ink-mute:   #5f5748;  /* Era #786e5b — oscurecido para passing WCAG AA (4.08→~6:1) en tags y subs uppercase mono */
  --rule:       #a89779;
  --ocean:      #142b3f;
  --ocean-2:    #1b3a55;
  --ocean-mute: #6a8198;
  --rust:       #a8431e;
  --rust-soft:  #c46a44;
  --moss:       #4a5d3f;
  --gold:       #b8893a;

  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;
  --sans:  "Space Grotesk", system-ui, sans-serif;

  --col:    640px;
  --col-w:  860px;
  --col-xw: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  font-feature-settings: "ss01", "kern", "liga";
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 16;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Subtle paper grain */
  background-image:
    radial-gradient(rgba(116, 96, 60, 0.04) 1px, transparent 1px),
    radial-gradient(rgba(20, 17, 12, 0.025) 1px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 3px;
}

::selection { background: var(--rust); color: var(--paper); }

/* ---------------- Layout ---------------- */
.wrap { width: 100%; max-width: var(--col-xw); margin: 0 auto; padding: 0 32px; }
.col  { max-width: var(--col); margin: 0 auto; }
.col-w { max-width: var(--col-w); margin: 0 auto; }

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.topbar .brand { display: flex; gap: 14px; align-items: baseline; }
.topbar .brand b { letter-spacing: 0.16em; color: var(--ink); }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a { color: var(--ink-mute); text-decoration: none; transition: color .2s; }
.topbar nav a:hover { color: var(--rust); }

/* ---------------- Hero ---------------- */
.hero {
  background: var(--ocean);
  color: #e9dfc8;
  padding: 110px 0 130px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}
.hero::before {
  /* horizon line */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 140px;
  background:
    linear-gradient(to bottom, transparent 0%, rgba(20,43,63,0) 60%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}
.hero .grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,236,200,0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9b78c;
  display: flex; gap: 18px; align-items: center;
  margin-bottom: 60px;
}
.hero .kicker .bar { width: 36px; height: 1px; background: #c9b78c; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(48px, 7.2vw, 108px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: #f4ead0;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}
.hero h1 em {
  font-style: italic;
  color: #e8b07a;
  font-weight: 300;
}
.hero h1 .small { font-size: 0.5em; display:block; color:#c9b78c; font-style: italic; margin-top: 12px; font-weight: 400;}

.hero .lede {
  margin-top: 60px;
  max-width: 540px;
  font-size: 20px;
  line-height: 1.6;
  color: #d8c8a0;
}
.hero .lede strong { color: #f4ead0; font-weight: 600; }

.hero .meta {
  margin-top: 100px;
  display: flex; gap: 60px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a9cad;
}
.hero .meta b { color: #d8c8a0; font-weight: 500; display: block; margin-bottom: 4px; }

/* Hero silueta of port */
.hero .skyline {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------------- Chapter heads ---------------- */
.chapter-head {
  padding: 110px 0 50px;
  border-top: 1px solid var(--rule);
  text-align: left;
}
.chapter-head.first { border-top: none; }
.chapter-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.chapter-num .roman { color: var(--ink); font-weight: 600; }
.chapter-num .bar { width: 28px; height: 1px; background: var(--rust); }

.chapter-title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0 0 28px 0;
  max-width: 12ch;
  text-wrap: balance;
  font-variation-settings: "opsz" 60;
}
.chapter-title em { font-style: italic; color: var(--rust); }

.chapter-deck {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 600px;
  font-style: italic;
  font-weight: 400;
}

/* ---------------- Body / prose ---------------- */
.prose p {
  margin: 0 0 1.1em;
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
  color: var(--ink-soft);
}
.prose p.first::first-letter,
.drop::first-letter {
  font-family: var(--serif);
  font-size: 5.4em;
  line-height: 0.85;
  font-weight: 400;
  float: left;
  margin: 0.06em 0.12em 0 -0.04em;
  color: var(--ink);
  font-style: italic;
  font-variation-settings: "opsz" 72;
}

.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink); }

.prose blockquote, .pullquote {
  margin: 56px 0;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--rust);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 28px;
  line-height: 1.32;
  color: var(--ink);
  font-variation-settings: "opsz" 40;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.pullquote.big {
  border: none;
  padding: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.15;
  margin: 80px auto;
  max-width: 18ch;
  text-align: left;
  font-style: italic;
  color: var(--ink);
}
.pullquote.big::before {
  content: "“";
  display: block;
  font-size: 1.6em;
  line-height: 0.5;
  color: var(--rust);
  margin-bottom: 0.15em;
}
.pullquote cite {
  display: block;
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 20px;
}

/* Numbered list (the 11 causes) */
.causes {
  list-style: none;
  margin: 30px 0;
  padding: 0;
  counter-reset: cause;
  border-top: 1px solid var(--rule);
}
.causes li {
  counter-increment: cause;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.causes li::before {
  content: counter(cause, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--rust);
  padding-top: 3px;
}
.causes .text { font-size: 18px; line-height: 1.5; color: var(--ink); }
.causes .echo {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
}
.causes .echo b { color: var(--ink); font-weight: 500; }

/* ---------------- Data section ---------------- */
.data-section {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 100px 0 110px;
  margin-top: 80px;
}

.chart-frame {
  margin: 60px auto 0;
  max-width: var(--col-xw);
}
.chart-caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.chart-legend { display: flex; gap: 24px; }
.chart-legend span { display: flex; gap: 8px; align-items: center; }
.chart-legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.chart-legend .dot.v { background: var(--rust); }
.chart-legend .dot.s { background: var(--ocean); }

.chart-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.stat .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.stat .big {
  font-family: var(--serif);
  font-weight: 350;
  font-size: 58px;
  line-height: 1;
  color: var(--ink);
  font-variation-settings: "opsz" 60;
  letter-spacing: -0.02em;
}
.stat .big sup { font-size: 0.45em; vertical-align: super; color: var(--rust); }
.stat .desc {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 32ch;
}

/* ---------------- Sources / footnote treatment ---------------- */
.source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  margin-top: 12px;
  display: block;
}

/* ---------------- Big quote block (vision) ---------------- */
.vision {
  padding: 140px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
}
.vision .chapter-num { color: var(--rust-soft); }
.vision .chapter-num .roman { color: var(--paper); }
.vision .chapter-num .bar { background: var(--rust-soft); }
.vision .pullquote.big {
  color: var(--paper);
  font-size: clamp(36px, 4.5vw, 64px);
  max-width: 22ch;
}
.vision .pullquote.big::before { color: var(--rust-soft); }
.vision cite { color: var(--rust-soft); }
.vision p { color: #c9bfa6; }

/* ---------------- Then vs Now diptych ---------------- */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0;
  margin: 60px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.diptych .col-side { padding: 32px; }
.diptych .col-side h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 16px 0;
  font-weight: 500;
}
.diptych .col-side .year {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  margin: 0 0 24px 0;
  color: var(--ink);
  font-weight: 350;
}
.diptych .col-side ul {
  list-style: none;
  margin: 0; padding: 0;
}
.diptych .col-side li {
  padding: 12px 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 16px;
  color: var(--ink-soft);
}
.diptych .col-side li:last-child { border: none; }
.diptych .divider { background: var(--rule); }

/* ---------------- Future section ---------------- */
.future {
  padding: 140px 0;
  background: linear-gradient(180deg, var(--paper) 0%, #f7f0dc 100%);
  border-top: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
}
.future .chapter-num { color: var(--moss); }
.future .chapter-num .bar { background: var(--moss); }

.industries {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  margin: 70px 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.industry {
  padding: 28px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  transition: background .25s;
  position: relative;
  min-height: 200px;
}
.industry:hover { background: var(--paper-deep); }
.industry .num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.industry h5 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  margin: 0 0 12px 0;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.industry p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------------- Epilogue ---------------- */
.epilogue {
  background: var(--ocean);
  color: #e9dfc8;
  padding: 120px 0 90px;
  border-top: 1px solid var(--ink);
}
.epilogue h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.05;
  margin: 0 0 28px 0;
  color: #f4ead0;
  text-wrap: balance;
  font-variation-settings: "opsz" 60;
}
.epilogue h2 em { font-style: italic; color: #e8b07a; }
.epilogue p { color: #d8c8a0; font-size: 19px; line-height: 1.65; max-width: 56ch; }
.epilogue .signoff {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid #2a4660;
  padding-top: 30px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a9cad;
}
.epilogue .signoff b { color: #f4ead0; font-weight: 500; }

/* ---------------- Marginalia / annotations ---------------- */
.margin-note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--rust);
  line-height: 1.5;
  text-transform: uppercase;
  margin: 30px 0;
  padding: 12px 0 12px 16px;
  border-left: 2px solid var(--rust);
}
.margin-note b { color: var(--ink); font-weight: 500; }

/* ---------------- Spacing helpers ---------------- */
.section { padding: 100px 0; }
.section.tight { padding: 70px 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 22px; }
  .hero { padding: 80px 0 90px; }
  .hero .meta { flex-wrap: wrap; gap: 24px; margin-top: 60px; }
  .chapter-head { padding: 80px 0 30px; }
  .chart-stats { grid-template-columns: 1fr; gap: 30px; }
  .diptych { grid-template-columns: 1fr; }
  .diptych .divider { display: none; }
  .topbar nav { display: none; }
  .industries { grid-template-columns: 1fr; }
}

/* ============================================================
   Manifesto · styles (extracted from src/pages/index.astro)
   ============================================================ */
/* ============================================================
   Manifiesto · estilos específicos
   ============================================================ */

body { font-size: 18px; }

/* ----- Sticky top bar ----- */
.mfst-bar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(239, 231, 214, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  /* Respeta la safe area del top en iOS Safari — sin esto el contenido del
     navbar quedaba parcialmente tapado por la barra dinámica de URL/notch
     al hacer scroll. Requiere viewport-fit=cover en el <meta viewport>. */
  padding-top: env(safe-area-inset-top);
}
.mfst-bar .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
  font-family: var(--mono);
  font-size: 12px;  /* Era 11px — brand "VALPARAÍSO 2029" del navbar */
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mfst-bar .brand { display: flex; gap: 14px; align-items: center; color: var(--ink-soft); }
.mfst-bar .brand b { color: var(--ink); }

/* ----- Hero ----- */
.mfst-hero {
  padding: 100px 0 120px;
  border-bottom: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.mfst-hero .year-strip {
  font-family: var(--mono);
  font-size: 14px;  /* Era 13px — eyebrow "1929 → 2029 · 100 años con el mismo diagnóstico" */
  letter-spacing: .26em;
  color: var(--rust);
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 60px;
  font-weight: 500;
}
.mfst-hero .year-strip .arrow {
  flex: 0 0 auto;
  width: 60px; height: 1px; background: var(--rust);
  position: relative;
}
.mfst-hero .year-strip .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 0; height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid var(--rust);
}
.mfst-hero .year-strip .span { color: var(--ink-mute); margin-left: 8px; }

.mfst-hero h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 5.6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 26ch;
  font-variation-settings: "opsz" 72;
}
.mfst-hero h1 em { font-style: italic; color: var(--rust); }
.mfst-hero h1 .strike { text-decoration: line-through; text-decoration-thickness: 3px; color: var(--ink-mute); text-decoration-color: var(--rust); }

.mfst-hero .deck {
  margin-top: 50px;
  max-width: 580px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.mfst-hero .deck b { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 14px 22px;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  font-weight: 500;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.btn .arr { font-family: var(--serif); font-size: 14px; }

.mfst-hero .read-time {
  position: absolute; right: 32px; bottom: 32px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}
.mfst-hero .read-time b { color: var(--ink); display: block; font-size: 14px; letter-spacing: 0; margin-bottom: 4px; font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ----- BIG STATS row ----- */
.big-stats-section {
  border-bottom: 1px solid var(--rule);
}
.big-stats-header {
  padding: 40px 32px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 28px;
}
.big-stats-header .eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.big-stats-header .eyebrow .bar { width: 28px; height: 1px; background: var(--rust); }
.big-stats-header h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variation-settings: "opsz" 40;
  text-wrap: balance;
  max-width: 24ch;
}
.big-stats-header h3 em { font-style: italic; color: var(--rust); }
.big-stats-header .stamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.5;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  white-space: nowrap;
}
.big-stats-header .stamp b { color: var(--ink); display: block; font-weight: 500; }
.big-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--rule);
}
.big-stats .stat-cell {
  padding: 48px 32px 40px;
  border-right: 1px solid var(--rule);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.big-stats .stat-cell:last-child { border-right: 0; }

.big-stats .era {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 5px 10px;
  font-weight: 500;
  white-space: nowrap;
}
.big-stats .tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
}

/* Bloque focal: FROM → TO */
.big-stats .stat-headline {
  margin: 14px 0 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  justify-content: center;
  padding: 8px 0 4px;
}
.big-stats .stat-headline .row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 10px;
}
.big-stats .stat-headline .from,
.big-stats .stat-headline .to {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 88;
  color: var(--ink);
}
.big-stats .stat-headline .from {
  text-align: right;
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-color: var(--rust);
  text-decoration-thickness: 2px;
  font-weight: 300;
}
.big-stats .stat-headline .to {
  text-align: left;
  font-style: italic;
  font-weight: 350;
}
.big-stats .stat-headline .arr {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--rust);
  line-height: 1;
  padding: 0 4px;
}
.big-stats .stat-headline.flow .from,
.big-stats .stat-headline.flow .to {
  font-size: clamp(28px, 3.6vw, 48px);
}
.big-stats .stat-headline .sub {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;  /* Era 10px — sub mono uppercase legible para mayores */
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

.big-stats .desc {
  margin-top: 6px;
  font-size: 17px;  /* Era 15px — descripción de cada stat, body principal */
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
}
.big-stats .src {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .04em;
}

/* ----- Section heads (slim) ----- */
.mfst-section {
  padding: 100px 0;
  border-bottom: 1px solid var(--rule);
}
.mfst-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.mfst-head .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
}
.mfst-head .num .bar { display: inline-block; width: 24px; height: 1px; background: var(--rust); vertical-align: middle; margin: 0 10px; }
.mfst-head h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 60;
}
.mfst-head h2 em { font-style: italic; color: var(--rust); }
.mfst-head h2:only-child { grid-column: 1 / -1; max-width: 32ch; }

/* ----- Echo grid: 1929 ↔ 2026 ----- */
.echo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.echo-card {
  padding: 26px 24px 28px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
  transition: background .2s;
}
.echo-card:hover { background: var(--paper-2); }
.echo-card .row {
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.echo-card .yr {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--rust);
  flex: 0 0 50px;
  font-weight: 500;
}
.echo-card .row.now .yr { color: var(--ocean); }
.echo-card .txt {
  font-size: 16px;  /* Era 15px — eco entre 1929 y 2026, body legible */
  line-height: 1.45;
  color: var(--ink);
  font-family: var(--serif);
}
.echo-card .row.now .txt { color: var(--ink-soft); }
.echo-card .divider {
  height: 1px;
  background: var(--rule);
  width: 30px;
  margin: 4px 0 4px 64px;
}

/* ----- Chart block (slimmer than data-section) ----- */
.chart-block {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 80px 0 90px;
}
.chart-block .head {
  display: flex; justify-content: space-between; align-items: end;
  margin-bottom: 36px; gap: 40px;
  flex-wrap: wrap;
}
.chart-block .head .title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  max-width: 18ch;
  font-variation-settings: "opsz" 48;
}
.chart-block .head .title em { font-style: italic; color: var(--rust); }
.chart-block .head .legend {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; gap: 24px;
}
.chart-block .head .legend span { display:flex; gap:8px; align-items:center; }
.chart-block .head .legend .dot { width: 10px; height: 10px; border-radius: 50%; }
.chart-block .head .legend .dot.v { background: var(--rust); }
.chart-block .head .legend .dot.s { background: var(--ocean); }
.chart-block .src {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: .04em;
}

/* ----- Share-card with portrait variant ----- */
.share-card.with-portrait {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  padding: 60px 60px 0 60px;
  align-items: stretch;
  overflow: hidden;
}
/* portrait wrap is already position: relative, z-index 1 above */
.share-card.with-portrait .portrait-wrap {
  align-self: end;
  margin-bottom: -2px;
}
.share-card.with-portrait .portrait-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  /* Vintage portrait treatment: warm sepia tone, soft contrast */
  filter:
    sepia(0.42)
    saturate(0.55)
    contrast(1.18)
    brightness(0.92)
    hue-rotate(-6deg);
  transition: filter 1.1s cubic-bezier(.2,.6,.2,1);
  /* Feather the figure into the dark card so it stops reading as a placed photo */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(to bottom, transparent 0%, #000 12%, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.share-card.with-portrait:hover .portrait-wrap img,
.share-card.with-portrait.revealed .portrait-wrap img {
  /* Color returns on hover/reveal — same timing as the bay reveal */
  filter:
    sepia(0)
    saturate(1)
    contrast(1.04)
    brightness(1)
    hue-rotate(0);
}
.share-card.with-portrait .portrait-cap {
  position: absolute;
  left: 0; bottom: 22px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #c9b78c;
  background: rgba(20,17,12,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 6px 10px;
  border-left: 2px solid var(--rust-soft);
  line-height: 1.4;
}
.share-card.with-portrait .portrait-cap b { color: #f4ead0; font-weight: 500; display: block; white-space: nowrap; }
.share-card.with-portrait .card-body {
  padding: 0 0 60px 0;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
}
.share-card.with-portrait .card-body .quote { font-size: clamp(26px, 3.2vw, 40px); }
.share-card.with-portrait .meta { margin-bottom: 30px; }
.share-card.with-portrait .attr { margin-top: 30px; }

@media (max-width: 760px) {
  .share-card.with-portrait {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 30px 28px 0;
  }
  .share-card.with-portrait .portrait-wrap {
    max-width: 200px;
    margin: 0 auto -2px;
  }
  .share-card.with-portrait .card-body { min-height: auto; padding: 24px 0 40px; }
}

/* ----- Memoria diptych container (quote + map) ----- */
.memoria-frame {
  position: relative;
  margin: 80px auto;
  max-width: 980px;
}
.memoria-frame .memoria-label {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
  padding: 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.memoria-frame .memoria-label b { color: var(--ink); font-weight: 500; }
.memoria-frame .memoria-label .archive {
  display: flex; gap: 14px; align-items: center;
}
.memoria-frame .memoria-label .archive::before {
  content: "";
  width: 8px; height: 8px;
  border: 1px solid var(--rust);
  display: inline-block;
  transform: rotate(45deg);
}

.memoria-frame .share-card { margin: 0 0 14px 0; }

/* Map archive card */
.map-card {
  background: var(--paper-2);
  border: 1px solid var(--ink);
  position: relative;
  padding: 0;
  overflow: hidden;
}
.map-card .map-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.map-card .map-head .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
}
.map-card .map-head h4 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 4px 0 0 0;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 36;
}
.map-card .map-head h4 em { font-style: italic; color: var(--rust); }
.map-card .map-head .meta-r {
  text-align: right;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  line-height: 1.6;
}
.map-card .map-head .meta-r b { color: var(--ink); display: block; font-weight: 500; }

.map-card .map-stage {
  position: relative;
  background: #efe5cc;
  /* sepia paper feel */
  background-image:
    radial-gradient(rgba(120, 80, 30, 0.06) 1px, transparent 1.5px),
    radial-gradient(rgba(20, 17, 12, 0.03) 1px, transparent 1.5px);
  background-size: 5px 5px, 9px 9px;
  background-position: 0 0, 2px 3px;
}
.map-card .map-stage img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.02) saturate(0.95);
  mix-blend-mode: multiply;
}

/* Corner crop marks */
.map-card .corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--ink-mute);
  pointer-events: none;
  z-index: 2;
}
.map-card .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.map-card .corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.map-card .corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.map-card .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* Map caption / legend at bottom */
.map-card .map-caption {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 20px 28px;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.map-card .legend-pill {
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.map-card .legend-pill .swatch {
  width: 18px; height: 12px;
  border: 1.5px solid var(--rust);
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 3px,
    rgba(168, 67, 30, 0.45) 3px 4px
  );
}
.map-card .src-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  line-height: 1.5;
  text-align: center;
}
.map-card .scale {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
  line-height: 1.4;
}
.map-card .scale b { color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
  .map-card .map-head { padding: 18px 20px 14px; }
  .map-card .map-head .meta-r { display: none; }
  .map-card .map-caption {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 20px;
    text-align: left;
  }
  .map-card .src-note, .map-card .scale { text-align: left; }
}

/* ----- Quote card (giant, shareable) ----- */
.share-card {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 60px;
  position: relative;
  margin: 80px auto;
  max-width: 980px;
  border: 1px solid var(--ink);
  overflow: hidden;
}

/* ----- Bay reveal: bg image hidden by default, soft hover reveal ----- */
.share-card.with-portrait .bay-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/valparaiso-bay.jpg');
  background-size: cover;
  background-position: center 40%;
  /* desaturated, warm, slightly muted to live with the ink palette */
  filter: sepia(0.32) saturate(0.62) contrast(1.02) brightness(0.78) hue-rotate(-6deg);
  opacity: 0.10;
  transform: scale(1.03);
  transition: opacity 1.1s cubic-bezier(.2,.6,.2,1), transform 2.4s cubic-bezier(.2,.6,.2,1), filter 1.1s ease;
  pointer-events: none;
}
.share-card.with-portrait .bay-layer::after {
  /* readability scrim: heavier on the right (text column) */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20,17,12,0.20) 0%, rgba(20,17,12,0.55) 55%, rgba(20,17,12,0.78) 100%),
    linear-gradient(to bottom, rgba(20,17,12,0) 30%, rgba(20,17,12,0.45) 100%);
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.share-card.with-portrait:hover .bay-layer,
.share-card.with-portrait.revealed .bay-layer {
  opacity: 0.42;
  transform: scale(1.05);
  filter: sepia(0.22) saturate(0.78) contrast(1.06) brightness(0.86) hue-rotate(-4deg);
}

/* Ensure the content sits above the bay layer */
.share-card.with-portrait .portrait-wrap,
.share-card.with-portrait .card-body {
  position: relative;
  z-index: 1;
}
/* (padding ya declarado en línea 983 — la duplicación acá rompía el
   override mobile del @media 760px porque se aplicaba fuera del media query) */
.share-card .meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;  /* Era 10px — meta "La visión · 1929 · Memoria del Alcalde" */
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8a7d62;
  margin-bottom: 50px;
}
.share-card .meta b { color: #c9b78c; font-weight: 500; }
.share-card .quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.012em;
  font-style: italic;
  text-wrap: balance;
  color: #f4ead0;
  font-variation-settings: "opsz" 60;
}
.share-card .quote::before {
  content: "“";
  display: block;
  font-size: 2em;
  line-height: 0.4;
  color: var(--rust-soft);
  margin-bottom: 0.1em;
}
.share-card .quote em { color: #e8b07a; }
.share-card .attr {
  margin-top: 36px;
  display: flex; justify-content: space-between; align-items: end;
  padding-top: 24px;
  border-top: 1px solid #2a241a;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a7d62;
}
.share-card .attr b { color: #f4ead0; display: block; font-weight: 500; font-size: 13px; letter-spacing: .08em; font-family: var(--serif); font-style: italic; }
.share-card .share-btn {
  background: transparent;
  border: 1px solid #4a3f2c;
  color: #c9b78c;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 10px 18px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center;
}
.share-card .share-btn:hover { background: var(--rust); border-color: var(--rust); color: #fff; }

/* ----- Proposal rows (1929 ↔ 2029) ----- */
.proposal-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 0 0 20px 0;
  align-items: end;
}
.proposal-intro .blurb {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 48ch;
}
.proposal-intro .blurb b { color: var(--ink); font-weight: 600; }
.proposal-intro .ledger {
  display: flex; gap: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.proposal-intro .ledger > div { flex: 1; }
.proposal-intro .ledger b { color: var(--rust); font-weight: 500; }
.proposal-intro .ledger .now b { color: var(--ocean); }

.proposal-rows {
  border-top: 1px solid var(--ink);
  margin-top: 30px;
}
.prow {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--rule);
  padding: 44px 0 50px;
  align-items: start;
  /* min-height moderado da margen para sticky travel sin inflar las cards
     con espacio vacío excesivo. Combinado con el h3 reducido (abajo) que
     iguala la altura del prow-head en las 5 cards, el efecto sticky se
     siente parejo en todas. */
  min-height: 50vh;
  transition: background .2s;
}
.prow:hover { background: var(--paper-2); }
.prow:last-child { border-bottom: 1px solid var(--ink); }
.prow .prow-head {
  padding: 0 28px 0 32px;
  position: sticky;
  top: 80px;
  /* min-height iguala el head del pilar 1 ("Energía barata", 1 línea) con
     los demás (2 líneas), para que el sticky travel sea idéntico en las 5 cards. */
  min-height: 161px;
}
.prow-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
  font-weight: 500;
}
.prow h3 {
  font-family: var(--serif);
  font-weight: 350;
  /* Tamaño ajustado para que los títulos largos ("Suelo industrial al alcance",
     "Franquicias por veinte años", "Industrias que aún no existen") quepan en
     2 líneas dentro de la columna de 240px — igualando la altura del prow-head
     con los títulos cortos y manteniendo el sticky travel consistente. */
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.05;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 40;
}
.prow h3 em { font-style: italic; color: var(--rust); }
.prow .prow-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;  /* Era 10px — tag bajo título del pilar */
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  margin-top: 8px;
}
.prow-col {
  padding: 0 36px;
  border-left: 1px solid var(--rule);
}
.prow-col .yr {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
  font-weight: 500;
  display: flex; gap: 10px; align-items: baseline;
}
.prow-col .yr .label { color: var(--ink-mute); letter-spacing: .14em; }
.prow-col.now .yr { color: var(--ocean); }
.prow-col p {
  font-size: 17px;  /* Era 15px — body crítico del pilar, donde se LEE el plan de Rosas */
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 12px 0;
}
.prow-col .quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--rust);
  line-height: 1.45;
}
.prow-col .who {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dotted var(--rule);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.prow-col .who b { color: var(--ink); font-weight: 500; }
.prow-col .data {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: 14px 0 4px;
  padding: 12px 0;
  border-top: 1px dotted var(--rule);
  border-bottom: 1px dotted var(--rule);
}
.prow-col .data > div {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  line-height: 1.4;
}
.prow-col .data > div b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.proposal-coda {
  margin-top: 50px;
  padding: 32px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  align-items: center;
}
.proposal-coda .mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 56px;
  line-height: 1;
  color: var(--rust);
  font-weight: 300;
}
.proposal-coda p {
  margin: 0;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.proposal-coda p b { font-style: normal; color: var(--ink); font-weight: 600; }

/* ----- Premisa al inicio de §03 (tesis 2029) ----- */
.proposal-premise {
  margin: 0 0 50px;
  padding: 30px 0 32px;
  border-top: 1px solid var(--rule);
}
.proposal-premise .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
  font-weight: 500;
  display: flex;
  gap: 12px;
  align-items: center;
}
.proposal-premise .label .bar {
  width: 22px; height: 1px; background: var(--rust);
}
.proposal-premise p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.42;
  color: var(--ink);
  text-wrap: balance;
  max-width: 60ch;
  letter-spacing: -0.005em;
}
.proposal-premise p b {
  font-style: normal;
  color: var(--rust);
  font-weight: 500;
}

/* ----- Tesis-puente / CTA esperanza entre pilares y coda ----- */
.proposal-thesis {
  margin-top: 50px;
  padding: 44px 44px 48px;
  background: var(--ink);
  color: #f4ead0;
  border-left: 3px solid var(--rust);
  position: relative;
}
.proposal-thesis .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rust-soft);
  margin-bottom: 24px;
  font-weight: 500;
  display: flex;
  gap: 12px;
  align-items: center;
}
.proposal-thesis .label .bar {
  width: 22px; height: 1px; background: var(--rust-soft);
}
.proposal-thesis .thesis-lead {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-weight: 350;
  font-style: italic;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
  color: #f4ead0;
  letter-spacing: -0.018em;
  text-wrap: balance;
  max-width: 22ch;
  font-variation-settings: "opsz" 56;
}
.proposal-thesis .thesis-body {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  color: #d8c8a0;
  max-width: 62ch;
  text-wrap: pretty;
}
.proposal-thesis .thesis-body b {
  color: #f4ead0;
  font-weight: 500;
}
.proposal-thesis .thesis-call {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.4;
  color: #f4ead0;
  max-width: 58ch;
  text-wrap: balance;
  letter-spacing: -0.003em;
}
.proposal-thesis .thesis-call b {
  font-style: normal;
  color: #e8b07a;
  font-weight: 500;
}
.proposal-thesis .thesis-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.proposal-thesis .btn {
  border-color: #c9b78c;
  color: #f4ead0;
}
.proposal-thesis .btn.primary {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
}
.proposal-thesis .btn:hover {
  background: #f4ead0;
  border-color: #f4ead0;
  color: var(--ink);
}
.proposal-thesis .btn.primary:hover {
  background: #f4ead0;
  border-color: #f4ead0;
  color: var(--ink);
}

/* Background image layer — mismo patrón que la card con bahía */
.proposal-thesis { overflow: hidden; }
.proposal-thesis .thesis-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/thesis-bg.avif');
  background-size: cover;
  background-position: center center;
  /* base: muy desaturado y oscurecido — apenas se intuye */
  filter: grayscale(0.55) contrast(1.05) brightness(0.62) saturate(0.7);
  opacity: 0.14;
  transform: scale(1.02);
  transition:
    opacity 1.1s cubic-bezier(.2,.6,.2,1),
    transform 2.4s cubic-bezier(.2,.6,.2,1),
    filter 1.1s ease;
  pointer-events: none;
}
.proposal-thesis .thesis-bg::after {
  /* Scrim para garantizar legibilidad del texto sobre la imagen */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(20,17,12,0.55) 0%, rgba(20,17,12,0.42) 55%, rgba(20,17,12,0.32) 100%),
    linear-gradient(to bottom, rgba(20,17,12,0.20) 0%, rgba(20,17,12,0.48) 100%);
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.proposal-thesis:hover .thesis-bg,
.proposal-thesis.revealed .thesis-bg {
  /* En hover/reveal: vuelve a tener color y se acerca un poco */
  opacity: 0.46;
  transform: scale(1.04);
  filter: grayscale(0.25) contrast(1.08) brightness(0.78) saturate(0.95);
}
.proposal-thesis > *:not(.thesis-bg) {
  position: relative;
  z-index: 1;
}

/* ----- Industries (compact tile grid) ----- */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.tile {
  padding: 24px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  min-height: 180px;
  display: flex; flex-direction: column;
  gap: 10px;
  transition: background .2s;
}
.tile:hover { background: var(--paper-2); }
.tile .ix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--rust);
  font-weight: 500;
}
.tile h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.012em;
  color: var(--ink);
  flex: 1;
}
.tile .why {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: .02em;
}

/* ----- CTA final ----- */
.cta-final {
  padding: 120px 0;
  background: var(--ocean);
  color: #e9dfc8;
  text-align: left;
  border-top: 1px solid var(--ink);
}
.cta-final h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 84px);
  line-height: 1;
  letter-spacing: -0.022em;
  margin: 0 0 36px 0;
  color: #f4ead0;
  text-wrap: balance;
  max-width: 16ch;
  font-variation-settings: "opsz" 72;
}
.cta-final h2 em { font-style: italic; color: #e8b07a; }
.cta-final p {
  font-size: 19px;
  line-height: 1.55;
  color: #d8c8a0;
  max-width: 56ch;
  margin: 0 0 22px 0;
}
.cta-final p:last-of-type { margin-bottom: 50px; }
.cta-final p strong { color: #f4ead0; font-weight: 600; }
.cta-final p.deadline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: #f4ead0;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #2a4660;
  max-width: 60ch;
  text-wrap: balance;
  letter-spacing: -0.003em;
}
.cta-final p.deadline strong {
  font-style: normal;
  color: #e8b07a;
  font-weight: 500;
}
.cta-final .row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 80px;
}
.cta-final .btn {
  border-color: #c9b78c; color: #f4ead0;
}
.cta-final .btn.primary { background: var(--rust); border-color: var(--rust); color: #fff; }
.cta-final .btn:hover { background: var(--paper); color: var(--ocean); border-color: var(--paper); }
.cta-final .footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid #2a4660;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a9cad;
  line-height: 2;
}
.cta-final .footer > div:first-child { text-align: left; }
.cta-final .footer .footer-links {
  display: flex;
  gap: 10px;
  align-items: center;
}
.cta-final .footer .footer-links .sep { opacity: 0.5; }
.cta-final .footer b { color: #f4ead0; font-weight: 500; }
.cta-final .footer a { color: #8a9cad; text-decoration: none; border-bottom: 1px dotted #2a4660; padding-bottom: 1px; }
.cta-final .footer a:hover { color: #f4ead0; border-bottom-color: #f4ead0; }

/* Mobile: footer apila en columna */
@media (max-width: 640px) {
  .cta-final .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ----- Chart reveal (reused) ----- */
#budget-chart { position: relative; }
#budget-chart .bdg-svg { width: 100%; height: auto; display: block; }
#budget-chart .bdg-line {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  transition: stroke-dashoffset 2.2s cubic-bezier(.4,0,.2,1);
}
#budget-chart .bdg-line-s { transition-delay: 0.2s; }
#budget-chart .bdg-line-v { transition-delay: 0.6s; }
#budget-chart .bdg-area  { opacity: 0; transition: opacity 1.4s ease 1.6s; }
#budget-chart .bdg-end, #budget-chart .bdg-anno { opacity: 0; transition: opacity 0.7s ease 2.2s; }
#budget-chart.revealed .bdg-line { stroke-dashoffset: 0; }
#budget-chart.revealed .bdg-area,
#budget-chart.revealed .bdg-end,
#budget-chart.revealed .bdg-anno { opacity: 1; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .big-stats, .echo-grid { grid-template-columns: 1fr; }
  .big-stats .stat-cell { border-right: 0; border-bottom: 1px solid var(--rule); }
  .big-stats-header { grid-template-columns: 1fr; gap: 18px; padding: 30px 22px 24px; }
  .big-stats-header .stamp { justify-self: start; }
  .echo-card { border-right: 0 !important; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .mfst-head { grid-template-columns: 1fr; gap: 16px; }
  .share-card { padding: 50px 32px; margin: 50px 22px; }
  .mfst-bar .brand .span-hide { display: none; }
  .mfst-bar .inner { padding: 10px 22px; flex-wrap: wrap; gap: 12px; }
  .proposal-intro { grid-template-columns: 1fr; gap: 22px; }
  .prow {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 0;
    /* En mobile las cards se apilan vertical y NO hay sticky travel —
       el min-height: 50vh del bloque base generaba espacio muerto al
       final de cada card. Reset acá. */
    min-height: 0;
  }
  .prow .prow-head {
    position: static;
    padding: 0;
    /* Mismo razonamiento: el min-height: 161px existía para igualar
       el sticky travel entre cards en desktop. En mobile no aplica. */
    min-height: 0;
  }
  .prow-col { border-left: 0; padding: 0; border-top: 1px solid var(--rule); padding-top: 22px; }
}
@media (max-width: 600px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ============================================================
   Contador flotante · EXPEDIENTE CLÍNICO · Valparaíso
   100 años de enfermedad sin tratamiento (1929 → 2029)
   ============================================================ */
.countdown {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  background: var(--ink);
  color: #f4ead0;
  border: 1px solid var(--ink);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 22px 50px -20px rgba(0,0,0,0.6),
    0 6px 14px -6px rgba(0,0,0,0.4);
  width: 360px;
  font-family: var(--mono);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
  transform-origin: bottom right;
  /* paper-grid medical chart pattern, very subtle */
  background-image:
    linear-gradient(rgba(168,67,30,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,67,30,0.05) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px;
  /* heartbeat: synced with .pulse — bruma rust que late suave */
  animation: cd-breath 3.4s ease-out infinite;
}
@keyframes cd-breath {
  0%, 100% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.04) inset,
      0 22px 50px -20px rgba(0,0,0,0.6),
      0 6px 14px -6px rgba(0,0,0,0.4),
      0 0 50px 0 rgba(168, 67, 30, 0);
  }
  6% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.04) inset,
      0 22px 50px -20px rgba(0,0,0,0.6),
      0 6px 14px -6px rgba(0,0,0,0.4),
      0 0 80px 10px rgba(168, 67, 30, 0.55);
  }
  18% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.04) inset,
      0 22px 50px -20px rgba(0,0,0,0.6),
      0 6px 14px -6px rgba(0,0,0,0.4),
      0 0 130px 22px rgba(168, 67, 30, 0.28);
  }
  35% {
    box-shadow:
      0 1px 0 rgba(255,255,255,0.04) inset,
      0 22px 50px -20px rgba(0,0,0,0.6),
      0 6px 14px -6px rgba(0,0,0,0.4),
      0 0 70px 4px rgba(168, 67, 30, 0.10);
  }
}
.countdown::before {
  /* rust hairline — the design system signature */
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--rust);
}
.countdown::after {
  /* clinical warning stripe along the left edge */
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -1px;
  width: 3px;
  background: repeating-linear-gradient(
    -45deg,
    var(--rust) 0 4px,
    transparent 4px 8px
  );
  opacity: 0.85;
}

.countdown .cd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 11px 18px;
  border-bottom: 1px solid #2a241a;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25), transparent);
}
.countdown .cd-head .lbl {
  font-size: 9.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #c9b78c;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.countdown .cd-head .lbl .pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 0 rgba(168,67,30,0.7);
  animation: cd-pulse 3.4s ease-out infinite;
  flex: 0 0 6px;
}
@keyframes cd-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(168,67,30,0.55); opacity: 1; }
  18%  { box-shadow: 0 0 0 12px rgba(168,67,30,0); opacity: 1; }
  22%  { opacity: 0.4; }
  100% { box-shadow: 0 0 0 0 rgba(168,67,30,0); opacity: 0.4; }
}
.countdown .cd-head .lbl b {
  font-weight: 600;
  color: #f4ead0;
}
.countdown .cd-head .toggle {
  background: transparent;
  border: 0;
  color: #8a7d62;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  transition: color .15s;
  white-space: nowrap;
}
.countdown .cd-head .toggle:hover { color: #f4ead0; }

/* Cuando el card está colapsado, el toggle "Ver +" cambia a rust y respira
   en sync con el cd-breath del card y el cd-pulse del dot (3.4s). Llama la
   atención del usuario para que sepa que el pill es clickeable y se expande.
   Al abrirlo, vuelve al gris neutral porque ya cumplió su función. */
.countdown.is-collapsed .cd-head .toggle {
  color: var(--rust);
  animation: cd-toggle-glow 3.4s ease-out infinite;
}
@keyframes cd-toggle-glow {
  0%, 100% {
    opacity: 0.78;
    text-shadow: 0 0 0 rgba(168, 67, 30, 0);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px rgba(168, 67, 30, 0.55);
  }
}

/* ----- ECG flatline strip ----- */
.countdown .cd-ecg {
  position: relative;
  height: 44px;
  background: #0a0805;
  border-bottom: 1px solid #2a241a;
  overflow: hidden;
}
.countdown .cd-ecg-meta {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6a5e48;
  z-index: 2;
  pointer-events: none;
}
.countdown .cd-ecg-meta b {
  color: var(--rust-soft);
  font-weight: 500;
}
.countdown .cd-ecg svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.countdown .cd-ecg .ecg-grid {
  stroke: rgba(168,67,30,0.10);
  stroke-width: 0.5;
}
.countdown .cd-ecg .ecg-line {
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.25;
  stroke-linejoin: miter;
  stroke-linecap: square;
  filter: drop-shadow(0 0 3px rgba(168,67,30,0.65));
}
.countdown .cd-ecg .ecg-cursor {
  fill: #e8b07a;
  filter: drop-shadow(0 0 6px rgba(232,176,122,0.9));
  animation: ecg-scan 4.2s linear infinite;
}
@keyframes ecg-scan {
  from { transform: translateX(-4%); opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  to   { transform: translateX(104%); opacity: 0; }
}

/* ----- Elapsed: days without treatment ----- */
.countdown .cd-elapsed {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #2a241a;
  position: relative;
}
.countdown .cd-elapsed-lbl {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #8a7d62;
  font-weight: 500;
  margin-bottom: 6px;
}
.countdown .cd-elapsed-lbl b {
  color: var(--rust-soft);
  font-weight: 500;
}
.countdown .cd-elapsed-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 54px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #f4ead0;
  font-variation-settings: "opsz" 72;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.countdown .cd-elapsed-num .days-unit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 500;
  align-self: end;
  padding-bottom: 8px;
}
.countdown .cd-elapsed-sub {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: #c9b78c;
  letter-spacing: -0.003em;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-elapsed-sub b {
  font-style: normal;
  color: #f4ead0;
  font-weight: 500;
}

/* ----- Target: 1 ene 2029 ----- */
.countdown .cd-target {
  padding: 12px 18px 10px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.countdown .cd-target .arrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: #8a7d62;
  text-transform: uppercase;
}
.countdown .cd-target .arrow b {
  color: var(--rust-soft);
  font-weight: 500;
}
.countdown .cd-target .date {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: #f4ead0;
  font-variation-settings: "opsz" 28;
}
.countdown .cd-target .date b {
  font-style: normal;
  color: #e8b07a;
  font-weight: 500;
}

/* ----- Countdown grid (deadline) ----- */
.countdown .cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #2a241a;
}
.countdown .cd-cell {
  padding: 12px 6px 14px;
  text-align: center;
  border-right: 1px solid #2a241a;
  position: relative;
}
.countdown .cd-cell:last-child { border-right: 0; }
.countdown .cd-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  line-height: 1;
  color: #f4ead0;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 36;
  font-variant-numeric: tabular-nums;
  display: block;
}
.countdown .cd-unit {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6a5e48;
  font-weight: 500;
}

/* ----- Footer quote ----- */
.countdown .cd-foot {
  padding: 12px 18px 14px;
  border-top: 1px solid #2a241a;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.4;
  color: #c9b78c;
  letter-spacing: -0.003em;
  text-wrap: balance;
  background: rgba(168,67,30,0.06);
}
.countdown .cd-foot b {
  font-style: normal;
  color: #e8b07a;
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10.5px;
}

/* Body wrapper: smooth collapse / expand */
.countdown .cd-body {
  max-height: 520px;
  opacity: 1;
  overflow: hidden;
  transition:
    max-height .45s cubic-bezier(.2,.7,.2,1),
    opacity .32s ease .06s;
}
.countdown .cd-head {
  transition: border-bottom-color .25s ease, padding .35s cubic-bezier(.2,.7,.2,1), background .25s ease;
}

/* Collapsed state — card keeps its width, body collapses vertically */
.countdown.is-collapsed .cd-body {
  max-height: 0;
  opacity: 0;
  transition:
    max-height .38s cubic-bezier(.5,0,.7,.25),
    opacity .18s ease;
}
.countdown::after { transition: opacity .3s ease; }
.countdown.is-collapsed::after { opacity: 0; }
.countdown.is-collapsed .cd-head {
  border-bottom-color: transparent;
  background: var(--ink);
}
/* Hide the long brand text when collapsed — leave only pulse + days */
.countdown.is-collapsed .cd-head .lbl .brand { display: none; }
.countdown.is-collapsed .cd-head .lbl .compact {
  display: inline;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: #f4ead0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.countdown.is-collapsed .cd-head .lbl .compact b {
  font-style: normal;
  color: #e8b07a;
  font-weight: 500;
}
.countdown .cd-head .lbl .compact { display: none; }

/* ----- Tablet (≤ 960px): card un poco más compacta ----- */
@media (max-width: 960px) {
  .countdown {
    width: 320px;
    right: 18px;
    bottom: 18px;
  }
  .countdown .cd-elapsed { padding: 14px 16px 12px; }
  .countdown .cd-elapsed-num { font-size: 46px; }
  .countdown .cd-target { padding: 11px 16px 9px; flex-direction: column; align-items: flex-start; gap: 3px; }
  .countdown .cd-target .date-time { display: none; }
  .countdown .cd-foot { padding: 11px 16px 13px; font-size: 12.5px; }
  .countdown .cd-num { font-size: 26px; }
}

/* ----- Móvil (≤ 640px): full-width abajo + tipografía ajustada ----- */
@media (max-width: 640px) {
  .countdown {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-width: 480px;
    margin-left: auto;
  }
  .countdown::after { width: 2px; }

  .countdown .cd-head { padding: 9px 12px 9px 14px; }
  .countdown .cd-head .lbl { font-size: 8.5px; letter-spacing: .2em; gap: 9px; }
  .countdown .cd-head .toggle { font-size: 9.5px; padding: 4px 6px; }

  .countdown .cd-ecg { height: 34px; }
  .countdown .cd-ecg-meta { padding: 5px 10px; font-size: 7.5px; }

  .countdown .cd-elapsed { padding: 12px 14px 11px; }
  .countdown .cd-elapsed-lbl { font-size: 8.5px; margin-bottom: 4px; letter-spacing: .2em; }
  .countdown .cd-elapsed-num { font-size: 42px; gap: 8px; }
  .countdown .cd-elapsed-num .days-unit { font-size: 9px; padding-bottom: 6px; }
  .countdown .cd-elapsed-sub { font-size: 11.5px; }

  .countdown .cd-target { padding: 9px 14px 8px; }
  .countdown .cd-target .arrow { font-size: 8px; letter-spacing: .2em; }
  .countdown .cd-target .date { font-size: 13px; }
  .countdown .cd-cell { padding: 10px 4px 11px; }
  .countdown .cd-num { font-size: 22px; }
  .countdown .cd-unit { font-size: 8px; letter-spacing: .18em; }
  .countdown .cd-foot { padding: 10px 14px 12px; font-size: 11.5px; }

  /* Estado colapsado en móvil: chip al costado derecho, solo días sin tratamiento */
  .countdown.is-collapsed {
    left: auto;
    margin-left: 0;
    max-width: calc(100vw - 20px);
  }
}

/* ============================================================
   RESPONSIVE POLISH — fixes detectados auditando mobile real
   ============================================================ */

/* ----- Mobile general (≤ 880px) ----- */
@media (max-width: 880px) {
  /* P0 · El countdown sticky-bottom (collapsed ~43px) tapaba los últimos
     ~40px de cada scroll position: "Nunca aplicado" del hero, párrafos
     de stats, el inicio del quote de la memoria, etc. El padding-bottom
     global le da espacio al contenido para terminar arriba del bar. */
  body { padding-bottom: 56px; }

  /* P0 · El gráfico de presupuestos (viewBox 1120×460) escalaba a
     331×136px en mobile y las barras + labels quedaban ilegibles.
     Dos fixes complementarios:
       1. min-height al SVG le da espacio vertical mínimo legible.
       2. vector-effect: non-scaling-stroke fuerza al stroke de las
          líneas a ser 2px DE PANTALLA en vez de 2px del viewBox —
          sin esto el stroke se reduce a ~0.5px sub-pixel (invisible)
          cuando el SVG escala de 1120 → 276 px de ancho. */
  #budget-chart .bdg-svg { min-height: 240px; }
  #budget-chart .bdg-line { vector-effect: non-scaling-stroke; }

  /* P1 · CSS Grid default `min-width: auto` permite que un grid item se
     expanda al min-content de su contenido. En .stat-cell eso hacía que
     el cell midiera 330px sobre un container de 320 (overflow visual de
     ~10px en 320 viewport). min-width: 0 fuerza al cell a respetar el
     ancho del track. */
  .big-stats .stat-cell { min-width: 0; }

  /* P1 · Hero responsive: el padding 100px/120px era pensado para desktop
     y en mobile dejaba un gap enorme entre navbar y el year-strip. */
  .mfst-hero { padding: 40px 0 80px; }

  /* P1 · El year-strip era `display: flex` horizontal en mobile, lo que
     dejaba "1929 → 2029" a la izquierda y el span "· 100 años con el
     mismo diagnóstico" wrapeado verticalmente al lado — visualmente
     desordenado porque los años quedaban en 1 línea y el span en 3.
     Solución: flex-wrap + flex-basis 100% al span lo fuerza a renglón
     propio sin alterar el layout horizontal de los años. */
  .mfst-hero .year-strip {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
  }
  .mfst-hero .year-strip .span {
    flex-basis: 100%;
    margin-left: 0;
  }
}

/* ----- Móviles muy estrechos (≤ 380px): aún más compacto ----- */
@media (max-width: 380px) {
  .countdown .cd-elapsed-num { font-size: 36px; }
  .countdown .cd-num { font-size: 20px; }
  .countdown .cd-elapsed-sub { font-size: 11px; }
  .countdown .cd-elapsed-sub b { letter-spacing: 0; }

  /* (year-strip ya pasó a flex-direction: column en el bloque <=880px) */

  /* P1 · stat-headline "20% → 10,5%" se desbordaba ~30px porque el
     clamp min era 40px y "10,5%" + arrow + "20%" no entraba en cell
     de 256px (320 viewport - 64px de padding). Reducimos el min para
     que escale proporcional al viewport chico. */
  .big-stats .stat-headline .from,
  .big-stats .stat-headline .to {
    font-size: clamp(30px, 8.5vw, 76px);
  }
  .big-stats .stat-cell { padding: 36px 22px 32px; }

  /* P1 · pullquote.big con max-width: 18ch desbordaba en 320 porque
     18ch ≈ 288px > viewport útil (276px). Liberar el max-width acá
     y bajar el font para que palabras como "saneamiento" o "asegurar"
     no queden cortadas. */
  .pullquote.big {
    font-size: clamp(26px, 7vw, 52px);
    max-width: none;
    margin: 60px auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .countdown,
  .countdown .cd-head .lbl .pulse,
  .countdown .cd-head .toggle,
  .countdown .cd-ecg .ecg-cursor { animation: none; }
}

/* Theme overrides for cta-final under bahia/cobre — keep cta-final identical (ocean) for impact */
body.theme-bahia .mfst-bar { background: rgba(20,17,12,0.94); }
body.theme-bahia .mfst-bar .brand b { color: var(--ink); }
body.theme-bahia .echo-card, body.theme-bahia .tile { background: var(--paper); }
body.theme-bahia .echo-card:hover, body.theme-bahia .tile:hover, body.theme-bahia .prow:hover { background: var(--paper-2); }
body.theme-bahia .echo-card .txt { color: var(--ink); }
body.theme-bahia .prow h3, body.theme-bahia .tile h4 { color: var(--ink); }
body.theme-bahia .proposal-coda { background: var(--paper-2); border-color: var(--rule); }
body.theme-bahia .proposal-coda p { color: var(--ink); }
body.theme-bahia .mfst-head h2, body.theme-bahia .mfst-hero h1, body.theme-bahia .big-stats .num,
body.theme-bahia .chart-block .head .title { color: var(--ink); }
