/* =========================================================================
   Gran Paisaje Chaco–Pantanal · hoja de estilos
   Paleta tomada del territorio: monte, tierra roja, arena del Pilcomayo,
   agua del Pantanal, ceniza y la luz ocre del logotipo.
   ========================================================================= */

:root {
  --paper: #f2ede4;
  --paper-2: #e8e1d3;
  --paper-3: #d9cfbc;
  --warm: #eee4d4;
  --ink: #1b1f18;
  --ink-2: #454a40;
  --ink-3: #686c61;
  --brand: #476a55;
  --forest: #2e4636;
  --ochre: #d6a03a;
  --ochre-ink: #8a5a0c;
  --earth: #a65332;
  --water: #2d5c61;
  --water-2: #8fb3b0;
  --night: #121511;
  --teal: #0e2422;
  --ash: #161513;
  --ash-2: #23211e;
  --light: #f4efe6;
  --light-2: rgba(244, 239, 230, 0.74);
  --light-3: rgba(244, 239, 230, 0.52);
  --c-def: #c99a5b;
  --c-fire: #e5562e;
  --c-inf: #9aa3a8;
  --c-cover: #3f5a45;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--serif);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 1000px) { body { font-size: 1.1875rem; } }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
::selection { background: var(--ochre); color: var(--ink); }

[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--light); padding: 10px 14px; font: 500 14px var(--sans); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- temas por capítulo ---------- */
.chapter { position: relative; }
.chapter[data-theme="light"] { background: var(--paper); color: var(--ink); }
.chapter[data-theme="warm"] { background: var(--warm); color: var(--ink); }
.chapter[data-theme="dark"] { background: var(--night); color: var(--light); }
.chapter[data-theme="teal"] { background: var(--teal); color: var(--light); }
.chapter[data-theme="ash"] { background: var(--ash); color: var(--light); }

/* ---------- tipografía editorial ---------- */
.kicker {
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ochre-ink);
  margin-bottom: 1.1rem;
}
.kicker--light { color: var(--ochre); }
.display {
  font-size: clamp(2.25rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 380;
  max-width: 17ch;
  text-wrap: balance;
}
.display--light { color: var(--light); }
.display--sm { font-size: clamp(2rem, 3.8vw, 3.2rem); max-width: 20ch; }
.subhead { font-size: clamp(1.55rem, 2.6vw, 2.1rem); line-height: 1.12; font-weight: 400; margin-bottom: 0.8rem; text-wrap: balance; }
.subhead--light { color: var(--light); }
.lede { font-size: clamp(1.2rem, 1.8vw, 1.42rem); line-height: 1.5; color: var(--ink-2); max-width: 40rem; margin-top: 1.4rem; }
.lede--light { color: var(--light-2); }
.chapter-head { padding: clamp(96px, 14vw, 180px) 0 clamp(48px, 7vw, 88px); }
.chapter-head--sub { padding-top: clamp(64px, 9vw, 120px); }

figcaption, .cycle__cap {
  font: 400 0.8125rem/1.45 var(--sans);
  color: var(--ink-3);
  margin-top: 0.6rem;
}
[data-theme="dark"] figcaption, [data-theme="teal"] figcaption, [data-theme="ash"] figcaption { color: var(--light-3); }
.credit { opacity: 0.85; }
.meta { display: block; font: 400 0.6875rem/1.5 var(--mono); letter-spacing: 0.04em; opacity: 0.8; margin-top: 2px; }

.pull { margin: 2.4rem 0 0; padding: 0 0 0 1.4rem; border-left: 2px solid var(--ochre); }
.pull p { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.3; font-style: italic; margin: 0 0 0.6rem; }
.pull cite { font: 400 0.8125rem/1.4 var(--sans); font-style: normal; color: var(--ink-3); }
.pull--light p { color: var(--light); }
.pull--light cite { color: var(--light-3); }

/* cifras y notas */
.fig { white-space: normal; }
.fn {
  font: 500 0.6em/0 var(--sans);
  vertical-align: super;
  margin-left: 0.12em;
  text-decoration: none;
  opacity: 0.55;
}
.fn:hover, .fn:focus-visible { opacity: 1; }

/* revelado al desplazarse */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- cabecera, índice y riel ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  pointer-events: none;
  transition: transform 0.5s var(--ease);
}
.site-header > * { pointer-events: auto; }
.site-header::before {
  content: ""; position: absolute; inset: 0 0 -28px 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity 0.4s, background 0.4s;
}
html.is-scrolled[data-ui="light"] .site-header::before { opacity: 1; background: linear-gradient(180deg, rgba(242, 237, 228, 0.96) 0%, rgba(242, 237, 228, 0.7) 55%, rgba(242, 237, 228, 0) 100%); }
html.is-scrolled[data-ui="dark"] .site-header::before { opacity: 1; background: linear-gradient(180deg, rgba(12, 14, 10, 0.55) 0%, rgba(12, 14, 10, 0) 100%); }
html.index-open .site-header::before { opacity: 0; }
.brand { position: relative; display: block; width: 92px; transition: width 0.5s var(--ease); }
.brand-logo { width: 100%; height: auto; transition: opacity 0.4s; }
.brand-logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
html[data-ui="light"] .brand-logo--light { opacity: 0; }
html[data-ui="light"] .brand-logo--dark { opacity: 1; }
html.is-scrolled .site-header .brand { width: 64px; }

.index-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(18, 21, 17, 0.38); color: var(--light);
  border: 1px solid rgba(244, 239, 230, 0.28);
  border-radius: 999px; padding: 8px 14px 8px 16px; cursor: pointer;
  font: 500 0.75rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
html[data-ui="light"] .index-toggle { background: rgba(242, 237, 228, 0.82); color: var(--ink); border-color: rgba(27, 31, 24, 0.18); }
.index-toggle__icon { position: relative; width: 16px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }

.index-panel {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper); color: var(--ink);
  overflow-y: auto;
  padding: 96px var(--gutter) 48px;
}
.index-panel__inner { max-width: 880px; margin: 0 auto; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-3); }
.index-list li { border-bottom: 1px solid var(--paper-3); }
.index-list a {
  display: grid; grid-template-columns: 3.2rem 1fr; align-items: baseline;
  padding: 1rem 0; text-decoration: none;
  font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.15;
}
.index-list a span { font: 500 0.8rem var(--mono); color: var(--ochre-ink); }
.index-list a small { grid-column: 2; display: block; font: 400 0.85rem/1.5 var(--sans); color: var(--ink-3); margin-top: 4px; }
.index-list a:hover { color: var(--brand); }
html.index-open { overflow: hidden; }
html.index-open .site-header { z-index: 70; }
html.index-open .site-header .brand-logo--light { opacity: 0; }
html.index-open .site-header .brand-logo--dark { opacity: 1; }
html.index-open .index-toggle { background: var(--ink); color: var(--light); }

