@font-face {
  font-family: Barlow;
  src: url(vendor/barlow-latin-400-normal.woff2);
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(vendor/barlow-latin-500-normal.woff2);
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url(vendor/barlow-latin-600-normal.woff2);
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url(vendor/ibm-plex-mono-latin-400-normal.woff2);
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url(vendor/ibm-plex-mono-latin-500-normal.woff2);
  font-weight: 500;
  font-display: swap;
}

/* Negro crudo, hueso y una sola veta ámbar */
:root {
  --bg: #0d0c0b;
  --s1: #141210;
  --s2: #1b1916;
  --s3: #25221e;
  --line: rgba(239, 233, 223, 0.08);
  --line-2: rgba(239, 233, 223, 0.14);
  --text: #efe9df;
  --text-2: #b5ac9f;
  --text-3: #80786d;
  --accent: #e8a33d;
  --accent-ink: #1a1206;
  --good: #a9c79a;
  --bad: #e08a62;
  --steel: #93a3b1;
  --mono: Plex, ui-monospace, monospace;
  --body: Barlow, system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;
  --slow: 320ms;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
}
button,
a,
select,
input,
summary,
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 50;
  background: var(--text);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.mint {
  color: var(--good);
}
.amber {
  color: var(--bad);
}
.price.mint b,
.price.mint strong {
  color: var(--good);
}
.price.amber b,
.price.amber strong {
  color: var(--bad);
}

/* Cabecera */
.mast {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--gutter);
  background: rgba(13, 12, 11, 0.92);
  border-bottom: 1px solid var(--line);
  transition:
    background-color var(--slow) var(--ease),
    border-color var(--slow) var(--ease);
}
body.at-top .mast {
  background: rgba(13, 12, 11, 0);
  border-color: transparent;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
}
nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
nav::-webkit-scrollbar {
  display: none;
}
nav a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
  transition:
    color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}
