/* Urnita — sistema visual
   Papel frío, tinta grafito, palomita violeta y los colores de las boletas reales por tipo de elección. */
:root {
  --paper: #F5F6FA;
  --card: #FFFFFF;
  --ink: #1D1B26;
  --ink-2: #5A5768;
  --line: #E2E3EC;
  --violet: #5B2EFF;
  --violet-deep: #3F17D6;
  --violet-soft: #ECE6FF;
  /* boletas */
  --b-federal: #F7D5E4;      /* diputaciones federales: rosa */
  --b-gober: #D4E7F8;        /* gubernatura: azul cielo */
  --b-local: #D3F0DF;        /* congreso local: menta */
  --b-ayunta: #FBEAB2;       /* ayuntamiento: amarillo */
  --b-otro: #E9E6F5;
  --radius-l: 22px;
  --radius-m: 14px;
  --radius-s: 8px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --tabbar: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.5 var(--body);
  padding-bottom: calc(var(--tabbar) + var(--safe-b));
}
img { max-width: 100%; display: block; }
a { color: var(--violet-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Barra superior y pestañas ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 18px 10px; background: rgba(245,246,250,.86); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 22px/1 var(--display); letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--card); border-top: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none;
  color: var(--ink-2); font-size: 12px; font-weight: 700; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tabs a.on { color: var(--violet); }
.tabs a.on svg { stroke-width: 2.4; }
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .topbar { padding: 14px 40px; }
  .tabs { position: fixed; top: 12px; right: 40px; left: auto; bottom: auto; z-index: 21; display: flex; gap: 4px; height: auto; border: 0; background: none; padding: 0; }
  .tabs a { flex-direction: row; gap: 8px; font-size: 15px; padding: 10px 14px; border-radius: 999px; }
  .tabs a.on { background: var(--violet-soft); }
  .tabs svg { width: 20px; height: 20px; }
}