.rail {
  position: fixed; right: 18px; top: 50%; z-index: 30;
  transform: translateY(-50%);
  list-style: none; margin: 0; padding: 0;
  display: none; flex-direction: column; gap: 6px;
}
@media (min-width: 1100px) { .rail { display: flex; } }
.rail a {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  width: 28px; height: 18px; text-decoration: none; color: var(--light);
}
html[data-ui="light"] .rail a { color: var(--ink); }
.rail a::after { content: ""; width: 10px; height: 1.5px; background: currentColor; opacity: 0.45; transition: width 0.3s var(--ease), opacity 0.3s; }
.rail a.is-active::after { width: 22px; opacity: 1; background: var(--ochre); }
.rail a span {
  position: absolute; right: 34px; white-space: nowrap;
  font: 500 0.72rem var(--sans); letter-spacing: 0.04em;
  padding: 4px 8px; border-radius: 3px;
  background: var(--ink); color: var(--light);
  opacity: 0; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  font: 500 0.875rem/1 var(--sans); letter-spacing: 0.02em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--light { background: var(--light); color: var(--ink); }
.btn--light:hover { background: var(--ochre); }
.btn--ghost { background: transparent; color: var(--light); border-color: rgba(244, 239, 230, 0.45); }
.btn--ghost:hover { border-color: var(--light); background: rgba(244, 239, 230, 0.08); }

/* =========================================================================
   01 · APERTURA
   ========================================================================= */
.hero { height: 400vh; background: var(--night); }
.hero__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
/* Vista previa difuminada mientras carga la fotografía principal */
.hero__media::before { content: ""; position: absolute; inset: -40px; background: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAgABgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDUSIntU6RkVz8fjbH3tNjP/bQ/4VMfG1uUx/ZWD6ib/wCtTdSxKgu5sspNFc1L4wB+7YY/7a//AFqKfOiXE5MPSlqr7/TrSl8VgWSM3rRUJcd6KLAf/9k=") 50% 34% / cover no-repeat; filter: blur(24px); }
.hero__img { position: relative; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%;
  transform: scale(var(--hero-scale, 1.1)); transform-origin: 50% 40%;
  will-change: transform;
}
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 14, 10, 0.55) 0%, rgba(12, 14, 10, 0) 26%),
    linear-gradient(0deg, rgba(10, 12, 9, 0.86) 0%, rgba(10, 12, 9, 0.42) 34%, rgba(10, 12, 9, 0) 62%);
  opacity: var(--hero-shade, 1);
}
.hero__stage {
  position: absolute; inset: 0;
  display: grid; align-items: end;
  padding: 0 var(--gutter) clamp(120px, 17vh, 190px);
}
.hero__step {
  grid-area: 1 / 1; max-width: 1100px; color: var(--light);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), visibility 0s 0.9s;
}
.hero__step.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0.15s, 0.15s, 0s; }
.hero__title {
  font-size: clamp(3.3rem, 10.5vw, 9.4rem);
  line-height: 0.9; letter-spacing: -0.025em; font-weight: 340;
  margin-bottom: 1.6rem;
}
.hero__title em { font-weight: 300; color: #f1dfb8; }
.hero__lede { font-size: clamp(1.15rem, 1.7vw, 1.45rem); line-height: 1.45; max-width: 36rem; color: var(--light-2); }
.hero__statement {
  font-size: clamp(1.75rem, 4vw, 3.4rem); line-height: 1.12; letter-spacing: -0.01em;
  max-width: 24ch; font-weight: 360; text-wrap: balance;
}
.hero__statement em { color: #f1dfb8; }
.hero__cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--light); text-decoration: none;
  font: 500 0.7rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: opacity 0.5s;
}
.hero__cue-line { width: 1px; height: 44px; background: linear-gradient(var(--light), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.hero.is-past-intro .hero__cue { opacity: 0; pointer-events: none; }
.hero__meta { position: absolute; right: var(--gutter); bottom: 22px; margin: 0; color: var(--light-3); text-align: right; max-width: 46vw; font: 400 0.6875rem/1.5 var(--mono); letter-spacing: 0.04em; }
@media (max-width: 699px) {
  .hero__meta { display: none; }
  .hero__stage { padding-bottom: 104px; }
}

/* =========================================================================
   02 · MAPA
   ========================================================================= */
.where { background: var(--paper); }
.where__map { position: sticky; top: 0; height: 100vh; height: 100svh; z-index: 1; }
.map { position: absolute; inset: 0; }
.map__svg { width: 100%; height: 100%; display: block; }
.where__steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; padding-bottom: 30vh; }
.step-card {
  pointer-events: auto;
  width: min(440px, calc(100% - 2 * var(--gutter)));
  margin: 0 0 0 var(--gutter);
  background: rgba(242, 237, 228, 0.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(27, 31, 24, 0.08);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
  font-size: 1.06rem; line-height: 1.55;
  box-shadow: 0 10px 40px -24px rgba(27, 31, 24, 0.45);
}
.where__head { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; margin-top: 0; padding-top: clamp(110px, 16vh, 170px); min-height: 70vh; }
.where__head .display { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.map-step { margin-top: 0; margin-bottom: 70vh; }
.map-step:first-of-type { margin-top: 10vh; }
.step-card__note { font: 400 0.9rem/1.5 var(--sans); color: var(--ink-3); border-top: 1px solid var(--paper-3); padding-top: 0.8rem; }
.step-card--explore { margin-bottom: 18vh; }
.map-controls { margin: 1rem 0; display: grid; gap: 0.9rem; font: 400 0.875rem/1.4 var(--sans); }
.map-controls fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.map-controls legend { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.map-controls label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.map-controls input { accent-color: var(--brand); width: 16px; height: 16px; }
.map-controls__zoom { display: flex; flex-wrap: wrap; gap: 6px; }
.map-controls__zoom button {
  border: 1px solid rgba(27, 31, 24, 0.2); background: transparent; border-radius: 999px;
  padding: 6px 12px; cursor: pointer; font: 500 0.8rem var(--sans);
}
.map-controls__zoom button.is-active, .map-controls__zoom button:hover { background: var(--ink); color: var(--light); border-color: var(--ink); }
.map-source { font: 400 0.78rem/1.5 var(--sans); color: var(--ink-3); margin-top: 0.8rem; }

/* elementos del mapa */
.m-sphere { fill: #c6d5d2; stroke: #aebfbb; stroke-width: 1; }
.m-grat { fill: none; stroke: rgba(27, 31, 24, 0.08); stroke-width: 0.6; }
.m-land { fill: #f3eee5; stroke: #c9bfac; stroke-width: 0.6; }
.m-land.is-bolivia { fill: #ebe2cf; }
.m-border { fill: none; stroke: #8f846f; stroke-width: 1.1; stroke-dasharray: 4 3; }
.m-eco { font: italic 400 22px var(--serif); fill: rgba(44, 58, 44, 0.78); letter-spacing: 0.01em; paint-order: stroke; stroke: rgba(242, 237, 228, 0.7); stroke-width: 3px; transition: opacity 0.6s; pointer-events: none; }
.m-scale { transition: opacity 0.6s; pointer-events: none; }
.m-scale path { fill: none; stroke: var(--ink-2); stroke-width: 1.4; }
.m-scale text { font: 500 11px var(--sans); fill: var(--ink-2); text-anchor: middle; }
.m-river { fill: none; stroke: #6f9ea0; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.m-lake { fill: #a9c6c3; stroke: none; }
.m-area { stroke-width: 0.9; transition: fill-opacity 0.6s, stroke-opacity 0.6s; cursor: pointer; }
.m-area.t-nacional { fill: #476a55; stroke: #2e4636; }
.m-area.t-indigena { fill: #c98b2a; stroke: #8a5a0c; }
.m-area.t-subnacional { fill: #8aa37f; stroke: #5d7a55; }
.m-area:hover, .m-area.is-focus { fill-opacity: 0.85 !important; }
.m-eco-area { stroke: rgba(255, 255, 255, 0.55); stroke-width: 0.8; transition: fill-opacity 0.6s; cursor: pointer; }
.m-eco-area:hover, .m-eco-area.is-focus { stroke: var(--ink-2); stroke-width: 1.4; }
.m-ramsar { fill: url(#ramsar-dots); stroke: #2d6e8e; stroke-width: 1.5; cursor: pointer; }
.m-ramsar:hover, .m-ramsar.is-focus { stroke-width: 2.6; fill: rgba(45, 110, 142, 0.18); }
.m-mun { fill: transparent; stroke: #7d725e; stroke-width: 0.6; stroke-dasharray: 2 2; cursor: pointer; }
.m-mun:hover { fill: rgba(27, 31, 24, 0.05); }
.m-corr { fill: url(#hatch); stroke: #a65332; stroke-width: 0.8; stroke-dasharray: 4 3; }
.m-town circle { fill: var(--ink); }
.m-town text, .m-label, .m-country, .m-river-label {
  font-family: var(--sans); paint-order: stroke; stroke: rgba(242, 237, 228, 0.9); stroke-width: 3px; stroke-linejoin: round;
}
.m-town text { font-size: 11px; fill: var(--ink-2); }
.m-country { font-size: 11px; letter-spacing: 0.32em; fill: #8b8170; font-weight: 500; }
.m-country--globo { font-size: 10px; letter-spacing: 0.06em; fill: #5f5747; transition: opacity 0.6s; pointer-events: none; }
.m-label { font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.m-label--sub { font-size: 10.5px; font-weight: 400; fill: var(--ink-2); font-style: italic; font-family: var(--serif); }
.m-river-label { font-size: 10.5px; font-style: italic; font-family: var(--serif); fill: #3f7275; }
.m-photo { cursor: pointer; }
.m-photo circle { fill: var(--light); stroke: var(--earth); stroke-width: 2; transition: r 0.2s; }
.m-photo text { font: 600 9px var(--sans); fill: var(--earth); pointer-events: none; }
.m-photo:hover circle, .m-photo:focus-visible circle, .m-photo.is-active circle { fill: var(--earth); }
.m-photo:hover text, .m-photo.is-active text { fill: var(--light); }
.m-photo:focus { outline: none; }
.m-photo:focus-visible circle { stroke: var(--ochre); stroke-width: 3; }
.m-center path { fill: var(--water); stroke: var(--light); stroke-width: 1.2; }
.m-com circle { fill: var(--light); stroke: var(--ink-2); stroke-width: 1.2; }
.m-annot { font: 500 11px var(--sans); fill: var(--ochre-ink); paint-order: stroke; stroke: rgba(242, 237, 228, 0.92); stroke-width: 3px; }
.m-annot-line { fill: none; stroke: var(--ochre-ink); stroke-width: 1.2; marker-end: url(#arrow); }
.m-limite { fill: none; stroke: #2e4636; stroke-width: 2; stroke-dasharray: 6 4; }
.m-frame { fill: none; stroke: var(--ochre); stroke-width: 1.6; }

.map__legend {
  position: absolute; right: var(--gutter); bottom: 28px; z-index: 3;
  background: rgba(242, 237, 228, 0.92); border-radius: 4px; padding: 10px 12px;
  font: 400 0.75rem/1.5 var(--sans); color: var(--ink-2); max-width: 260px;
  transition: opacity 0.4s;
}
.map__legend:empty { display: none; }
.map__legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.map__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 7px; vertical-align: -2px; }
.map__panel {
  position: absolute; z-index: 4; right: var(--gutter); top: 84px;
  width: min(360px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100% - 180px); overflow-y: auto;
  background: var(--paper); border-radius: 4px; box-shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.45);
  font: 400 0.875rem/1.5 var(--sans);
}
.map__panel figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px 4px 0 0; cursor: zoom-in; }
.map__panel-body { padding: 14px 16px 16px; }
.map__panel h4 { font: 400 1.25rem/1.2 var(--serif); margin-bottom: 6px; }
.map__panel ul { margin: 8px 0 0; padding-left: 1.1em; }
.map__panel .meta { color: var(--ink-3); }
.map__panel-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(18, 21, 17, 0.7); color: var(--light); font-size: 18px; line-height: 1; cursor: pointer; z-index: 1; }
.map__panel-strip { display: flex; gap: 4px; padding: 0 16px 12px; overflow-x: auto; }
.map__panel-strip button { flex: 0 0 64px; padding: 0; border: 2px solid transparent; border-radius: 3px; cursor: pointer; background: none; }
.map__panel-strip button[aria-pressed="true"] { border-color: var(--earth); }
.map__panel-strip img { width: 60px; height: 44px; object-fit: cover; border-radius: 2px; }

@media (max-width: 999px) {
  /* En pantallas estrechas el mapa queda fijo arriba y los textos pasan por debajo, sin taparlo. */
  .where__map { height: 58vh; height: 58svh; z-index: 3; box-shadow: 0 1px 0 var(--paper-3); background: var(--paper); }
  .where__steps { margin-top: 0; padding-bottom: 20vh; }
  .step-card { margin: 0 auto; box-shadow: none; }
  .where__head { padding-top: 2.4rem; min-height: 0; margin-bottom: 30vh; }
  .map-step:first-of-type { margin-top: 0; }
  .map-step { margin-bottom: 38vh; }
  .step-card--explore { margin-bottom: 8vh; }
  .map__legend { right: 8px; left: auto; top: auto; bottom: 8px; padding: 6px 9px; font-size: 0.68rem; max-width: 190px; }
  .map__panel { top: 56px; bottom: 8px; right: 8px; left: 8px; width: auto; max-height: none; }
  .map__panel figure img { aspect-ratio: 16 / 9; }
}

/* =========================================================================
   03 · ECORREGIONES
   ========================================================================= */
.transect { padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.transect__axis {
  display: flex; justify-content: space-between; margin: 0 0 12px;
  font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
  position: relative; padding-bottom: 10px;
}
.transect__axis::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #b8743c, #a39a5d 40%, #6f9a7c 70%, #2d5c61); }
.transect__panels { display: flex; gap: 4px; height: min(80vh, 780px); min-height: 520px; }
.eco-panel {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 3px; background: var(--forest);
  transition: flex-grow 0.8s var(--ease);
}
.eco-panel.is-open { flex-grow: 3.4; }
.eco-panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 0.8s; filter: saturate(0.85) brightness(0.82); }
.eco-panel.is-open .eco-panel__img { filter: none; }
.eco-panel:not(.is-open):hover .eco-panel__img { transform: scale(1.03); filter: saturate(0.95) brightness(0.92); }
.eco-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 12, 9, 0.85) 0%, rgba(10, 12, 9, 0.35) 38%, rgba(10, 12, 9, 0) 64%); pointer-events: none; }
.eco-panel__toggle {
  position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; text-align: left;
  padding: 22px; color: var(--light);
}
.eco-panel.is-open .eco-panel__toggle { cursor: default; }
.eco-panel__num { font: 500 0.75rem var(--mono); letter-spacing: 0.12em; color: var(--ochre); margin-bottom: 8px; }
.eco-panel__name { font: 400 clamp(1.4rem, 2.2vw, 2rem)/1.05 var(--serif); }
.eco-panel:not(.is-open) .eco-panel__name { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; left: 18px; bottom: 22px; }
.eco-panel__body {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  padding: 0 24px 24px; color: var(--light-2); max-width: 36rem;
  font-size: 1rem; line-height: 1.5;
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s;
}
.eco-panel.is-open .eco-panel__body { opacity: 1; transform: none; visibility: visible; transition-delay: 0.35s, 0.35s, 0s; }
.eco-panel__essence { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2; color: var(--light); margin-bottom: 0.7em; }
.eco-panel__fact { font: 400 0.9rem/1.5 var(--sans); color: var(--light-2); border-left: 2px solid var(--ochre); padding-left: 10px; }
.eco-panel__gives { font: 400 0.9rem/1.5 var(--sans); color: var(--light); }
.eco-panel__body p { margin-bottom: 0.7em; }

@media (max-width: 899px) {
  .transect__panels { flex-direction: column; height: auto; min-height: 0; }
  .eco-panel { flex: none; height: 96px; transition: height 0.7s var(--ease); }
  .eco-panel.is-open { height: 640px; max-height: 92svh; }
  .eco-panel:not(.is-open) .eco-panel__name { writing-mode: horizontal-tb; transform: none; position: static; }
  .eco-panel__toggle { padding: 18px; }
  .eco-panel__body { padding: 0 18px 18px; font-size: 0.95rem; }
  .transect__axis span:first-child::before { content: "↑ "; }
  .transect__axis span:last-child::after { content: " ↓"; }
}

.eco-coda { padding: clamp(56px, 8vw, 96px) 0 clamp(96px, 12vw, 160px); font-size: 1.2rem; }

/* =========================================================================
   04 · AGUA
   ========================================================================= */
.bleed { position: relative; height: 92vh; height: 92svh; min-height: 520px; overflow: hidden; background: var(--night); }
.bleed--tall { height: 100vh; height: 100svh; }
.bleed > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bleed::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 8, 0.82) 0%, rgba(8, 10, 8, 0.25) 42%, rgba(8, 10, 8, 0) 70%); pointer-events: none; }
.bleed__text { text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35); position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) clamp(64px, 10vh, 110px); max-width: 1080px; color: var(--light); }
.bleed__text--top { top: 0; bottom: auto; padding-top: clamp(96px, 14vh, 150px); }
.bleed--burn::after { background: linear-gradient(180deg, rgba(8, 8, 7, 0.86) 0%, rgba(8, 8, 7, 0.35) 46%, rgba(8, 8, 7, 0.1) 100%); }
.bleed__text--center { top: 50%; bottom: auto; transform: translateY(-50%); left: 50%; right: auto; translate: -50% 0; text-align: center; max-width: 860px; width: 100%; }
.bleed__lede { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.4; color: var(--light-2); max-width: 34rem; margin-top: 1rem; }
.bleed > figcaption { position: absolute; z-index: 2; right: var(--gutter); bottom: 16px; max-width: min(520px, 70vw); text-align: right; color: var(--light-3); margin: 0; }
.water .wrap--narrow { padding-top: clamp(72px, 10vw, 128px); padding-bottom: clamp(40px, 6vw, 72px); }

.rivers { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter) clamp(96px, 12vw, 160px); display: grid; gap: clamp(56px, 9vw, 120px); }
.river { display: grid; gap: 1.6rem; align-items: center; }
.river__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.river__name { font: 500 0.75rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--water-2); margin-bottom: 0.5rem; }
.river h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; margin-bottom: 1rem; color: var(--light); }
.river__text { color: var(--light-2); max-width: 32rem; }
@media (min-width: 900px) {
  .river { grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); }
  .river--flip .river__media { order: 2; }
  .river--flip { grid-template-columns: 5fr 7fr; }
}

/* =========================================================================
   05 · VIDA
   ========================================================================= */
.roles { display: grid; gap: clamp(24px, 3vw, 40px); padding-bottom: clamp(80px, 10vw, 140px); }
.role__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.role__verb { font: 400 clamp(2.6rem, 5vw, 4.2rem)/0.95 var(--serif); font-style: italic; color: var(--brand); margin-bottom: 0.9rem; letter-spacing: -0.02em; }
.role h3 { font: 500 0.78rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.8rem; }
.role__text { padding-top: 1.2rem; color: var(--ink-2); font-size: 1.06rem; }
.role--type { background: var(--paper-2); border-radius: 2px; padding: 1.6rem; align-self: stretch; }
.role--type .role__text { padding-top: 0; }
.role__status { font: 400 0.875rem/1.5 var(--sans); color: var(--ink-3); border-top: 1px solid var(--paper-3); padding-top: 0.8rem; margin-top: 1.2rem; }
@media (min-width: 900px) {
  .roles { grid-template-columns: repeat(3, 1fr); }
  .role--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 4vw, 64px); align-items: end; }
  .role--wide .role__media img { aspect-ratio: 16 / 10; }
  .role--wide .role__text { padding-top: 0; padding-bottom: 2.6rem; }
}

.notebook { background: var(--paper-2); padding: clamp(72px, 9vw, 120px) 0; }
.notebook__head { display: grid; gap: 0.4rem; margin-bottom: 2rem; }
.notebook__head p { font: 400 0.95rem var(--sans); color: var(--ink-3); }
.notebook__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 700px) { .notebook__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .notebook__grid { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; aspect-ratio: 1; border-radius: 2px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 0.4s; opacity: 0.92; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.04); opacity: 1; }
.tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 12px 10px; text-align: left;
  background: linear-gradient(0deg, rgba(10, 12, 9, 0.82), rgba(10, 12, 9, 0));
  color: var(--light); font: 400 0.95rem/1.25 var(--serif);
}
.tile__label em { display: block; font-size: 0.82rem; color: var(--light-2); }
.tile__label small { display: block; font: 400 0.7rem var(--sans); letter-spacing: 0.04em; color: var(--light-3); margin-top: 2px; }

/* =========================================================================
   06 · GENTE
   ========================================================================= */
.mosaic { max-width: 1500px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.mosaic figure img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.mosaic figure { display: flex; flex-direction: column; }
.mosaic figure img { flex: 1; min-height: 0; }
.mosaic__a, .mosaic__d, .mosaic__quote { grid-column: 1 / -1; }
.mosaic__a img { aspect-ratio: 4 / 5; }
.mosaic__b img, .mosaic__c img { aspect-ratio: 3 / 4; }
.mosaic__d img { aspect-ratio: 3 / 2; }
.mosaic__quote { margin: 1.6rem 0; padding: 0; align-self: center; }
.mosaic__quote p { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.18; font-style: italic; margin-bottom: 0.8rem; }
.mosaic__quote cite { font: 400 0.85rem var(--sans); font-style: normal; color: var(--ink-3); }
@media (min-width: 900px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(0, auto); gap: 12px; }
  .mosaic__a { grid-column: 1 / 8; grid-row: 1 / 3; }
  .mosaic__a img { aspect-ratio: auto; height: 100%; }
  .mosaic__b { grid-column: 8 / 11; grid-row: 1; }
  .mosaic__c { grid-column: 11 / 13; grid-row: 1; }
  .mosaic__b img, .mosaic__c img { aspect-ratio: auto; height: 44vh; }
  .mosaic__quote { grid-column: 8 / 13; grid-row: 2; margin: 0; padding: 1.6rem 0 1.6rem 1.6rem; border-left: 2px solid var(--ochre); }
  .mosaic__d { grid-column: 4 / 13; grid-row: 3; margin-top: 12px; }
  .mosaic__d img { aspect-ratio: 21 / 9; }
}

.peoples { margin: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 140px); border-top: 1px solid var(--paper-3); border-bottom: 1px solid var(--paper-3); }
.peoples summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.2rem 0; font-size: 1.3rem; }
.peoples summary::-webkit-details-marker { display: none; }
.peoples__hint { font: 500 0.75rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ochre-ink); white-space: nowrap; }
.peoples__hint::after { content: " +"; }
.peoples[open] .peoples__hint::after { content: " −"; }
.peoples__list { margin: 0 0 1rem; display: grid; gap: 1rem; }
.peoples__list div { display: grid; gap: 0.2rem; }
@media (min-width: 700px) { .peoples__list div { grid-template-columns: 9rem 1fr; gap: 1.2rem; } }
.peoples__list dt { font-weight: 600; }
.peoples__list dd { margin: 0; font: 400 0.95rem/1.55 var(--sans); color: var(--ink-2); }
.peoples__note { font: 400 0.875rem var(--sans); color: var(--ink-3); padding-bottom: 1.2rem; }

.isolated { background: #0c0d0b; color: var(--light-2); padding: clamp(120px, 16vw, 220px) 0; }
.isolated__title { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1.08; color: var(--light); max-width: 18ch; margin-bottom: 2rem; text-wrap: balance; }
.isolated p { font-size: 1.2rem; }
.signs { list-style: none; padding: 0; margin: 1.8rem 0 2.4rem; display: grid; gap: 0.7rem; }
.signs li { font: 400 clamp(1.25rem, 2vw, 1.6rem)/1.3 var(--serif); font-style: italic; color: var(--light); padding-left: 2.2rem; position: relative; }
.signs li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 1.3rem; height: 1px; background: var(--ochre); }
.js .signs li.reveal { transition-duration: 1.4s; }
.isolated__note { font: 400 0.85rem/1.5 var(--sans) !important; color: var(--light-3); margin-top: 3rem; border-top: 1px solid rgba(244, 239, 230, 0.14); padding-top: 1rem; }

/* =========================================================================
   07 · AMENAZAS
   ========================================================================= */
.lines { display: grid; gap: 6px; padding: 0 var(--gutter); max-width: 1600px; margin: 0 auto; }
.lines__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (min-width: 900px) {
  .lines { grid-template-columns: repeat(3, 1fr); }
  .lines__item img { aspect-ratio: 3 / 4; }
  .lines__item:nth-child(2) { margin-top: 64px; }
  .lines__item:nth-child(3) { margin-top: 128px; }
}

.loss { display: grid; gap: clamp(32px, 5vw, 72px); padding: clamp(96px, 12vw, 160px) 0 clamp(48px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .loss { grid-template-columns: 5fr 6fr; } }
.loss__text { color: var(--light-2); }
.loss__text p:first-of-type { font-size: 1.3rem; line-height: 1.45; color: var(--light); }
.loss__how { font: 400 0.85rem/1.5 var(--sans); color: var(--light-3); }
.loss__legend { display: grid; gap: 6px; margin: 1rem 0; }
.loss__legend button {
  display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
  background: rgba(244, 239, 230, 0.05); border: 1px solid rgba(244, 239, 230, 0.14); border-radius: 4px;
  padding: 10px 12px; color: var(--light-2); font: 400 0.9rem/1.3 var(--sans);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.loss__legend button b { color: var(--light); min-width: 3.8rem; font-weight: 600; }
.loss__legend button:hover, .loss__legend button[aria-pressed="true"] { background: rgba(244, 239, 230, 0.12); border-color: rgba(244, 239, 230, 0.5); color: var(--light); }
.sw { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.sw--def { background: var(--c-def); }
.sw--fire { background: var(--c-fire); }
.sw--inf { background: var(--c-inf); }
.loss__explain { font: 400 0.95rem/1.55 var(--sans); color: var(--light-2); min-height: 4.5em; }
.loss__grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 540px; width: 100%; justify-self: center; }
.cell { aspect-ratio: 1; border-radius: 2px; background: var(--c-cover); position: relative; overflow: hidden; display: flex; transition: opacity 0.4s; }
.cell span { height: 100%; flex: none; transform-origin: left; transform: scaleX(0); transition: transform 0.6s var(--ease); }
.loss.is-in .cell span { transform: scaleX(1); }
.cell .s-def { background: var(--c-def); }
.cell .s-fire { background: var(--c-fire); }
.cell .s-inf { background: var(--c-inf); }
.loss__grid[data-focus] .cell { opacity: 0.35; }
.loss__grid[data-focus="def"] .cell.has-def, .loss__grid[data-focus="fire"] .cell.has-fire, .loss__grid[data-focus="inf"] .cell.has-inf { opacity: 1; }
.loss__grid[data-focus] .cell span { opacity: 0.25; }
.loss__grid[data-focus="def"] .s-def, .loss__grid[data-focus="fire"] .s-fire, .loss__grid[data-focus="inf"] .s-inf { opacity: 1; }

.degrade { display: grid; gap: 1px; background: rgba(244, 239, 230, 0.14); border: 1px solid rgba(244, 239, 230, 0.14); border-radius: 4px; overflow: hidden; margin-bottom: clamp(96px, 12vw, 160px); }
.degrade > div { background: var(--ash); padding: 1.4rem 1.5rem; color: var(--light-2); font: 400 0.98rem/1.55 var(--sans); }
.degrade h4 { font: 400 1.6rem var(--serif); font-style: italic; color: var(--light); margin-bottom: 0.5rem; }
@media (min-width: 800px) { .degrade { grid-template-columns: 1fr 1fr; } }

.burn-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2em 0.4em; font: 300 clamp(3.4rem, 10vw, 8rem)/0.95 var(--serif); letter-spacing: -0.03em; margin: 0; }
.burn-stat__from { color: #b9cdb2; }
.burn-stat__arrow { font-size: 0.5em; color: var(--light-3); }
.burn-stat__to { color: var(--c-fire); }

.fire-note { padding: clamp(96px, 12vw, 150px) 0 clamp(48px, 6vw, 72px); color: var(--light-2); font-size: 1.15rem; }
.fire-years { display: grid; gap: clamp(32px, 5vw, 72px); padding-bottom: clamp(96px, 12vw, 150px); }
@media (min-width: 900px) { .fire-years { grid-template-columns: 1fr 1fr; align-items: start; } }
.fire-years__title { font: 500 0.78rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-2); margin-bottom: 1.2rem; }
.fire-years__title span { display: block; color: var(--light-3); text-transform: none; letter-spacing: 0.02em; margin-top: 2px; font-family: var(--sans); }
.bar { display: grid; grid-template-columns: 3.4rem 1fr auto; align-items: center; gap: 12px; margin-bottom: 10px; font: 500 0.9rem var(--sans); color: var(--light-2); }
.bar__fill { height: 26px; width: calc(var(--v) / 12.6 * 100%); background: rgba(229, 86, 46, 0.55); border-radius: 2px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease); }
.bar--max .bar__fill { background: var(--c-fire); }
.fire-years.is-in .bar__fill { transform: scaleX(1); }
.bar__val { color: var(--light); font-variant-numeric: tabular-nums; }
.fire-years__src { font: 400 0.78rem/1.5 var(--sans); color: var(--light-3); margin-top: 1rem; }
.fire-years__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; color: var(--light-2); font-size: 1.05rem; }
.fire-years__list li { border-top: 1px solid rgba(244, 239, 230, 0.16); padding-top: 1rem; }
.fire-years__list b { display: block; font: 400 1.8rem var(--serif); color: var(--ochre); margin-bottom: 0.2rem; }