nav a:hover {
  color: var(--text);
}
nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(239, 233, 223, 0.07);
}
.data-btn {
  margin-left: auto;
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.data-btn:hover {
  color: var(--text);
  border-color: rgba(239, 233, 223, 0.28);
}

/* Botones y controles comunes */
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}
.primary {
  background: var(--text);
  color: var(--bg);
  border: 0;
}
.primary:hover {
  background: #fffaf2;
}
.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
.secondary:hover {
  border-color: rgba(239, 233, 223, 0.3);
}
.primary:active,
.secondary:active {
  transform: scale(0.98);
}
.primary:disabled,
.secondary:disabled {
  opacity: 0.45;
  cursor: default;
}
.icon-only {
  width: 44px;
  padding: 0;
}
.quiet-link {
  color: var(--text-2);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 5px;
  transition:
    color var(--fast) var(--ease),
    text-decoration-color var(--fast) var(--ease);
}
.quiet-link:hover {
  color: var(--text);
  text-decoration-color: var(--text-2);
}
.icon-button {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.icon-button:hover {
  color: var(--text);
}
.horizon,
.segments,
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.horizon button,
.segments button,
.tabs button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--fast) var(--ease),
    background-color var(--fast) var(--ease);
}
.horizon button:hover,
.segments button:hover,
.tabs button:hover {
  color: var(--text);
}
.horizon button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
}
.segments button[aria-pressed="true"],
.tabs button[aria-pressed="true"] {
  background: var(--s3);
  color: var(--text);
}
select {
  height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--s1)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5ac9f' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center / 16px;
  appearance: none;
  font-size: 14px;
  cursor: pointer;
}
label {
  font-size: 14px;
  color: var(--text-2);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
input[type="range"] {
  display: block;
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
  min-height: 24px;
}

/* ===== Portada: escena a pantalla completa ===== */
.home {
  position: relative;
}
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.stage-labels {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.stage-label {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
  white-space: nowrap;
  font: 12px var(--mono);
  color: var(--text-2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  font-variant-numeric: tabular-nums;
}
.stage-label.year {
  translate: -50% 0;
  color: var(--text-3);
}
.stage-label.core {
  translate: -50% -100%;
  display: grid;
  justify-items: center;
  gap: 2px;
  transition: color var(--slow) var(--ease);
}
.stage-label.core b {
  font-weight: 400;
  color: var(--text-3);
}
.stage-label.core span:nth-of-type(1) {
  font: 500 16px var(--body);
  color: var(--text-2);
}
.stage-label.core span:nth-of-type(2) {
  font-size: 11px;
  color: var(--text-3);
}
.stage-label.core.on b {
  color: var(--accent);
}
.stage-label.core.on span:nth-of-type(1) {
  font-size: 22px;
  color: var(--text);
}
.stage-label.core.on span:nth-of-type(2) {
  color: var(--text-2);
}
.stage-label.today {
  translate: -50% -100%;
  display: grid;
  justify-items: center;
}
.stage-label.today b {
  font-weight: 500;
  color: var(--accent);
}
.stage-label.flat {
  translate: -100% -100%;
  font-size: 11px;
  color: var(--text-3);
}
.stage-label.event {
  translate: -50% -100%;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 168px;
  white-space: normal;
  text-align: center;
}
.stage-label.event b {
  font-weight: 500;
  color: var(--text-3);
  font-size: 11px;
}
.stage-label.event span {
  font: 14px/1.3 var(--body);
  color: var(--text);
}
.stage.stage-off {
  background: var(--s1);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px var(--gutter) 32px;
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(760px, 70%);
  background: linear-gradient(90deg, rgba(13, 12, 11, 0.78), rgba(13, 12, 11, 0));
  pointer-events: none;
  z-index: -1;
}
.hero-copy,
.hero-foot {
  pointer-events: auto;
}
.hero-copy {
  max-width: 600px;
  animation: rise 700ms var(--ease) 900ms both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy {
    animation: none;
  }
}
.hero-meta {
  font: 13px var(--mono);
  color: var(--text-3);
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.1;
  color: var(--text-2);
  font-weight: 400;
}
.hero h1 span {
  color: var(--text);
}
.hero-figure {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 8px;
}
.hero-figure strong {
  font-size: clamp(88px, 12vw, 184px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.hero-figure span {
  font: 16px var(--mono);
  color: var(--text-3);
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 8px 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.hero-facts dt {
  font-size: 13px;
  color: var(--text-3);
}
.hero-facts dd {
  margin-top: 4px;
  white-space: nowrap;
}
.hero-facts b {
  font-weight: 500;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.hero-facts small {
  font: 12px var(--mono);
  color: var(--text-3);
}
.hero-horizon {
  margin-top: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 40px;
}
.stage-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font: 12px var(--mono);
  color: var(--text-3);
}
.stage-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.swatch {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--accent);
}
.swatch.core {
  width: 8px;
  height: 12px;
  border: 1px solid var(--accent);
  background: rgba(232, 163, 61, 0.25);
  border-radius: 2px;
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 12px var(--mono);
  color: var(--text-2);
  white-space: nowrap;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 32px;
  background: var(--line-2);
}

.story {
  position: relative;
  z-index: 1;
  height: 240svh;
  pointer-events: none;
}
.story-card {
  position: absolute;
  left: var(--gutter);
  width: min(440px, calc(100% - 2 * var(--gutter)));
  padding: 24px;
  background: rgba(20, 18, 16, 0.9);
  border: 1px solid var(--line);
  border-radius: 16px;
  pointer-events: auto;
}
.story-card:nth-child(1) {
  top: 40svh;
}
.story-card:nth-child(2) {
  top: 108svh;
}
.story-card:nth-child(3) {
  top: 180svh;
}
.story-step {
  font: 12px var(--mono);
  color: var(--accent);
}
.story-card h2 {
  margin-top: 8px;
  font-size: 26px;
  line-height: 1.2;
}
.story-card p {
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.6;
}
.story-card .story-note {
  font-size: 13px;
  color: var(--text-3);
}

/* ===== Contenido editorial bajo la escena ===== */
.content {
  position: relative;
  z-index: 2;
  background: var(--bg);
  border-top: 1px solid var(--line-2);
  padding: 24px var(--gutter) 96px;
}
.block {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 32px 64px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 56px;
}
.block:last-child {
  border-bottom: 0;
}
.block-head {
  position: sticky;
  top: 88px;
  align-self: start;
}
.block-index {
  font: 12px var(--mono);
  color: var(--text-3);
}
.block-head h2 {
  margin-top: 12px;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.15;
}
.block-head p {
  margin-top: 16px;
  color: var(--text-2);
  line-height: 1.6;
}
.block-head .secondary,
.block-head .quiet-link {
  margin-top: 24px;
}
.block-head .quiet-link {
  display: inline-block;
}
.block-body {
  min-width: 0;
}
.lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  max-width: 68ch;
}

/* Paneles y piezas compartidas */
.panel {
  background: var(--s1);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 24px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
}
.panel-head h2 {
  font-size: 24px;
  margin-top: 4px;
}
.panel-head h3 {
  font-size: 20px;
  margin-top: 4px;
}
.eyebrow {
  font-size: 13px;
  color: var(--text-3);
}
.tag,
.meta {
  font: 12px var(--mono);
  color: var(--text-3);
  white-space: nowrap;
}
.section-copy {
  padding: 0 24px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 96ch;
}
.footnote,
.chart-note {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  margin-top: 12px;
}
.panel > .chart-note,
.panel > .footnote {
  padding: 0 24px 20px;
}
.chart-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--text-2);
  padding: 0 24px;
}
.block-body .chart-key {
  padding: 0;
  margin: 16px 0 12px;
}
.chart-key > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.key {
  display: inline-block;
  width: 12px;
  height: 2px;
  background: var(--text);
}
.key.bone-bg {
  background: var(--text);
}
.key.accent-bg {
  background: var(--accent);
}
.key.steel-bg {
  background: var(--steel);
}
.chart-box {
  position: relative;
  height: 340px;
  margin: 8px 24px 0;
}
.block-body .chart-box {
  margin: 0;
}
.chart-box.tall {
  height: 440px;
}
.chart-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.checks {
  display: flex;
  gap: 20px;
}
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.table-scroll {
  overflow-x: auto;
}
.panel.table-scroll {
  padding: 8px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
th {
  text-align: left;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-3);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tr.chosen td {
  background: rgba(232, 163, 61, 0.06);
}
tr.chosen td:first-child {
  box-shadow: inset 2px 0 var(--accent);
  color: var(--text);
}
details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
summary {
  cursor: pointer;
  color: var(--text);
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::before {
  content: "+";
  font: 14px var(--mono);
  color: var(--text-3);
  width: 12px;
}
details[open] > summary::before {
  content: "−";
}
details p,
details ul {
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.6;
  font-size: 15px;
}
details ul {
  padding-left: 20px;
}
details li + li {
  margin-top: 8px;
}
.analysis details {
  margin-top: 24px;
}
.panel.analysis {
  padding: 24px;
}
.notice {
  position: fixed;
  left: 50%;
  bottom: 24px;
  translate: -50% 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--s2);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-size: 14px;
}
.notice button {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
}

/* ===== Páginas interiores ===== */
.inner {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 120px var(--gutter) 96px;
}
.page-head {
  max-width: 760px;
  margin-bottom: 40px;
}
.page-head h1 {
  margin-top: 12px;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.intro {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.55;
}
.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
.heading-row h2 {
  font-size: 24px;
}

/* Laboratorio de redes */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 16px;
}
.lab-panel {
  overflow: hidden;
}
.stage-grid {
  position: relative;
  overflow: hidden;
  height: min(560px, 62vh);
  background: var(--bg);
  border-block: 1px solid var(--line);
}
.stage-grid canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.scene-tools {
  display: flex;
  gap: 8px;
}
.stage-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  font: 12px var(--mono);
  color: var(--text-3);
}
.lab-note {
  padding: 24px;
}
.lab-note h3 {
  margin-top: 8px;
  font-size: 22px;
}
.lab-note > p {
  margin-top: 12px;
  color: var(--text-2);
  line-height: 1.6;
}
.lab-note dl {
  margin-top: 24px;
  display: grid;
  gap: 4px;
}
.lab-note dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  margin-top: 12px;
}
.lab-note dt b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.lab-note dd {
  padding-left: 18px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
}
.arch-details {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 2fr;
  gap: 24px;
  padding: 24px;
  align-items: start;
}
.arch-details h3 {
  margin-top: 4px;
  font-size: 20px;
}
.arch-details dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}
.arch-details dt {
  font-size: 13px;
  color: var(--text-3);
}
.arch-details dd {
  margin-top: 4px;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.arch-details > p {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-3);
}

