/* ¿A quién votarías? — identidad: urna con papeleta y degradado de todo el espectro (rojo → violeta → azul). */
:root {
  --bg: #f6f6fb; --surface: #ffffff; --surface2: #f1f2f8; --ink: #0f1222; --ink-soft: #2a2f45; --muted: #5d6276; --line: #e3e5ee;
  --on-ink: #ffffff;
  --accent: #5b5bd6; --accent-ink: #ffffff; --mark: #ffcf3a; --mark-ink: #0f1222;
  --grad: linear-gradient(100deg, #ff4d5e 0%, #9b5cff 50%, #3d7bff 100%);
  --left: #d23b3b; --right: #2a6fd6; --prog: #7a3fc4; --cons: #8a5a1f;
  --q1: rgba(210,59,59,.07); --q2: rgba(42,111,214,.07); --q3: rgba(122,63,196,.07); --q4: rgba(138,90,31,.08);
  --ok: #18794e; --warn: #9a5b00; --err: #c23030;
  --no: #e5484d; --yes: #18a36a;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15,18,34,.04), 0 6px 20px rgba(15,18,34,.06);
  --shadow-lg: 0 2px 4px rgba(15,18,34,.05), 0 18px 48px rgba(15,18,34,.12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090b16; --surface: #121527; --surface2: #0e1120; --ink: #eef0f8; --ink-soft: #c9cde0; --muted: #9aa0b8; --line: #23273e;
    --on-ink: #0b0d18;
    --accent: #9a9cff; --accent-ink: #0b0d18; --mark: #ffd65c;
    --left: #ff6b6b; --right: #5b9bff; --prog: #b48cff; --cons: #d4a15f;
    --q1: rgba(255,107,107,.08); --q2: rgba(91,155,255,.08); --q3: rgba(180,140,255,.08); --q4: rgba(212,161,95,.09);
    --ok: #4cc685; --warn: #f0b04c; --err: #ff7b7b;
    --no: #ff6369; --yes: #3dd68c;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset; --shadow-lg: 0 18px 48px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-body); position: relative; overflow-x: hidden; }
/* resplandor de color de fondo, de izquierda a derecha como el espectro político */
body::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 640px; pointer-events: none;
  background: radial-gradient(420px 300px at 0% 0%, rgba(255,77,94,.16), transparent 70%), radial-gradient(460px 320px at 100% 4%, rgba(61,123,255,.16), transparent 70%), radial-gradient(380px 260px at 50% 0%, rgba(155,92,255,.10), transparent 70%); }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 7.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.row.nowrap { flex-wrap: nowrap; gap: 6px; }
.row.stretch { align-items: stretch; }
.err { color: var(--err); font-size: .9rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Estructura */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; flex: none; display: block; }
.logo .q { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topnav { display: flex; align-items: center; gap: 14px; }
.topnav a { color: var(--muted); font-size: .9rem; text-decoration: none; font-weight: 600; }
.topnav a.pill, .pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; transition: transform .15s ease; }
.topnav a.pill:hover { transform: translateY(-1px); }
main { max-width: 760px; margin: 0 auto; padding: 22px 16px 40px; }
.view { display: grid; gap: 18px; }
.footer { max-width: 1080px; margin: 24px auto 0; padding: 32px 16px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .85rem; display: grid; gap: 22px; grid-template-columns: 1.4fr 1fr; border-top: 1px solid var(--line); }
.foot-brand { display: grid; gap: 10px; align-content: start; max-width: 40ch; }
.footer .logo { font-size: 1rem; } .footer .logo-mark { width: 26px; height: 26px; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.foot-cols div { display: grid; gap: 8px; align-content: start; }
.foot-cols b { color: var(--ink); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer a { color: var(--muted); text-decoration: none; } .footer a:hover { color: var(--ink); }
.foot-note { grid-column: 1 / -1; font-size: .78rem; padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .footer { grid-template-columns: 1fr; } }
body.has-sticky .footer { padding-bottom: 120px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 16px; min-width: 0; box-shadow: var(--shadow); }
.card.narrow { max-width: 560px; width: 100%; margin: 0 auto; }
.card > h2:first-child, .card > .stack:first-child h2 { font-size: 1.35rem; }

/* Botones y formularios */
button, input, select, textarea { font: inherit; color: inherit; }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 11px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; text-decoration: none; color: var(--ink); line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--ink) 22%, transparent); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 28%, transparent); }
.btn.big { padding: 16px 24px; font-size: 1.05rem; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding-inline: 10px; box-shadow: none; }
.btn.ghost:hover { color: var(--ink); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .15s ease; } .btn:hover .arrow { transform: translateX(3px); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: .92rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.field input, .field select, textarea, select.btn { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); font-weight: 400; font-size: 1rem; }
.field input:focus, .field select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
select.btn { width: auto; font-weight: 500; border-radius: 999px; padding: 9px 14px; }
textarea { font-family: var(--font-mono); font-size: .82rem; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

/* Elegir modo (rápido / completo) */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.modes legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
.mode { position: relative; display: grid; gap: 2px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface2); cursor: pointer; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease; }
.mode input { position: absolute; opacity: 0; pointer-events: none; }
.mode .mode-ico { display: block; color: var(--accent); margin-bottom: 4px; } .mode .mode-ico .ico { width: 22px; height: 22px; }
.mode b { font-family: var(--font-display); font-size: 1.1rem; }
.mode span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.mode:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.mode:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.mode .tick { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.mode:has(input:checked) .tick { background: var(--ink); border-color: var(--ink); }
.mode:has(input:checked) .tick::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--on-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }

/* Iconos */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.ico.sm { width: 14px; height: 14px; }
.btn .ico { width: 18px; height: 18px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; }
.kicker .ico { width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: color-mix(in srgb, var(--accent) 12%, var(--surface2)); color: var(--accent); stroke-width: 2.2; }

/* Portada */
.hero { display: grid; gap: 22px; padding: 18px 0 8px; align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-soft); box-shadow: var(--shadow); }
.hero-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px color-mix(in srgb, #9b5cff 20%, transparent); }
.hero h1 { font-size: clamp(3.1rem, 15.5vw, 5.8rem); line-height: .9; letter-spacing: -.045em; }
.hero .lede { font-size: 1.12rem; max-width: 52ch; color: var(--muted); }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-ctas .btn { flex: 1 1 200px; }
.trust { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--muted); font-weight: 500; list-style: none; margin: 0; padding: 0; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust .ico { color: var(--yes); width: 16px; height: 16px; stroke-width: 2.6; }
.hero-visual { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.hv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hv-head .eyebrow { display: inline-flex; gap: 6px; align-items: center; }
.hv-head b { font-family: var(--font-display); font-size: 1.15rem; }
.hv-map { position: relative; }
.you-dot { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--mark); border: 3px solid var(--ink); display: grid; place-items: center; font: 800 1rem var(--font-display); color: #0f1222; box-shadow: 0 0 0 0 rgba(255,207,58,.6); animation: ping 2.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,207,58,.55); } 80%, 100% { box-shadow: 0 0 0 18px rgba(255,207,58,0); } }
.hero-visual figcaption { font-size: .8rem; color: var(--muted); text-align: center; }
.promo-map svg { width: 100%; height: auto; display: block; }
.block { display: grid; gap: 16px; padding-top: 14px; }
.block-head { display: grid; gap: 6px; }
.block-head h2, .faq h2, .group-promo h2, .final-cta h2 { font-size: clamp(1.7rem, 6vw, 2.3rem); letter-spacing: -.03em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 800 1.25rem var(--font-display); color: #fff; background: var(--grad); }
.steps h3 { font-size: 1.1rem; margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: .92rem; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature { gap: 8px; align-content: start; padding: 18px; }
.feature-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 11%, var(--surface2)); border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); color: var(--accent); }
.feature-ico .ico { width: 22px; height: 22px; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .9rem; }
.group-promo { position: relative; overflow: hidden; border-radius: 24px; padding: 28px 24px; color: #f3f4fb; box-shadow: var(--shadow-lg);
  background: radial-gradient(380px 240px at 0% 0%, rgba(255,77,94,.40), transparent 70%), radial-gradient(420px 280px at 100% 100%, rgba(61,123,255,.45), transparent 70%), radial-gradient(300px 200px at 80% 0%, rgba(155,92,255,.30), transparent 70%), #0f1226; }
.group-promo .eyebrow { color: rgba(243,244,251,.7); display: inline-flex; gap: 6px; align-items: center; }
.group-promo p { color: rgba(243,244,251,.82); }
.group-promo .btn.primary { background: #fff; color: #0f1226; border-color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.ticks { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(255,255,255,.12); color: #7ee2b0; stroke-width: 3; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillar { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--ink) 18%, var(--line)); }
.pillar > .ico { width: 26px; height: 26px; color: var(--ink); margin-bottom: 4px; }
.pillar h3 { font-size: 1.05rem; }
.pillar p { color: var(--muted); font-size: .9rem; }
.final-cta { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 34px 20px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.final-cta p { color: var(--muted); margin-bottom: 6px; }
.faq { display: grid; gap: 4px; padding-top: 14px; }
.faq h2 { margin-bottom: 8px; }
details { border-top: 1px solid var(--line); padding-top: 10px; }
.faq details { padding: 14px 0 4px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.1rem; color: var(--muted); transition: transform .2s ease; flex: none; }
details[open] > summary::after { transform: rotate(45deg); }
details p { margin-top: 8px; color: var(--muted); }
.home-group { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
/* En ordenador la portada usa más ancho y el héroe va a dos columnas */
@media (min-width: 900px) {
  main:has(> #v-home:not([hidden])) { max-width: 1080px; }
  .hero { grid-template-columns: 1.1fr .9fr; gap: 40px; padding-top: 40px; }
  .view.home { gap: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .steps li { grid-template-columns: 1fr; gap: 12px; padding: 20px; }
  .group-promo { padding: 40px; }
}
@media (max-width: 760px) {
  .home-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .home-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; }
  .feature .feature-ico { grid-row: span 2; }
  .pillar { grid-template-columns: 26px 1fr; column-gap: 12px; row-gap: 2px; }
  .pillar > .ico { grid-row: span 2; margin: 0; }
}

/* Cuestionario */
.ballot { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: grid; gap: 22px; box-shadow: var(--shadow-lg); }
.progress { display: grid; gap: 8px; }
.progress-bar { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; border: 1px solid var(--line); }
.progress-bar i { display: block; height: 100%; background: var(--grad); width: 0; transition: width .3s ease; border-radius: 3px; }
.qhead { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.axis-tag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); background: var(--surface2); }
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 5vw, 1.95rem); line-height: 1.18; min-height: 4.7em; text-wrap: balance; letter-spacing: -.015em; }
.q-extra { font-size: .88rem; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 10%, var(--surface2)); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
/* escala del 1 al 10: de rojo (nada de acuerdo) a verde (totalmente de acuerdo) */
.boxes { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.box { --c: var(--muted); appearance: none; aspect-ratio: 1; max-width: 100%; border: 1.5px solid color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--c) 9%, var(--surface)); cursor: pointer; padding: 0; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 500; font-size: .9rem; color: color-mix(in srgb, var(--c) 80%, var(--ink)); transition: transform .12s ease, background .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
.box:hover { background: color-mix(in srgb, var(--c) 20%, var(--surface)); }
.box:active { transform: scale(.92); }
.box.on { background: var(--c); border-color: var(--c); color: #fff; transform: scale(1.1); box-shadow: 0 6px 16px color-mix(in srgb, var(--c) 45%, transparent); font-weight: 700; }
.box svg { display: none; }
.scale-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); gap: 12px; font-weight: 500; }
.scale-ends span:first-child { color: color-mix(in srgb, var(--no) 75%, var(--muted)); } .scale-ends span:last-child { color: color-mix(in srgb, var(--yes) 75%, var(--muted)); text-align: right; }
.qnav { display: flex; justify-content: space-between; gap: 8px; }

/* Resultados */
.result-hero { position: relative; overflow: hidden; gap: 14px; color: #f3f4fb; border: 0; padding: 26px 22px;
  background: radial-gradient(360px 220px at 0% 0%, rgba(255,77,94,.38), transparent 70%), radial-gradient(380px 260px at 100% 100%, rgba(61,123,255,.42), transparent 70%), radial-gradient(300px 200px at 70% 0%, rgba(155,92,255,.30), transparent 70%), #0f1226;
  box-shadow: var(--shadow-lg); }
.result-hero .eyebrow, .result-hero .muted { color: rgba(243,244,251,.68); }
.result-hero a { color: #c7c9ff; }
.result-hero .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.result-hero .btn:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); }
.result-hero .btn.primary { background: #fff; color: #0f1226; border-color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.result-hero .party-chip { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }
.result-hero .mode-badge { justify-self: start; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; border: 1px solid rgba(255,255,255,.22); color: rgba(243,244,251,.75); }
.hero-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.extend { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px dashed rgba(255,255,255,.28); font-size: .92rem; }
.extend .btn { justify-self: start; }
.ideology { font-size: clamp(2.3rem, 9vw, 3.6rem); letter-spacing: -.035em; line-height: .98; }
.reveal .ideology { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.reveal .vote-line { animation: rise .7s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.vote-line { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 1.05rem; }
.party-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; border: 1.5px solid var(--ink); font-weight: 700; }
.party-chip i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.axes { display: grid; gap: 18px; }
.axis { display: grid; gap: 6px; }
.axis-ends { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; gap: 8px; }
.axis-track { position: relative; height: 12px; border-radius: 6px; }
.axis-track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); opacity: .6; }
.axis-dot { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: var(--mark); border: 3px solid var(--ink); transform: translate(-50%, -50%); z-index: 1; box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.axis-dot.sm { width: 16px; height: 16px; border-width: 2px; }
.axis-dot.other { background: var(--accent); }
.axis-val { font-size: .8rem; color: var(--muted); text-align: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 6px; }
.dot.me { background: var(--mark); border: 1.5px solid var(--ink); }
.dot.other { background: var(--accent); }
.analysis { display: grid; gap: 12px; max-width: 65ch; }
.parties { display: grid; gap: 8px; }
.pbar { display: grid; grid-template-columns: 7.5rem 1fr 3rem; gap: 10px; align-items: center; font-size: .9rem; }
.pbar .name { font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.pbar .track { height: 10px; background: var(--surface2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.pbar .track i { display: block; height: 100%; border-radius: 5px; }
.pbar .pct { text-align: right; }
.notice { border-radius: 14px; padding: 12px 14px; font-size: .92rem; border: 1px solid var(--line); background: var(--surface2); display: grid; gap: 8px; }
.notice.ok { border-color: var(--ok); }
.notice.warn { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 7%, var(--surface2)); }
.fig-box { flex: 1 1 220px; min-width: 0; display: grid; gap: 4px; }
.fig-box b { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.cta-card { position: relative; overflow: hidden; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
.support { background: var(--surface2); }
.code-box { font-family: var(--font-mono); font-size: .85rem; word-break: break-all; background: var(--surface2); border: 1px dashed var(--line); padding: 10px 12px; border-radius: 10px; user-select: all; }

/* Grupo */
.group-head { grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.group-head h2 { font-size: 1.25rem; }
.h-group { font-size: clamp(2rem, 8vw, 3rem); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface2); border-radius: 99px; padding: 5px 12px; font-size: .85rem; cursor: pointer; }
.chart-wrap { width: 100%; max-width: 560px; margin: 0 auto; }
.chart-wrap.wide { max-width: 100%; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-wrap text { font-family: var(--font-body); }
.toggles { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.toggles label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface2); font-weight: 500; }
.toggles label:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.toggles input { accent-color: var(--ink); margin: 0; }
.list { display: grid; }
.member { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 4px; border-top: 1px solid var(--line); min-width: 0; }
.member:first-child { border-top: 0; }
.member .who { min-width: 0; display: grid; gap: 2px; cursor: pointer; background: none; border: 0; text-align: left; padding: 0; color: inherit; }
.member .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .who:hover b { text-decoration: underline; }
.member .meta { font-size: .82rem; color: var(--muted); }
.award { display: grid; grid-template-columns: 2.4rem 1fr; gap: 4px 10px; align-items: start; }
.award .ico { font-size: 1.7rem; line-height: 1; grid-row: span 3; }
.award b { font-family: var(--font-display); font-size: 1.15rem; }
.empty { text-align: center; padding: 18px; color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; }

/* Anuncios */
.ad-slot { display: grid; gap: 4px; justify-items: center; min-height: 60px; }
.ad-label { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ad-slot.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 8px calc(4px + env(safe-area-inset-bottom, 0px)); min-height: 0; }

/* Ventanas y avisos */
.modal { border: 0; border-radius: 24px; padding: 24px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(8,10,24,.55); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .22s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: max-content; padding: 3px; background: var(--surface2); }
.seg button { border: 0; background: transparent; padding: 7px 16px; cursor: pointer; font-weight: 600; color: var(--muted); border-radius: 999px; }
.seg button.on { background: var(--ink); color: var(--on-ink); }
.share-preview { display: grid; place-items: center; background: var(--surface2); border-radius: 16px; padding: 10px; max-height: 52vh; }
.share-preview img { max-height: 48vh; width: auto; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.consent { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 10px; box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto; font-size: .9rem; }
#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); opacity: 0; transition: .25s; background: var(--ink); color: var(--on-ink); padding: 11px 18px; border-radius: 999px; font-weight: 600; z-index: 50; pointer-events: none; max-width: calc(100vw - 32px); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .card, .ballot { padding: 18px 16px; }
  .result-hero { padding: 22px 18px; }
  .boxes { gap: 4px; }
  .box { font-size: .78rem; border-radius: 9px; }
  .pbar { grid-template-columns: 5.6rem 1fr 2.6rem; }
  .qnav .btn { padding: 11px 14px; }
  .logo { font-size: 1.02rem; } .logo-mark { width: 28px; height: 28px; }
  .topnav a.pill { padding: 7px 12px; font-size: .82rem; }
}
@media (max-width: 360px) { .topnav a.pill { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Páginas legales y de metodología */
.doc { max-width: 720px; margin: 0 auto; padding: 28px 16px 40px; display: grid; gap: 14px; }
.doc h1 { font-size: clamp(2.2rem, 8vw, 3rem); letter-spacing: -.035em; }
.doc h2 { margin-top: 14px; }
.doc p, .doc li { color: var(--ink-soft); max-width: 68ch; }
.doc table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.doc th, .doc td { border-top: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.table-wrap { overflow-x: auto; }