.system { padding-bottom: clamp(96px, 12vw, 160px); }
.system__head { max-width: 40rem; color: var(--light-2); margin-bottom: 2rem; }
.system__body { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .system__body { grid-template-columns: 1fr 1fr; } }
.system__diagram { position: relative; width: 100%; max-width: 620px; aspect-ratio: 100 / 70; margin: 0 auto; }
.system__arrows { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.system__arrows path { fill: none; stroke: currentColor; stroke-width: 0.7; cursor: help; transition: stroke 0.3s, stroke-width 0.3s; }
.system__arrows path.is-hot { stroke-width: 1.1; }
.system__arrows text { font: 500 2.9px var(--sans); fill: rgba(244, 239, 230, 0.62); }
.node {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) / 70 * 100%);
  transform: translate(-50%, -50%);
  background: var(--ash-2); color: var(--light); border: 1px solid rgba(244, 239, 230, 0.3);
  border-radius: 999px; padding: 9px 14px; cursor: pointer;
  font: 500 clamp(0.72rem, 1.4vw, 0.88rem)/1.15 var(--sans); text-align: center; max-width: 9.5rem;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
@media (max-width: 600px) {
  .node { left: clamp(3.9rem, calc(var(--x) * 1%), calc(100% - 3.9rem)); max-width: 7.6rem; padding: 7px 10px; font-size: 0.72rem; }
}
.node:hover, .node[aria-pressed="true"] { background: var(--ochre); color: var(--ink); border-color: var(--ochre); }
.system__panel { background: var(--ash-2); border-radius: 4px; padding: 1.5rem; color: var(--light-2); font: 400 0.98rem/1.6 var(--sans); min-height: 15rem; }
.system__panel h4 { font: 400 1.7rem var(--serif); color: var(--light); margin-bottom: 0.7rem; }
.system__panel .link { color: var(--ochre); }

/* =========================================================================
   08 · RESPUESTAS
   ========================================================================= */
.timeline { list-style: none; margin: 0 0 clamp(96px, 12vw, 150px); padding: 0; display: grid; gap: 1.2rem; position: relative; }
.timeline li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; border-top: 1px solid var(--paper-3); padding-top: 0.9rem; }
.timeline b { font: 400 1.5rem/1.1 var(--serif); color: var(--brand); }
.timeline span { font: 400 0.95rem/1.5 var(--sans); color: var(--ink-2); }
@media (min-width: 1000px) {
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 1.6rem; }
  .timeline li { grid-template-columns: 1fr; border-top: 2px solid var(--brand); position: relative; }
  .timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brand); }
  .timeline b { font-size: 1.9rem; }
}

.mif { background: var(--paper-2); padding: clamp(80px, 10vw, 140px) 0; }
.mif__head { max-width: 46rem; margin-bottom: 2.4rem; color: var(--ink-2); }
.cycle__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cycle__tabs button {
  border: 1px solid rgba(27, 31, 24, 0.2); background: transparent; border-radius: 999px;
  padding: 10px 16px; cursor: pointer; font: 500 0.9rem var(--sans); color: var(--ink-2);
  transition: background 0.25s, color 0.25s;
}
.cycle__tabs button[aria-selected="true"] { background: var(--ink); color: var(--light); border-color: var(--ink); }
.cycle__panel { display: grid; gap: 1.4rem; align-items: center; }
.cycle__panel img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.cycle__panel h4 { font: 400 2.2rem var(--serif); font-style: italic; color: var(--brand); margin-bottom: 0.6rem; }
.cycle__panel p { color: var(--ink-2); }
@media (min-width: 900px) { .cycle__panel { grid-template-columns: 7fr 5fr; gap: 3rem; } }

