/* ==========================================================================
   Cuba en boca de Trump y Rubio — producto de datos.
   Móvil primero (base ≈360px). Color = identidad de dato:
   Trump ámbar, Rubio verde azulado (paleta validada CVD en claro y oscuro),
   medidas en tinta, contexto en gris. El texto siempre en tokens de tinta.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --surface-3: #e7eaef;
  --line: #e3e6eb; --line-2: #cfd4dc;
  --ink: #0f1419; --ink-2: #434c58; --ink-3: #69727f;
  --trump: #c96a06; --rubio: #0f8f84; --med: #2b333d; --ctx: #8f99a6;
  --trump-soft: #fbf1e5; --rubio-soft: #e5f4f2;
  --sel: #4b4fd6; --sel-soft: #ecedfc; --focus: #4b4fd6;
  --shadow: 0 1px 2px rgb(16 24 40 / .05), 0 4px 16px rgb(16 24 40 / .06);
  --shadow-lg: 0 12px 40px rgb(16 24 40 / .18);
  --r: 12px; --r-s: 8px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top: 56px; --tabbar: 0px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e12; --surface: #13171d; --surface-2: #1a1f27; --surface-3: #232a34;
  --line: #232932; --line-2: #333b47;
  --ink: #eef1f5; --ink-2: #b6bec9; --ink-3: #8b95a3;
  --trump: #d07a16; --rubio: #169c8e; --med: #d3d8df; --ctx: #6c7686;
  --trump-soft: #2a1d0f; --rubio-soft: #0d2623;
  --sel: #8f95ff; --sel-soft: #1f2140; --focus: #8f95ff;
  --shadow: 0 1px 2px rgb(0 0 0 / .4); --shadow-lg: 0 12px 40px rgb(0 0 0 / .6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: var(--tabbar); }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
p, ul, ol, figure, blockquote { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -100px; z-index: 100; background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: var(--r-s); }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
.muted { color: var(--ink-3); } .small { font-size: 13px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.lede { color: var(--ink-2); max-width: 68ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: 16px; }
.block { margin-top: 40px; display: grid; gap: 16px; }
.block-h { font-size: 20px; font-weight: 700; }
.ed { font-size: 11px; font-weight: 500; color: var(--ink-3); text-transform: none; letter-spacing: 0; border: 1px solid var(--line-2); border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.ctag { font-size: 11px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.iconbtn { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--ink-2); font-size: 18px; }
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.iconbtn svg { width: 20px; height: 20px; }
.textbtn { border: 0; background: none; color: var(--sel); font-weight: 600; font-size: 14px; cursor: pointer; min-height: 44px; padding: 0 6px; }
.textbtn:hover { text-decoration: underline; }
.linkish { border: 0; background: none; padding: 0; color: var(--sel); font-weight: 600; cursor: pointer; min-height: 44px; }

/* ---------- marcas (identidad de dato) ---------- */
.mk, .sw { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
[data-lane="t"].mk, [data-lane="t"].sw { background: var(--trump); }
[data-lane="r"].mk, [data-lane="r"].sw { background: var(--rubio); }
[data-lane="med"].mk, [data-lane="med"].sw { background: var(--med); border-radius: 2px; }
[data-lane="ctx"].mk, [data-lane="ctx"].sw { background: transparent; border: 1.5px solid var(--ctx); border-radius: 1px; transform: rotate(45deg) scale(.85); }
.mk[data-k="act"] { border-radius: 2px; }
.mk[data-lane="x"] { background: transparent; border: 2px solid var(--ink-2); }
.mk[data-lane="x"][data-k="dec"] { border-radius: 50%; }

/* ---------- barra superior y navegación ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1320px; margin: 0 auto; height: var(--top); display: flex; align-items: center; gap: 16px; padding-inline: max(16px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; min-height: 44px; margin-right: auto; }
.brand-mark { display: inline-flex; }
.brand-mark i { width: 14px; height: 14px; border-radius: 50%; }
.brand-mark .bt { background: var(--trump); } .brand-mark .br { background: var(--rubio); margin-left: -4px; box-shadow: 0 0 0 2px var(--bg); }
.brand-s { font-weight: 500; color: var(--ink-3); }
.lfull { display: none; }
.mainnav { display: none; }
.theme-ic { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.theme[data-t="light"] .theme-ic { background: transparent; }
.theme[data-t="dark"] .theme-ic { background: currentColor; }
.tabbar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; min-height: 56px; text-decoration: none; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.tabbar svg { width: 22px; height: 22px; fill: currentColor; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar a[aria-current="page"] svg { color: var(--sel); }
body { --tabbar: 64px; }
.foot { margin-top: 56px; border-top: 1px solid var(--line); }
.foot-in { max-width: 1320px; margin: 0 auto; padding: 20px max(16px, env(safe-area-inset-left)) 28px; color: var(--ink-3); font-size: 13px; }

/* ---------- portada ---------- */
.intro { display: grid; gap: 20px; padding-top: 24px; }
.intro h1 { font-size: clamp(28px, 7.4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.thesis { font-size: 17px; color: var(--ink-2); margin-top: 12px; max-width: 60ch; }
.outcome { margin-top: 10px; font-size: 14px; color: var(--ink-3); max-width: 60ch; padding-left: 12px; border-left: 3px solid var(--line-2); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; }
.kpi[data-lane="t"]::before { background: var(--trump); } .kpi[data-lane="r"]::before { background: var(--rubio); }
.kpi-who { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--ink-2); }
.kpi-n { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 12px; color: var(--ink-3); }
.kpi-foot { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); }
.mini { display: grid; gap: 4px; margin-top: 8px; }
.mini-row { display: grid; grid-template-columns: 2.4rem 1fr 1.6rem; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mini-bar { height: 8px; border-radius: 0 4px 4px 0; width: max(2px, calc(var(--v) * 100%)); background: var(--ink-3); }
[data-lane="t"] .mini-bar { background: var(--trump); } [data-lane="r"] .mini-bar { background: var(--rubio); }
.mini-n { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- barra de filtros ---------- */
.explorer { margin-top: 28px; display: grid; gap: 12px; }
.toolbar { position: relative; display: grid; gap: 8px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 46px; padding: 0 12px 0 40px; font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; }
.search input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.fgroups { display: flex; flex-wrap: wrap; gap: 6px; }
.fbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; }
.fbtn:hover { border-color: var(--ink-3); }
.fbtn .chev { width: 16px; height: 16px; color: var(--ink-3); transition: transform .15s; }
.fbtn[aria-expanded="true"] { border-color: var(--ink); }
.fbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.fbtn.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fbtn.on .chev { color: inherit; }
.fn:empty { display: none; }
.fn { font-size: 12px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--bg); color: var(--ink); padding: 0 5px; }
.fpop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px; }
.fnote { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; cursor: pointer; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--sel-soft); border-color: var(--sel); color: var(--ink); font-weight: 600; }
.chip[aria-pressed="true"]::after { content: "✓"; color: var(--sel); font-weight: 700; }
.activebar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 44px; }
.count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.count b { color: var(--ink); }
.achips { display: flex; flex-wrap: wrap; gap: 6px; }
.achip { display: inline-flex; align-items: center; gap: 2px; padding-left: 10px; border-radius: 99px; background: var(--sel-soft); color: var(--ink); font-size: 13px; font-weight: 500; border: 1px solid color-mix(in srgb, var(--sel) 35%, transparent); }
.achip button { min-width: 36px; min-height: 36px; border: 0; background: none; cursor: pointer; color: var(--ink-2); font-size: 15px; border-radius: 99px; }
.achip button:hover { color: var(--ink); }

