/* Israel vota · noche electoral de la 26.ª Knesset
   Composición: una columna editorial de 1200px; el hemiciclo manda arriba,
   después los datos de escrutinio, el mapa y el contexto. */

:root {
  color-scheme: light;
  --bg: #f2f4f8;
  --bg-2: #e7ebf2;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --ink: #0a1222;
  --ink-2: #303c56;
  --ink-3: #5f6a83;
  --line: #d8dee8;
  --line-2: #bfc8d7;
  --accent: #1a47c9;          /* azul de la bandera */
  --accent-soft: rgba(26, 71, 201, 0.10);
  --live: #d92d3a;
  --ok: #138a5e;
  --warn: #b26a00;
  --b-net: #2457e6;           /* bloque Netanyahu */
  --b-cam: #e97b10;           /* bloque del cambio */
  --b-arab: #0f9d78;          /* partidos árabes */
  --b-otros: #8a8fa3;
  --seat-empty: #dde2eb;
  --glow: rgba(26, 71, 201, 0.16);
  --shadow: 0 1px 2px rgba(10, 18, 34, 0.06), 0 8px 24px rgba(10, 18, 34, 0.06);
  --font-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-he: "Frank Ruhl Libre", "David", "Arial Hebrew", "Times New Roman", serif;
  --radius: 14px;
  --radius-s: 8px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --max: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050912;
  --bg-2: #0a1020;
  --surface: #0d1424;
  --surface-2: #111a2e;
  --ink: #eef2fb;
  --ink-2: #bcc5d9;
  --ink-3: #8691ab;
  --line: #1a2338;
  --line-2: #29344d;
  --accent: #7aa2ff;
  --accent-soft: rgba(122, 162, 255, 0.12);
  --live: #ff5d63;
  --ok: #3ccf95;
  --warn: #ffb547;
  --b-net: #4f83ff;
  --b-cam: #ff9a3c;
  --b-arab: #2cc79a;
  --b-otros: #8c93ab;
  --seat-empty: #1b2438;
  --glow: rgba(122, 162, 255, 0.22);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Sin JS: seguimos la preferencia del sistema. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #050912; --bg-2: #0a1020; --surface: #0d1424; --surface-2: #111a2e;
    --ink: #eef2fb; --ink-2: #bcc5d9; --ink-3: #8691ab; --line: #1a2338; --line-2: #29344d;
    --accent: #7aa2ff; --accent-soft: rgba(122, 162, 255, 0.12); --live: #ff5d63; --ok: #3ccf95; --warn: #ffb547;
    --b-net: #4f83ff; --b-cam: #ff9a3c; --b-arab: #2cc79a; --b-otros: #8c93ab; --seat-empty: #1b2438;
    --glow: rgba(122, 162, 255, 0.22);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 60;
}
img, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.he { font-family: var(--font-he); direction: rtl; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-r);
}

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name {
  font: 800 19px/1 var(--font-display);
  font-stretch: 112%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.brand__name em { font-style: normal; color: var(--accent); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); position: relative; }
.status[data-live="true"] { color: var(--live); border-color: color-mix(in srgb, var(--live) 45%, transparent); }
.status[data-live="true"] .status__dot { background: var(--live); }
.status[data-live="true"] .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--live); animation: ping 1.6s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(0.5); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
.topnav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.topnav a:hover, .topnav a[aria-current="true"] { background: var(--accent-soft); color: var(--ink); }
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  flex: none;
  transition: transform 0.2s var(--ease-out), border-color 0.2s;
}
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn svg { width: 18px; height: 18px; }
.ticker {
  border-top: 1px solid var(--line);
  overflow: hidden;
  font-size: 14px;
}
.ticker__in { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.ticker__tag {
  flex: none;
  font: 700 11px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--live);
  padding: 5px 8px;
  border-radius: 4px;
}
.ticker__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); min-width: 0; }
.ticker__text strong { color: var(--ink); }