.compare { margin-top: clamp(72px, 9vw, 120px); }
.compare__lead { font: 500 0.78rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.compare__cols { display: grid; gap: 1.6rem; margin: 1.2rem 0 0; }
@media (min-width: 800px) { .compare__cols { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.compare__cols b { display: block; font: 300 clamp(2.4rem, 5vw, 4rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--earth); margin-bottom: 0.5rem; }
.compare__cols div:last-child b { color: var(--brand); }
.compare__cols span { font: 400 1rem/1.55 var(--sans); color: var(--ink-2); }

.guardians { padding: clamp(80px, 10vw, 140px) 0; }
.guardians__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 6px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; }
.guardians__strip figure { scroll-snap-align: start; }
.guardians__strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.guardians__text { margin-top: 2rem; font-size: 1.15rem; color: var(--ink-2); }

.gov { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 130px); }
.gov__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.gov__text { color: var(--ink-2); }
@media (min-width: 900px) { .gov { grid-template-columns: 5fr 6fr; } }

.watch { display: grid; gap: 10px; padding-bottom: clamp(96px, 12vw, 150px); }
.watch img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.watch__a img { aspect-ratio: 3 / 4; }
.watch__b img { aspect-ratio: 16 / 9; }
.watch__text { color: var(--ink-2); align-self: center; padding: 1rem 0; }
@media (min-width: 900px) {
  .watch { grid-template-columns: 3fr 5fr 4fr; gap: 16px; align-items: end; }
  .watch__text { padding: 0 0 0 1rem; align-self: end; }
}

.produce { background: var(--warm); padding-bottom: clamp(96px, 12vw, 150px); }
.stories { display: grid; gap: clamp(32px, 4vw, 48px); }
@media (min-width: 900px) { .stories { grid-template-columns: repeat(3, 1fr); } }
.story img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; margin-bottom: 1.2rem; }
.story { color: var(--ink-2); font-size: 1.02rem; }
.story__tag { font: 500 0.75rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-ink); margin-bottom: 0.6rem; }
.story__big { font: 300 2.6rem/1 var(--serif); color: var(--ink); margin-bottom: 0.8rem; }
.story blockquote { margin: 0 0 1rem; }
.story blockquote p { font-size: 1.25rem; line-height: 1.35; font-style: italic; color: var(--ink); margin-bottom: 0.4rem; }
.story cite { font: 400 0.8rem/1.4 var(--sans); font-style: normal; color: var(--ink-3); }
.craft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: clamp(48px, 6vw, 80px); }
.craft img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
@media (max-width: 599px) { .craft figcaption { display: none; } }

.carbon { padding: clamp(96px, 12vw, 160px) 0; }
.carbon__grid { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .carbon__grid { grid-template-columns: 6fr 5fr; } }
.carbon__text { color: var(--ink-2); }
.carbon__text .display--sm { margin-bottom: 1.4rem; color: var(--ink); }
.carbon__note { font: 400 0.82rem/1.5 var(--sans); color: var(--ink-3); }
.carbon__figure { display: grid; grid-template-rows: auto auto auto; justify-content: center; }
.carbon__above, .carbon__below { display: grid; grid-template-columns: 84px auto; gap: 18px; }
.carbon__above, .carbon__below { align-items: stretch; }
.carbon__above .carbon__bar { align-self: end; }
.carbon__above .carbon__label { align-self: start; }
.carbon__below .carbon__bar { align-self: start; }
.carbon__below .carbon__label { align-self: end; }
.carbon__bar { width: 84px; height: calc(var(--p) * 4px); transform: scaleY(0); transition: transform 1.4s var(--ease); border-radius: 2px; }
.carbon__above .carbon__bar { background: linear-gradient(0deg, #3d5c49, #6f8f67); transform-origin: bottom; }
.carbon__below .carbon__bar { background: linear-gradient(180deg, #6b4a31, #3a2a1d); transform-origin: top; transition-delay: 0.4s; }
.carbon__figure.is-in .carbon__bar { transform: scaleY(1); }
.carbon__label { font: 400 0.95rem/1.4 var(--sans); color: var(--ink-2); padding: 6px 0; }
.carbon__label b { font: 300 2.4rem/1 var(--serif); color: var(--ink); }
.carbon__label small { color: var(--ink-3); }
.carbon__ground { height: 2px; background: var(--ink); position: relative; margin: 0 -24px; }
.carbon__ground span { position: absolute; left: 0; top: 8px; font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

/* =========================================================================
   09 · FUTURO
   ========================================================================= */
.possible { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(244, 239, 230, 0.16); }
.possible li { counter-increment: p; display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(244, 239, 230, 0.16); }
.possible li::before { content: counter(p, decimal-leading-zero); grid-row: 1 / 3; font: 500 0.8rem var(--mono); color: var(--ochre); padding-top: 0.6rem; }
.possible h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; color: var(--light); margin-bottom: 0.4rem; }
.possible p { color: var(--light-2); font: 400 0.98rem/1.55 var(--sans); max-width: 40rem; }
@media (min-width: 1000px) {
  .possible li { grid-template-columns: 4rem 1fr 1fr; align-items: baseline; }
  .possible li::before { grid-row: 1; }
  .possible h3 { margin: 0; }
}

.epilogue { padding: 0 var(--gutter) clamp(96px, 12vw, 150px); }
.epilogue__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; max-width: 1500px; margin: 0 auto; }
.epilogue__row figure { scroll-snap-align: start; }
.epilogue__row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.epilogue__row figcaption { font: 400 1.05rem/1.3 var(--serif) !important; font-style: italic !important; color: var(--light-2) !important; margin-top: 0.8rem; }

.bleed--final { height: 100vh; height: 100svh; }
@media (min-width: 900px) {
  .bleed--final .bleed__text--center { left: var(--gutter); translate: 0 0; text-align: left; max-width: 640px; }
  .bleed--final .final__sub { margin-left: 0; }
  .bleed--final .final__actions { justify-content: flex-start; }
  .bleed--final::after { background: linear-gradient(90deg, rgba(8, 9, 7, 0.78) 0%, rgba(8, 9, 7, 0.45) 45%, rgba(8, 9, 7, 0.1) 75%) !important; }
}
.bleed--final::after { background: radial-gradient(ellipse at center, rgba(8, 9, 7, 0.62) 0%, rgba(8, 9, 7, 0.35) 60%, rgba(8, 9, 7, 0.55) 100%); }
.final__line { font: 340 clamp(2.3rem, 6vw, 5.2rem)/1.02 var(--serif); letter-spacing: -0.02em; color: var(--light); margin-bottom: 1.4rem; text-wrap: balance; }
.final__sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--light-2); max-width: 36rem; margin: 0 auto 2rem; }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* =========================================================================
   FUENTES
   ========================================================================= */
.sources { padding: clamp(80px, 10vw, 120px) 0 48px; font: 400 0.9rem/1.6 var(--sans); color: var(--ink-2); }
.sources .subhead { font-size: 1.5rem; color: var(--ink); margin-top: 1.6rem; }
.sources .subhead:first-child { margin-top: 0; }
.sources__grid { display: grid; gap: 2.4rem; }
@media (min-width: 900px) { .sources__grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }
.sources__intro { color: var(--ink-3); }
.source-list { padding-left: 1.6rem; margin: 1rem 0 0; display: grid; gap: 0.6rem; }
.source-list li { padding-left: 0.3rem; scroll-margin-top: 90px; }
.source-list li:target { background: rgba(214, 160, 58, 0.18); }
.source-list li.is-unused { display: none; }
.review-toggle { display: flex; gap: 8px; align-items: center; cursor: pointer; margin-top: 1rem; font-weight: 500; color: var(--ink); }
.review-toggle input { accent-color: var(--brand); width: 16px; height: 16px; }
.review-legend { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 8px; }
.rv { font-size: 0.75rem; padding: 2px 8px; border-radius: 3px; }
.rv--ok { background: rgba(71, 106, 85, 0.16); }
.rv--pend { background: rgba(229, 86, 46, 0.18); }
.rv--der { background: rgba(45, 92, 97, 0.18); }
.colophon { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--paper-3); font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

/* modo revisión */
html.review .fig { box-shadow: inset 0 -2px 0 rgba(71, 106, 85, 0.7); background: rgba(71, 106, 85, 0.1); cursor: help; }
html.review .fig[data-status="pendiente"] { box-shadow: inset 0 -2px 0 var(--c-fire); background: rgba(229, 86, 46, 0.2); }
html.review .fig[data-status="derivado"] { box-shadow: inset 0 -2px 0 var(--water-2); background: rgba(45, 92, 97, 0.22); }
html.review .fn { opacity: 1; }

/* =========================================================================
   LIGHTBOX
   ========================================================================= */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(8, 9, 7, 0.94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { max-width: min(1400px, 94vw); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: 2px; }
.lightbox figcaption { color: var(--light-2); text-align: center; font-size: 0.875rem; }
.lightbox__close { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244, 239, 230, 0.4); background: rgba(18, 21, 17, 0.6); color: var(--light); font-size: 24px; line-height: 1; cursor: pointer; }

/* =========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================= */
/* =========================================================================
   09 → 10 · PUENTE, OIKOAVEI Y CIERRE
   ========================================================================= */
.bridge {
  font: 400 clamp(1.35rem, 2.2vw, 1.85rem)/1.35 var(--serif); color: var(--light);
  max-width: 34ch; margin: clamp(56px, 7vw, 96px) 0 0; padding: 0 0 clamp(96px, 12vw, 150px);
}
.bridge em { color: var(--ochre); }

.fund { background: var(--paper); }
.bleed--fund { height: 92vh; height: 92svh; }
.bleed--fund .display { max-width: 12ch; }

.fund-intro { display: grid; gap: 1.6rem 4rem; padding: clamp(80px, 10vw, 140px) 0 clamp(64px, 8vw, 110px); align-items: start; }
.fund-intro__lead { font: 400 clamp(1.55rem, 2.6vw, 2.25rem)/1.25 var(--serif); color: var(--ink); margin: 0; text-wrap: balance; }
.fund-intro__body { color: var(--ink-2); }
@media (min-width: 1000px) { .fund-intro { grid-template-columns: 1.1fr 1fr; } }

.fund-lines__head { max-width: 40rem; color: var(--ink-2); margin-bottom: 2rem; }
.fund-lines__grid { list-style: none; counter-reset: fl; margin: 0; padding: 0; display: grid; gap: 2rem 1.6rem; }
@media (min-width: 700px) { .fund-lines__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fund-lines__grid { grid-template-columns: repeat(4, 1fr); } }
.fund-lines__grid li { counter-increment: fl; border-top: 2px solid var(--brand); padding-top: 1rem; display: flex; flex-direction: column; }
.fund-lines__grid li::before { content: counter(fl, decimal-leading-zero); font: 500 0.75rem var(--mono); color: var(--ochre-ink); margin-bottom: 0.5rem; }
.fund-lines__grid h4 { font: 400 1.35rem/1.15 var(--serif); margin-bottom: 0.5rem; }
.fund-lines__grid p { font: 400 0.95rem/1.5 var(--sans); color: var(--ink-2); margin-bottom: 0.9rem; }
.fund-lines__grid a { margin-top: auto; font: 500 0.82rem var(--sans); color: var(--brand); text-decoration: none; }
.fund-lines__grid a::after { content: " →"; }
.fund-lines__grid a:hover { text-decoration: underline; }

.how { padding: clamp(96px, 12vw, 160px) 0 0; }
.how__head { max-width: 42rem; color: var(--ink-2); margin-bottom: 2rem; }
.flow { background: var(--paper-2); border-radius: 8px; padding: clamp(18px, 3vw, 40px); }
.flow__toggle { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.6rem; }
.flow__toggle button {
  border: 1px solid rgba(27, 31, 24, 0.22); background: transparent; border-radius: 999px;
  padding: 9px 16px; cursor: pointer; font: 500 0.88rem var(--sans); color: var(--ink-2); transition: background 0.25s, color 0.25s;
}
.flow__toggle button[aria-pressed="true"] { background: var(--ink); color: var(--light); border-color: var(--ink); }
.flow__grid {
  display: grid; justify-items: stretch;
  grid-template-areas: "a" "a1" "b" "b1" "c" "c1" "f" "e1" "e" "d1" "d";
}
.f-a { grid-area: a; } .f-a1 { grid-area: a1; } .f-b { grid-area: b; } .f-b1 { grid-area: b1; }
.f-c { grid-area: c; } .f-c1 { grid-area: c1; } .f-d { grid-area: d; } .f-d1 { grid-area: d1; }
.f-e { grid-area: e; } .f-e1 { grid-area: e1; } .f-f { grid-area: f; }
.flow__box, .flow__fund {
  background: var(--paper); border: 1.5px solid var(--paper-3); border-radius: 8px;
  padding: 14px 16px; text-align: center; font: 400 0.85rem/1.4 var(--sans); color: var(--ink-3);
  transition: opacity 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.flow__box b, .flow__fund > b { display: block; font: 600 1rem/1.3 var(--sans); color: var(--ink); margin-bottom: 2px; }
.flow__fund { background: var(--warm); }
.flow__fund > b { margin-bottom: 10px; }
.flow__acct { background: var(--paper); border: 1px solid var(--paper-3); border-radius: 6px; padding: 9px 10px; margin-top: 8px; }
.flow__acct b { display: block; font: 600 0.9rem var(--sans); color: var(--ink); }
.flow__box--goal { border-color: var(--brand); background: rgba(71, 106, 85, 0.1); }
.flow__arrow { position: relative; min-height: 52px; display: grid; place-items: center; color: var(--ink-3); transition: opacity 0.4s, color 0.4s; }
.flow__arrow::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 10px; width: 1.5px; background: currentColor; }
.flow__arrow::after { content: ""; position: absolute; left: calc(50% - 5px); bottom: 4px; border: 5px solid transparent; border-top: 7px solid currentColor; border-bottom: 0; }
.flow__arrow span { position: relative; background: var(--paper-2); padding: 2px 6px; font: 500 0.78rem var(--sans); }
/* en una sola columna, las decisiones suben hacia los proyectos */
.flow__arrow.is-decision::before { top: 10px; bottom: 6px; }
.flow__arrow.is-decision::after { top: 4px; bottom: auto; border-top: 0; border-bottom: 7px solid currentColor; }
@media (min-width: 1000px) {
  .flow__grid {
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr) 96px minmax(0, 1.25fr);
    grid-template-areas: "a a1 b b1 c" ". . . . c1" "d d1 e e1 f";
    align-items: center;
  }
  .flow__arrow { min-height: 0; height: 40px; }
  .flow__arrow::before { left: 4px; right: 10px; top: 50%; bottom: auto; width: auto; height: 1.5px; }
  .flow__arrow::after, .flow__arrow.is-decision::after { left: auto; right: 3px; top: calc(50% - 5px); bottom: auto; border: 5px solid transparent; border-left: 7px solid currentColor; border-right: 0; }
  .flow__arrow.is-decision::before { top: 50%; bottom: auto; }
  .flow__arrow--down { height: 64px; }
  .flow__arrow--down::before { left: 50%; right: auto; top: 4px; bottom: 10px; width: 1.5px; height: auto; }
  .flow__arrow--down::after { left: calc(50% - 5px); right: auto; top: auto; bottom: 3px; border: 5px solid transparent; border-top: 7px solid currentColor; border-bottom: 0; }
  .flow__arrow span { padding: 1px 5px; margin-right: 6px; }
  .flow__arrow--down span { top: 0; left: 46px; background: var(--paper-2); }
}
.flow[data-mode="dinero"] .is-decision, .flow[data-mode="decision"] .is-money { opacity: 0.32; }
.flow[data-mode="dinero"] .flow__box.is-money, .flow[data-mode="dinero"] .flow__fund,
.flow[data-mode="decision"] .flow__box.is-decision { border-color: var(--ochre); box-shadow: 0 6px 20px -14px rgba(138, 90, 12, 0.6); }
.flow[data-mode="dinero"] .flow__arrow.is-money, .flow[data-mode="decision"] .flow__arrow.is-decision { color: var(--ochre-ink); }
.flow__caption { margin: 1.4rem 0 0; font: 400 0.98rem/1.55 var(--sans); color: var(--ink-2); max-width: 54rem; min-height: 3.2em; }
.how__facts { display: grid; gap: 1.6rem 3rem; margin-top: 2.6rem; }
@media (min-width: 900px) { .how__facts { grid-template-columns: repeat(3, 1fr); } }
.how__facts h4 { font: 400 1.5rem var(--serif); font-style: italic; color: var(--brand); margin-bottom: 0.4rem; }
.how__facts p { font: 400 0.98rem/1.55 var(--sans); color: var(--ink-2); }