/* Validación: años */
.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.year-grid > div {
  padding: 12px 16px;
  background: var(--s2);
  border-radius: 10px;
  font: 13px var(--mono);
  color: var(--text-3);
}
.year-grid strong {
  display: block;
  margin-top: 4px;
  font: 500 20px var(--body);
  font-variant-numeric: tabular-nums;
}
#selection {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
.alternatives {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.alternatives h3 {
  font-size: 15px;
  color: var(--text);
}
.alternatives ul {
  list-style: none;
  margin-top: 8px;
  padding: 0;
}
.alternatives li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.alternatives li strong {
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
}
.alt-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 4px;
  font: 13px var(--mono);
  color: var(--text-3);
}
.alternatives li p,
#alternatives-note {
  margin-top: 4px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}
#alternatives-note {
  margin-top: 12px;
}
.panel.analysis .quiet-link {
  display: inline-block;
  margin-top: 8px;
}

/* Ciclo histórico */
.episodes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  margin-top: 16px;
}
.episode {
  border-top: 1px solid var(--line);
}
.episode summary {
  display: grid;
  gap: 4px;
}
.episode summary::before {
  display: none;
}
.episode time {
  font: 12px var(--mono);
  color: var(--text-3);
}
.episode[open] time {
  color: var(--accent);
}