/* ---------- Bandera de última hora ---------- */
.banner { padding-block: 10px; font-weight: 600; }
.banner[data-level="alert"] { background: color-mix(in srgb, var(--warn) 18%, var(--bg)); }
.banner[data-level="breaking"] { background: var(--live); color: #fff; }
.banner[data-level="info"] { background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 64px) 24px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -80px 0 auto;
  height: 720px;
  background:
    radial-gradient(600px 340px at 72% 46%, var(--glow), transparent 70%),
    radial-gradient(500px 300px at 12% 10%, color-mix(in srgb, var(--b-cam) 10%, transparent), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  font: 600 12px/1.3 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow b { color: var(--accent); font-weight: 700; }
.hero h1 {
  margin: 0;
  font: 800 clamp(38px, 6.4vw, 76px)/0.96 var(--font-display);
  font-stretch: 78%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero h1 .hl { color: var(--accent); }
.lede {
  margin: 18px 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-2);
  max-width: 34em;
  text-wrap: pretty;
}
.countdown {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 26px;
}
.countdown__label { flex-basis: 100%; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.countdown__unit { display: grid; gap: 2px; }
.countdown__num {
  font: 700 clamp(34px, 4.6vw, 52px)/1 var(--font-display);
  font-stretch: 70%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.countdown__cap { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.1em; }
.times { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2);
  padding: 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.chip b { color: var(--ink); font-weight: 600; }

.hero__chart { min-width: 0; }
.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.seg {
  appearance: none;
  border: 1px solid var(--line-2);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.seg:hover { border-color: var(--accent); color: var(--ink); }
.seg[aria-selected="true"], .seg[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg[disabled] { opacity: 0.45; cursor: not-allowed; }
.seg .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; vertical-align: 1px; }
.subtabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; min-height: 30px; }
.subtabs .seg { padding: 4px 10px; font-size: 13px; }

.hemi { position: relative; margin: 0; }
.hemi svg { display: block; width: 100%; height: auto; overflow: visible; }
.hemi .seat { transition: fill 0.4s; }
.hemi__center {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  width: 44%;
}
.hemi__big {
  font: 800 clamp(40px, 7vw, 84px)/0.9 var(--font-display);
  font-stretch: 72%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hemi__cap { font-size: clamp(12px, 1.3vw, 14px); color: var(--ink-3); margin-top: 6px; }
.hemi__lead { font-weight: 600; color: var(--ink-2); }
.majority-label { font: 700 12px/1 var(--font-body); fill: var(--ink-3); letter-spacing: 0.08em; }

.blocbar { margin-top: 14px; }
.blocbar__track {
  position: relative;
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--seat-empty);
}
.blocbar__seg { height: 100%; width: 0; transition: width 0.9s var(--ease-out); }
.blocbar__seg + .blocbar__seg { box-shadow: -2px 0 0 var(--bg); }
.blocbar__mark {
  position: absolute;
  left: 50%;
  top: -6px; bottom: -6px;
  width: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.blocbar__legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px 16px;
  margin-top: 14px;
}
.bloc {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: baseline;
}
.bloc__sw { width: 10px; height: 10px; border-radius: 3px; transform: translateY(-1px); }
.bloc__n {
  grid-column: 2;
  font: 800 30px/1 var(--font-display);
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
}
.bloc__name { font-size: 14px; font-weight: 600; }
.bloc__sub { grid-column: 2; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.bloc[data-majority="true"] .bloc__n::after {
  content: "mayoría";
  font: 700 10px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ok);
  border-radius: 4px;
  padding: 3px 5px;
  margin-left: 8px;
  vertical-align: 6px;
}
.source-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }

/* ---------- Indicadores ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-block: 8px 0;
}
.kpi { padding: 18px 16px 16px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi__label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.kpi__value {
  font: 800 clamp(28px, 3.4vw, 40px)/1.05 var(--font-display);
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
  white-space: nowrap;
}
.kpi__value small { font-size: 0.5em; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.kpi__sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.kpi__sub .up { color: var(--ok); font-weight: 600; }
.kpi__sub .down { color: var(--live); font-weight: 600; }
.ring { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--line-2); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(48px, 7vw, 96px) 0; }
.section__head { display: grid; gap: 10px; max-width: 760px; margin-bottom: 28px; }
.section__kicker {
  font: 700 12px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section h2 {
  margin: 0;
  font: 800 clamp(30px, 4.4vw, 52px)/1 var(--font-display);
  font-stretch: 80%;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.section__dek { margin: 0; color: var(--ink-2); font-size: 17px; max-width: 40em; text-wrap: pretty; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.toolbar__label { font-size: 13px; color: var(--ink-3); margin-right: 4px; }
.fineprint { font-size: 13px; color: var(--ink-3); margin-top: 14px; max-width: 70em; }
.fineprint a { color: var(--ink-2); }

/* ---------- Papeleta ---------- */
.slip {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 34px;
  padding: 0 8px;
  background: #fbfbf7;
  color: #111;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(0, 0, 0, 0.06);
  font: 900 21px/1 var(--font-he);
  direction: rtl;
  position: relative;
  flex: none;
}
.slip::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--party, var(--ink-3));
  border-radius: 0 0 3px 3px;
}

/* ---------- Tabla de partidos ---------- */
.parties { display: grid; gap: 2px; }
.prow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 2.4fr) 76px 84px;
  align-items: center;
  gap: 14px;
  padding: 12px 12px;
  border-radius: 10px;
  background: transparent;
  transition: background 0.2s;
}
.prow:hover { background: var(--surface); }
.prow--head { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding-block: 4px; }
.prow--head:hover { background: transparent; }
.prow__name { font-weight: 600; font-size: 16px; line-height: 1.25; }
.prow__name small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; margin-top: 2px; }
.prow__bar { position: relative; height: 26px; }
.prow__track { position: absolute; inset: 9px 0; background: var(--bg-2); border-radius: 999px; }
.prow__fill { position: absolute; left: 0; top: 9px; bottom: 9px; width: 0; border-radius: 999px; background: var(--party); transition: width 0.9s var(--ease-out); }
.prow__ghost { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--ink-3); opacity: 0.6; border-radius: 2px; }
.prow__thr { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--live); }
.prow__pct { position: absolute; right: 0; top: -2px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prow__seats {
  font: 800 34px/1 var(--font-display);
  font-stretch: 72%;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.prow__delta { font-size: 13px; text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.prow__delta .up { color: var(--ok); font-weight: 600; }
.prow__delta .down { color: var(--live); font-weight: 600; }
.prow[data-out="true"] .prow__seats { color: var(--ink-3); }
.prow[data-out="true"] .prow__name { color: var(--ink-2); }
.tag {
  display: inline-block;
  font: 700 10px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  vertical-align: 2px;
  margin-left: 6px;
}
.tag--risk { background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
.tag--out { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live); }
.tag--bloc { background: var(--bg-2); color: var(--ink-2); }

/* ---------- Umbral ---------- */
.threshold {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 32px;
  align-items: center;
  padding: 26px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.threshold h3 { margin: 0 0 8px; font: 800 28px/1.05 var(--font-display); font-stretch: 80%; }
.threshold p { margin: 0; color: var(--ink-2); }
.thr-chart svg { width: 100%; height: auto; display: block; overflow: visible; }

/* ---------- Mapa ---------- */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 24px;
  align-items: start;
}
.map-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: pan-y;
}
.map-box svg { display: block; width: 100%; height: auto; }
.map-land { fill: var(--bg-2); stroke: var(--line-2); stroke-width: 0.8; }
.map-wb { fill: color-mix(in srgb, var(--bg-2) 70%, var(--surface)); stroke: var(--ink-3); stroke-width: 0.8; stroke-dasharray: 3 3; }
.map-neighbour { fill: color-mix(in srgb, var(--bg) 60%, var(--surface)); stroke: var(--line); stroke-width: 0.5; }
.map-sea { fill: var(--surface); }
.map-label { font: 600 10px/1 var(--font-body); fill: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none; }
.map-city { font: 600 11px/1 var(--font-body); fill: var(--ink-2); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; pointer-events: none; }
.loc { stroke: var(--surface); stroke-width: 0.6; cursor: pointer; transition: opacity 0.3s; }
.loc.is-dim { opacity: 0.18; }
.loc.is-hot { stroke: var(--ink); stroke-width: 1.6; }
.loc-pulse { fill: none; stroke-width: 1.5; pointer-events: none; }
.map-controls { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.map-legend .ramp { display: inline-block; width: 120px; height: 10px; border-radius: 999px; vertical-align: -1px; margin: 0 6px; }
.search {
  position: relative;
  margin-bottom: 14px;
}
.search input {
  width: 100%;
  font: inherit;
  padding: 11px 14px 11px 38px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
}
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.search ul {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  list-style: none; margin: 0; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: var(--shadow); z-index: 20; max-height: 280px; overflow: auto;
}
.search li button { width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.search li button:hover, .search li button[aria-selected="true"] { background: var(--accent-soft); }
.loc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.loc-card h3 { margin: 0; font: 800 26px/1.05 var(--font-display); font-stretch: 85%; }
.loc-card .he { color: var(--ink-3); font-size: 18px; }
.loc-card__meta { font-size: 13px; color: var(--ink-3); margin: 6px 0 14px; }
.minibars { display: grid; gap: 6px; }
.minibar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 46px; gap: 8px; align-items: center; font-size: 13px; }
.minibar .slip { min-width: 38px; height: 24px; font-size: 15px; }
.minibar__t { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.minibar__f { height: 100%; border-radius: 999px; background: var(--party); }
.minibar__v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.districts { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 14px; }
.districts th { text-align: left; font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.districts td { padding: 8px 4px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.districts .split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; min-width: 80px; background: var(--bg-2); }
.districts .split span { height: 100%; }

/* ---------- Termómetros ---------- */
.places { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.place {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: grid;
  gap: 10px;
  align-content: start;
  cursor: pointer;
  text-align: left;
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}
.place:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: var(--shadow); }
.place__top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.place__name { font: 800 21px/1.05 var(--font-display); font-stretch: 85%; }
.place__he { font-size: 15px; color: var(--ink-3); }
.place__sector { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.place__why { font-size: 14px; color: var(--ink-2); line-height: 1.45; margin: 0; }
.place__split { display: grid; gap: 4px; }
.place__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-3); }
.place__bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg-2); }
.place__bar span { height: 100%; transition: width 0.8s var(--ease-out); }
.place__state { font-size: 12px; font-weight: 600; }
.place__state[data-state="live"] { color: var(--live); }

/* ---------- Coaliciones ---------- */
.coal { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: start; }
.coal__slips { display: flex; flex-wrap: wrap; gap: 10px; }
.cslip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  cursor: pointer;
  min-width: 0;
  transition: transform 0.25s var(--ease-out), border-color 0.2s, background 0.2s, opacity 0.2s;
}
.cslip:hover { transform: translateY(-2px); }
.cslip[aria-pressed="true"] { border-color: var(--party); background: color-mix(in srgb, var(--party) 14%, var(--surface)); }
.cslip[data-zero="true"] { opacity: 0.5; }
.cslip__name { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cslip__n { font: 800 22px/1 var(--font-display); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.envelope {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
}
.envelope__total {
  font: 800 clamp(64px, 9vw, 104px)/0.85 var(--font-display);
  font-stretch: 70%;
  font-variant-numeric: tabular-nums;
}
.envelope__total small { font-size: 0.32em; color: var(--ink-3); font-weight: 700; margin-left: 6px; }
.envelope__verdict { font-size: 18px; font-weight: 600; margin-top: 10px; min-height: 2.6em; }
.envelope__verdict[data-ok="true"] { color: var(--ok); }
.envelope__meter { position: relative; height: 14px; background: var(--bg-2); border-radius: 999px; margin-top: 16px; overflow: hidden; }
.envelope__fill { position: absolute; inset: 0 auto 0 0; width: 0; display: flex; transition: width 0.6s var(--ease-out); }
.envelope__fill span { height: 100%; }
.envelope__mark { position: absolute; left: calc(61 / 120 * 100%); top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.envelope__warn { margin-top: 14px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.envelope__warn p { margin: 0; padding-left: 12px; border-left: 2px solid var(--warn); }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

/* ---------- Participación ---------- */
.turnout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; align-items: center; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.axis text { font: 12px var(--font-body); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.axis line, .axis path { stroke: var(--line-2); }
.grid line { stroke: var(--line); }
.turnout__facts { display: grid; gap: 16px; }
.fact__n { font: 800 44px/1 var(--font-display); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.fact__t { font-size: 14px; color: var(--ink-2); }

/* ---------- Directo ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; align-items: start; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.feed time { font: 700 15px/1.4 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.feed p { margin: 0; font-size: 16px; text-wrap: pretty; }
.feed li[data-important="true"] p { font-weight: 600; }
.feed li[data-important="true"] time { color: var(--live); }
.feed .ftag { display: inline-block; font: 700 11px/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.feed__empty { color: var(--ink-3); padding: 18px 0; border-top: 1px solid var(--line); }
.heads { display: grid; gap: 2px; }
.heads a { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.heads a:hover .h__t { text-decoration: underline; }
.h__s { font-size: 12px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.04em; }
.h__t { font-size: 15px; line-height: 1.4; }

/* ---------- Claves y horario ---------- */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; counter-reset: k; }
.key { padding: 20px 0; border-top: 1px solid var(--line); }
.key h3 { margin: 0 0 8px; font: 800 22px/1.15 var(--font-display); font-stretch: 85%; }
.key p { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.key .watch { font-size: 14px; color: var(--ink); }
.key .watch b { color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 120px 18px minmax(0, 1fr); gap: 14px; align-items: start; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 142px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .t { font: 700 18px/1.2 var(--font-display); font-variant-numeric: tabular-nums; text-align: right; }
.timeline .t small { display: block; font: 500 12px/1.3 var(--font-body); color: var(--ink-3); }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); margin-top: 4px; position: relative; z-index: 1; }
.timeline li[data-state="done"] .dot { background: var(--ink-3); border-color: var(--ink-3); }
.timeline li[data-state="now"] .dot { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 5px color-mix(in srgb, var(--live) 25%, transparent); }
.timeline li[data-state="now"] .e { font-weight: 600; }
.timeline .e { color: var(--ink-2); padding-top: 1px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.scen { display: grid; gap: 12px; }
.scen article { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.scen h3 { margin: 0 0 6px; font: 800 20px/1.15 var(--font-display); font-stretch: 85%; }
.scen .sum { font: 800 28px/1 var(--font-display); font-stretch: 72%; font-variant-numeric: tabular-nums; float: right; margin-left: 10px; }
.scen p { margin: 0; color: var(--ink-2); font-size: 14px; }
.scen .chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0; }
.scen .chips .slip { height: 24px; min-width: 32px; font-size: 14px; }

/* ---------- Sistema electoral ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step b { display: block; font: 800 40px/1 var(--font-display); font-stretch: 75%; color: var(--accent); margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }
.pairs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pair { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; }
.pair .slip { height: 24px; min-width: 32px; font-size: 14px; }

/* ---------- Historia ---------- */
.history { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.hist { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hist h3 { margin: 0; font: 800 26px/1 var(--font-display); font-stretch: 80%; }
.hist .t { font-size: 13px; color: var(--ink-3); margin: 4px 0 10px; }
.hist p { margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Pie ---------- */
.foot { margin-top: clamp(64px, 8vw, 110px); border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--ink-3); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 8px; color: var(--ink); font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); }

/* ---------- Tooltip ---------- */
.tooltip {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px;
  width: 240px;
  font-size: 13px;
}
.tooltip h4 { margin: 0 0 2px; font: 800 18px/1.1 var(--font-display); font-stretch: 85%; }
.tooltip .he { color: var(--ink-3); }
.tooltip .minibars { margin-top: 8px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  z-index: 90;
}

.reveal { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .map-layout, .coal, .turnout, .live-grid, .threshold, .two { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi + .kpi { border-left: 0; }
  .kpi { border-top: 1px solid var(--line); }
  .kpi:nth-child(-n+2) { border-top: 0; }
  .kpi:nth-child(even) { border-left: 1px solid var(--line); }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .envelope { position: static; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .status { margin-left: auto; }
}
@media (max-width: 640px) {
  .prow { grid-template-columns: 48px minmax(0, 1fr) 54px; gap: 10px; padding-inline: 4px; }
  .prow__bar { grid-column: 2 / 4; grid-row: 2; }
  .prow__delta { display: none; }
  .prow--head .prow__barh, .prow--head .prow__deltah { display: none; }
  .prow__seats { font-size: 28px; grid-column: 3; grid-row: 1; }
  .brand__name small { display: none; }
  .timeline li { grid-template-columns: 84px 18px minmax(0, 1fr); }
  .timeline li::before { left: 106px; }
  .status__txt-long { display: none; }
  .feed li { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.map-lake { fill: var(--surface); stroke: var(--line-2); stroke-width: 0.6; }
.map-golan { stroke-dasharray: 2 2; }

/* Escaños: entrada en abanico y pulso al cambiar de partido */
.hemi .seat { transform-box: fill-box; transform-origin: center; }
.hemi .seat.intro { animation: seat-in 0.6s var(--ease-out) both; }
.hemi .seat.pop { animation: seat-pop 0.7s var(--ease-out) both; }
@keyframes seat-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes seat-pop { 0% { transform: scale(0.3); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }

.provisional {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 12px; padding: 10px 12px;
  border-radius: 10px; font-size: 13px; line-height: 1.45;
  background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--ink);
}
.provisional b { color: var(--warn); }

/* Modo simulación */
.demo-bar { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--warn) 22%, var(--bg)) 0 14px, color-mix(in srgb, var(--warn) 14%, var(--bg)) 14px 28px); border-bottom: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.demo-bar__in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 10px; font-size: 14px; }
.demo-bar strong { font: 800 13px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--warn); padding: 5px 8px; border-radius: 4px; }
.demo-bar .seg { padding: 5px 12px; font-size: 13px; text-decoration: none; }

/* ---------- Carrera hacia los 61 (vista principal) ---------- */
.chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.chart-head .source-tabs { margin-bottom: 0; }
.viewtoggle { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.vt { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink-3); font: 600 13px/1 var(--font-body); padding: 7px 11px; border-radius: 999px; cursor: pointer; transition: background 0.2s, color 0.2s; }
.vt svg { width: 16px; height: 16px; fill: currentColor; }
.vt:hover { color: var(--ink); }
.vt[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18); }

.race-figure { margin: 6px 0 0; }
.race__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.race__cap > span:first-child { font: 800 20px/1.1 var(--font-display); font-stretch: 85%; }
.race__capsub { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.race { --tot: 112px; --colgap: 16px; }
.race__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--tot);
  grid-template-areas: "label total" "bar total";
  column-gap: var(--colgap);
  row-gap: 8px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
}
.race__label { grid-area: label; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.race__sw { width: 10px; height: 10px; border-radius: 3px; background: var(--bloc); align-self: center; }
.race__name { font-weight: 600; font-size: 15px; }
.race__sub { font-size: 12.5px; color: var(--ink-3); }
.race__barwrap { grid-area: bar; position: relative; min-width: 0; }
.race__track { display: flex; gap: 2px; height: 36px; border-radius: 7px; overflow: hidden; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.race__seg {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-width: 0; overflow: hidden; white-space: nowrap;
  font: 700 12.5px/1 var(--font-body); letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
  transition: width 0.9s var(--ease-out), background-color 0.4s, filter 0.2s;
  cursor: default;
}
.race__seg:hover, .race__seg:focus-visible { filter: brightness(1.12); outline: none; }
.race__seglabel { padding: 0 6px; overflow: hidden; text-overflow: clip; }
.race__mark { position: absolute; top: -6px; bottom: -6px; left: calc(var(--m) * 100%); border-left: 2px dashed var(--ink); opacity: 0.75; pointer-events: none; }
.race__total { grid-area: total; align-self: end; text-align: right; display: grid; gap: 4px; }
.race__n { font: 800 46px/0.86 var(--font-display); font-stretch: 72%; font-variant-numeric: tabular-nums; }
.race__gap { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.race__row[data-majority="true"] .race__n { color: var(--ok); }
.race__row[data-majority="true"] .race__gap { color: var(--ok); font-weight: 600; }
.race__row[data-majority="true"] .race__track { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px color-mix(in srgb, var(--ok) 30%, transparent); }
.race__axis { position: relative; height: 20px; margin-right: calc(var(--tot) + var(--colgap)); border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.race__tick { position: absolute; top: 5px; transform: translateX(-50%); white-space: nowrap; }
.race__tick:first-child { transform: none; }
.race__tick:last-child { transform: translateX(-100%); }
.race__tick.is-maj { color: var(--ink); font-weight: 700; }
@media (max-width: 640px) {
  .race { --tot: 76px; --colgap: 10px; }
  .race__n { font-size: 38px; }
  .race__sub { display: none; }
  .race__track { height: 32px; }
  .race__gap { white-space: normal; line-height: 1.25; }
}
.race__need {
  height: 100%;
  width: 0;
  flex: none;
  transition: width 0.9s var(--ease-out);
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--bloc) 34%, transparent) 0 3px, transparent 3px 8px);
  border-radius: 0 6px 6px 0;
}
/* ===== Arreglos móvil (revisión) ===== */
@media (max-width: 520px) {
  .topbar__in { gap: 8px; }
  .brand { gap: 7px; min-width: 0; }
  .brand__mark { width: 26px; height: 26px; }
  .brand__name { font-size: 16px; font-stretch: 100%; }
  .status { min-width: 0; flex: 0 1 auto; padding: 4px 9px 4px 8px; gap: 6px; font-size: 11px; letter-spacing: 0.03em; }
  #status-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .icon-btn { width: 40px; height: 40px; }
}
@media (max-width: 400px) { #theme { display: none; } }
.topbar { overflow-x: clip; }

@media (max-width: 640px) {
  /* Titular, hemiciclo y después el texto */
  .hero__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero__copy { display: contents; }
  #hero-eyebrow { order: 1; } #hero-title { order: 2; margin-bottom: 14px; } .hero__chart { order: 3; }
  #hero-lede { order: 4; font-size: 16px; } #countdown { order: 5; } #times { order: 6; }
  /* Pestañas en una sola fila deslizable */
  .source-tabs, .subtabs, #map-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding-inline: var(--gutter) var(--gutter-r); }
  .source-tabs::-webkit-scrollbar, .subtabs::-webkit-scrollbar, #map-toolbar::-webkit-scrollbar { display: none; }
  .source-tabs .seg, .subtabs .seg, #map-toolbar .seg, #map-toolbar .toolbar__label { flex: none; }
  /* Hemiciclo: espacio para "MAYORÍA · 61" y rótulo fuera del hueco */
  .hemi { margin-top: 22px; margin-bottom: 26px; }
  .hemi__big { font-size: 13vw; }
  .hemi__cap { position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; margin: 0; font-size: 13px; }
  .hemi__cap br { display: none; }
  .hemi__cap .hemi__lead::after { content: " · "; }
  /* % fuera de la barra */
  .prow__bar { margin-right: 60px; }
  .prow__pct { right: -60px; top: 4px; width: 54px; text-align: right; }
  .threshold { padding: 18px 14px; }
  /* Calculadora: el sobre queda pegado abajo mientras eliges */
  .envelope { position: sticky; top: auto; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 12px 16px; z-index: 5; box-shadow: var(--shadow); }
  .envelope__total { font-size: 52px; }
  .envelope__verdict { min-height: 0; font-size: 15px; margin-top: 6px; }
  .envelope__meter { margin-top: 10px; }
  /* Termómetros en carrusel */
  .places { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r)); padding: 4px var(--gutter-r) 8px var(--gutter); scroll-padding-inline: var(--gutter); }
  .place { scroll-snap-align: start; }
}
@media (pointer: coarse) {
  .seg { min-height: 44px; }
  #pause { min-height: 32px; }
  .foot ul { gap: 14px; }
}
.tooltip--sheet { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; }

/* ===== Barra de escrutinio del héroe ===== */
.progress { flex-basis: 100%; display: grid; gap: 8px; max-width: 30rem; }
.progress__top { display: flex; justify-content: space-between; align-items: baseline; }
.progress__label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.progress__pct { font: 800 30px/1 var(--font-display); font-stretch: 75%; }
.progress__track { height: 10px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.progress__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--ink))); transition: width 0.9s var(--ease-out); }
.progress__sub { font-size: 13px; color: var(--ink-3); }

/* ===== Ajustes de la revisión ===== */
.hero__grid { align-items: start; }
.chip { display: inline-block; line-height: 1.45; }
.provisional { display: block; }
.provisional b { margin-right: 4px; }
.ticker__tag { background: #c41f2d; }
.bloc[data-majority="true"] .bloc__n::after { background: #0f7a52; }
.tag--risk { color: color-mix(in srgb, var(--warn) 70%, var(--ink)); }
.tag--out { color: color-mix(in srgb, var(--live) 75%, var(--ink)); }
:root { --map-land: #e2e7ef; --map-sea: #f8fafc; --map-wb: #ecf0f6; }
:root[data-theme="dark"] { --map-land: #1c2740; --map-sea: #080d19; --map-wb: #141c2f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) { --map-land: #1c2740; --map-sea: #080d19; --map-wb: #141c2f; } }
.map-box { background: var(--map-sea); }
.map-sea, .map-lake { fill: var(--map-sea); }
.map-land { fill: var(--map-land); }
.map-wb { fill: var(--map-wb); }
.places__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); margin: -12px 0 16px; }
.places__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 980px) {
  .topbar__in { flex-wrap: wrap; }
  .topnav { display: flex; order: 10; flex-basis: 100%; margin: 0 calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; }
  .topnav a { padding: 6px 10px; font-size: 13px; }
}
.timeline .tl-day { display: block; padding: 6px 0 10px; font: 700 12px/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.timeline .tl-day::before { display: none; }
.timeline .tl-day:not(:first-child) { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.scen .sum[data-ok="true"] { color: var(--ok); }
/* Tabla de partidos: el porcentaje vive fuera de la barra */
.prow__track { inset: 9px 66px 9px 0; }
.prow__pct { right: 0; top: 4px; width: 60px; text-align: right; }
@media (max-width: 640px) {
  .prow__bar { margin-right: 0; }
  .prow__pct { right: 0; top: 4px; width: 60px; }
}
.places { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.toast { max-width: calc(100vw - 32px); font-size: 13.5px; line-height: 1.35; text-align: center; border-radius: 14px; padding: 9px 14px; }
@media (max-width: 640px) { .race__tick.is-maj { transform: translateX(-100%); } }