.allies { display: grid; gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(96px, 12vw, 160px) 0; }
.allies__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.allies__text > p { color: var(--ink-2); }
.allies__list { margin: 1.2rem 0 0; }
.allies__list div { border-top: 1px solid var(--paper-3); padding: 0.8rem 0; display: grid; gap: 0.2rem; }
.allies__list dt { font: 600 0.95rem var(--sans); }
.allies__list dd { margin: 0; font: 400 0.95rem/1.5 var(--sans); color: var(--ink-2); }
@media (min-width: 900px) { .allies { grid-template-columns: 5fr 6fr; } }
@media (min-width: 1200px) { .allies__list div { grid-template-columns: 13rem 1fr; gap: 1.2rem; } }

.join {
  display: grid; gap: clamp(32px, 4vw, 72px); align-items: center;
  background: var(--forest); color: var(--light-2); border-radius: 10px;
  padding: clamp(28px, 5vw, 72px); margin-bottom: clamp(96px, 12vw, 160px);
}
.join .kicker { color: var(--ochre); }
.join .display--sm { color: var(--light); margin-bottom: 1.2rem; }
.join__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.btn--dark { background: var(--ochre); color: var(--ink); }
.btn--dark:hover { background: var(--light); }
.btn--line { background: transparent; color: var(--light); border-color: rgba(244, 239, 230, 0.45); }
.btn--line:hover { border-color: var(--light); }
.join__meter-title { font: 500 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-3); margin-bottom: 0.8rem; }
.meter { height: 16px; border-radius: 999px; background: rgba(244, 239, 230, 0.14); overflow: hidden; }
.meter__seed { display: block; height: 100%; width: calc(var(--p) * 1%); min-width: 12px; border-radius: 999px; background: var(--ochre); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) 0.3s; }
.join.is-in .meter__seed { transform: scaleX(1); }
.meter__labels { display: flex; justify-content: space-between; gap: 1rem; margin-top: 12px; font: 400 0.85rem/1.35 var(--sans); }
.meter__labels span:last-child { text-align: right; }
.meter__labels b { display: block; font: 300 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--serif); color: var(--light); }
.meter__note { font: 400 0.85rem/1.5 var(--sans); color: var(--light-3); margin-top: 1rem; }
@media (min-width: 1000px) { .join { grid-template-columns: 6fr 5fr; } }

.crosslink { margin-top: 1.2rem; }
.crosslink a { font: 500 0.95rem/1.4 var(--sans); color: var(--brand); text-decoration: none; border-bottom: 1px solid currentColor; }
.crosslink a:hover { color: var(--ink); }

.closing .epilogue { padding-top: clamp(96px, 12vw, 150px); }
.epilogue__lead { max-width: 1500px; margin: 0 auto 1.6rem; font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.3 var(--serif); font-style: italic; color: var(--light); }

/* =========================================================================
   PULIDO PARA ESCRITORIO
   ========================================================================= */
/* Fondo neutro mientras cargan las fotografías y aparición suave */
img[data-photo] { background-color: rgba(120, 112, 92, 0.14); }
.js img[data-photo][loading="lazy"] { opacity: 0; transition: opacity 0.9s var(--ease); }
.js img[data-photo].is-loaded { opacity: 1; }
.js .tile img.is-loaded { opacity: 0.92; }
.js .tile:hover img.is-loaded, .js .tile:focus-visible img.is-loaded { opacity: 1; }

@media (min-width: 1000px) {
  .m-town text { font-size: 13px; }
  .m-country { font-size: 13px; }
  .m-label { font-size: 15px; }
  .m-label--sub, .m-river-label { font-size: 12.5px; }
  .m-annot { font-size: 12.5px; }
  .m-eco { font-size: 28px; }
  .m-scale text { font-size: 12px; }
  .step-card { font-size: 1.1rem; }
  .node { font-size: 0.95rem; padding: 11px 18px; max-width: 11rem; }
  .eco-panel__body { font-size: 1.05rem; max-width: 40rem; }
  .eco-panel__essence { font-size: clamp(1.6rem, 2.2vw, 2.1rem); }
}

/* Encabezados de capítulo en una sola columna: antetítulo, título y, debajo, la entradilla */
.chapter-head > .lede { max-width: 46rem; }

/* Pantallas grandes */
@media (min-width: 1600px) {
  :root { --maxw: 1400px; }
  body { font-size: 1.25rem; }
  .brand { width: 112px; }
  html.is-scrolled .site-header .brand { width: 76px; }
  .step-card { width: 480px; }
  .display { font-size: clamp(4rem, 4.6vw, 5.4rem); }
  .wrap--narrow { max-width: 900px; }
}

@media (max-width: 600px) {
  .system__arrows text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__img { transform: none !important; }
  .cell span, .bar__fill, .carbon__bar, .meter__seed { transform: none !important; }
  .js img[data-photo] { opacity: 1 !important; }
}