/* Pie y diálogo */
.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg);
  font: 12px var(--mono);
  color: var(--text-3);
}
dialog {
  width: min(520px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--s1);
  color: var(--text);
}
dialog::backdrop {
  background: rgba(8, 7, 6, 0.72);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.dialog-head h2 {
  margin-top: 4px;
  font-size: 24px;
}
.op-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.op-section h3 {
  font-size: 17px;
}
.op-section p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
#job-info {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-2);
}
progress {
  width: 100%;
  margin-top: 12px;
  accent-color: var(--accent);
}

/* ===== Pantallas estrechas ===== */
@media (max-width: 1100px) {
  .block {
    grid-template-columns: 1fr;
    padding: 56px 0;
  }
  .block-head {
    position: static;
    max-width: 640px;
  }
  .lab-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .mast {
    gap: 12px;
  }
  .mast nav {
    flex: 1;
    min-width: 0;
  }
  .brand {
    font-size: 0;
    gap: 0;
  }
  .data-btn span {
    display: none;
  }
  .data-btn {
    width: 32px;
    padding: 0;
    justify-content: center;
  }
  .hero {
    padding-top: 80px;
    min-height: 140svh;
  }
  .hero::before {
    width: 100%;
    height: 100svh;
    background: linear-gradient(180deg, rgba(13, 12, 11, 0.9) 45%, rgba(13, 12, 11, 0) 80%);
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero-figure strong {
    font-size: 76px;
  }
  .hero-facts {
    margin-top: 20px;
    padding-top: 16px;
  }
  .hero-facts b {
    font-size: 16px;
  }
  .hero-horizon {
    margin-top: 20px;
  }
  .hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
  }
  .stage-key span:last-child {
    display: none;
  }
  .story-card {
    padding: 20px;
  }
  .content {
    padding-top: 8px;
  }
  .arch-details,
  .episodes {
    grid-template-columns: 1fr;
  }
  .arch-details dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-box {
    height: 260px;
    margin-inline: 16px;
  }
  .chart-box.tall {
    height: 320px;
  }
  .panel-head {
    padding: 16px;
    flex-wrap: wrap;
  }
  .section-copy,
  .chart-key {
    padding-inline: 16px;
  }
  .panel > .chart-note,
  .panel > .footnote {
    padding: 0 16px 16px;
  }
  .stage-grid {
    height: 380px;
  }
}