.veda-banner { background: var(--ink); color: #fff; text-align: center; padding: 10px 16px; font-weight: 700; font-size: 15px; }
main:focus, main:focus-visible { outline: none; }
main { max-width: 1120px; margin: 0 auto; padding: 8px 18px 40px; outline: none; }
@media (min-width: 900px) { main { padding: 16px 40px 64px; } }

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(42px, 11vw, 92px); font-weight: 800; }
h2 { font-size: clamp(28px, 6vw, 44px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; letter-spacing: -.015em; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 34em; margin: 14px 0 0; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.section { margin-top: 56px; }
.section > h2 { margin-bottom: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; margin: 0 -18px; padding: 0 18px; overflow: hidden; }
.hero-art { position: relative; border-radius: var(--radius-l); overflow: hidden; background: #fff; aspect-ratio: 784/1000; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .fallback { position: absolute; inset: 0; background:
  radial-gradient(circle at 70% 30%, var(--b-federal) 0 18%, transparent 19%),
  radial-gradient(circle at 30% 55%, var(--b-gober) 0 16%, transparent 17%),
  radial-gradient(circle at 60% 75%, var(--b-ayunta) 0 14%, transparent 15%),
  radial-gradient(circle at 25% 20%, var(--b-local) 0 12%, transparent 13%), #fff; }
.hero-copy { position: relative; margin-top: -120px; background: var(--paper); border-radius: var(--radius-l) var(--radius-l) 0 0; padding: 26px 4px 0; }
.countdown { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.countdown b { font: 800 44px/1 var(--display); color: var(--violet); letter-spacing: -.03em; }
.countdown span { color: var(--ink-2); font-weight: 700; }
.hero h1 .stroke { display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (min-width: 900px) {
  .hero { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: auto; height: clamp(600px, 52vw, 700px); }
  .hero-art img.v { display: none; }
  .hero-copy { position: absolute; left: 0; top: 0; bottom: 0; margin: 0; background: none; padding: 48px 0 48px 56px; width: 46%;
    display: flex; flex-direction: column; justify-content: center; }
  .hero h1 { font-size: clamp(48px, 4.4vw, 70px); }
}
@media (max-width: 899px) { .hero-art img.h { display: none; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet-deep); font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ---------- Cifras y pasos ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.fact { background: var(--card); border-radius: var(--radius-m); padding: 18px; }
.fact b { display: block; font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.fact span { color: var(--ink-2); font-size: 15px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--violet-soft); color: var(--violet); font: 800 24px/1 var(--display); }
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { grid-template-columns: 1fr; } }

.trust { display: grid; gap: 20px; align-items: center; background: var(--card); border-radius: var(--radius-l); padding: 22px; }
.trust img { border-radius: var(--radius-m); }
@media (min-width: 900px) { .trust { grid-template-columns: 360px 1fr; padding: 32px; } }

/* ---------- Mapa de mosaicos ---------- */
.tilemap { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; margin-top: 18px; }
.tile { min-width: 0; overflow: hidden; aspect-ratio: 1; border-radius: 9px; border: 0; padding: 3px; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #ECEDF3; color: var(--ink); font: 700 clamp(8px, 2.3vw, 14px)/1 var(--body); }
@media (min-width: 900px) { .tilemap { gap: 8px; max-width: 900px; } .tile { border-radius: 14px; } }
.tile.gov { background: var(--b-gober); }
.tile.lead { color: #fff; }
.tile small { font-size: .78em; opacity: .85; margin-top: 2px; font-weight: 400; }
.tile:hover { outline: 2px solid var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

/* ---------- Boletas ---------- */
.state-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
select, input[type=text], input[type=search] { font: inherit; min-height: 52px; padding: 0 16px; border-radius: var(--radius-m);
  border: 2px solid var(--line); background: var(--card); color: var(--ink); }
select:focus, input:focus { border-color: var(--violet); outline: none; }
.ballots { display: grid; gap: 16px; margin-top: 22px; }
@media (min-width: 900px) { .ballots { grid-template-columns: repeat(2, 1fr); } }
.ballot { position: relative; border-radius: var(--radius-l); padding: 22px 22px 18px; background: var(--b-otro); text-decoration: none; color: var(--ink);
  display: block; overflow: hidden; }
.ballot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 9px); } /* papel de seguridad */
.t-federal_diputados { background: var(--b-federal); }
.t-gubernatura { background: var(--b-gober); }
.t-congreso_local { background: var(--b-local); }
.t-ayuntamiento { background: var(--b-ayunta); }
.ballot .kind { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.ballot h3 { margin: 6px 0 4px; font-size: 26px; }
.ballot .meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 15px; }
.ballot .done { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.soon { border: 2px dashed var(--line); border-radius: var(--radius-l); padding: 20px; color: var(--ink-2); }

/* ---------- Votar ---------- */
.vote-head { border-radius: var(--radius-l); padding: 22px; margin-top: 8px; }
.vote-head .kind { font-weight: 700; color: var(--ink-2); font-size: 15px; }
.vote-head h1 { font-size: clamp(34px, 8vw, 56px); margin-top: 6px; }
.options { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
@media (min-width: 900px) { .options { grid-template-columns: repeat(2, 1fr); } }
.opt { width: 100%; display: grid; grid-template-columns: 58px 1fr; gap: 14px; align-items: center; text-align: left;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius-m); padding: 10px 14px 10px 10px; cursor: pointer; min-height: 78px; }
.opt:hover { border-color: var(--ink-2); }
.opt[aria-pressed=true] { border-color: var(--violet); background: var(--violet-soft); }
.box { width: 58px; height: 58px; border-radius: 10px; border: 3px solid var(--ink); background: #fff; position: relative; }
.box svg { position: absolute; inset: -6px; width: 70px; height: 70px; overflow: visible; }
.box svg path { fill: none; stroke: var(--violet); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 90; stroke-dashoffset: 90; }
.opt[aria-pressed=true] .box svg path { animation: draw .42s cubic-bezier(.6,.05,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.opt .name { font-weight: 700; font-size: 18px; line-height: 1.2; }
.opt .sub { color: var(--ink-2); font-size: 14px; }
.vote-bar { position: sticky; bottom: calc(var(--tabbar) + var(--safe-b) + 10px); margin-top: 18px; z-index: 5; }
@media (min-width: 900px) { .vote-bar { bottom: 20px; max-width: 420px; } }
.disclaimer { font-size: 14px; color: var(--ink-2); margin-top: 14px; }

/* ---------- Resultados ---------- */
.results { margin-top: 36px; background: var(--card); border-radius: var(--radius-l); padding: 22px; }
.results header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bar { display: grid; grid-template-columns: 116px 1fr 76px; gap: 10px; align-items: center; margin: 9px 0; font-size: 15px; }
.bar .track, .bar .fill { display: block; }
.bar .track { height: 14px; border-radius: 7px; background: #EEEFF4; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 7px; transition: width .6s ease; }
.bar .pct { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.1; }
.bar .pct b { display: block; font-size: 15px; }
.bar .pct small { color: var(--ink-2); font-size: 13px; }
.hidden-results { padding: 18px; border-radius: var(--radius-m); background: var(--ink); color: #fff; }

/* ---------- Hoja inferior, folio, aviso ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(29,27,38,.45); }
.sheet { position: relative; width: 100%; max-width: 520px; background: var(--card); border-radius: 26px 26px 0 0;
  padding: 26px 22px calc(26px + var(--safe-b)); max-height: 92vh; overflow: auto; animation: up .28s ease; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet h2 { font-size: 30px; margin-bottom: 8px; }
.sheet .stack { display: grid; gap: 10px; margin-top: 18px; }
.folio { font: 800 clamp(30px, 9vw, 40px)/1 var(--display); letter-spacing: .02em; text-align: center; padding: 18px; border-radius: var(--radius-m);
  background: var(--violet-soft); color: var(--violet-deep); margin: 16px 0 6px; user-select: all; }
.big-check { width: 96px; height: 96px; margin: 0 auto 8px; }
.big-check path { fill: none; stroke: var(--violet); stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw .6s .1s ease forwards; }
.provider { display: flex; align-items: center; justify-content: center; gap: 12px; }
.provider svg { width: 22px; height: 22px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + var(--safe-b) + 18px); transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; max-width: 90vw; }
.toast.show { opacity: 1; transform: translateX(-50%); }

.panel { background: var(--card); border-radius: var(--radius-l); padding: 22px; margin-top: 18px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 700; }
.prose { max-width: 44em; }
.prose h2 { margin: 36px 0 10px; font-size: 28px; }
.prose li { margin: 6px 0; }
.foot { max-width: 1120px; margin: 0 auto; padding: 24px 18px 30px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .foot { padding: 28px 40px 40px; } }
.empty { text-align: center; padding: 30px 10px; color: var(--ink-2); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--violet-soft); border-top-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition: none !important; }
  .box svg path, .big-check path { stroke-dashoffset: 0 !important; } }

/* ---------- Explorador del mapa ---------- */
.explorer { margin: 0 -18px; }
@media (min-width: 900px) { .explorer { margin: 0; } }
.ex-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 18px 10px; flex-wrap: wrap; }
@media (min-width: 900px) { .ex-bar { padding: 4px 0 12px; } }
.crumbs { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font: 800 clamp(22px, 5.5vw, 34px)/1.1 var(--display); letter-spacing: -.02em; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:last-child, .crumbs [aria-current] { color: var(--ink); }
.crumbs .sep { color: var(--violet); }
.seg { display: inline-flex; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); min-height: 40px; }
.seg button[aria-checked=true] { background: var(--violet); color: #fff; }
.ex-search { position: relative; padding: 0 18px 10px; }
@media (min-width: 900px) { .ex-search { padding: 0 0 12px; max-width: 440px; } }
.ex-search input { width: 100%; }
.sugg { position: absolute; z-index: 15; left: 18px; right: 18px; top: 56px; margin: 0; padding: 6px; list-style: none; background: var(--card);
  border-radius: var(--radius-m); box-shadow: 0 18px 40px rgba(29,27,38,.16); }
@media (min-width: 900px) { .sugg { left: 0; right: 0; } }
.sugg li { padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.sugg li[aria-selected=true], .sugg li:hover { background: var(--violet-soft); }
.ex-body { display: grid; gap: 0; }
@media (min-width: 900px) { .ex-body { grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; } }
.ex-stage { position: relative; height: min(64vh, 560px); overflow: hidden; touch-action: none;
  background: radial-gradient(120% 90% at 50% 30%, #FFFFFF 0%, #EEF0F8 60%, #E3E6F2 100%); }
.ex-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(#C9CCE0 1px, transparent 1.2px); background-size: 18px 18px; }
@media (min-width: 900px) { .ex-stage { height: calc(100vh - 210px); min-height: 560px; border-radius: var(--radius-l); position: sticky; top: 76px; } }
.ex-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shadow path { fill: #2B10A8; stroke: #2B10A8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.mshadow path { fill: #2B10A8; stroke: #2B10A8; stroke-width: 1; vector-effect: non-scaling-stroke; }
.states path { stroke: #5B2EFF; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; transform-box: fill-box;
  transition: fill .35s, transform .25s ease, opacity .5s, filter .25s; }
.states path:hover, .states path:focus-visible { transform: translateY(-6px); filter: drop-shadow(0 10px 8px rgba(43,16,168,.28)); outline: none; }
.states path.dim { opacity: .22; pointer-events: none; }
.states path.sel { opacity: 0; pointer-events: none; }
.muns path { stroke: #fff; stroke-width: .9; vector-effect: non-scaling-stroke; cursor: pointer; transform-box: fill-box; transition: fill .35s, transform .2s, filter .2s; }
svg:not(.votos) .muns path:hover, svg:not(.votos) .muns path:focus-visible { fill: var(--violet) !important; }
.muns path:focus-visible { outline: none; stroke: #fff; stroke-width: 3; }
.muns path.fade { filter: saturate(.3) brightness(1.25); }
.votos .muns path.sel { stroke: #fff; stroke-width: 4; filter: drop-shadow(0 8px 10px rgba(29,27,38,.35)); }
.votos .muns path:hover { stroke: #fff; stroke-width: 3; }
svg:not(.votos) .muns path.sel { fill: var(--violet) !important; stroke-width: 2; }
.ex-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; background: var(--ink); color: #fff; padding: 9px 12px; border-radius: 12px;
  font-size: 14px; line-height: 1.35; max-width: 240px; box-shadow: 0 10px 24px rgba(29,27,38,.25); }
.ex-up { position: absolute; left: 14px; top: 14px; z-index: 4; border: 0; background: var(--card); border-radius: 999px; padding: 10px 16px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(29,27,38,.12); cursor: pointer; min-height: 44px; }
.ex-legend { position: absolute; left: 14px; bottom: 12px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); pointer-events: none; }
.ex-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; border: 1px solid #5B2EFF55; vertical-align: -1px; margin-right: 6px; }
.ex-panel { padding: 22px 18px 10px; }
@media (min-width: 900px) { .ex-panel { padding: 22px; background: var(--card); border-radius: var(--radius-l); } }
.ex-panel h2 { font-size: clamp(30px, 7vw, 40px); }
.ex-panel .ptitle { font-size: 17px; margin: 22px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; background: var(--b-gober); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.chip:hover { background: var(--violet); color: #fff; }
.pballots { display: grid; gap: 10px; margin-top: 16px; }
.pb { text-align: left; border: 2px solid transparent; cursor: pointer; width: 100%; padding: 16px 18px; font: inherit; }
.pb.on { border-color: var(--violet); }
.pb .kind { display: block; }
.pbt { display: block; font: 700 21px/1.15 var(--display); letter-spacing: -.015em; margin-top: 4px; }
.pb .meta { margin-top: 10px; }
#pdetail { margin-top: 18px; scroll-margin-top: 80px; }
.vote-head.compact h3 { font-size: 24px; margin: 4px 0; }
.options.one-col { grid-template-columns: 1fr; }
.vote-bar.in-panel { position: sticky; bottom: calc(var(--tabbar) + var(--safe-b) + 10px); }
@media (min-width: 900px) { .vote-bar.in-panel { bottom: 16px; max-width: none; } }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }

/* Color de partido junto a su nombre */
.pdot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(29,27,38,.12); }
.opt { border-left: 8px solid var(--pc, var(--line)); }
.opt[aria-pressed=true] { border-left-color: var(--pc, var(--violet)); }
.opt .name { display: inline-flex; align-items: center; }
.bar .bl { display: inline-flex; align-items: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-tip .pdot { width: 11px; height: 11px; margin: 0 4px 0 2px; box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
.ex-legend { background: rgba(255,255,255,.88); border-radius: 12px; padding: 8px 10px; right: auto; max-width: calc(100% - 28px); color: var(--ink); font-weight: 700; }
.ex-legend .lgt { color: var(--ink-2); font-weight: 400; }
.ex-legend .pdot { width: 11px; height: 11px; margin-right: 5px; }

.mlabels text { fill: var(--ink); stroke: #fff; paint-order: stroke; font-family: var(--display); font-weight: 800; pointer-events: none; }
.mresults { margin: 16px 0 6px; padding: 18px; background: var(--paper); }
.ex-tip .tipm { color: #C9C6D8; font-size: 13px; }

/* Tipo de elección */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 18px 12px; }
@media (min-width: 900px) { .types { padding: 0 0 14px; max-width: 760px; } }
.types button { text-align: left; border: 2px solid transparent; background: var(--card); border-radius: var(--radius-m); padding: 10px 12px; cursor: pointer; min-height: 60px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: inset 6px 0 0 var(--tc); padding-left: 16px; }
.types button b { font: 800 15px/1.15 var(--display); letter-spacing: -.01em; }
.types button span { font-size: 12.5px; color: var(--ink-2); }
.types button[aria-selected=true] { background: var(--tc); border-color: var(--ink); box-shadow: none; padding-left: 12px; }
@media (max-width: 420px) { .types button b { font-size: 13px; } .types button span { display: none; } }
.ttag { display: inline-flex; align-items: center; gap: 6px; background: var(--tc); color: var(--ink); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 13px; border: 0; }
.ex-panel > .ttag { margin-bottom: 10px; }
.also { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.btn-tag { cursor: pointer; }
.btn-tag:hover { outline: 2px solid var(--ink); }
.chip { background: var(--tc, var(--b-gober)); }
.sources { color: var(--ink-2); margin: 14px 0 0; }
.sources a { margin-right: 6px; font-weight: 700; }

/* Botón de instalar */
.install-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--violet); color: #fff; border-radius: 999px;
  padding: 9px 14px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px; }
.install-btn svg, .bi { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.install-btn:hover { background: var(--violet-deep); }
@media (min-width: 900px) { .install-btn { position: relative; z-index: 22; } body:has(.install-btn:not([hidden])) .tabs { right: 220px; } }
.isteps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.isteps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.stepn { width: 36px; height: 36px; border-radius: 12px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; font: 800 18px/1 var(--display); }
.ishare { width: 20px; height: 20px; vertical-align: -4px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