@media print {
  .site-header, .rail, .hero__cue, .where__map, .index-panel { display: none !important; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: 70vh; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   CELULAR Y TABLETA (23/11/2026)
   Cabecera que no tapa el texto, textos y pies de foto sin encimarse, mapa
   con la leyenda al pie, botones parejos y párrafos justificados.
   ========================================================================= */
@media (max-width: 999px) {
  /* Cabecera: fondo sólido al desplazarse; main.js la esconde al bajar y la muestra al subir */
  html.is-scrolled[data-ui="light"] .site-header::before,
  html.is-scrolled[data-ui="dark"] .site-header::before {
    inset: 0;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  html.is-scrolled[data-ui="light"] .site-header::before { background: rgba(242, 237, 228, 0.95); box-shadow: 0 1px 0 rgba(27, 31, 24, 0.08); }
  html.is-scrolled[data-ui="dark"] .site-header::before { background: rgba(12, 14, 10, 0.88); box-shadow: 0 1px 0 rgba(244, 239, 230, 0.08); }
  html.header-oculta .site-header { transform: translateY(-110%); }
  .index-toggle { min-height: 40px; }

  /* Mapa: la leyenda va en una franja al pie y el mapa se encuadra encima (map.js) */
  .map__legend {
    left: 0; right: 0; bottom: 0; max-width: none; border-radius: 0;
    padding: 6px 12px 8px; font-size: 0.66rem; line-height: 1.35;
    background: rgba(242, 237, 228, 0.96); border-top: 1px solid var(--paper-3);
  }
  .map__legend ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 12px; }
  .map__legend i { width: 10px; height: 10px; margin-right: 5px; }
  /* Rótulos algo más chicos, para que no se amontonen */
  .m-label { font-size: 11.5px; }
  .m-label--sub, .m-river-label, .m-town text, .m-country, .m-annot { font-size: 10px; }
  .m-country { letter-spacing: 0.24em; }
  .m-country--globo { letter-spacing: 0.04em; font-size: 9.5px; }
  .m-eco { font-size: 17px; }
  /* Explorar el mapa: casillas con área táctil cómoda y zonas en dos columnas iguales */
  .map-controls label, .review-toggle { min-height: 40px; }
  .map-controls__zoom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .map-controls__zoom button { min-height: 44px; padding: 8px 12px; }
  /* Pestañas, selectores y enlaces «Responde a…» con área táctil cómoda */
  .cycle__tabs button, .flow__toggle button { min-height: 44px; }
  .fund-lines__grid a { display: inline-flex; align-items: center; min-height: 40px; }

  /* Fotos a sangre: el texto y el pie de foto se apilan al pie de la imagen, sin encimarse */
  .bleed { display: flex; flex-direction: column; justify-content: flex-end; }
  .bleed > .bleed__text:not(.bleed__text--top):not(.bleed__text--center) { position: relative; padding-bottom: 1.4rem; }
  .bleed > figcaption { position: relative; right: auto; bottom: auto; max-width: none; text-align: left; padding: 0 var(--gutter) 16px; }

  /* Cifras de carbono: el rótulo «Superficie» a la derecha, sin tapar la barra */
  .carbon__ground span { left: auto; right: 0; }

  /* Cronología: el año arriba y el texto a todo el ancho */
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }

  /* Letra mínima de 12 px en rótulos y datos */
  .meta, .map-controls legend, .transect__axis, .tile__label small, .join__meter-title, .colophon, .carbon__ground span { font-size: 0.75rem; }

  /* Párrafos de lectura justificados, con corte de palabras (citas, rótulos y fuentes, no) */
  .chapter:not(.sources) p:not(.kicker):not(.meta):not(.display):not(.subhead):not(.hero__statement):not(.final__line):not(.fund-intro__lead):not(.bridge):not(.epilogue__lead):not(.colophon):not(.fire-years__title):not(.join__meter-title):not(.transect__axis):not(.map-source):not(.burn-stat),
  .peoples__list dd, .allies__list dd, .compare__cols span, .timeline span {
    text-align: justify;
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 6 2 2;
  }
  .pull p, .mosaic__quote p, .story blockquote p, .tile__label { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
}

@media (max-width: 899px) {
  /* Monitoreo: las fotos con su alto natural; con «height: 100%» empujaban el pie de foto sobre el texto */
  .watch img { height: auto; }
  /* Ecorregión abierta: sombra más pareja para que el texto se lea sobre la foto */
  .eco-panel.is-open::after { background: linear-gradient(0deg, rgba(10, 12, 9, 0.92) 0%, rgba(10, 12, 9, 0.8) 50%, rgba(10, 12, 9, 0.4) 78%, rgba(10, 12, 9, 0.15) 100%); }
}

@media (max-width: 699px) {
  /* Botones del mismo tamaño dentro de cada grupo */
  .cycle__tabs, .flow__toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .cycle__tabs button, .flow__toggle button { min-height: 44px; padding: 8px 10px; text-align: center; }
  .join__actions, .final__actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .final__actions { width: min(100%, 22rem); margin: 0 auto; }
  .join__actions .btn, .final__actions .btn { width: 100%; min-height: 48px; }
}

/* =========================================================================
   ESTRUCTURA Y TEXTOS DEL DOCUMENTO (30/11/2026)
   Menú de cinco secciones, cifras, cinco respuestas, historias, línea de
   tiempo, aporte al planeta, Súmate con franja de aliados y botón fijo.
   ========================================================================= */
/* menú superior */
.top-nav { display: none; margin-left: auto; margin-right: 12px; gap: 2px; align-items: center; padding: 4px; border-radius: 999px;
  background: rgba(18, 21, 17, 0.38); border: 1px solid rgba(244, 239, 230, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s, border-color 0.3s; }
.top-nav a { padding: 7px 13px; border-radius: 999px; font: 500 0.8rem/1 var(--sans); letter-spacing: 0.02em; color: var(--light); text-decoration: none; transition: background 0.25s, color 0.25s; }
.top-nav a:hover { background: rgba(244, 239, 230, 0.14); }
.top-nav .top-nav__cta { background: var(--ochre); color: var(--ink); }
.top-nav .top-nav__cta:hover { background: var(--light); }
html[data-ui="light"] .top-nav { background: rgba(242, 237, 228, 0.82); border-color: rgba(27, 31, 24, 0.18); }
html[data-ui="light"] .top-nav a:not(.top-nav__cta) { color: var(--ink); }
html[data-ui="light"] .top-nav a:not(.top-nav__cta):hover { background: rgba(27, 31, 24, 0.07); }
html.index-open .top-nav { visibility: hidden; }
@media (min-width: 1000px) { .top-nav { display: flex; } }

/* portada */
.hero__title.hero__title--frase { font-size: clamp(2.3rem, 5.2vw, 4.9rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 19ch; text-wrap: balance; margin-bottom: 1.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }

/* 02 · en cifras */
.cifras { padding: clamp(80px, 10vw, 128px) 0 clamp(56px, 7vw, 96px); }
.cifras__head .kicker { margin-bottom: 1.6rem; }
.cifras-gp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--paper-3); }
.cifras-gp li { padding: 1.4rem 1.4rem 0.4rem 0; display: flex; flex-direction: column; gap: 0.7rem; }
.cifras-gp li + li { padding-left: 1.4rem; border-left: 1px solid var(--paper-3); }
.cifras-gp__n { font: 340 clamp(2.6rem, 4.6vw, 4.2rem)/0.95 var(--serif); letter-spacing: -0.02em; color: var(--brand); }
.cifras-gp__n small { display: block; font: 500 0.78rem/1.3 var(--sans); letter-spacing: 0.02em; color: var(--ink); margin-top: 0.5rem; }
.cifras-gp li > span { font: 400 0.95rem/1.5 var(--sans); color: var(--ink-2); }
@media (max-width: 899px) {
  .cifras-gp { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border-top: 0; }
  .cifras-gp li, .cifras-gp li + li { padding: 16px 14px; border: 1px solid var(--paper-3); border-radius: 8px; background: var(--paper-2); }
  .cifras-gp__n { font-size: 2.3rem; }
  .cifras-gp li > span { font-size: 0.86rem; line-height: 1.45; text-align: left; hyphens: manual; }
}

/* 04 · vida y cultura */
.fauna-gp { font: 400 1rem/1.6 var(--sans); color: var(--ink-2); max-width: 40rem; margin-top: 1.2rem; }
.lede--sm { font-size: clamp(1rem, 1.3vw, 1.15rem); margin-top: 0.8rem; }
.roles-head { padding-top: 0; }
.roles-head p { font: 400 1rem/1.6 var(--sans); color: var(--ink-2); max-width: 40rem; }

/* 05 · lo que está en riesgo */
.risks { list-style: none; margin: 0 0 clamp(64px, 8vw, 110px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(244, 239, 230, 0.18); }
.risks li { padding: 1.2rem 1.2rem 0 0; }
.risks li + li { padding-left: 1.2rem; border-left: 1px solid rgba(244, 239, 230, 0.18); }
.risks b { display: block; font: 400 1.35rem/1.2 var(--serif); color: var(--light); margin-bottom: 0.5rem; }
.risks span { font: 400 0.95rem/1.55 var(--sans); color: var(--light-2); }
.lines-head { padding-bottom: clamp(32px, 4vw, 56px); }
.lines-head p { font: 400 1.05rem/1.6 var(--sans); color: var(--light-2); }
@media (max-width: 899px) {
  .risks { grid-template-columns: 1fr; }
  .risks li, .risks li + li { padding: 1rem 0; border-left: 0; border-bottom: 1px solid rgba(244, 239, 230, 0.18); }
}

/* 06 · cinco respuestas */
.five { list-style: none; margin: 0 0 clamp(80px, 10vw, 130px); padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.five li { display: flex; flex-direction: column; background: var(--paper-2); border-radius: 10px; padding: 22px 20px 20px; }
.five__icon { display: block; width: 44px; height: 44px; color: var(--brand); margin-bottom: 1rem; }
.five__icon svg, .pledges__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.five h3 { font: 400 1.3rem/1.15 var(--serif); margin-bottom: 0.6rem; }
.five p { font: 400 0.92rem/1.55 var(--sans); color: var(--ink-2); }
.five__link { margin-top: auto; padding-top: 1rem; font: 500 0.78rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.five__link::after { content: " ↓"; }
.five__link:hover { color: var(--ochre-ink); }
@media (max-width: 1099px) { .five { grid-template-columns: repeat(2, minmax(0, 1fr)); } .five li:last-child { grid-column: 1 / -1; } }
@media (max-width: 699px) { .five { grid-template-columns: 1fr; } }

/* 07 · historias del territorio */
.faces { list-style: none; margin: 0; padding: 0 0 clamp(24px, 3vw, 40px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.face { display: flex; flex-direction: column; background: var(--paper); border-radius: 10px; overflow: hidden; }
.face__media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.face__media img { width: 100%; height: 100%; object-fit: cover; }
.face h3 { font: 400 1.45rem/1.15 var(--serif); margin: 1.1rem 1.3rem 0.5rem; }
.face > p { font: 400 0.95rem/1.55 var(--sans); color: var(--ink-2); margin: 0 1.3rem; }
.face__quote { margin: 0.9rem 1.3rem 0; padding-left: 0.9rem; border-left: 2px solid var(--ochre); }
.face__quote p { font: italic 400 1.1rem/1.35 var(--serif); margin: 0; }
.face__quote cite { font: 400 0.8rem var(--sans); font-style: normal; color: var(--ink-3); }
.face__link { margin: auto 1.3rem 1.3rem; padding-top: 1.1rem; align-self: flex-start; font: 500 0.8rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.face__link::after { content: " ↓"; }
.faces-gp .guardians { padding-top: clamp(56px, 7vw, 100px); }
@media (max-width: 899px) { .faces { grid-template-columns: 1fr; } }

/* 08 · cómo nació */
.origin .timeline { margin-bottom: clamp(96px, 12vw, 150px); }
@media (min-width: 900px) { .timeline.timeline--ocho { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 2.4rem; } }

/* 09 · aporte al planeta */
.pledges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pledges li { background: var(--paper); border-radius: 10px; padding: 24px 22px; }
.pledges__icon { display: block; width: 40px; height: 40px; color: var(--brand); margin-bottom: 0.9rem; }
.pledges h3 { font: 400 1.4rem/1.15 var(--serif); margin-bottom: 0.5rem; }
.pledges h3 small { display: block; font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-ink); margin-top: 0.35rem; }
.pledges p { font: 400 0.95rem/1.55 var(--sans); color: var(--ink-2); }
@media (max-width: 899px) { .pledges { grid-template-columns: 1fr; } }

/* 10 · súmate */
.join-gp { padding-top: clamp(80px, 10vw, 130px); }
.join--gp { margin-bottom: clamp(40px, 5vw, 64px); }
.join--gp .display--sm { max-width: 18ch; }
.join__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid rgba(244, 239, 230, 0.2); }
.join__list li { position: relative; padding: 0.95rem 0 0.95rem 1.6rem; border-bottom: 1px solid rgba(244, 239, 230, 0.2); font: 400 1.05rem/1.4 var(--sans); color: var(--light); }
.join__list li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 8px; height: 8px; border-radius: 50%; background: var(--ochre); }
.allies-strip { padding-bottom: clamp(80px, 10vw, 130px); }
.allies-strip__list { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px clamp(24px, 4vw, 56px); border-top: 1px solid var(--paper-3); border-bottom: 1px solid var(--paper-3); }
.allies-strip__list img { display: block; height: 46px; width: auto; max-width: 150px; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1); opacity: 0.8; transition: filter 0.3s, opacity 0.3s; }
.allies-strip__list img:hover { filter: none; opacity: 1; }
.allies-strip__name { font: 500 1.05rem var(--sans); letter-spacing: 0.02em; color: var(--ink-3); }
@media (max-width: 699px) { .allies-strip__list { gap: 16px 28px; } .allies-strip__list img { height: 38px; max-width: 120px; } }

/* cierre */
.final__line.final__line--frase { font-size: clamp(2rem, 4.6vw, 4rem); max-width: 22ch; margin-left: auto; margin-right: auto; }

/* botón «Súmate» fijo en el celular */
.sumate-fija { display: none; }
@media (max-width: 759px) {
  .sumate-fija { display: flex; align-items: center; justify-content: center; position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 35;
    min-height: 50px; border-radius: 999px; background: var(--ochre); color: var(--ink); font: 600 0.95rem var(--sans); letter-spacing: 0.04em; text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28); transform: translateY(140%); transition: transform 0.4s var(--ease); }
  html.sumate-visible .sumate-fija { transform: none; }
  html.index-open .sumate-fija { transform: translateY(140%); }
}

/* portada: el título largo no debe quedar sobre el sol del horizonte */
.hero__shade {
  background:
    linear-gradient(180deg, rgba(12, 14, 10, 0.55) 0%, rgba(12, 14, 10, 0) 26%),
    linear-gradient(90deg, rgba(10, 12, 9, 0.62) 0%, rgba(10, 12, 9, 0.34) 48%, rgba(10, 12, 9, 0) 78%),
    linear-gradient(0deg, rgba(10, 12, 9, 0.86) 0%, rgba(10, 12, 9, 0.42) 34%, rgba(10, 12, 9, 0) 62%);
}
.hero__step .kicker, .hero__title--frase, .hero__step .hero__lede { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55); }
@media (min-width: 700px) and (min-aspect-ratio: 1/1) { .hero__img[data-photo="kaaiya-horizonte"] { object-position: 50% 58% !important; } }
@media (max-width: 699px) {
  .hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { width: 100%; min-height: 48px; }
}
@media (max-width: 699px) {
  .hero__shade { background: linear-gradient(180deg, rgba(12, 14, 10, 0.55) 0%, rgba(12, 14, 10, 0) 22%), linear-gradient(0deg, rgba(10, 12, 9, 0.9) 0%, rgba(10, 12, 9, 0.6) 45%, rgba(10, 12, 9, 0.25) 72%, rgba(10, 12, 9, 0) 88%); }
}

/* portada que cabe también en pantallas bajas (laptops con 125 % de escala, ~1470×730) */
.hero__stage { align-items: end; padding: clamp(96px, 14vh, 128px) var(--gutter) clamp(92px, 13vh, 150px); }
.hero__step[data-step="0"] { max-width: 980px; }
.hero__title.hero__title--frase { font-size: clamp(2.1rem, min(4.3vw, 7.4vh), 4.4rem); line-height: 1.04; max-width: 21ch; margin-bottom: clamp(0.9rem, 2.4vh, 1.4rem); }
.hero__step .kicker { margin-bottom: clamp(0.7rem, 2vh, 1.1rem); }
.hero__step[data-step="0"] .hero__lede { font-size: clamp(1rem, min(1.25vw, 2.4vh), 1.22rem); line-height: 1.55; max-width: 40rem; }
.hero__actions { margin-top: clamp(1rem, 3vh, 1.6rem); }
@media (max-height: 640px) and (min-width: 700px) {
  .hero__step[data-step="0"] .hero__lede { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero__meta { display: none; }
}
@media (max-width: 699px) {
  .hero__stage { padding: 96px var(--gutter) 92px; }
  .hero__title.hero__title--frase { font-size: clamp(1.9rem, min(8.4vw, 5.2vh), 2.5rem); }
  .hero__step[data-step="0"] .hero__lede { font-size: 0.98rem; }
}
@media (max-width: 699px) { .hero__cue { display: none; } .hero__stage { padding-bottom: 44px; } }

/* =========================================================================
   ORDEN GENERAL (30/11/2026): títulos que no llenan la pantalla en laptops,
   cifras limpias y las cinco respuestas como lista de filas.
   ========================================================================= */
.display { font-size: clamp(2.1rem, min(4.4vw, 8vh), 4.3rem); max-width: 26ch; }
.display--sm { font-size: clamp(1.9rem, min(3.4vw, 6.6vh), 3rem); max-width: 26ch; }
@media (min-width: 1600px) { .display { font-size: clamp(3.2rem, min(4.2vw, 8.4vh), 5rem); } }
.chapter-head { padding-top: clamp(88px, min(12vw, 20vh), 168px); }
.cifras-gp__n .fn { font-size: 0.26em; }
.cifras-gp__n { white-space: nowrap; }

@media (min-width: 1000px) {
  .five { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--paper-3); }
  .five li, .five li:last-child { grid-column: auto; display: grid; grid-template-columns: 52px minmax(0, 15rem) minmax(0, 1fr) auto; column-gap: clamp(20px, 2.4vw, 40px); align-items: start;
    background: none; border-radius: 0; border-bottom: 1px solid var(--paper-3); padding: 26px 0; }
  .five__icon { margin: 0; width: 40px; height: 40px; }
  .five h3 { margin: 0.35rem 0 0; font-size: 1.45rem; }
  .five p { font-size: 1rem; line-height: 1.6; max-width: 44rem; margin-top: 0.3rem; }
  .five__link { margin: 0.55rem 0 0; padding: 0; white-space: nowrap; }
}

/* Sin columnas dobles de título y texto: el texto siempre va debajo de su título */
@media (min-width: 1000px) {
  .five li, .five li:last-child { grid-template-columns: 52px minmax(0, 1fr) auto; row-gap: 0.4rem; }
  .five__icon { grid-column: 1; grid-row: 1 / span 2; }
  .five h3 { grid-column: 2; grid-row: 1; }
  .five p { grid-column: 2; grid-row: 2; max-width: 52rem; margin-top: 0; }
  .five__link { grid-column: 3; grid-row: 1; }
}
@media (min-width: 760px) {
  .possible li { grid-template-columns: 4rem minmax(0, 1fr); align-items: start; }
  .possible li::before { grid-row: 1 / span 2; }
  .possible h3 { margin: 0 0 0.4rem; }
  .possible p { grid-column: 2; }
}

/* =========================================================================
   TEXTOS QUE SE ADAPTAN AL ANCHO DE LA PANTALLA (30/11/2026)
   Sin columnas angostas centradas: los textos ocupan el ancho de la página,
   alineados con los títulos, con letra que crece con la pantalla y justificados.
   ========================================================================= */
html { font-size: clamp(16px, 0.42vw + 10px, 19px); }
.wrap--narrow { max-width: var(--maxw); }
@media (min-width: 1600px) { .wrap--narrow { max-width: var(--maxw); } }
.lede, .chapter-head > .lede, .fauna-gp, .roles-head p, .possible p, .five p, .mif__head, .system__head,
.river__text, .eco-panel__body, .lines-head p, .guardians__text, .eco-coda, .fire-note, .isolated p { max-width: none; }
.lede { font-size: clamp(1.12rem, 0.5rem + 1vw, 1.7rem); line-height: 1.55; }
.fauna-gp, .roles-head p, .lines-head p { font-size: clamp(1rem, 0.55rem + 0.6vw, 1.3rem); }

.chapter:not(.sources) p:not(.kicker):not(.meta):not(.display):not(.subhead):not(.hero__statement):not(.final__line):not(.bridge):not(.epilogue__lead):not(.colophon):not(.fire-years__title):not(.fire-years__src):not(.transect__axis):not(.map-source):not(.burn-stat):not(.cycle__cap):not(.story__tag):not(.story__big):not(.role__verb):not(.river__name):not(.eco-panel__essence):not(.isolated__note):not(blockquote p),
.peoples__list dd, .compare__cols span, .timeline span, .risks span, .cifras-gp li > span {
  text-align: justify; -webkit-hyphens: auto; hyphens: auto; -webkit-hyphenate-limit-chars: 6 2 2; hyphenate-limit-chars: 6 2 2;
}
/* fotos y galerías alineadas con el mismo margen que los textos */
.rivers, .transect, .lines, .mosaic, .epilogue__lead { max-width: var(--maxw); }

/* =========================================================================
   INICIO RESUMIDO Y SUBPÁGINAS (30/11/2026)
   ========================================================================= */
/* portada del inicio: una sola pantalla, sin recorrido de frases */
.hero.hero--inicio { height: auto; }
.hero--inicio .hero__sticky { position: relative; height: 100vh; height: 100svh; min-height: 540px; }
.hero--inicio .hero__track { display: none; }

/* menú: página actual */
.top-nav a[aria-current="page"] { box-shadow: inset 0 0 0 1px currentColor; }

/* tarjetas «Explora» del inicio */
.explora { padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 130px); }
.explora__head { margin-bottom: clamp(28px, 4vw, 48px); }
.explora__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.explora__card { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: 12px; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.explora__card:hover, .explora__card:focus-within { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(27, 31, 24, 0.14); }
.explora__media { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.explora__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.explora__card:hover .explora__media img { transform: scale(1.04); }
.explora__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.4rem; }
.explora__body .kicker { margin-bottom: 0.6rem; }
.explora__body h3 { font: 400 clamp(1.4rem, 1.8vw, 1.85rem)/1.12 var(--serif); margin-bottom: 0.6rem; }
.explora__body p:not(.kicker) { font: 400 0.98rem/1.55 var(--sans); color: var(--ink-2); }
.explora__link { margin-top: auto; padding-top: 1.1rem; font: 500 0.8rem var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.explora__link::after { content: ""; position: absolute; inset: 0; }
.explora__link:focus-visible { outline: none; }
.explora__card:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 999px) { .explora__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .explora__grid { grid-template-columns: 1fr; } }

/* encabezado de cada subpágina */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(440px, 74vh, 720px); background: var(--night); color: var(--light); overflow: hidden; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 14, 10, 0.6) 0%, rgba(12, 14, 10, 0) 28%), linear-gradient(0deg, rgba(10, 12, 9, 0.9) 0%, rgba(10, 12, 9, 0.5) 42%, rgba(10, 12, 9, 0.12) 78%); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(44px, 8vh, 88px); }
.page-hero .display { margin-bottom: 0; text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45); }
.page-hero .lede { color: var(--light-2); margin-top: 1.2rem; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5); }
.migas { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-3); margin-bottom: 1.2rem; }
.migas a { color: var(--light); text-decoration: none; border-bottom: 1px solid rgba(244, 239, 230, 0.4); }
.migas a:hover { border-color: var(--light); }