/* ---------- línea de tiempo (móvil: meses en filas) ---------- */
.tl-card { padding: 14px 10px 12px; }
.tl-head { display: grid; gap: 4px; padding: 0 6px 10px; }
.tl-head h3 { font-size: 16px; font-weight: 700; }
.tl-hint { font-size: 13px; color: var(--ink-3); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.tl-wrap { --cols: 2.9rem minmax(0, 1fr) minmax(0, .62fr) 2.3rem 4.2rem; }
.tl-labels { position: sticky; top: var(--top); z-index: 5; display: grid; grid-template-columns: var(--cols); gap: 0 6px; align-items: center; background: var(--surface); border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.ll { display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ll .sw { width: 8px; height: 8px; }
.ll-ph, .ll-h { display: none; }
.ll-t { justify-content: flex-end; order: 1; } .ll-m { order: 0; } .ll-r { order: 2; } .ll-med { order: 3; } .ll-ctx { order: 4; }
.pband { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; margin-top: 8px; padding: 0 10px; border: 0; border-radius: var(--r-s); background: var(--surface-2); cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pband b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12px; flex: none; }
.pband:hover { background: var(--surface-3); color: var(--ink); }
.pband[aria-pressed="true"] { background: var(--sel-soft); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sel); }
.mc { display: grid; grid-template-columns: var(--cols); gap: 0 6px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); }
.mc.in-range { background: color-mix(in srgb, var(--sel-soft) 70%, transparent); }
.mlab { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 44px; border: 0; background: none; padding: 0 0 0 4px; cursor: pointer; line-height: 1.05; }
.mlab .mm { font-size: 13px; font-weight: 600; color: var(--ink); }
.mlab .my { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mlab:hover .mm { color: var(--sel); }
.mlab[aria-pressed="true"] .mm { color: var(--sel); text-decoration: underline; text-underline-offset: 3px; }
.ln { display: flex; gap: 3px; min-width: 0; align-items: center; }
.ln-t { grid-column: 2; grid-row: 1; flex-direction: row-reverse; justify-content: flex-start; flex-wrap: wrap-reverse; padding: 6px 6px 6px 0; border-right: 2px solid var(--line-2); align-self: stretch; align-content: center; }
.ln-r { grid-column: 3; grid-row: 1; flex-wrap: wrap; padding: 6px 0; align-self: stretch; align-content: center; }
.ln-med { grid-column: 4; grid-row: 1; flex-wrap: wrap; gap: 2px; }
.ln-ctx { grid-column: 5; grid-row: 1; flex-wrap: wrap; gap: 2px; }
.ln-h { grid-column: 1 / -1; grid-row: 2; padding: 0 0 6px 4px; gap: 6px; }
.ln-h:empty { display: none; }
.hito { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px dashed var(--line-2); border-radius: 99px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.hito::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--ctx); transform: rotate(45deg); }
.hito:hover { border-color: var(--ink-3); color: var(--ink); }
.dot { position: relative; flex: none; width: 15px; height: 15px; padding: 0; border: 0; border-radius: 50%; background: var(--ink-3); cursor: pointer; transition: transform .12s, opacity .2s; }
.dot::after { content: ""; position: absolute; inset: -3px; }
.dot[data-lane="t"] { background: var(--trump); } .dot[data-lane="r"] { background: var(--rubio); }
.dot[data-k="act"] { border-radius: 3px; }
.dot[data-lane="med"] { background: var(--med); border-radius: 2px; width: 11px; height: 11px; }
.dot[data-lane="ctx"] { background: var(--surface); border: 1.5px solid var(--ctx); border-radius: 1px; width: 9px; height: 9px; transform: rotate(45deg); margin: 1px; }
.dot:hover { transform: scale(1.25); z-index: 2; }
.dot[data-lane="ctx"]:hover { transform: rotate(45deg) scale(1.3); }
.dot.dim { opacity: .14; }
.dot.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); z-index: 3; }
.dot:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ---------- lista + panel ---------- */
.split { display: grid; gap: 16px; align-items: start; }
.listwrap { min-width: 0; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 2px; }
.list-head h3 { font-size: 16px; font-weight: 700; }
.list { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: clip; }
.lm { position: sticky; top: var(--top); z-index: 2; background: var(--surface-2); padding: 6px 14px; border-bottom: 1px solid var(--line); }
.lm h4 { font-size: 12px; font-weight: 700; text-transform: capitalize; color: var(--ink-2); letter-spacing: .01em; }
.row { border-bottom: 1px solid var(--line); }
.rbtn { display: grid; grid-template-columns: 4.3rem 12px minmax(0, 1fr); gap: 10px; width: 100%; padding: 12px 14px; border: 0; background: none; text-align: left; cursor: pointer; align-items: start; }
.rbtn:hover { background: var(--surface-2); }
.rbtn[aria-current="true"] { background: var(--sel-soft); box-shadow: inset 3px 0 0 var(--sel); }
.rbtn .mk { margin-top: 5px; }
.r-date { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }
.r-main { display: grid; gap: 3px; min-width: 0; }
.r-who { font-size: 12px; color: var(--ink-3); }
.r-who b { color: var(--ink-2); font-weight: 600; }
.r-h { font-size: 14.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.row[data-k="dec"] .r-h, .row[data-k="act"] .r-h { font-weight: 600; }
.row[data-k="ctx"] .r-h { color: var(--ink-2); }
.r-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin-top: 2px; }
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.badge[data-g="p"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.badge[data-g="s"], .badge[data-g="v"] { border-color: var(--ink-3); color: var(--ink); }
.badge[data-g="t"] { border-style: dashed; }
.badge[data-g="w"], .badge[data-g="T"] { border-style: dotted; color: var(--ink-3); }
.badge[data-g="n"] { color: var(--ink-3); border-color: var(--line); background: var(--surface-2); }
.flag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; }
.flag::before { content: "≈"; font-weight: 700; }
.empty { padding: 24px 16px; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }

/* panel: hoja inferior en móvil */
.panel { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-lg); transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
.panel.open { transform: none; visibility: visible; }
.panel:focus { outline: none; }
.scrim { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / .4); }
.panel-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.panel-nav { display: flex; align-items: center; gap: 2px; }
.panel-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); }
.det { display: grid; gap: 16px; }
.det-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-3); }
.det-who b { color: var(--ink); font-weight: 600; }
.det-date { font-variant-numeric: tabular-nums; margin-left: auto; }
.det-h { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; outline: none; }
.det-q figcaption { font-size: 12px; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.det-q blockquote { font-size: 17px; line-height: 1.5; padding: 14px 16px; border-radius: 10px; background: var(--surface-2); border-left: 3px solid var(--ink-3); }
.det[data-lane="t"] .det-q blockquote { background: var(--trump-soft); border-color: var(--trump); }
.det[data-lane="r"] .det-q blockquote { background: var(--rubio-soft); border-color: var(--rubio); }
.det-noq { font-size: 14px; color: var(--ink-3); font-style: italic; }
.det-s { display: grid; gap: 6px; }
.det-s h3 { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.det-s p { color: var(--ink-2); }
.det-conf { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.det-conf p { font-size: 13.5px; }
.det-orig { font-size: 12.5px; color: var(--ink-3) !important; }
.det-orig span { color: var(--ink-2); }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; cursor: pointer; }
.tchip:hover { border-color: var(--sel); color: var(--sel); }
.src { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.src a { display: inline-flex; align-items: center; gap: 3px; min-height: 40px; font-size: 14px; font-weight: 500; color: var(--sel); text-decoration: none; overflow-wrap: anywhere; }
.src a::after { content: "↗"; font-size: 12px; }
.src a:hover { text-decoration: underline; }
.det-meta { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 4px; }
.ph-n { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ph-n li { display: inline-flex; align-items: center; gap: 6px; }
.reading { padding: 14px 16px; border-radius: 10px; background: var(--sel-soft); display: grid; gap: 6px; }
.reading h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sel); }
.reading p { font-size: 15.5px; color: var(--ink); }
.causal { font-size: 13px; color: var(--ink-3); }
.ph-grid { display: grid; gap: 16px; }
.said { padding-left: 12px; border-left: 3px solid var(--ink-3); }
.said[data-lane="t"] { border-color: var(--trump); } .said[data-lane="r"] { border-color: var(--rubio); }
.howto { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.pat-h { font-size: 15px; font-weight: 700; margin-top: 6px; }
.patterns { display: grid; border-top: 1px solid var(--line); }
.pat { border-bottom: 1px solid var(--line); }
.pat summary { display: grid; gap: 4px; padding: 10px 0; cursor: pointer; list-style: none; min-height: 44px; }
.pat summary::-webkit-details-marker { display: none; }
.pat-t { font-weight: 600; }
.pat-t::after { content: " +"; color: var(--ink-3); }
.pat[open] .pat-t::after { content: " –"; }
.pat p { font-size: 14px; color: var(--ink-2); padding-bottom: 12px; }
.strength { justify-self: start; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 4px; border: 1px solid var(--ink-2); color: var(--ink); }
.strength[data-s="c"] { border-style: dashed; color: var(--ink-2); border-color: var(--ink-3); }
.strength[data-s="i"] { border-style: dotted; color: var(--ink-3); border-color: var(--ink-3); }

/* tooltip */
.tip { position: fixed; z-index: 80; max-width: 300px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 13px; line-height: 1.35; pointer-events: none; box-shadow: var(--shadow-lg); }
.tip b { display: block; font-weight: 700; }
.tip span { opacity: .75; font-size: 12px; }

/* ---------- páginas interiores ---------- */
.page-head { padding-top: 28px; display: grid; gap: 8px; }
.page-head h1 { font-size: clamp(28px, 7vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.profs { display: grid; gap: 12px; margin-top: 20px; }
.prof { padding: 18px; display: grid; gap: 6px; border-top: 4px solid var(--ink-3); }
.prof[data-lane="t"] { border-top-color: var(--trump); } .prof[data-lane="r"] { border-top-color: var(--rubio); }
.prof h2 { font-size: 21px; font-weight: 700; }
.prof-role { color: var(--ink-2); }
.dims { display: grid; gap: 12px; }
.dim { display: grid; gap: 8px; }
.dim-l { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding-top: 8px; }
.dim-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; box-shadow: var(--shadow); border-left: 4px solid var(--ink-3); }
.dim-c[data-lane="t"] { border-left-color: var(--trump); } .dim-c[data-lane="r"] { border-left-color: var(--rubio); }
.dim-who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.dim-c ul, .dim-c ol { padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); }
.dim-c p { color: var(--ink-2); }
.dim-c blockquote { padding: 10px 14px; border-radius: 8px; background: var(--surface-2); font-weight: 600; display: grid; gap: 4px; }
.dim-c[data-lane="t"] blockquote { background: var(--trump-soft); } .dim-c[data-lane="r"] blockquote { background: var(--rubio-soft); }
.dim-c blockquote footer { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.steps-v { list-style: none; padding: 0 !important; gap: 0 !important; border-left: 2px solid var(--line-2); margin-left: 4px; }
.steps-v li { position: relative; padding: 4px 0 4px 16px; }
.steps-v li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink-3); }
.dim-c[data-lane="t"] .steps-v li::before { border-color: var(--trump); } .dim-c[data-lane="r"] .steps-v li::before { border-color: var(--rubio); }
.steps-v b { display: inline-block; min-width: 4.2rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.both { display: grid; gap: 12px; }
.both h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.both p + p { margin-top: 8px; }
.both p { color: var(--ink-2); }
.agree-differ { display: grid; gap: 12px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 8px; color: var(--ink-2); margin-bottom: 8px; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: "="; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 5px; background: var(--surface-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.ticks.diff li::before { content: "≠"; }
.accent { background: var(--sel-soft); border-color: transparent; }
.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.theme-b { display: grid; gap: 6px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.theme-b:hover { border-color: var(--ink-3); }
.theme-b[aria-pressed="true"] { border-color: var(--sel); box-shadow: inset 0 0 0 1px var(--sel); background: var(--sel-soft); }
.tb-l { font-size: 13.5px; font-weight: 600; }
.tb-bars { display: grid; gap: 3px; }
.tb-bar { height: 5px; border-radius: 0 3px 3px 0; width: max(2px, calc(var(--v) * 100%)); }
.tb-bar[data-lane="t"] { background: var(--trump); } .tb-bar[data-lane="r"] { background: var(--rubio); }
.tb-n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 12px; justify-self: start; }
.seg-b { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 9px; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.seg-b[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.duel-head { display: none; }
.duel { list-style: none; padding: 0; display: grid; gap: 8px; }
.dm { padding: 10px 2px 2px; font-size: 12px; font-weight: 700; text-transform: capitalize; color: var(--ink-3); border-top: 1px solid var(--line); }
.dr[data-col="t"] { padding-right: 10%; } .dr[data-col="r"] { padding-left: 10%; } .dr[data-col="med"] { padding-inline: 5%; }
.dcard { display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; box-shadow: var(--shadow); border-left: 4px solid var(--ink-3); }
.dcard[data-lane="t"] { border-left-color: var(--trump); } .dcard[data-lane="r"] { border-left-color: var(--rubio); }
.dcard[data-lane="med"] { border-left-color: var(--med); background: var(--surface-2); }
.dcard:hover { border-color: var(--ink-3); }
.dc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 12px; color: var(--ink-3); }
.dc-top .badge { margin-left: auto; }
.dc-h { font-weight: 600; font-size: 14.5px; line-height: 1.4; }
.dc-p { font-size: 13.5px; color: var(--ink-2); }
.duel[data-show="t"] .dr:not([data-col="t"]), .duel[data-show="r"] .dr:not([data-col="r"]), .duel[data-show="med"] .dr:not([data-col="med"]) { display: none; }
.duel[data-show]:not([data-show="all"]) .dr { padding-inline: 0; }

/* dicho y hecho */
.dhs { display: grid; gap: 14px; }
.dh { display: grid; overflow: hidden; }
.dh-said { padding: 18px; display: grid; gap: 10px; background: var(--surface-2); }
.dh[data-lane="t"] .dh-said { background: var(--trump-soft); } .dh[data-lane="r"] .dh-said { background: var(--rubio-soft); }
.dh-who { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dh-said blockquote p { font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.dh-arrow { display: none; }
.dh-done { padding: 18px; display: grid; gap: 8px; align-content: start; }
.dh-done p { color: var(--ink-2); }
.dh-lbl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3) !important; }
.verdict, .verd { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; color: var(--ink) !important; border: 1.5px solid var(--ink-2); }
.verdict[data-v="cx"], .verd[data-v="cx"] { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
.verdict[data-v="te"], .verd[data-v="te"] { border-style: dashed; }
.verdict[data-v="ok"], .verd[data-v="co"] { border-color: var(--line-2); background: var(--surface-2); }
.vsum { display: grid; gap: 14px; }
.vstrip { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.vs { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 1.5px solid var(--ink-2); }
.vs[data-v="cx"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.vs[data-v="te"] { border-style: dashed; }
.vs[data-v="co"] { border-color: var(--line-2); background: var(--surface-2); color: var(--ink-3); }
.vfilters { display: flex; flex-wrap: wrap; gap: 6px; }
.verd-ic { font-weight: 700; }
.ledger { list-style: none; padding: 0; display: grid; gap: 10px; }
.lr { display: grid; gap: 10px; padding: 16px; }
.lr-m { font-size: 13px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lr-c, .lr-v { display: grid; gap: 4px; align-content: start; }
.lr-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.lr p { color: var(--ink-2); font-size: 14.5px; }

/* método */
.conf { list-style: none; display: grid; gap: 0; }
.conf-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.conf-row:last-child { border-bottom: 0; }
.conf-row p { grid-column: 1 / -1; font-size: 14px; color: var(--ink-2); }
.conf-row .conf-n { grid-row: 1; grid-column: 2; justify-self: end; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.conf-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.conf-bar span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ink-2); border-radius: 0 3px 3px 0; }
.flags-explain { display: grid; gap: 12px; }
.flags-explain .card { display: grid; gap: 4px; }
.callout { padding: 14px 16px; border-radius: var(--r); background: var(--sel-soft); color: var(--ink); max-width: 80ch; }
.callout.soft { background: var(--surface-2); }
.disc { border-left: 4px solid var(--sel); display: grid; gap: 8px; }
.disc h3 { font-size: 18px; }
.disc p, .gaps li { color: var(--ink-2); }
.disc a { color: var(--sel); }
.gaps { display: grid; gap: 12px; }
.gaps h3 { font-size: 16px; margin-bottom: 8px; }
.gaps ul { padding-left: 18px; display: grid; gap: 8px; font-size: 14px; }
.corr { list-style: none; padding: 0; display: grid; gap: 10px; }
.corr li { display: grid; gap: 8px; }
.corr .lbl { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 2px; }
.corr-was { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.corr-was .lbl { text-decoration: none; display: block; }
.corr-is { color: var(--ink); }
.prose { display: grid; gap: 10px; max-width: 80ch; color: var(--ink-2); }

/* ========================================================================== ≥ 640 */
@media (min-width: 640px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profs, .agree-differ, .flags-explain { grid-template-columns: 1fr 1fr; }
  .gaps { grid-template-columns: 1fr 1fr; }
  .fg { position: relative; }
  .fpop { right: auto; width: max-content; max-width: min(30rem, 80vw); }
  .ph-grid { grid-template-columns: 1fr 1fr; }
  .conf-row { grid-template-columns: 7.5rem minmax(0, 1fr) 10rem 6.5rem; }
  .conf-row p { grid-column: 2; }
  .conf-row .conf-bar { grid-column: 3; grid-row: 1; }
  .conf-row .conf-n { grid-column: 4; }
}

/* ========================================================================== ≥ 760: navegación superior */
@media (min-width: 760px) {
  body { --tabbar: 0px; }
  .tabbar { display: none; }
  .mainnav { display: flex; gap: 2px; }
  .mainnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2); }
  .mainnav a:hover { background: var(--surface-2); color: var(--ink); }
  .mainnav a[aria-current="page"] { background: var(--surface-2); color: var(--ink); font-weight: 600; }
  .brand { margin-right: 0; }
  .mainnav { margin-left: auto; }
  .toolbar { grid-template-columns: minmax(16rem, 22rem) 1fr; align-items: center; }
  .dh { grid-template-columns: 1fr 44px 1fr; }
  .dh-arrow { display: grid; place-items: center; color: var(--ink-3); background: linear-gradient(90deg, var(--surface-2) 50%, var(--surface) 50%); }
  .dh[data-lane="t"] .dh-arrow { background: linear-gradient(90deg, var(--trump-soft) 50%, var(--surface) 50%); }
  .dh[data-lane="r"] .dh-arrow { background: linear-gradient(90deg, var(--rubio-soft) 50%, var(--surface) 50%); }
  .dh-arrow svg { width: 24px; height: 24px; }
}

/* ========================================================================== ≥ 960: línea de tiempo horizontal */
@media (min-width: 960px) {
  .intro { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-top: 40px; }
  .tl-card { padding: 16px 16px 12px; }
  .tl-head { grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; }
  .tl-wrap { --h-ph: 34px; --h-t: 112px; --h-m: 34px; --h-r: 70px; --h-med: 26px; --h-ctx: 54px; --h-h: 54px; display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); }
  .tl-labels { position: static; display: grid; grid-template-columns: 1fr; grid-template-rows: var(--h-ph) var(--h-t) var(--h-m) var(--h-r) var(--h-med) var(--h-ctx) var(--h-h); padding: 0; border: 0; background: none; font-size: 12px; }
  .ll { order: 0 !important; justify-content: flex-start !important; align-self: center; }
  .ll-ph, .ll-h { display: inline-flex; }
  .lfull { display: inline; } .lshort { display: none; }
  .det-h { font-size: 21px; }
  .ll-t { align-self: end; padding-bottom: 6px; } .ll-r { align-self: start; padding-top: 6px; }
  .tl { display: flex; min-width: 0; }
  .pg { flex: var(--n) 1 0; min-width: 0; display: grid; grid-template-rows: var(--h-ph) auto; }
  .pband { margin: 0 1px 0 0; min-height: 0; height: calc(var(--h-ph) - 6px); padding: 0 6px; border-radius: 6px; gap: 5px; font-size: 12px; overflow: hidden; }
  .pband span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pband b { width: 18px; height: 18px; font-size: 11px; }
  .pmonths { display: flex; min-width: 0; }
  .mc { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: var(--h-t) var(--h-m) var(--h-r) var(--h-med) var(--h-ctx) var(--h-h); border-bottom: 0; border-left: 1px solid var(--line); gap: 0; min-height: 0; align-items: stretch; }
  .pg:first-child .mc:first-child { border-left: 0; }
  .mc.in-range { background: var(--sel-soft); }
  .mc > * { grid-column: 1 !important; }
  .ln-t { grid-row: 1; flex-direction: column-reverse; flex-wrap: nowrap; justify-content: flex-start; align-items: center; padding: 4px 0 5px; border: 0; gap: 3px; }
  .mlab { grid-row: 2; align-items: center; min-height: 0; padding: 0; border-top: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); background: var(--surface-2); }
  .mlab:hover { background: var(--surface-3); }
  .mlab[aria-pressed="true"] { background: var(--sel); }
  .mlab[aria-pressed="true"] .mm, .mlab[aria-pressed="true"] .my { color: #fff; text-decoration: none; }
  .mlab .mm { font-size: 11.5px; } .mlab .my { font-size: 9.5px; visibility: hidden; }
  .mc[data-ym$="-01"] .mlab .my { visibility: visible; }
  .ln-r { grid-row: 3; flex-direction: column; flex-wrap: nowrap; align-items: center; padding: 5px 0 4px; gap: 3px; }
  .ln-med { grid-row: 4; justify-content: center; align-content: center; padding: 0 2px; border-top: 1px dashed var(--line); }
  .ln-ctx { grid-row: 5; justify-content: center; align-content: flex-start; padding: 6px 2px; gap: 3px; border-top: 1px dashed var(--line); }
  .ln-h { grid-row: 6; position: relative; padding: 0; border-top: 1px dashed var(--line); display: block; }
  .ln-h:empty { display: block; }
  .hito { position: absolute; z-index: 4; left: 2px; top: 5px; min-height: 0; height: 18px; padding: 0 7px 0 5px; font-size: 11px; gap: 4px; border-radius: 4px; }
  .hito.alt { top: 29px; }
  .hito::before { width: 6px; height: 6px; }
  .pg:last-child .mc:last-child .hito { left: auto; right: 2px; }
  .dot { width: 12px; height: 12px; }
  .dot[data-lane="med"] { width: 10px; height: 10px; }
  .dot[data-lane="ctx"] { width: 8px; height: 8px; }
  .split { grid-template-columns: minmax(0, 1fr) 400px; }
  .panel { position: sticky; top: calc(var(--top) + 12px); z-index: 1; max-height: calc(100vh - var(--top) - 24px); transform: none; visibility: visible; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); transition: none; margin-top: 40px; }
  .scrim { display: none !important; }
  #pclose { display: none; }
  .panel-body { padding: 18px 20px 22px; }
  .profs { margin-top: 28px; }
  .dim { grid-template-columns: 10rem minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
  .dim-who { display: none; }
  .dims { gap: 14px; }
  .themes { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .seg-m { display: none; }
  .duel-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; position: sticky; top: var(--top); z-index: 3; background: var(--bg); padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; font-weight: 700; color: var(--ink-2); }
  .duel-head span { display: inline-flex; align-items: center; gap: 6px; }
  .duel-head span:nth-child(2) { justify-content: center; } .duel-head span:nth-child(3) { justify-content: flex-end; }
  .duel { gap: 6px; }
  .dr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 !important; }
  .dr[data-col="t"] .dcard { grid-column: 1; } .dr[data-col="med"] .dcard { grid-column: 2; } .dr[data-col="r"] .dcard { grid-column: 3; }
  .lr { grid-template-columns: 8.5rem minmax(0, 1fr) minmax(0, 1fr) 15rem; gap: 20px; }
  .gaps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .split { grid-template-columns: minmax(0, 1fr) 440px; }
  .pband { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .dot, .mk, .sw { forced-color-adjust: none; }
}
