/* dicen29n · diseño C: papel y tinta (A) con los datos en monoespaciada (B). */

:root {
  --bg: #FCFCFA;
  --ink: #121212;
  --muted: #5F5F5A;
  --line: #E3E2DD;
  --sunk: #F3F2EE;
  --field: #FFFFFF;
  --btn-bg: #121212;
  --btn-ink: #FCFCFA;
  --podemos: #6A2C70;
  --serif: Newsreader, Georgia, serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1114;
    --ink: #E9EBEE;
    --muted: #A0A6AE;
    --line: #2A2F37;
    --sunk: #171A1F;
    --field: #171A1F;
    --btn-bg: #E9EBEE;
    --btn-ink: #0F1114;
    --podemos: #9B59A1;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: var(--ink); text-underline-offset: 0.18em; }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: 0.8rem; }
.muted { color: var(--muted); }
.eyebrow { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabecera y pie */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: inline-flex; align-items: flex-start; text-decoration: none; font: 600 28px/1 var(--serif); letter-spacing: -0.03em; }
.logo span { font: 600 10px/1 var(--mono); letter-spacing: 0.02em; border: 1.5px solid currentColor; padding: 2px 3px 1px; margin: 4px 0 0 3px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
/* Tira de arriba: un dato del INE por área, como una última hora, y la cuenta atrás */
.tira { background: var(--ink); color: var(--bg); }
.tira .wrap { display: flex; align-items: center; gap: 14px; padding-top: 7px; padding-bottom: 7px; }
.tira-label { margin: 0; flex: none; padding: 3px 6px; background: var(--bg); color: var(--ink); font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tira-ventana { flex: 1; min-width: 0; overflow: hidden; }
.tira-mover { display: flex; width: max-content; animation: tira 90s linear infinite; }
.tira-ventana:hover .tira-mover, .tira-ventana:focus-within .tira-mover { animation-play-state: paused; }
@keyframes tira { to { transform: translateX(-50%); } }
.tira-datos { list-style: none; margin: 0; padding: 0; display: flex; }
.tira-datos li { flex: none; padding: 0 18px; border-left: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); font-size: 13px; line-height: 1.6; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .tira-ventana { overflow-x: auto; scrollbar-width: none; }
  .tira-datos[aria-hidden] { display: none; }
}
.tira-datos a { color: inherit; text-decoration: none; }
.tira-datos a:hover strong { text-decoration: underline; }
.tira-area { margin-right: 8px; font: 600 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.65; }
.tira-cuando, .tira-hecho { opacity: 0.75; }
.tira-29n { margin: 0; flex: none; font: 12px var(--mono); opacity: 0.85; }
@media (max-width: 700px) { .tira-29n { display: none; } }
.site-footer { margin-top: 56px; border-top: 1px solid var(--ink); background: var(--sunk); }
.site-footer .wrap { padding-top: 22px; padding-bottom: 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Bloques de página */
main { display: block; }
.page-head { padding: 26px 0 22px; border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.page-head h1 { margin: 0; font: 500 clamp(34px, 6vw, 64px)/1.02 var(--serif); letter-spacing: -0.025em; }
.page-head p { margin: 0; max-width: 62ch; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); max-width: 18ch; }
.section { padding: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { margin: 0; }

/* Formularios */
label { font-size: 14px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type="search"], input[type="text"], input[type="date"], select {
  height: 48px; border: 1.5px solid var(--ink); border-radius: 0; background: var(--field); color: var(--ink);
  font: inherit; font-size: 16px; padding: 0 12px; min-width: 0;
}
.search-row { display: flex; }
.search-row input { flex: 1; border-right: 0; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.btn-primary:hover { color: var(--btn-ink); opacity: 0.9; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.chip[aria-current="page"] { background: var(--btn-bg); color: var(--btn-ink); }

/* Partido: punto de color, siempre con el nombre */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--dot, var(--muted)); }
.party { display: inline-flex; align-items: center; gap: 8px; }

.quote { margin: 0; font: 19px/1.55 var(--serif); white-space: pre-line; overflow-wrap: anywhere; max-width: 68ch; }
.quote.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.meta a { color: var(--ink); font-weight: 500; }
.tag { display: inline; font: 12px var(--mono); color: var(--muted); }

/* Ficha */
.statement { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 20px 0; }
@media (min-width: 900px) { .statement { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.statement .quote { font-size: clamp(22px, 3vw, 30px); line-height: 1.36; letter-spacing: -0.01em; }
.facts { margin: 0; padding: 14px; background: var(--sunk); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 7px 10px; font-family: var(--mono); font-size: 12.5px; line-height: 1.45; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.actions .btn-primary { grid-column: 1 / -1; min-height: 52px; font-size: 16px; }
.box { border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.box h2 { margin: 0; }

/* Comparador */
.compare { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.compare > section { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.compare h2 { margin: 0; font-size: 18px; font-weight: 600; }
.compare .quote.clamp { -webkit-line-clamp: 7; }
.empty { margin: 0; color: var(--muted); font-size: 15px; }

/* Datos */
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-family: var(--mono); }
.stats dt { font-size: 11px; color: var(--muted); }
.stats dd { margin: 2px 0 0; font-size: 19px; font-weight: 600; }
.panel { background: var(--sunk); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bars li { display: grid; grid-template-columns: 110px minmax(0, 1fr) 48px; align-items: center; gap: 10px; font-size: 14px; }
.bar { height: 8px; background: var(--line); }
.bar span { display: block; height: 100%; background: var(--ink); }
.bars .n { text-align: right; font-family: var(--mono); font-size: 12px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }

.pager { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; }
.prose { max-width: 68ch; }
.prose h2 { font: 600 20px/1.3 var(--sans); margin: 28px 0 8px; }
.prose p, .prose li { line-height: 1.6; }
.note { background: var(--sunk); padding: 12px 14px; font-size: 14px; }

.dot[data-podemos] { background: var(--podemos); }

/* Portada: qué es esto, para qué, y la pregunta (diseño C: tinta, filetes, esquinas rectas) */
.kicker { margin: 0; font: 600 13px/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ask-hero { max-width: 900px; padding: clamp(28px, 6vw, 60px) 0 40px; display: flex; flex-direction: column; gap: 20px; }
.ask-title { margin: 0; font: 500 clamp(34px, 5.6vw, 62px)/1.05 var(--serif); letter-spacing: -0.025em; max-width: 14em; }
.ask-sub { margin: -4px 0 6px; font: 400 clamp(20px, 2.4vw, 24px)/1.35 var(--serif); color: var(--muted); }

/* Ventana de chat de la portada: pequeña, de tinta. La caja arriba, lista para escribir, y debajo sugerencias. */
.chatbox { max-width: 680px; border: 2px solid var(--ink); background: var(--field); display: flex; flex-direction: column; }
.chatbox-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--ink); }
.chatbox-head h2 { margin: 0; font: 600 14px/1.2 var(--sans); }
.chatbox-vivo { width: 8px; height: 8px; border-radius: 50%; background: #2E9E4F; animation: vivo 2s ease-in-out infinite; }
@keyframes vivo { 50% { opacity: 0.35; } }
.chatbox-tag { padding: 3px 5px; background: var(--ink); color: var(--bg); font: 700 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.chatbox-sugerencias { padding: 14px 14px 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.chatbox-sugerencias a { padding: 8px 12px; border: 1px solid var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.chatbox-sugerencias a:hover { background: var(--ink); color: var(--bg); }
.chatbox-fuentes { margin: 0; padding: 10px 14px 12px; font: 12px var(--mono); color: var(--muted); }

/* Burbujas (también en la respuesta): tú a la derecha, en tinta; dicen29n a la izquierda, en papel. */
.burbuja-yo { position: relative; align-self: flex-end; max-width: min(560px, 82%); margin: 0; padding: 10px 14px; background: var(--ink); color: var(--bg);
  font: 500 16px/1.4 var(--sans); }
.burbuja-yo::after { content: ""; position: absolute; right: 0; bottom: -7px; border-left: 9px solid transparent; border-top: 7px solid var(--ink); }
.burbuja-yo a { color: inherit; }

/* La caja */
.chatbox-form { display: flex; border-bottom: 1px solid var(--line); }
.chatbox-form input[type="search"] { flex: 1; min-width: 0; height: 60px; padding: 0 16px; border: 0; border-radius: 0; background: var(--field);
  font: 400 18px var(--sans); color: var(--ink); }
.chatbox-form input[type="search"]:focus { outline: 3px solid var(--ink); outline-offset: -5px; }
.chatbox-form .btn { min-height: 60px; padding: 0 24px; border: 0; border-left: 2px solid var(--ink); font-size: 16px; }

@media (max-width: 560px) {
  .chatbox-head { padding: 8px 12px; }
  .chatbox-sugerencias a:nth-of-type(n+3) { display: none; }
  .chatbox-form input[type="search"] { height: 56px; padding: 0 12px; font-size: 17px; }
  .chatbox-form .btn { min-height: 56px; padding: 0 16px; }
  .ask-title { font-size: 30px; }
  .ask-sub { font-size: 18px; margin-bottom: 0; }
}

.composer { display: flex; flex-direction: column; gap: 8px; }
.composer label { font: 500 clamp(22px, 2.6vw, 28px)/1.2 var(--serif); letter-spacing: -0.01em; }
.composer-row { display: flex; }
.composer-row input[type="search"] { flex: 1; min-width: 0; height: 76px; padding: 0 20px; border: 2px solid var(--ink); border-right: 0;
  border-radius: 0; background: var(--field); font: 400 clamp(18px, 2.2vw, 22px) var(--sans); color: var(--ink); }
.composer-row .btn { min-height: 76px; padding: 0 30px; border: 2px solid var(--ink); font-size: 18px; }
.composer-ayuda { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.prompts .chip { font-size: 15px; }
.ask-cifras { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font: 12px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 560px) {
  .composer-row { flex-direction: column; gap: 8px; }
  .composer-row input[type="search"] { border-right: 2px solid var(--ink); height: 54px; }
  .composer-row .btn { min-height: 52px; }
}

/* Portada: mapa de temas y palabras a la izquierda; lo último de cada partido en una columna */
.home-grid { display: grid; gap: 40px; padding: 8px 0 48px; }
@media (min-width: 1000px) { .home-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; } }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.home-sec { display: flex; flex-direction: column; gap: 14px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px solid var(--ink); }
.sec-head h2 { margin: 0; font: 600 13px/1.3 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sec-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nota { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.mapa-wrap { max-width: 660px; }
.mapa { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; }
.mapa col.mapa-nombre { width: 96px; }
.mapa thead th { vertical-align: bottom; padding: 0 0 6px; }
.mapa thead a { display: flex; justify-content: center; text-decoration: none; }
.mapa thead span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 500 12px/1 var(--sans); }
.mapa thead a:hover span { text-decoration: underline; }
.mapa tbody th { padding-right: 8px; text-align: left; font: 600 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa tbody th a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.mapa td { padding: 0; background: color-mix(in srgb, var(--ink) var(--v), var(--sunk)); }
.mapa td > span { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font: 500 13px var(--mono); font-variant-numeric: tabular-nums; }
.mapa td.alto { color: var(--bg); }
@media (max-width: 560px) {
  .mapa col.mapa-nombre { width: 84px; }
  .mapa tbody th { font-size: 12px; }
  .mapa td > span { font-size: 11px; }
}
.home-side { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 1000px) { .home-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; } }
.home-side .post { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 12px 0; }
.home-side .post-avatar { width: 32px; height: 32px; font-size: 12px; }
.home-side .post-head { font-size: 14px; }
.home-side .post-text { font-size: 16px; line-height: 1.4; -webkit-line-clamp: 4; }
.home-side .post-foot { font-size: 12px; gap: 4px 12px; }
.home-side .post-foot .tag { display: inline; font: 12px var(--mono); color: var(--muted); }

.como { margin: 0 0 40px; padding: 14px 0 0; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.como ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; font-size: 15px; line-height: 1.5; }
.como li { display: flex; flex-direction: column; gap: 6px; }

/* Conversación: tu pregunta a la derecha, la respuesta a la izquierda con el isotipo */
.chat { max-width: 820px; margin: 0 auto; padding: 28px 0 8px; display: flex; flex-direction: column; gap: 22px; }
.pregunta { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pregunta-q { font: 500 clamp(19px, 2.2vw, 23px)/1.35 var(--sans); }
.burbuja-previa { opacity: 0.55; font-size: 15px; }
.previa { margin: 0 0 6px; font: 13px var(--mono); color: var(--muted); }
.msg-bot { display: block; }
.bot-body, .respuesta-ok, .informe { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.entendido { margin: 0; font: 12px/1.5 var(--mono); color: var(--muted); }
.r-head { display: flex; flex-direction: column; gap: 10px; }
.r-titular { margin: 0; font: 500 clamp(26px, 3.2vw, 36px)/1.12 var(--serif); letter-spacing: -0.02em; }
.r-resumen { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.r-indice { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; line-height: 1.4; }
.r-indice a { font-weight: 600; text-decoration-color: var(--line); text-decoration-thickness: 1px; }
.r-indice a:hover { text-decoration-color: currentColor; }
.r-dichos { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.r-dichos > .r-resumen { margin-top: -6px; }
.r-dato { color: var(--ink); }
.r-destacados { display: flex; flex-direction: column; gap: 18px; }
.r-dest { margin: 0; padding-top: 14px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.r-dest blockquote { margin: 0; font: 400 clamp(20px, 2.4vw, 24px)/1.35 var(--serif); letter-spacing: -0.01em; }
.r-dest figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--muted); }
.r-destacados { gap: 22px; }
.r-dest figcaption strong { color: var(--ink); }
.r-frag { font: 17px/1.55 var(--serif); }

/* Datos oficiales del INE: titulares de datos (los escribe el código), gráficos y fichas. Sin veredicto. */
.ine { display: flex; flex-direction: column; gap: 18px; }
.ine-sub { margin: 4px 0 -6px; font-size: 13px; color: var(--muted); }
.datos-titulares { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
.datos-titulares p { margin: 0; font: 400 18px/1.45 var(--serif); }
.datos-titulares p.primero { font: 500 24px/1.32 var(--serif); letter-spacing: -0.005em; }
@media (max-width: 600px) { .datos-titulares p.primero { font-size: 21px; } }
.datos-comparados { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.datos-fichas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px 36px; }
.dato { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--ink); }
.dato-nombre { margin: 0; font: 600 15px/1.3 var(--sans); }
.dato-detalle { margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); }
.dato-valor { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.dato-valor strong { font: 600 22px/1.2 var(--mono); }
.dato-valor span { font-size: 13px; color: var(--muted); }
.dato-cambio { margin: 0; font-size: 14px; line-height: 1.45; }
.dato-fuente { margin: 4px 0 0; font-size: 13px; }
.dato-fuente a { font-weight: 600; }

/* Gráficos de líneas: un solo eje, rejilla fina, fechas y valores escritos. Colores validados (3 como mucho). */
.graf { margin: 6px 0 0; --s0: var(--ink); --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; }
.graf-leyenda { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; line-height: 1.35; }
.graf-leyenda li { display: flex; align-items: center; gap: 8px; }
.graf-key { flex: none; width: 18px; height: 3px; border-radius: 2px; background: var(--s0); }
.graf-area { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 112px 22px; column-gap: 8px; }
.graf-varias .graf-area { grid-template-rows: auto 210px 22px; }
.graf-unidad { grid-column: 1 / -1; grid-row: 1; margin-bottom: 10px; font-size: 11px; line-height: 1.2; color: var(--muted); }
.graf-y { grid-column: 1; grid-row: 2; position: relative; min-width: 48px; }
.graf-y span { position: absolute; right: 0; transform: translateY(-50%); font: 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.graf-plot { grid-column: 2; grid-row: 2; position: relative; }
.graf-rejilla { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); }
.graf-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.graf-plot polyline { fill: none; stroke: var(--s0); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.graf-pt { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; }
.graf-pt::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--s0); box-shadow: 0 0 0 2px var(--bg); opacity: 0; }
.graf-pt.ult::before, .graf-pt:hover::before { opacity: 1; }
.graf-pt:hover::after { content: attr(data-t); position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 3;
  padding: 3px 6px; background: var(--ink); color: var(--bg); font: 12px/1.3 var(--mono); white-space: nowrap; pointer-events: none; }
.graf-varias .graf-area { grid-template-columns: auto minmax(0, 1fr) auto; }
.graf-fines { grid-column: 3; grid-row: 2; position: relative; min-width: 64px; }
.graf-fines span { position: absolute; left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 5px;
  font: 600 12px/1 var(--mono); white-space: nowrap; }
.graf-fines .graf-key { width: 8px; }
.graf-x { grid-column: 2; grid-row: 3; position: relative; }
.graf-varias .graf-unidad { grid-column: 1 / -1; }
.graf-x span { position: absolute; top: 5px; transform: translateX(-50%); font: 11px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.graf-x span.ini { transform: none; }
.graf-x span.fin { transform: translateX(-100%); }
.s1 { --c: var(--s1); } .s2 { --c: var(--s2); } .s3 { --c: var(--s3); }
.graf-key.s1, .graf-key.s2, .graf-key.s3, .graf-pt.s1::before, .graf-pt.s2::before, .graf-pt.s3::before { background: var(--c); }
.graf-plot polyline.s1, .graf-plot polyline.s2, .graf-plot polyline.s3 { stroke: var(--c); }
@media (prefers-color-scheme: dark) { .graf { --s1: #3987e5; --s2: #d95926; --s3: #199e70; } }
.datos-tabla summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.datos-tabla table { border-collapse: collapse; margin: 12px 0 4px; font-size: 13px; }
.datos-tabla caption { text-align: left; font-weight: 600; padding-bottom: 4px; }
.datos-tabla th, .datos-tabla td { padding: 3px 18px 3px 0; text-align: left; border-bottom: 1px solid var(--line); }
.datos-tabla td + td { font-family: var(--mono); }
.post-ine { margin: 2px 0 0; padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  background: var(--sunk); font-size: 14px; line-height: 1.4; }
.post-ine a { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }
.ine-tag { font: 700 11px/1 var(--mono); letter-spacing: 0.06em; padding: 3px 5px; border: 1px solid currentColor; }
.page-head + .ine { margin-top: 8px; }

.r-graficos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.r-graficos .chart { border-top: 1px solid var(--ink); padding: 12px 0; }
.r-graficos + .small { margin-top: -10px; }
.chart-wide { grid-column: 1 / -1; }
.otra-fuente { padding: 12px 14px; background: var(--sunk); border-left: 3px solid var(--ink); display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.otra-fuente p { margin: 0; }
.otra-fuente a { font-size: 14px; font-weight: 600; }
.r-partidos { display: flex; flex-direction: column; gap: 14px; }
/* Cuánto habla de esto cada partido: número de declaraciones (barra) y qué parte es de todo lo que dice */
.cuanto { display: flex; flex-direction: column; gap: 12px; }
.bars-cuanto li { grid-template-columns: 96px minmax(0, 1fr) 52px 150px; }
.bars-cuanto .cuota { font-size: 13px; color: var(--muted); }
@media (max-width: 600px) {
  .bars-cuanto li { grid-template-columns: 80px minmax(0, 1fr) 48px; row-gap: 0; }
  .bars-cuanto .cuota { grid-column: 2 / -1; font-size: 12px; }
}
/* La ley: título y fechas del BOE, y los artículos que responden, tal cual */
.ley { display: flex; flex-direction: column; gap: 12px; }
.ley-titulo { margin: 0; font: 500 21px/1.3 var(--serif); }
.ley-titulo a { text-decoration-color: var(--line); }
.ley-meta { margin: -6px 0 0; font-size: 14px; color: var(--muted); }
.ley-texto { margin: 0; padding: 12px 0 2px 16px; border-left: 3px solid var(--ink); display: flex; flex-direction: column; gap: 8px; }
.ley-texto p { margin: 0; font: 16px/1.55 var(--serif); max-width: 70ch; }
.ley-texto .ley-art { font: 600 15px/1.35 var(--sans); }
.ley-texto .ley-fuente { font: 600 13px var(--sans); }
.r-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.r-sec h3 { margin: 0; font: 600 15px/1.3 var(--sans); }
.r-sec h2 { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 18px/1.3 var(--sans); }
.r-sec h2 .mono { font-weight: 400; }
.r-sec ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.r-sec li { font-size: 17px; line-height: 1.6; max-width: 66ch; }
.r-sec li::marker { color: var(--muted); }
.ref { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; margin-left: 2px;
  border: 1px solid var(--line); text-decoration: none; font: 600 11px/1 var(--mono); vertical-align: 3px; }
.ref:hover { background: var(--ink); color: var(--bg); }
.r-mas { border-top: 1px solid var(--ink); }
.r-mas + .r-mas { border-top-color: var(--line); }
.r-mas > summary { cursor: pointer; list-style: none; padding: 12px 0; font-weight: 600; font-size: 15px; }
.r-mas > summary::-webkit-details-marker { display: none; }
.r-mas > summary::before { content: "+ "; font-family: var(--mono); }
.r-mas[open] > summary::before { content: "− "; }
.r-mas-cuerpo { padding: 0 0 14px; display: flex; flex-direction: column; gap: 12px; }
.r-mas .r-graficos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.r-citas h2 { margin: 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink); display: flex; gap: 10px; align-items: baseline; font: 600 18px/1.3 var(--sans); }
.filas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fila { border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.fila:target { background: var(--sunk); }
.fila summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 10px 6px; }
.fila summary::-webkit-details-marker { display: none; }
.fila summary:hover { background: var(--sunk); }
.fila .post-n { margin: 2px 0 0; }
.fila-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fila-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 14px; }
.fila-txt { font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fila[open] .fila-txt, .fila details[open] .fila-txt { display: none; }
.fila details[open] summary { padding-bottom: 4px; }
.fila details > .feed { padding: 0 0 12px 36px; }
.small { font-size: 13px; margin: 0; line-height: 1.5; }
.chart { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.weeks { height: 120px; display: flex; gap: 2px; align-items: flex-end; border-bottom: 1px solid var(--ink); }
.week { flex: 1 1 0; min-width: 1px; height: 100%; display: flex; align-items: flex-end; }
.week .col { width: 100%; min-height: 1px; background: var(--ink); }
.weeks-x { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--muted); }
.seguir { position: sticky; bottom: 0; z-index: 2; max-width: 820px; margin: 28px auto 0; padding: 12px 0 14px; background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(-1px -100vmax 0); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.seguir-caja { border: 2px solid var(--ink); }
.seguir-caja input[type="search"] { height: 54px; }
.seguir-caja .btn { min-height: 54px; }
.seguir-mas { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.seguir p { margin: 0; }
@media (max-width: 560px) {
  .seguir { position: static; }
  }

/* Mientras responde: el isotipo late y van pasando los pasos; desaparece cuando llega la respuesta */
.pensando { display: flex; align-items: center; gap: 14px; padding: 4px 0 8px; }
.pensando:has(~ .respuesta-ok) { display: none; }
.iso-latido { font: 600 34px/1 var(--serif); animation: latido 1.1s ease-in-out infinite; }
@keyframes latido { 0%, 100% { letter-spacing: 0; opacity: 0.5; } 50% { letter-spacing: 0.2em; opacity: 1; } }
.pasos { display: grid; font-size: 16px; color: var(--muted); }
.pasos span { grid-area: 1 / 1; opacity: 0; animation: paso var(--d) linear var(--t) both; }
.pasos span:nth-child(1) { --t: 0s; --d: 1.8s; }
.pasos span:nth-child(2) { --t: 1.8s; --d: 3.6s; }
.pasos span:nth-child(3) { --t: 5.4s; --d: 4s; }
.pasos span:nth-child(4) { animation: aparece 0.4s ease-out 9.4s forwards; }
@keyframes paso { 0% { opacity: 0; } 8%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes aparece { to { opacity: 1; } }

/* Declaraciones: en X, como un post de X; del Congreso y el Senado, como una página del Diario de Sesiones */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.post { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 18px 0 16px; border-bottom: 1px solid var(--line);
  scroll-margin-top: 16px; }
.post:target { background: var(--sunk); }
.post-avatar { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center;
  font: 600 15px/1 var(--sans); letter-spacing: 0.02em; }
.post-avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--dot, var(--muted)); border: 2px solid var(--field); }
.post-avatar[data-podemos]::after { background: var(--podemos); }
.post-parl .post-avatar { border-radius: 0; }
.post-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.post-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 15px; line-height: 1.35; }
.post-name, .post-name a { font-weight: 700; text-decoration: none; }
.post-muted, .post-head time a { color: var(--muted); text-decoration: none; }
.post-head time a:hover { text-decoration: underline; }
.post-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; margin-right: 4px; background: var(--ink);
  color: var(--bg); font: 600 12px/1 var(--mono); }
.post-src { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13px; }
.post-text { margin: 2px 0 0; font: 19px/1.45 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }
.post-parl .post-text { font: 18px/1.6 var(--serif); }
.post.clamp .post-text { display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.post-foot a { color: var(--ink); font-weight: 500; }
@media (max-width: 560px) {
  .post { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 14px; }
  .post-avatar { width: 36px; height: 36px; font-size: 13px; }
  .post-text { font-size: 16px; }
}

/* Marca en movimiento: el sello «29N» se estampa en cada página, las páginas se cambian sin perder el logo
   y al entrar en el inicio se abren las comillas. Todo CSS; nada si el sistema pide menos movimiento. */
@view-transition { navigation: auto; }
.site-header .logo { view-transition-name: logo; }
.site-header .logo span { animation: sello 620ms cubic-bezier(0.2, 1.5, 0.4, 1) 80ms both; transform-origin: 50% 60%; }
@keyframes sello { from { opacity: 0; transform: scale(1.9) rotate(-14deg); } 55% { opacity: 1; } to { transform: none; } }
::view-transition-old(root) { animation: 160ms ease-in both vt-sale; }
::view-transition-new(root) { animation: 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both vt-entra; }
@keyframes vt-sale { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-entra { from { opacity: 0; transform: translateY(12px); } }
.intro { position: fixed; inset: 0; z-index: 50; background: var(--ink); color: var(--bg); display: grid; place-items: center;
  pointer-events: none; opacity: 0; visibility: hidden; animation: intro-fuera 1.8s ease-in both; }
.intro-iso, .intro-logo { grid-area: 1 / 1; }
.intro-iso { display: flex; font: 600 clamp(120px, 22vw, 220px)/1 var(--serif); }
.intro-iso span:first-child { animation: abre-izq 850ms cubic-bezier(0.7, 0, 0.2, 1) 250ms both; }
.intro-iso span:last-child { animation: abre-der 850ms cubic-bezier(0.7, 0, 0.2, 1) 250ms both; }
.intro-logo { display: inline-flex; align-items: flex-start; font: 600 clamp(56px, 11vw, 112px)/1 var(--serif); letter-spacing: -0.03em;
  animation: logo-entra 550ms ease-out 550ms both; }
.intro-logo span { font: 600 0.34em/1 var(--mono); letter-spacing: 0.02em; border: 0.07em solid currentColor; padding: 0.12em 0.14em 0.08em;
  margin: 0.2em 0 0 0.1em; animation: sello 620ms cubic-bezier(0.2, 1.5, 0.4, 1) 900ms both; }
@keyframes abre-izq { to { transform: translateX(-34vw); opacity: 0; } }
@keyframes abre-der { to { transform: translateX(34vw); opacity: 0; } }
@keyframes logo-entra { from { opacity: 0; transform: scale(0.94); } }
@keyframes intro-fuera { 0%, 75% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  
  *, *::before, *::after, ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* Gráficos */
.section h2:not(.eyebrow) { font: 600 22px/1.25 var(--sans); }
.radars { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.radars figure { margin: 0; border: 1px solid var(--line); padding: 14px 14px 6px; display: flex; flex-direction: column; gap: 4px; }
.radars figcaption { font-weight: 600; flex-wrap: wrap; }
.radar { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.radar-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar-area { fill: var(--c); fill-opacity: 0.2; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; }
.radar-label { font: 11.5px var(--sans); fill: var(--muted); }
.trends { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.trends li { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr) 56px; grid-template-areas: "tema barras n" ". pico pico"; gap: 2px 14px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); }
.trends li > a { grid-area: tema; font-weight: 500; }
.trends .spark { grid-area: barras; }
.trends .n { grid-area: n; text-align: right; font-family: var(--mono); font-size: 13px; }
.trends .peak { grid-area: pico; font-size: 12px; }
.spark { width: 100%; height: 36px; display: block; }
.spark rect { fill: var(--ink); }
.nube { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; line-height: 1.25; }
.nube a { text-decoration: none; }
.nube a:hover { text-decoration: underline; }
.nube .n1 { font-size: 14px; color: var(--muted); } .nube .n2 { font-size: 16px; color: var(--muted); }
.nube .n3 { font-size: 19px; } .nube .n4 { font-size: 23px; font-weight: 500; }
.nube .n5 { font: 500 28px var(--serif); } .nube .n6 { font: 600 34px var(--serif); }
.card { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; list-style: none; }
.r-mensaje { margin: 0; font-size: 19px; line-height: 1.55; }