/* secciones cuyo título pasó al encabezado de la subpágina */
.chapter.sin-cabecera > .wrap:first-child { padding-top: clamp(56px, 7vw, 100px); }
.intro-sub { padding: clamp(56px, 7vw, 100px) 0 clamp(8px, 2vw, 24px); }
.intro-sub .fauna-gp { margin-top: 0; font-size: clamp(1.05rem, 0.6rem + 0.7vw, 1.4rem); }
.life .roles-head { padding-top: clamp(40px, 5vw, 72px); }

/* al final de cada subpágina: seguir explorando y súmate */
.sigue { padding: clamp(72px, 9vw, 120px) 0; }
.sigue__next { display: block; text-decoration: none; color: var(--light); padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid rgba(244, 239, 230, 0.2); }
.sigue__next b { display: block; font: 340 clamp(2.2rem, min(5vw, 9vh), 4.4rem)/1.02 var(--serif); letter-spacing: -0.015em; transition: color 0.3s; }
.sigue__next:hover b { color: var(--ochre); }
.sigue__cta { padding-top: clamp(28px, 4vw, 44px); }
.sigue__cta p { font: 400 clamp(1.1rem, 0.6rem + 0.9vw, 1.5rem)/1.45 var(--serif); color: var(--light-2); margin-bottom: 1.2rem; }
.sigue__acciones { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 699px) {
  .sigue__acciones { display: grid; grid-template-columns: 1fr 1fr; }
  .sigue__acciones .btn { width: 100%; min-height: 48px; }
  .page-hero { min-height: 78svh; }
}

/* =========================================================================
   APARTADOS DE RESUMEN EN EL INICIO (30/11/2026)
   Título, foto, descripción, datos clave y botón, uno debajo del otro.
   ========================================================================= */
.resumen { padding: clamp(72px, 9vw, 128px) 0; }
.resumen__head { margin-bottom: clamp(20px, 3vw, 36px); }
.resumen__head .kicker { margin-bottom: 0.9rem; }
.resumen__head .display { margin: 0; }
.resumen__media { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 21 / 9; max-height: 58vh; width: 100%; background: var(--paper-3); }
.resumen__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.resumen__texto.lede { margin-top: clamp(22px, 3vw, 36px); }
.resumen__datos { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--paper-3); }
.resumen__datos li { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.2rem 1.4rem 0.2rem 0; }
.resumen__datos li + li { padding-left: 1.4rem; border-left: 1px solid var(--paper-3); }
.resumen__datos b { font: 340 clamp(2.2rem, 3.4vw, 3.3rem)/1 var(--serif); letter-spacing: -0.02em; color: var(--brand); white-space: nowrap; }
.resumen__datos b small { font-size: 0.42em; letter-spacing: 0; margin-left: 0.15em; }
.resumen__datos b .fn { font-size: 0.3em; }
.resumen__datos span { font: 400 0.95rem/1.45 var(--sans); color: var(--ink-2); }
.resumen__boton { margin-top: clamp(28px, 3.4vw, 44px); min-height: 52px; padding: 0 28px; font-size: 0.95rem; }
.resumen__boton.btn--dark:hover { background: var(--ink); color: var(--light); }
.resumen--oscuro .resumen__media { background: rgba(244, 239, 230, 0.08); }
.resumen--oscuro .resumen__datos { border-top-color: rgba(244, 239, 230, 0.2); }
.resumen--oscuro .resumen__datos li + li { border-left-color: rgba(244, 239, 230, 0.2); }
.resumen--oscuro .resumen__datos b { color: var(--ochre); }
.resumen--oscuro .resumen__datos span { color: var(--light-2); }
.resumen + .resumen { border-top: 0; }
@media (max-width: 699px) {
  .resumen__media { aspect-ratio: 4 / 3; max-height: none; }
  .resumen__datos { grid-template-columns: 1fr; }
  .resumen__datos li, .resumen__datos li + li { flex-direction: row; align-items: baseline; gap: 0.9rem; padding: 0.9rem 0; border-left: 0; border-bottom: 1px solid var(--paper-3); }
  .resumen--oscuro .resumen__datos li { border-bottom-color: rgba(244, 239, 230, 0.2); }
  .resumen__datos b { font-size: 1.9rem; min-width: 5.2rem; }
  .resumen__datos span { font-size: 0.9rem; text-align: left; hyphens: manual; }
  .resumen__boton { width: 100%; }
}
/* ajustes de los apartados: la foto ocupa todo el ancho y las cifras con nota conservan su tamaño */
.resumen__media { aspect-ratio: auto; max-height: none; height: clamp(260px, 54vh, 600px); }
.resumen__datos b .fig { font: inherit; color: inherit; }
.resumen__datos li > span { font: 400 0.95rem/1.45 var(--sans); }
@media (max-width: 699px) { .resumen__media { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 699px) { .resumen__datos li, .resumen__datos li + li { flex-direction: column; align-items: flex-start; gap: 0.3rem; } .resumen__datos b { min-width: 0; } }

/* =========================================================================
   APARTADOS CON PORTADA FOTOGRÁFICA (30/11/2026)
   Cada apartado abre con una foto a todo el ancho y su título encima;
   debajo, el relato, los datos clave y el botón.
   ========================================================================= */
.resumen { padding: 0 0 clamp(72px, 9vw, 128px); }
.resumen__portada { position: relative; margin: 0; height: clamp(380px, 74vh, 780px); overflow: hidden; background: var(--night); }
.resumen__portada img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.6s var(--ease); }
.resumen__portada::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 14, 10, 0.42) 0%, rgba(12, 14, 10, 0) 24%), linear-gradient(0deg, rgba(10, 12, 9, 0.86) 0%, rgba(10, 12, 9, 0.4) 38%, rgba(10, 12, 9, 0) 66%); }
.resumen__titulo { position: absolute; left: 0; right: 0; bottom: clamp(32px, 7vh, 72px); z-index: 2; }
.resumen__titulo .kicker { margin-bottom: 0.9rem; }
.resumen__titulo .display { margin: 0; max-width: 22ch; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5); }
.resumen__cuerpo { padding-top: clamp(36px, 4.6vw, 64px); }
.resumen__cuerpo .resumen__texto.lede { margin-top: 0; }
.resumen__datos b { font-size: clamp(2.2rem, 3.4vw, 3.3rem); }
@media (max-width: 699px) {
  .resumen__portada { height: 64svh; min-height: 360px; }
}
/* gancho bajo «Sigue explorando» en cada subpágina */
.sigue__gancho { display: block; margin-top: 0.8rem; font: 400 clamp(1.05rem, 0.6rem + 0.8vw, 1.4rem)/1.4 var(--serif); font-style: italic; color: var(--light-2); }
.page-hero .migas { margin-bottom: 1rem; }

/* =========================================================================
   APARTADOS EN ZIGZAG (30/11/2026): foto a un lado; antetítulo, título,
   relato, datos y botón al otro. Uno sí, uno no, se invierten.
   ========================================================================= */
.resumen.resumen--zz { padding: clamp(72px, 9vw, 128px) 0; }
.resumen__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 84px); align-items: center; }
.resumen--inverso .resumen__foto { order: 2; }
.resumen__foto { margin: 0; height: clamp(400px, 80vh, 760px); border-radius: 14px; overflow: hidden; background: var(--paper-3); box-shadow: 0 24px 60px rgba(20, 24, 18, 0.18); }
.resumen--oscuro .resumen__foto { background: rgba(244, 239, 230, 0.08); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.resumen__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.resumen__foto:hover img { transform: scale(1.03); }
.resumen__cuerpo .kicker { margin-bottom: 0.9rem; }
.resumen__cuerpo .display { font-size: clamp(2rem, min(3.3vw, 7vh), 3.4rem); max-width: 17ch; margin: 0; }
.resumen--zz .resumen__texto.lede { margin-top: clamp(16px, 2vw, 24px); font-size: clamp(1.02rem, 0.55rem + 0.7vw, 1.32rem); line-height: 1.6; }
.resumen--zz .resumen__datos { margin-top: clamp(20px, 2.4vw, 32px); }
.resumen--zz .resumen__datos li { padding: 1rem 1rem 0.2rem 0; }
.resumen--zz .resumen__datos li + li { padding-left: 1rem; }
.resumen--zz .resumen__datos b { font-size: clamp(1.7rem, 2.3vw, 2.5rem); }
.resumen--zz .resumen__datos li > span { font-size: 0.86rem; line-height: 1.4; text-align: left; hyphens: manual; }
.resumen--zz .resumen__boton { margin-top: clamp(22px, 2.6vw, 34px); }
@media (max-width: 899px) {
  .resumen__grid { grid-template-columns: 1fr; }
  .resumen--inverso .resumen__foto { order: 0; }
  .resumen__foto { height: auto; aspect-ratio: 4 / 3; }
  .resumen__cuerpo .display { font-size: clamp(1.9rem, 7.4vw, 2.6rem); }
}
@media (max-width: 699px) {
  .resumen--zz .resumen__datos li, .resumen--zz .resumen__datos li + li { padding: 0.9rem 0; }
}

/* =========================================================================
   APARTADOS A PANTALLA PARTIDA (30/11/2026): la foto cubre su mitad entera,
   de arriba abajo y hasta el borde de la pantalla; el texto ocupa la otra.
   ========================================================================= */
.resumen.resumen--zz { padding: 0; }
.resumen__grid.wrap { max-width: none; padding: 0; margin: 0; }
.resumen__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: stretch; min-height: clamp(560px, 100vh, 940px); }
.resumen__foto { position: relative; height: auto; min-height: 100%; border-radius: 0; box-shadow: none; }
.resumen--oscuro .resumen__foto { box-shadow: none; }
.resumen__foto img { position: absolute; inset: 0; }
.resumen__cuerpo { display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: clamp(56px, 9vh, 110px) clamp(32px, 5.5vw, 104px); }
.resumen__cuerpo > * { max-width: 40rem; width: 100%; }
.resumen__cuerpo > .btn { width: auto; }
.resumen--zz .resumen__datos li > span { font-size: 0.88rem; }
@media (max-width: 899px) {
  .resumen__grid { grid-template-columns: 1fr; min-height: 0; }
  .resumen__foto { min-height: 0; aspect-ratio: 4 / 3; }
  .resumen__cuerpo { padding: clamp(36px, 7vw, 56px) var(--gutter) clamp(56px, 10vw, 80px); }
}
@media (max-width: 699px) {
  .resumen__cuerpo > .btn { width: 100%; }
}

/* =========================================================================
   «EN CIFRAS» MÁS GRANDE (30/11/2026): banda oscura, título, cifras enormes
   en ocre, una línea de unidad y una de contexto, todo alineado.
   ========================================================================= */
.cifras.cifras--grande { background: var(--forest); padding: clamp(80px, 11vw, 150px) 0; }
.cifras--grande .cifras__head { margin-bottom: clamp(40px, 5vw, 72px); }
.cifras--grande .cifras__head .kicker { margin-bottom: 0.9rem; color: var(--ochre); }
.cifras--grande .cifras__head .display { margin: 0; }
.cifras--grande .cifras-gp { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(244, 239, 230, 0.22); }
.cifras--grande .cifras-gp li { display: flex; flex-direction: column; gap: 0; padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 32px) 0 0; background: none; border: 0; border-radius: 0; }
.cifras--grande .cifras-gp li + li { padding-left: clamp(16px, 2vw, 32px); border-left: 1px solid rgba(244, 239, 230, 0.22); }
.cifras--grande .cifras-gp__n { font: 300 clamp(3.6rem, 7vw, 7rem)/0.9 var(--serif); letter-spacing: -0.03em; color: var(--ochre); white-space: nowrap; }
.cifras--grande .cifras-gp__n .fig { font: inherit; color: inherit; }
.cifras--grande .cifras-gp__n .fn { font-size: 0.22em; color: var(--light-3); vertical-align: 2.6em; }
.cifras--grande .cifras-gp__u { display: block; margin-top: clamp(14px, 1.6vw, 22px); font: 600 clamp(0.95rem, 1.05vw, 1.1rem)/1.3 var(--sans); color: var(--light); }
.cifras--grande .cifras-gp__t { display: block; margin-top: 0.55rem; font: 400 clamp(0.95rem, 1vw, 1.05rem)/1.55 var(--sans); color: var(--light-2); text-align: left !important; hyphens: manual !important; }
@media (max-width: 899px) {
  .cifras--grande .cifras-gp { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .cifras--grande .cifras-gp li:nth-child(3) { border-left: 0; padding-left: 0; }
  .cifras--grande .cifras-gp li:nth-child(n+3) { border-top: 1px solid rgba(244, 239, 230, 0.22); margin-top: 24px; }
}
@media (max-width: 499px) {
  .cifras--grande .cifras-gp { grid-template-columns: 1fr; }
  .cifras--grande .cifras-gp li, .cifras--grande .cifras-gp li + li { padding: 24px 0 28px; border-left: 0; border-top: 1px solid rgba(244, 239, 230, 0.22); margin-top: 0; }
  .cifras--grande .cifras-gp__n { font-size: 4.2rem; }
}

/* botones rectos (sin forma de cápsula) y del ancho del texto (30/11/2026) */
.btn { border-radius: 3px; }
.resumen__cuerpo > .btn, .resumen--zz .resumen__boton { width: 100%; max-width: 40rem; min-height: 56px; justify-content: center; }
.hero__actions, .sigue__acciones, .join__actions, .final__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 40rem; }
.hero__actions .btn, .sigue__acciones .btn, .join__actions .btn, .final__actions .btn { width: 100%; min-height: 52px; }
.bleed--final .final__actions { margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .bleed--final .final__actions { margin-left: 0; } }

/* =========================================================================
   SÚMATE (30/11/2026): pantalla partida con foto de la comunidad, a dónde
   llega el aporte en cuatro tarjetas con ícono, dos botones parejos y,
   aparte, la franja de aliados.
   ========================================================================= */
.sumate-gp { background: var(--forest); }
.sumate-gp .resumen__cuerpo .display { max-width: 18ch; }
.aporte { list-style: none; margin: clamp(18px, 2.4vw, 28px) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aporte li { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: start; padding: 16px 16px 15px; border: 1px solid rgba(244, 239, 230, 0.18); border-radius: 4px; background: rgba(244, 239, 230, 0.05); }
.aporte__icono { grid-row: 1 / span 2; width: 34px; height: 34px; color: var(--ochre); }
.aporte__icono svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.aporte b { font: 500 1rem/1.3 var(--sans); color: var(--light); }
.aporte span:not(.aporte__icono) { font: 400 0.9rem/1.4 var(--sans); color: var(--light-2); }
.sumate-gp__acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: clamp(22px, 2.6vw, 34px); width: 100%; max-width: 40rem; }
.sumate-gp__acciones .btn { width: 100%; min-height: 56px; font-size: 0.95rem; }
.aliados-gp { padding: clamp(56px, 7vw, 96px) 0; }
.aliados-gp .kicker { text-align: center; margin-bottom: 1.4rem; }
.aliados-gp .allies-strip__list { gap: 24px clamp(32px, 5vw, 72px); padding: 28px 0; }
.aliados-gp .allies-strip__list img { height: 54px; max-width: 170px; }
@media (max-width: 699px) {
  .aporte { grid-template-columns: 1fr; }
  .sumate-gp__acciones { grid-template-columns: 1fr; }
  .aliados-gp .allies-strip__list img { height: 40px; }
}
/* portada: la foto cambia con cada frase al deslizar */
.hero__media .hero__img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease), transform 0.2s linear; transform: scale(var(--hero-scale, 1.1)); }
.hero__media .hero__img.is-on { opacity: 1; }
.js .hero__media .hero__img:not(.is-on) { opacity: 0; }
.js .hero__media .hero__img.is-on { opacity: 1; }
.hero__meta { transition: opacity 0.6s; } .hero.is-past-intro .hero__meta { opacity: 0; }
/* portada: el primer texto (título, entradilla y botones) va centrado */
.hero__step[data-step="0"] { justify-self: center; align-self: center; text-align: center; max-width: 1000px; }
.hero__step[data-step="0"] .hero__title--frase { margin-left: auto; margin-right: auto; }
.hero__step[data-step="0"] .hero__lede { margin-left: auto; margin-right: auto; text-align: center !important; hyphens: manual !important; }
.hero__step[data-step="0"] .hero__actions { margin-left: auto; margin-right: auto; width: 100%; }
@media (prefers-reduced-motion: reduce) { .js .hero__media .hero__img:not(.is-on) { opacity: 0 !important; } }
@media (min-width: 900px) { .aliados-gp .allies-strip__list { flex-wrap: nowrap; justify-content: space-between; gap: 24px; padding-left: 12px; padding-right: 12px; } .aliados-gp .allies-strip__list img { height: 50px; max-width: 150px; } }

/* =========================================================================
   SUBPÁGINAS SIN HUECOS (30/11/2026): espacios entre bloques más contenidos.
   Antes cada bloque sumaba su margen de cierre (hasta 160 px) al margen de
   apertura del siguiente (hasta 180 px).
   ========================================================================= */
.chapter-head { padding-top: clamp(56px, min(7vw, 12vh), 104px); padding-bottom: clamp(28px, 3.6vw, 52px); }
.chapter-head--sub { padding-top: clamp(40px, 5vw, 72px); }
.eco-coda { padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.water .wrap--narrow { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(32px, 4vw, 48px); }
.rivers { padding-bottom: clamp(56px, 7vw, 96px); gap: clamp(40px, 6vw, 80px); }
.roles { padding-bottom: clamp(48px, 6vw, 80px); }
.notebook { padding: clamp(48px, 6vw, 80px) 0; }
.peoples { margin: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); }
.isolated { padding: clamp(72px, 9vw, 120px) 0; }
.loss { padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 56px); }
.fire-note { padding: clamp(56px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.fire-years { padding-bottom: clamp(56px, 7vw, 88px); }
.system { padding-bottom: clamp(56px, 7vw, 96px); }
.timeline, .origin .timeline { margin-bottom: clamp(56px, 7vw, 96px); }
.mif { padding: clamp(48px, 6vw, 88px) 0; }
.compare { margin-top: clamp(40px, 5vw, 72px); }
.compare .pull { margin-top: clamp(24px, 3vw, 40px); }
.guardians, .faces-gp .guardians { padding: clamp(40px, 5vw, 72px) 0; }
.gov { padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.watch { padding-bottom: clamp(56px, 7vw, 88px); }
.produce { padding-bottom: clamp(56px, 7vw, 88px); }
.carbon { padding: clamp(56px, 7vw, 96px) 0; }
.epilogue, .closing .epilogue { padding-bottom: clamp(56px, 7vw, 88px); }
.closing .epilogue { padding-top: clamp(56px, 7vw, 88px); }
.five { margin-bottom: clamp(48px, 6vw, 80px); }
.lines-head { padding-bottom: clamp(24px, 3vw, 40px); }
.chapter.sin-cabecera > .wrap:first-child { padding-top: clamp(40px, 5vw, 72px); }
.intro-sub { padding: clamp(40px, 5vw, 72px) 0 0; }
.sigue { padding: clamp(48px, 6vw, 80px) 0; }
.sources { padding-top: clamp(48px, 6vw, 80px); }

/* pie mínimo con el crédito de desarrollo */
.pie-gp { background: var(--night); color: var(--light-3); padding: 22px 0; font: 400 0.82rem/1.4 var(--sans); text-align: center; }
.pie-gp p { margin: 0; text-align: center !important; }
.pie-gp a { color: var(--light); text-decoration: none; border-bottom: 1px solid rgba(244, 239, 230, 0.4); }
.pie-gp a:hover { color: var(--ochre); border-color: var(--ochre); }
@media (max-width: 759px) { .pie-gp { padding-bottom: 84px; } }

/* inicio, «El paisaje»: mapa fijo de ecorregiones y áreas protegidas en lugar de foto */
.resumen__mapa { background: #e6eef0; }
.mapa-resumen { position: absolute; inset: 0; }
.mapa-resumen svg { width: 100%; height: 100%; display: block; }
.mr-pais path { fill: #f3eee5; stroke: none; } .mr-pais path.es-bolivia { fill: #ebe2cf; }
.mr-pais .mr-borde { fill: none; stroke: #b9ae98; stroke-width: 0.9; stroke-dasharray: 3 3; }
.mr-eco path { fill-opacity: 0.92; stroke: rgba(255,255,255,0.6); stroke-width: 0.8; }
.mr-area path { fill-opacity: 0.82; stroke: rgba(27,31,24,0.35); stroke-width: 0.7; }
.mr-rio path { fill: none; stroke: #6f9db0; stroke-width: 1.3; }
.mr-txt text { font: italic 400 clamp(14px, 1.5vw, 20px) var(--serif); fill: rgba(30,40,30,0.85); paint-order: stroke; stroke: rgba(243,238,229,0.85); stroke-width: 3px; }
.mr-txt .mr-paisnom { font: 500 11px var(--sans); font-style: normal; letter-spacing: 0.3em; fill: #8b8170; stroke: none; }
.mapa-resumen__leyenda { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px clamp(16px, 2.4vw, 28px); background: rgba(243,238,229,0.92); border-top: 1px solid var(--paper-3); }
.mapa-resumen__leyenda ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 400 0.8rem/1.3 var(--sans); color: var(--ink-2); }
.mapa-resumen__leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 899px) { .resumen__mapa { aspect-ratio: 4 / 5; } }
/* fronteras bien marcadas, por encima de ecorregiones y áreas */
.mr-front path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.mr-front .mr-halo { stroke: rgba(255, 255, 255, 0.85); stroke-width: 5; }
.mr-front .mr-borde { stroke: #3a2f24; stroke-width: 1.8; stroke-dasharray: 7 4; }
.mr-txt .mr-paisnom { font-size: 13px; font-weight: 600; fill: #3a2f24; paint-order: stroke; stroke: rgba(255,255,255,0.85); stroke-width: 3px; }

/* pie: línea de contacto de NATIVA sobre el crédito de desarrollo */
.pie-gp .pie-gp__contacto { margin-bottom: 8px; color: rgba(244, 239, 230, 0.72); }
.pie-gp__contacto > * { white-space: nowrap; }
.pie-gp__sep { margin: 0 0.2em; opacity: 0.7; }
@media (max-width: 759px) {
  .pie-gp__contacto > span:first-child { display: block; margin-bottom: 2px; }
  .pie-gp__contacto > span:first-child + .pie-gp__sep { display: none; }
}

/* ecosistema: franja con los sitios de NATIVA (la genera ../_ecosistema/franja.py) */
.ecn{--ecn-acento:var(--ochre);background:var(--teal);color:var(--light);padding:3rem 0 3.25rem;font-size:1rem}
.ecn__caja{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.ecn .ecn__cab{display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem 1.25rem;margin:0 0 1.5rem}
.ecn .ecn__t{margin:0;font-family:var(--serif);font-size:1.35rem;font-weight:600;line-height:1.2;color:inherit;text-align:left;max-width:none}
.ecn .ecn__b{margin:0;font-size:1rem;line-height:1.4;color:inherit;opacity:.8;text-align:left;max-width:none}
.ecn .ecn__lista{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;columns:auto}
.ecn .ecn__lista li{display:flex;margin:0;padding:0;border:0}
.ecn .ecn__lista li::before{content:none}
.ecn .ecn__sitio{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:.9rem;margin:0;padding:1.4rem 1rem 1.15rem;border:1px solid rgba(255,255,255,.2);color:inherit;text-decoration:none;text-align:center;transition:background .25s,border-color .25s}
.ecn a.ecn__sitio::after{content:none}
.ecn a.ecn__sitio:hover,.ecn a.ecn__sitio:focus-visible{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.55);color:inherit;text-decoration:none}
.ecn .ecn__marca{display:grid;place-items:center;height:4rem;width:100%}
.ecn .ecn__marca img{max-width:min(100%,10rem);max-height:4rem;width:auto;height:auto;object-fit:contain;display:block;margin:0}
.ecn .ecn__marca strong{font-family:var(--serif);font-size:1.1rem;font-weight:600;line-height:1.2;color:inherit}
.ecn .ecn__frase{font-size:.92rem;line-height:1.35;color:inherit;opacity:.85}
.ecn .es-actual .ecn__sitio{border-color:var(--ecn-acento);background:rgba(255,255,255,.05)}
.ecn .ecn__aqui{position:absolute;top:0;left:0;padding:.15rem .55rem;background:var(--ecn-acento);color:var(--night);font-size:.72rem;font-weight:600;line-height:1.5}
@media (max-width:900px){.ecn .ecn__lista{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}.ecn .ecn__sitio{padding:1.5rem .6rem 1rem}.ecn .ecn__marca img{max-width:min(100%,8rem)}}
/* fin ecosistema */
