/* =========================================================
   Panelity · sistema visual
   ========================================================= */
@font-face { font-family: "Jakarta"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(/fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --brand: #5b4bdb; --brand-2: #8a5cf6; --brand-ink: #4536c4; --brand-soft: #efedfe; --accent: #ffd166;
  --grad: linear-gradient(135deg, #6d5df5 0%, #8a5cf6 55%, #b26cf0 100%);
  --ok: #17a673; --ok-soft: #e4f6ee; --bad: #e0475b; --bad-soft: #fdecee; --warn: #f5a524;
  --ink: #17152b; --ink-2: #3b3854; --muted: #6e6a86; --line: #e7e5f0; --line-2: #d9d6e6;
  --bg: #f7f6fb; --card: #ffffff; --card-2: #fbfaff;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(23,21,43,.06), 0 1px 1px rgba(23,21,43,.04);
  --sh-2: 0 1px 2px rgba(23,21,43,.05), 0 6px 18px -6px rgba(23,21,43,.12);
  --sh-3: 0 2px 4px rgba(23,21,43,.04), 0 24px 48px -16px rgba(58,40,160,.28);
  --sh-brand: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 20px -8px rgba(91,75,219,.65);
  --ease: cubic-bezier(.22,1,.36,1); --spring: cubic-bezier(.34,1.56,.64,1);
  --c1: #6d5df5; --c2: #ff7a59; --c3: #17a673; --c4: #f5b700; --c5: #2d9cdb; --c6: #e0475b;
  --c7: #a259ff; --c8: #00a7a0; --c9: #f2994a; --c10: #6b7a99; --c11: #e0559c; --c12: #5ccf8f;
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.force-light) {
    --ink: #f2f1f8; --ink-2: #cfcce0; --muted: #9b98b3; --line: #2a2840; --line-2: #3a3756;
    --bg: #0f0e1a; --card: #17162a; --card-2: #1c1b31; --brand-soft: #262150; --ok-soft: #12352a; --bad-soft: #3a1820;
    --sh-1: 0 1px 2px rgba(0,0,0,.4); --sh-2: 0 6px 18px -6px rgba(0,0,0,.6); --sh-3: 0 24px 48px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; font-size: 16px;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h2 { font-size: 1.45rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .75em; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.loading { display: grid; place-items: center; min-height: 70vh; }
.loading::before { content: ""; width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:root, [data-radius] { --rq: 16px; }
[data-radius="soft"] { --rq: 10px; }
[data-radius="sharp"] { --rq: 3px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.gtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- botones y campos ---------- */
.btn { --h: 44px; min-height: var(--h); border: 1px solid var(--line-2); background: var(--card); padding: .55rem 1rem; border-radius: 12px; cursor: pointer;
  display: inline-flex; gap: .45rem; align-items: center; justify-content: center; color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, opacity .2s; box-shadow: var(--sh-1); user-select: none; }
.btn:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-2)); transform: translateY(-1px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }
.btn.primary:hover { filter: brightness(1.06); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 26px -10px rgba(91,75,219,.8); }
.btn.primary:disabled { background: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: none; filter: none; }
.btn.danger { color: var(--bad); }
.btn.big { --h: 56px; font-size: 1.06rem; width: 100%; border-radius: var(--rq); }
.btn.icon { padding: .45rem; min-width: 44px; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
label { display: block; font-weight: 650; font-size: .88rem; margin: 1rem 0 .4rem; color: var(--ink-2); }
.input, textarea.input, select.input { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); font-size: 16px;
  transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
textarea.input { resize: vertical; min-height: 6rem; line-height: 1.45; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--sh-2); }
.error { color: var(--bad); font-size: .9rem; min-height: 1.3em; margin-top: .5rem; }
.error:not(:empty) { animation: shake .4s; }
.toast { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 14px;
  z-index: 99; font-size: .92rem; font-weight: 600; box-shadow: var(--sh-3); animation: toastIn .35s var(--spring); max-width: calc(100vw - 2rem); text-align: center; }
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.counter { font-size: .78rem; color: var(--muted); text-align: right; margin-top: .3rem; font-variant-numeric: tabular-nums; }

/* ---------- animaciones base ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes riseBig { from { opacity: 0; transform: translateY(28px) scale(.98); filter: blur(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 70% { opacity: 1; transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 16px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, 10px) scale(.97); } }
@keyframes bump { 40% { transform: scale(1.25); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes ring { 0% { transform: scale(.4); opacity: .55; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulseRed { 50% { color: var(--bad); transform: scale(1.08); } }
.enter { animation: riseBig .55s var(--ease) both; }
.stagger > * { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 60ms); }
.bump { animation: bump .45s var(--spring); display: inline-block; }

/* =========================================================
   Portada
   ========================================================= */
.home { overflow-x: clip; }
.home .wrap { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.nav { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; }
.logo { font-weight: 800; font-size: 1.3rem; display: inline-flex; gap: .55rem; align-items: center; color: var(--ink); letter-spacing: -.02em; }
.logo img { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--sh-brand); }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 3.5rem 0 4rem; position: relative; }
.hero::before { content: ""; position: absolute; inset: -20% -30% auto auto; width: 720px; height: 720px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent); filter: blur(20px); }
.eyebrow { display: inline-flex; gap: .5rem; align-items: center; padding: .35rem .8rem .35rem .4rem; border-radius: 99px; background: var(--card); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--sh-1); }
.eyebrow b { background: var(--grad); color: #fff; padding: .1rem .55rem; border-radius: 99px; font-size: .75rem; }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); letter-spacing: -.035em; margin: 1.1rem 0 1rem; font-weight: 800; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); max-width: 34rem; }
.join { margin-top: 1.75rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .5rem; box-shadow: var(--sh-3); display: flex; gap: .5rem; max-width: 34rem; }
.join .prefix { flex: 1; border: 0; background: transparent; }
.join .btn { --h: 52px; padding: 0 1.4rem; }
.join-hint { font-size: .85rem; color: var(--muted); margin: .7rem .2rem 0; }
.hero-ctas { display: flex; gap: .75rem; margin-top: 1.4rem; flex-wrap: wrap; }
.prefix { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.prefix:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.join .prefix:focus-within { box-shadow: none; }
.prefix span { padding: 0 .1rem 0 .9rem; color: var(--muted); white-space: nowrap; font-weight: 600; }
.prefix .input { border: 0; padding-left: 0; box-shadow: none !important; background: transparent; min-width: 0; }

/* Demo animada */
.demo { position: relative; height: 440px; }
.demo .screen { position: absolute; right: 0; top: 10px; width: 86%; aspect-ratio: 16/10.5; background: #13121f; border-radius: 18px; padding: 22px 24px;
  box-shadow: 0 40px 80px -30px rgba(40,25,120,.55), 0 0 0 1px rgba(255,255,255,.06) inset; color: #f4f3fb; overflow: hidden; }
.demo .screen::after { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(138,92,246,.35), transparent); }
.demo .screen h4 { margin: 0 0 18px; font-size: 1.05rem; letter-spacing: -.01em; }
.demo .screen .meta { font-size: .68rem; color: #a19fb8; margin-bottom: 8px; display: flex; gap: 10px; }
.demo .sbar { display: grid; grid-template-columns: 74px 1fr 34px; gap: 10px; align-items: center; font-size: .75rem; margin-bottom: 12px; }
.demo .sbar i { height: 18px; border-radius: 6px; background: #24223a; overflow: hidden; display: block; }
.demo .sbar i b { display: block; height: 100%; border-radius: 6px; transform-origin: left; animation: demoBar 6s var(--ease) infinite; }
.demo .sbar:nth-child(3) b { --w: .92; background: var(--c1); }
.demo .sbar:nth-child(4) b { --w: .55; background: var(--c2); animation-delay: .15s; }
.demo .sbar:nth-child(5) b { --w: .3; background: var(--c3); animation-delay: .3s; }
@keyframes demoBar { 0%, 8% { transform: scaleX(.02); } 40%, 88% { transform: scaleX(var(--w)); } 100% { transform: scaleX(.02); } }
.demo .phone { position: absolute; left: 0; bottom: 0; width: 200px; height: 380px; background: var(--card); border-radius: 34px; padding: 12px;
  box-shadow: 0 30px 60px -20px rgba(40,25,120,.45), 0 0 0 8px #17152b, 0 0 0 9px #33304d; animation: float 6s ease-in-out infinite; }
.demo .phone .notch { width: 70px; height: 18px; background: #17152b; border-radius: 0 0 12px 12px; margin: -12px auto 14px; }
.demo .phone .pq { font-weight: 750; font-size: .85rem; margin: 0 4px 12px; line-height: 1.25; }
.demo .popt { display: flex; gap: 8px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: .78rem; font-weight: 600; }
.demo .popt .k { width: 20px; height: 20px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: .65rem; font-weight: 800; }
.demo .popt.tap { animation: demoTap 6s var(--ease) infinite; }
.demo .popt.tap .k { animation: demoKey 6s var(--ease) infinite; }
@keyframes demoTap { 0%, 12% { border-color: var(--line); background: transparent; } 18%, 85% { border-color: var(--brand); background: var(--brand-soft); } 100% { border-color: var(--line); } }
@keyframes demoKey { 0%, 12% { background: var(--brand-soft); color: var(--brand); } 18%, 85% { background: var(--brand); color: #fff; } }
.demo .psend { margin-top: 14px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; animation: demoSend 6s var(--ease) infinite; }
@keyframes demoSend { 0%, 20% { opacity: .45; transform: scale(1); } 26% { opacity: 1; } 30% { transform: scale(.94); } 34%, 90% { transform: scale(1); opacity: 1; } }
.demo .finger { position: absolute; left: 120px; bottom: 140px; width: 34px; height: 34px; border-radius: 50%; background: rgba(91,75,219,.25); border: 2px solid rgba(91,75,219,.6);
  animation: demoFinger 6s var(--ease) infinite; pointer-events: none; }
@keyframes demoFinger { 0% { opacity: 0; transform: translate(30px, 40px); } 10% { opacity: 1; transform: translate(0, 0); } 16% { transform: scale(.8); } 20% { transform: scale(1); }
  26% { transform: translate(-20px, 78px); } 30% { transform: translate(-20px, 78px) scale(.8); } 36% { opacity: 1; transform: translate(-20px, 78px); } 44%, 100% { opacity: 0; transform: translate(-20px, 90px); } }
.demo .live { position: absolute; top: 18px; right: 20px; font-size: .65rem; font-weight: 700; color: #ff6b81; display: flex; gap: 6px; align-items: center; z-index: 1; }
.demo .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff6b81; box-shadow: 0 0 0 0 rgba(255,107,129,.6); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(255,107,129,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,129,0); } }

.section { padding: 3.5rem 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .85rem; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; display: flex; gap: .8rem; align-items: flex-start;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.feature .ic { font-size: 1.35rem; width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); }
.feature b { display: block; font-size: .95rem; }
.feature span { color: var(--muted); font-size: .83rem; line-height: 1.35; display: block; margin-top: .1rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; position: relative; overflow: hidden; }
.step::before { counter-increment: s; content: counter(s); position: absolute; right: .6rem; top: -1.4rem; font-size: 6.5rem; font-weight: 800; color: var(--brand-soft); line-height: 1; z-index: 0; }
.step > * { position: relative; }
.step .ic { font-size: 1.6rem; }
.step p { color: var(--muted); margin: 0; }
.home-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1.25rem; align-items: start; }
.home-grid .card h2 { margin-bottom: .25rem; }
footer.foot { text-align: center; color: var(--muted); font-size: .9rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 1.5rem 0 2.5rem; gap: 2rem; }
  .demo { height: 380px; max-width: 520px; width: 100%; margin: 0 auto; }
  .home-grid, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .join { flex-direction: column; }
  .join .btn { width: 100%; }
  .demo { height: 330px; }
  .demo .phone { width: 168px; height: 320px; }
  .demo .screen { width: 92%; padding: 16px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature { flex-direction: column; gap: .5rem; padding: .9rem; }
  .section { padding: 2.5rem 0; }
}

/* Acceso */
.center { min-height: 100dvh; display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--brand-2) 14%, transparent), transparent); }
.narrow { width: 100%; max-width: 420px; }
.center .card { animation: riseBig .6s var(--ease) both; }

/* =========================================================
   Móvil del público
   ========================================================= */
.voter { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.vhead { position: sticky; top: 0; z-index: 5; padding: calc(.7rem + env(safe-area-inset-top)) 1.1rem .6rem; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.vhead .top { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.vhead .top img { width: 26px; height: 26px; border-radius: 8px; }
.vhead .top b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.vhead .vstep { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; font-size: .85rem; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); transition: background .3s; }
.dot-live.off { background: var(--warn); animation: livePulse 1.2s infinite; }
.progress { height: 4px; background: var(--line); border-radius: 9px; margin-top: .6rem; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 9px; transition: width .6s var(--ease); }
.vtimer { display: flex; align-items: center; gap: .6rem; margin-top: .55rem; font-size: .85rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vtimer .bar { flex: 1; height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; }
.vtimer .bar i { display: block; height: 100%; background: var(--grad); transition: width 1s linear; border-radius: 9px; }
.vtimer.low { color: var(--bad); }
.vtimer.low span { animation: pulseRed 1s infinite; display: inline-block; }
.vtimer.low .bar i { background: var(--bad); }
.voter main { flex: 1; display: flex; flex-direction: column; padding: .5rem 1.1rem 0; }
.qwrap { flex: 1; display: flex; flex-direction: column; }
.qwrap > form, .qwrap > .qbody { flex: 1; display: flex; flex-direction: column; }
.voter h2.qt { font-size: clamp(1.4rem, 6vw, 1.75rem); margin: .6rem 0 .35rem; letter-spacing: -.025em; }
.voter .desc { color: var(--muted); margin: 0 0 .25rem; }
.hint { color: var(--muted); font-size: .88rem; font-weight: 600; margin: .4rem 0 0; }
.cta { position: sticky; bottom: 0; margin-top: auto; padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, color-mix(in srgb, var(--bg) 0%, transparent)); z-index: 3; }
.opts { display: grid; gap: .65rem; margin: 1rem 0 .5rem; }
.opt { position: relative; text-align: left; padding: .9rem 1rem; min-height: 60px; border: 1.5px solid var(--line-2); background: var(--card); border-radius: var(--rq); cursor: pointer;
  font-size: 1.04rem; font-weight: 600; display: flex; gap: .85rem; align-items: center; box-shadow: var(--sh-1); color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .25s var(--ease); }
.opt:active { transform: scale(.975); }
.opt .key { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .9rem;
  transition: background .25s var(--ease), color .25s, transform .35s var(--spring); position: relative; }
.opt .key svg { position: absolute; width: 18px; height: 18px; opacity: 0; transform: scale(.4); transition: .3s var(--spring); }
.opt.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--card)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent), var(--sh-2); }
.opt.sel .key { background: var(--grad); color: transparent; transform: scale(1.08); }
.opt.sel .key svg { opacity: 1; transform: scale(1); color: #fff; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .key { background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .key { background: var(--bad); color: #fff; }
.opt.faded { opacity: .55; }
.stars { display: flex; justify-content: center; gap: .15rem; margin: 2rem 0 .5rem; flex-wrap: wrap; }
.stars button { font-size: 2.9rem; background: none; border: 0; cursor: pointer; color: var(--line-2); padding: .15rem; line-height: 1; min-width: 48px; min-height: 48px;
  transition: color .2s, transform .3s var(--spring); }
.stars.ten button { font-size: 1.95rem; min-width: 40px; }
.stars button.on { color: #ffbf3c; text-shadow: 0 4px 14px rgba(255,170,40,.45); }
.stars button.pop { animation: popIn .45s var(--spring) both; animation-delay: calc(var(--i) * 40ms); }
.stars-label { text-align: center; font-weight: 700; color: var(--ink-2); min-height: 1.5em; }
.nps { display: grid; grid-template-columns: repeat(6, 1fr); gap: .45rem; margin: 1.25rem 0 .5rem; }
.nps button { min-height: 54px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); font-size: 1.15rem; font-weight: 700; cursor: pointer; transition: .2s var(--ease); }
.nps button:active { transform: scale(.94); }
.nps button.sel { color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: var(--sh-2); }
.nps button.sel.d { background: var(--bad); } .nps button.sel.p { background: var(--warn); } .nps button.sel.g { background: var(--ok); }
.range { margin: 2rem 0 .5rem; }
.range .val { text-align: center; font-size: 3.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 1.25rem; }
.range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
.range input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--line) var(--p, 50%)); }
.range input[type=range]::-moz-range-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--brand) var(--p, 50%), var(--line) var(--p, 50%)); }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: var(--sh-2); transition: transform .2s var(--spring); }
.range input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); }
.range input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.range .ends { display: flex; justify-content: space-between; color: var(--muted); font-size: .88rem; font-weight: 600; gap: 1rem; }
.rank { display: grid; gap: .55rem; margin: 1rem 0 .5rem; padding: 0; }
.rank li { list-style: none; display: flex; align-items: center; gap: .6rem; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 16px; padding: .45rem .5rem .45rem .7rem;
  box-shadow: var(--sh-1); font-weight: 600; min-height: 60px; will-change: transform; }
.rank li .n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; flex: none; font-size: .9rem; }
.rank li span.t { flex: 1; }
.rank li .btn { --h: 44px; min-width: 44px; padding: 0; box-shadow: none; }
.rank li.moved { border-color: var(--brand); }
.pts { display: grid; gap: .55rem; margin: 1rem 0 .5rem; }
.pts .p { background: var(--card); border: 1.5px solid var(--line-2); border-radius: 16px; padding: .65rem .7rem .75rem .9rem; box-shadow: var(--sh-1); }
.pts .p .r { display: flex; align-items: center; gap: .5rem; }
.pts .p .r span { flex: 1; font-weight: 600; }
.pts .p .r b { min-width: 2.6rem; text-align: center; font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.pts .p .r .btn { --h: 44px; min-width: 48px; padding: 0 .4rem; box-shadow: none; font-size: 1.1rem; }
.pts .p .meter { height: 6px; background: var(--line); border-radius: 9px; margin-top: .55rem; overflow: hidden; }
.pts .p .meter i { display: block; height: 100%; background: var(--grad); border-radius: 9px; transition: width .35s var(--ease); }
.left-pts { text-align: center; font-weight: 750; color: var(--brand); margin-top: .75rem; transition: color .3s; }
.left-pts.full { color: var(--ok); }
.done { text-align: center; padding: 2.5rem 1rem 1rem; margin: auto 0; }
.done h3 { font-size: 1.45rem; margin: 1.1rem 0 .35rem; }
.done .sub { color: var(--muted); }
.check { width: 96px; height: 96px; margin: 0 auto; position: relative; }
.check::before, .check::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); animation: ring 1.2s var(--ease) .15s both; }
.check::after { animation-delay: .4s; }
.check svg { width: 100%; height: 100%; position: relative; }
.check circle { fill: var(--ok); transform-origin: center; animation: popIn .5s var(--spring) both; }
.check path { stroke: #fff; stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw .45s var(--ease) .3s forwards; }
.check.bad circle { fill: var(--bad); } .check.bad::before, .check.bad::after { border-color: var(--bad); }
.check.lock circle { fill: var(--muted); } .check.lock::before, .check.lock::after { display: none; }
.big-emoji { font-size: 4rem; line-height: 1; animation: popIn .6s var(--spring) both; }
.wait { text-align: center; margin: auto 0; padding: 2rem 0 4rem; }
.radar { width: 120px; height: 120px; margin: 0 auto 1.5rem; position: relative; display: grid; place-items: center; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--brand) 30%, transparent); animation: ring 2.4s var(--ease) infinite; }
.radar::after { animation-delay: 1.2s; }
.radar i { width: 56px; height: 56px; border-radius: 18px; background: var(--grad); box-shadow: var(--sh-brand); display: grid; place-items: center; position: relative; z-index: 1; }
.radar i img { width: 100%; height: 100%; border-radius: 18px; }
.mylist { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; justify-content: center; }
.chip { background: var(--card); border: 1px solid var(--line); padding: .35rem .75rem; border-radius: 99px; font-size: .9rem; font-weight: 600; animation: popIn .35s var(--spring) both; }
.qa-list { display: grid; gap: .55rem; margin-top: .75rem; padding-bottom: 1.5rem; }
.qa-item { display: flex; gap: .75rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .8rem .8rem .8rem 1rem; box-shadow: var(--sh-1); animation: rise .4s var(--ease) both; }
.qa-item p { margin: 0; flex: 1; word-break: break-word; }
.up { border: 1.5px solid var(--line-2); background: var(--card); border-radius: 12px; min-height: 44px; min-width: 64px; padding: 0 .6rem; cursor: pointer; font-weight: 700;
  transition: .25s var(--spring); font-variant-numeric: tabular-nums; }
.up:active { transform: scale(.9); }
.up.on { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--sh-brand); }
.offline { position: fixed; top: calc(.6rem + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); font-size: .82rem; font-weight: 700; background: var(--warn); color: #241b00;
  padding: .35rem .8rem; border-radius: 99px; z-index: 20; animation: toastIn .3s var(--spring); box-shadow: var(--sh-2); }
.number-in { font-size: 2.2rem !important; font-weight: 800; text-align: center; min-height: 76px !important; margin: 2rem 0 .5rem; letter-spacing: -.02em; }

/* =========================================================
   Editor
   ========================================================= */
.ed { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100dvh - 118px); }
.ed-top { display: flex; gap: .6rem; align-items: center; padding: .7rem 1rem; background: color-mix(in srgb, var(--card) 85%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.ed-top .title-in { font-size: 1.1rem; font-weight: 750; border: 1.5px solid transparent; padding: .45rem .6rem; border-radius: 10px; min-width: 120px; flex: 1; background: transparent; letter-spacing: -.01em; }
.ed-top .title-in:hover, .ed-top .title-in:focus { border-color: var(--line-2); background: var(--card); outline: none; }
.saved { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; font-weight: 600; }
.saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); transition: background .3s; }
.saved.pending::before { background: var(--warn); }
.saved.saving::before { background: var(--brand); animation: livePulse 1s infinite; }
.saved.err::before { background: var(--bad); }
.ed-side { border-right: 1px solid var(--line); background: var(--card-2); padding: 1rem; overflow: auto; }
.ed-main { padding: 1.5rem; max-width: 860px; width: 100%; }
.ed-main > .card { animation: rise .45s var(--ease) both; }
.qlist { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; }
.qlist li { display: flex; gap: .55rem; align-items: center; padding: .55rem .6rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--card);
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .2s; min-height: 52px; }
.qlist li:hover { border-color: var(--line-2); transform: translateX(2px); }
.qlist li.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.qlist li.new { animation: popIn .4s var(--spring) both; }
.qlist li .num { font-weight: 750; color: var(--muted); width: 1.3rem; text-align: center; font-size: .85rem; }
.qlist li .ti { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .93rem; font-weight: 600; }
.qlist li .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); font-size: .95rem; flex: none; }
.qlist li .cnt { font-size: .72rem; color: var(--brand); background: var(--brand-soft); padding: .1rem .45rem; border-radius: 99px; font-weight: 700; }
.qlist li .btn { --h: 32px; min-width: 32px; padding: 0; }
.types { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7rem; }
.type { text-align: left; padding: 1rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; transition: .22s var(--ease); color: var(--ink); }
.type:hover { border-color: var(--brand); box-shadow: var(--sh-2); transform: translateY(-2px); }
.type .ic { font-size: 1.4rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); }
.type b { display: block; margin: .55rem 0 .15rem; }
.type span { font-size: .82rem; color: var(--muted); line-height: 1.35; display: block; }
.optrow { display: flex; gap: .4rem; align-items: center; margin-bottom: .45rem; animation: rise .3s var(--ease) both; }
.optrow .input { flex: 1; }
.optrow .k { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: .8rem; }
.optrow input[type=radio] { width: 22px; height: 22px; accent-color: var(--ok); flex: none; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.badge { display: inline-flex; gap: .35rem; align-items: center; background: var(--brand-soft); color: var(--brand); padding: .35rem .75rem; border-radius: 99px; font-size: .85rem; font-weight: 700; }
.tip { display: flex; gap: .5rem; background: var(--card-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: .7rem .85rem; color: var(--muted); font-size: .88rem; margin: 1rem 0 0; }
.warnbox { background: var(--bad-soft); color: var(--bad); border-radius: 12px; padding: .6rem .8rem; font-size: .88rem; margin-top: .75rem; font-weight: 600; }
.modal { position: fixed; inset: 0; background: rgba(15,13,30,.5); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; padding: 1rem; animation: fade .25s var(--ease); }
.modal .card { max-width: 860px; width: 100%; max-height: 88dvh; overflow: auto; animation: riseBig .4s var(--ease) both; box-shadow: var(--sh-3); }
.modal .card.narrow { max-width: 440px; }
.qrbox { background: #fff; padding: 1rem; border-radius: 18px; width: 260px; margin: 1rem auto; box-shadow: var(--sh-2); }
.qrbox svg { width: 100%; height: auto; display: block; }
.side-foot { border-top: 1px solid var(--line); margin-top: 1.25rem; padding-top: 1rem; }
.kbd { display: inline-block; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 0 .35rem; font-size: .75rem; font-weight: 700; background: var(--card); }
@media (max-width: 860px) {
  .ed { grid-template-columns: 1fr; }
  .ed-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .grid2 { grid-template-columns: 1fr; }
  .ed-main { padding: 1rem; }
  .ed-top .lbl { display: none; }
  .ed-top { flex-wrap: wrap; }
  .ed-top .title-in { order: 10; flex-basis: 100%; }
}

/* =========================================================
   Pantalla del ponente
   ========================================================= */
.stage { --sbg: #0e0d18; --sfg: #f4f3fb; --smuted: #a29fbd; --sline: #2a2842; --scard: rgba(255,255,255,.045);
  background: var(--sbg); color: var(--sfg); min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow: hidden; isolation: isolate; color-scheme: dark; }
.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora i { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(80px); opacity: .32; will-change: transform; }
.aurora i:nth-child(1) { background: var(--brand); left: -20vmax; top: -25vmax; animation: drift1 26s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: var(--brand-2); right: -25vmax; bottom: -30vmax; animation: drift2 32s ease-in-out infinite alternate; opacity: .22; }
.aurora i:nth-child(3) { background: var(--c5); right: 10vmax; top: -35vmax; width: 40vmax; height: 40vmax; animation: drift1 38s ease-in-out infinite alternate-reverse; opacity: .14; }
@keyframes drift1 { to { transform: translate(18vmax, 12vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, -10vmax) scale(.9); } }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.stage a { color: var(--accent); }
.stage .top { display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 2.5rem; }
.stage .top .ev { font-weight: 750; font-size: 1rem; letter-spacing: -.01em; }
.stage .join { display: flex; align-items: center; gap: .9rem; margin-left: auto; background: var(--scard); border: 1px solid var(--sline); border-radius: 18px; padding: .5rem 1.1rem .5rem .5rem; backdrop-filter: blur(10px); }
.stage .join .qr { width: 78px; background: #fff; padding: 5px; border-radius: 12px; }
.stage .join .qr svg { display: block; width: 100%; height: auto; }
.stage .join .url { font-size: .95rem; color: var(--smuted); line-height: 1.25; }
.stage .join .url b { font-size: 1.45rem; color: var(--sfg); display: block; letter-spacing: -.02em; }
.stage .meta { color: var(--smuted); display: flex; gap: .6rem; font-size: .95rem; margin-top: .35rem; flex-wrap: wrap; align-items: center; }
.pill { display: inline-flex; gap: .4rem; align-items: center; background: var(--scard); border: 1px solid var(--sline); padding: .25rem .7rem; border-radius: 99px; font-weight: 650; font-variant-numeric: tabular-nums; }
.pill.closed { background: rgba(224,71,91,.18); border-color: rgba(224,71,91,.45); color: #ff8a9a; }
.pill.timer { color: var(--accent); font-size: 1.05rem; }
.pill.timer.low { color: #ff8a9a; animation: pulseRed 1s infinite; }
.stage .body { flex: 1; padding: .5rem 3rem 5rem; display: flex; flex-direction: column; min-height: 0; }
.stage .qnum { color: var(--smuted); font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .35rem; }
.stage h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); margin-bottom: .35rem; letter-spacing: -.035em; max-width: 26ch; font-weight: 800; }
.stage .desc { color: var(--smuted); font-size: 1.3rem; max-width: 60ch; }
.stage .viz { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 0; min-height: 0; }
.stage .bar { position: fixed; bottom: 1rem; left: 0; right: 0; margin: 0 auto; width: max-content; display: flex; gap: .4rem; padding: .45rem; background: color-mix(in srgb, var(--sbg) 82%, transparent); border: 1px solid var(--sline);
  border-radius: 18px; align-items: center; transition: opacity .4s var(--ease), transform .4s var(--ease); z-index: 10; backdrop-filter: blur(16px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
  max-width: calc(100vw - 2rem); flex-wrap: wrap; justify-content: center; }
.stage.idle .bar { opacity: 0; transform: translateY(20px); pointer-events: none; }
.stage.idle { cursor: none; }
.stage .bar .btn { background: color-mix(in srgb, var(--sfg) 7%, transparent); border-color: transparent; color: var(--sfg); --h: 40px; padding: 0 .85rem; font-size: .88rem; box-shadow: none; }
.stage .bar .btn:hover { background: color-mix(in srgb, var(--sfg) 13%, transparent); transform: none; }
.stage .bar .btn.on { background: color-mix(in srgb, var(--brand) 40%, transparent); }
.stage .bar .btn.primary { background: var(--grad); }
.stage .bar .pos { color: var(--smuted); padding: 0 .4rem; font-variant-numeric: tabular-nums; font-size: .88rem; font-weight: 650; }
.stage .bar select { background: color-mix(in srgb, var(--sfg) 7%, transparent); border: 0; color: var(--sfg); border-radius: 12px; padding: 0 .6rem; height: 40px; max-width: 240px; font-size: .88rem; }
.stage .bar .sep { width: 1px; height: 24px; background: var(--sline); margin: 0 .2rem; }
.stage .lobby { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem; }
.stage .lobby h1 { margin: 0 auto .5rem; }
.stage .lobby .qr { width: min(44vh, 400px); background: #fff; padding: 16px; border-radius: 26px; margin: 1.6rem auto; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 30px 80px -20px color-mix(in srgb, var(--brand) 70%, transparent); animation: float 6s ease-in-out infinite; }
.stage .lobby .qr::before { content: ""; position: absolute; inset: -3px; border-radius: 28px; z-index: -1; background: conic-gradient(from var(--a, 0deg), var(--brand), var(--brand-2), var(--c5), var(--brand)); animation: spinA 6s linear infinite; filter: blur(14px); opacity: .8; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spinA { to { --a: 360deg; } }
.stage .lobby .qr svg { display: block; width: 100%; height: auto; }
.stage .lobby .url { font-size: clamp(1.8rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.stage .lobby .count { margin-top: 1.25rem; font-size: 1.2rem; color: var(--smuted); }
.stage .lobby .count b { color: var(--sfg); font-size: 1.6rem; }
.stage .lobby .keys { margin-top: 2rem; color: var(--smuted); font-size: .9rem; }
.stage .lobby .keys .kbd { background: rgba(255,255,255,.06); border-color: var(--sline); color: var(--sfg); }
.hbars { display: grid; gap: 1.1rem; width: 100%; }
.hbar { display: grid; grid-template-columns: minmax(160px, 28%) 1fr 7.5rem; gap: 1.25rem; align-items: center; font-size: 1.4rem; font-weight: 650; }
.hbar .lab { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 3rem; background: color-mix(in srgb, var(--sfg) 6%, transparent); border-radius: var(--rq); overflow: hidden; position: relative; }
.hbar .fill { height: 100%; border-radius: var(--rq); transition: width .9s var(--ease); min-width: 6px; position: relative; overflow: hidden; width: 0; }
.hbar .fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), transparent 60%); }
.hbar.lead .fill::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 2.8s var(--ease) infinite; }
.hbar .val { text-align: right; font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.hbar .val small { color: var(--smuted); font-size: .85rem; display: block; font-weight: 600; letter-spacing: 0; }
.hbar.right .lab, .hbar.right .val { color: var(--okc, #6ee7b7); }
.hbar.dim { opacity: .3; transition: opacity .6s; }
.vbars { display: flex; gap: .7rem; align-items: flex-end; height: 40vh; width: 100%; }
.vbars .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: .4rem; }
.vbars .fill { width: 100%; border-radius: var(--rq) var(--rq) 4px 4px; transition: height .9s var(--ease), background .4s; min-height: 4px; height: 0; position: relative; overflow: hidden; }
.vbars .fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.25), transparent 50%); }
.vbars .n { color: var(--smuted); font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.vbars .x { font-size: 1.1rem; font-weight: 700; color: var(--smuted); }
.bigstat { display: flex; gap: 3.5rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.bigstat .num { font-size: clamp(3.8rem, 9vw, 7.5rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--sfg) 35%, color-mix(in srgb, var(--brand-2) 70%, var(--sfg))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bigstat .num.green { background: linear-gradient(180deg, #a7f3d0, #34d399); -webkit-background-clip: text; background-clip: text; }
.bigstat .lbl { color: var(--smuted); font-size: 1rem; text-align: center; font-weight: 650; margin-top: .4rem; text-transform: uppercase; letter-spacing: .08em; }
.bigstars { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: .08em; display: flex; }
.bigstars span { position: relative; color: color-mix(in srgb, var(--sfg) 16%, transparent); }
.bigstars span i { position: absolute; left: 0; top: 0; overflow: hidden; color: #ffc94d; font-style: normal; transition: width 1s var(--ease); text-shadow: 0 6px 24px rgba(255,190,60,.5); }
.cloud { position: relative; display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; justify-content: center; align-items: center; padding: 1rem; max-width: 1300px; margin: 0 auto; }
.cloud span { font-weight: 800; line-height: 1.05; transition: font-size .8s var(--spring), opacity .4s; cursor: default; position: relative; letter-spacing: -.02em; }
.cloud span.new { animation: popIn .7s var(--spring) both; }
.wall { columns: 4 260px; column-gap: 1rem; }
.wall .note { break-inside: avoid; background: var(--scard); border: 1px solid var(--sline); border-radius: var(--rq); padding: 1.1rem 1.2rem; margin-bottom: 1rem; font-size: 1.25rem; position: relative; word-break: break-word;
  backdrop-filter: blur(8px); border-top: 3px solid var(--nc, var(--c1)); }
.wall .note.hid { opacity: .3; }
.wall .note.new, .qa-big.new { animation: riseBig .6s var(--spring) both; }
.mod { position: absolute; top: .4rem; right: .4rem; background: rgba(0,0,0,.55); border: 0; color: #fff; border-radius: 8px; cursor: pointer; padding: .2rem .5rem; font-size: .78rem; opacity: 0; transition: opacity .2s; font-weight: 600; }
.note:hover .mod, .cloud span:hover .mod { opacity: 1; }
.cloud .mod { top: -1rem; right: -1rem; font-size: .7rem; }
.qa-big { display: flex; gap: 1.25rem; align-items: center; background: var(--scard); border: 1px solid var(--sline); border-radius: var(--rq); padding: 1rem 1.25rem; margin-bottom: .75rem; font-size: 1.45rem; position: relative;
  transition: transform .6s var(--ease), opacity .4s; }
.qa-big .votes { font-size: 1.7rem; font-weight: 800; min-width: 4.2rem; text-align: center; color: var(--accent); font-variant-numeric: tabular-nums; }
.qa-big .votes small { display: block; font-size: .72rem; color: var(--smuted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
.qa-big.hid { opacity: .35; }
.qa-big.hid p { text-decoration: line-through; }
.qa-big p { margin: 0; flex: 1; font-weight: 600; }
.qa-big .btn { background: color-mix(in srgb, var(--sfg) 8%, transparent); color: var(--sfg); border-color: transparent; box-shadow: none; }
.scroll { overflow: auto; max-height: 62vh; padding-right: .5rem; scrollbar-width: thin; }
.npsbar { display: flex; height: 3rem; border-radius: 14px; overflow: hidden; margin: 0 0 2rem; font-weight: 750; gap: 3px; }
.npsbar div { display: grid; place-items: center; transition: flex .9s var(--ease); min-width: 0; overflow: hidden; white-space: nowrap; font-size: 1rem; }
.empty { text-align: center; color: var(--smuted); font-size: 1.4rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.empty .dots { display: flex; gap: .5rem; }
.empty .dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--smuted); animation: bump 1.4s ease-in-out infinite; }
.empty .dots i:nth-child(2) { animation-delay: .15s; } .empty .dots i:nth-child(3) { animation-delay: .3s; }
.info-slide { text-align: center; margin: auto; }
.info-slide h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: none; background: linear-gradient(180deg, var(--sfg) 40%, color-mix(in srgb, var(--brand-2) 70%, var(--sfg))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.info-slide .desc { font-size: 1.7rem; max-width: 900px; margin: 0 auto; white-space: pre-line; }
.stage.blind .viz > * { filter: blur(26px); transition: filter .6s var(--ease); }
.stage .viz > * { transition: filter .6s var(--ease); }
.hint-keys { position: fixed; bottom: 1.2rem; right: 1.4rem; color: var(--smuted); font-size: .8rem; opacity: 0; transition: opacity .5s; }
.stage.idle .hint-keys { opacity: .5; }
@media (max-width: 900px) {
  .stage .body { padding: .5rem 1.1rem 7rem; }
  .hbar { grid-template-columns: 1fr auto; gap: .35rem 1rem; font-size: 1.1rem; }
  .hbar .track { grid-column: 1 / -1; grid-row: 2; height: 2.2rem; }
  .hbar .val { font-size: 1.2rem; }
  .stage .top { flex-wrap: wrap; padding: 1rem 1.1rem; }
  .stage .join .url b { font-size: 1.1rem; }
  .vbars { height: 32vh; gap: .35rem; }
  .stage .bar .lbl { display: none; }
}
canvas.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; width: 100vw; height: 100vh; }

/* Accesibilidad: menos movimiento si el sistema lo pide */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .aurora { display: none; }
}

/* =========================================================
   Temas de la pantalla grande
   ========================================================= */
.stage.light { --sbg: #f6f5fb; --sfg: #17152b; --smuted: #67637f; --sline: #e1deed; --scard: rgba(255,255,255,.78); --okc: #0f8a5f; color-scheme: light; }
.stage.light .aurora i { opacity: .16; }
.stage.light::after { background-image: radial-gradient(rgba(23,21,43,.08) 1px, transparent 1px); }
.stage.light .bar { box-shadow: 0 20px 50px -24px rgba(23,21,43,.35); }
.stage.light .join, .stage.light .wall .note, .stage.light .qa-big, .stage.light .pill { box-shadow: 0 1px 2px rgba(23,21,43,.06); }
.stage.light .lobby .qr { box-shadow: 0 0 0 1px rgba(23,21,43,.06), 0 30px 80px -24px color-mix(in srgb, var(--brand) 55%, transparent); }
.stage[data-bg="plain"] .aurora, .stage[data-bg="plain"]::after, .stage[data-bg="gradient"]::after { display: none; }
.stage[data-bg="dots"] .aurora { display: none; }
.stage[data-bg="dots"]::after { opacity: 1; }
.stage[data-bg="gradient"] .aurora { display: none; }
.stage[data-bg="gradient"] { background:
  radial-gradient(90% 70% at 0% 0%, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%),
  radial-gradient(80% 70% at 100% 100%, color-mix(in srgb, var(--brand-2) 26%, transparent), transparent 70%), var(--sbg); }
.slogo { height: 44px; width: auto; max-width: 180px; object-fit: contain; border-radius: 8px; }
.slogo.big { height: 84px; max-width: 320px; margin: 0 auto 1rem; display: block; }
.theme-pop { position: fixed; bottom: 5.2rem; left: 50%; transform: translateX(-50%); background: color-mix(in srgb, var(--sbg) 92%, transparent); border: 1px solid var(--sline); border-radius: 20px;
  padding: 1rem; z-index: 30; backdrop-filter: blur(16px); box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); animation: riseBig .35s var(--ease) both; width: min(560px, calc(100vw - 2rem)); }
.theme-pop > b { display: block; margin-bottom: .75rem; }
.theme-pop > a { display: block; margin-top: .8rem; text-align: center; }
.theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.theme-sw { background: color-mix(in srgb, var(--sfg) 5%, transparent); border: 1.5px solid transparent; border-radius: 14px; padding: .6rem .4rem; color: var(--sfg); cursor: pointer; font-size: .8rem; font-weight: 650;
  display: flex; flex-direction: column; align-items: center; gap: .4rem; transition: .2s var(--ease); }
.theme-sw i { width: 38px; height: 38px; border-radius: 50%; }
.theme-sw:hover { transform: translateY(-2px); border-color: var(--sline); }
.theme-sw.on { border-color: var(--brand); }

/* Reacciones */
.react-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.react { position: absolute; bottom: -4rem; animation: floatUp 3.4s cubic-bezier(.2,.6,.3,1) forwards; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
@keyframes floatUp { 0% { transform: translate(0, 0) scale(.4) rotate(0); opacity: 0; } 12% { opacity: 1; transform: translate(0, -12vh) scale(1.15) rotate(var(--rot)); }
  60% { transform: translate(var(--sway), -55vh) scale(1) rotate(calc(var(--rot) * -1)); opacity: 1; } 100% { transform: translate(calc(var(--sway) * -.5), -95vh) scale(.9); opacity: 0; } }
.reactbar { display: flex; align-items: center; justify-content: center; gap: .3rem; margin: 1.75rem auto 0; flex-wrap: wrap; }
.reactbar > span { width: 100%; text-align: center; margin-bottom: .2rem; font-weight: 650; }
.reactbar button { font-size: 1.5rem; width: 46px; height: 46px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); cursor: pointer; box-shadow: var(--sh-1); transition: transform .2s var(--spring); }
.reactbar button:active { transform: scale(.85); }
.react-fly { position: fixed; z-index: 90; pointer-events: none; font-size: 2rem; transform: translate(-50%, 0); animation: fly 1.1s var(--ease) forwards; }
@keyframes fly { to { transform: translate(-50%, -160px) scale(1.6); opacity: 0; } }

/* Resultados en el móvil */
.vres-head { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0 .5rem; }
.vres { display: grid; gap: .8rem; margin-top: .5rem; }
.vres-row .l { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; margin-bottom: .3rem; }
.vres-row .track { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.vres-row .track i { display: block; height: 100%; border-radius: 99px; transition: width 1s var(--ease); }
.vres-row.mine .l span::after { content: " · tu voto"; color: var(--brand); font-size: .85rem; }
.vres-big { font-size: 4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================
   Panel del ponente (editor con pestañas)
   ========================================================= */
.ed2 { min-height: 100dvh; display: flex; flex-direction: column; }
.tabs { display: flex; gap: .25rem; padding: .4rem 1rem 0; border-bottom: 1px solid var(--line); background: var(--card); overflow-x: auto; scrollbar-width: none; position: sticky; top: 61px; z-index: 4; }
.tab { border: 0; background: none; padding: .7rem 1rem .8rem; cursor: pointer; font-weight: 650; color: var(--muted); border-bottom: 2.5px solid transparent; display: inline-flex; gap: .45rem; white-space: nowrap;
  transition: color .2s, border-color .25s var(--ease); font-size: .95rem; min-height: 44px; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); }
.ed-view { flex: 1; }
.ed-narrow { max-width: 820px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.ed-narrow > .card { margin-top: 1rem; }
.big-in { font-size: 1.2rem !important; font-weight: 650; }
.seg { display: inline-flex; background: var(--card-2); border: 1.5px solid var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: .5rem .85rem; border-radius: 9px; cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--muted); min-height: 38px; transition: .2s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--sh-2); }
.seg.wrap { display: flex; }
.fontopt { display: inline-flex; gap: .45rem; align-items: center; } .fontopt b { font-size: 1.1rem; }
.palopt { display: inline-flex; gap: .45rem; align-items: center; }
.dots { display: inline-flex; } .dots i { width: 12px; height: 12px; border-radius: 50%; margin-left: -3px; border: 2px solid var(--card); }
.tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .7rem; text-align: left; }
.tpl { text-align: left; border: 1.5px solid var(--line); background: linear-gradient(180deg, var(--card), var(--card-2)); border-radius: 16px; padding: 1rem; cursor: pointer; transition: .22s var(--ease); color: var(--ink); }
.tpl:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-2); }
.tpl .ic { font-size: 1.6rem; } .tpl b { display: block; margin: .4rem 0 .1rem; } .tpl span { display: block; font-size: .84rem; color: var(--muted); } .tpl small { color: var(--brand); font-weight: 700; font-size: .75rem; }
.empty-ed { text-align: center; padding: 2.5rem 1.5rem; }
.design { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; max-width: 1280px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.design section + section { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.design h3 { font-size: 1.15rem; }
.design-right .sticky { position: sticky; top: 130px; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.preset { border: 1.5px solid var(--line); background: var(--card); border-radius: 16px; padding: .45rem .45rem .6rem; cursor: pointer; text-align: left; position: relative; transition: .22s var(--ease); color: var(--ink); }
.preset:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.preset.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.preset b { font-size: .85rem; display: block; margin: .45rem .2rem 0; }
.preset .ok { position: absolute; top: .5rem; right: .5rem; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .75rem; font-weight: 800; animation: popIn .35s var(--spring); }
.mock { height: 74px; border-radius: 11px; background: #13121f; padding: 9px 10px; display: flex; flex-direction: column; gap: 5px; position: relative; overflow: hidden; color: #fff; }
.mock.light { background: #f3f2f8; color: #17152b; border: 1px solid #e4e1ee; }
.mock .t { font-style: normal; font-weight: 800; font-size: .8rem; line-height: 1; margin-bottom: 2px; }
.mock .b { display: block; height: 7px; }
.mock .g { position: absolute; right: -14px; top: -14px; width: 42px; height: 42px; border-radius: 50%; opacity: .9; }
.colorpick { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.colorpick input[type=color] { width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 3px; background: var(--card); cursor: pointer; }
.colorpick .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; transition: transform .2s var(--spring); padding: 0; }
.colorpick .sw:hover { transform: scale(1.15); }
.colorpick .sw.on { box-shadow: 0 0 0 2px var(--ink); }
.logo-prev { height: 52px; max-width: 160px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); padding: 4px; }
.logo-prev.empty { width: 110px; display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.pv { position: relative; padding-bottom: 2.5rem; }
.pv-frame { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; box-shadow: var(--sh-3); border: 1px solid var(--line); }
.pv-stage { position: absolute !important; top: 0; left: 0; width: 1280px; height: 720px; min-height: 0 !important; transform: scale(var(--s, .4)); transform-origin: top left; }
.pv-stage .body { padding-bottom: 2rem; }
.pv-stage .viz { justify-content: flex-start; padding-top: 2.5rem; }
.pv-phone { position: absolute; right: -10px; bottom: -6px; width: 390px; height: 620px; transform: scale(.42); transform-origin: bottom right; border-radius: 44px; overflow: hidden;
  box-shadow: 0 0 0 10px #17152b, 0 40px 80px -20px rgba(0,0,0,.5); background: var(--bg); pointer-events: none; }
.pv-phone .voter { min-height: 100%; }
.pv-phone .cta { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 0; }
.toggles { display: grid; gap: .6rem; margin-top: 1.25rem; }
.toggle { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; cursor: pointer; margin: 0; transition: border-color .2s, box-shadow .2s; font-size: 1rem; color: var(--ink); }
.toggle:hover { border-color: var(--line-2); box-shadow: var(--sh-1); }
.toggle .ic { font-size: 1.4rem; width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.toggle .tx { flex: 1; } .toggle .tx b { display: block; } .toggle .tx span { color: var(--muted); font-size: .88rem; font-weight: 500; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .sw { width: 52px; height: 30px; border-radius: 99px; background: var(--line-2); position: relative; flex: none; transition: background .25s var(--ease); }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--spring); }
.toggle input:checked + .sw { background: var(--grad); }
.toggle input:checked + .sw::after { transform: translateX(22px); }
.toggle input:focus-visible + .sw { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.share-url { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: .5rem 0 1rem; }
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.linkcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; color: var(--ink); transition: .22s var(--ease); }
.linkcard:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand); }
.linkcard .ic { font-size: 1.5rem; display: block; } .linkcard b { display: block; margin: .35rem 0 .15rem; } .linkcard span { color: var(--muted); font-size: .86rem; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.theme-strip { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.theme-chip { display: inline-flex; gap: .55rem; align-items: center; background: var(--card); border: 1px solid var(--line); padding: .45rem .9rem .45rem .45rem; border-radius: 99px; font-weight: 650; box-shadow: var(--sh-1); }
.theme-chip i { width: 30px; height: 30px; border-radius: 50%; }
@media (max-width: 1000px) { .design { grid-template-columns: 1fr; } .design-right { order: -1; } .design-right .sticky { position: static; } }
@media (max-width: 860px) { .tabs { top: 0; position: relative; } .tab .lbl { display: none; } .tab { flex: 1; justify-content: center; font-size: 1.2rem; } .links { grid-template-columns: 1fr; } .presets { grid-template-columns: repeat(2, 1fr); } }
.qlist li .ti { min-width: 0; }
@media (max-width: 600px) { .pv-phone { display: none; } .pv { padding-bottom: 0; } .colorpick .sw { width: 24px; height: 24px; } }
.ed > *, .design > * { min-width: 0; }
.qlist { grid-template-columns: minmax(0, 1fr); }

/* ---------- portada minimalista ---------- */
.start { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 1.5rem clamp(1.25rem, 5vw, 3rem) 2rem; }
.start-top { display: flex; align-items: center; }
.start-main { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 900px; margin: 0 auto; padding: 4rem 0; }
.start h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 1.1rem; }
.start .lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; line-height: 1.6; margin: 0 0 4rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.choice { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 2.25rem; display: flex; flex-direction: column; gap: .8rem; box-shadow: var(--sh-2); color: var(--ink); text-decoration: none; min-height: 260px; }
.choice h2 { font-size: 1.4rem; margin: 0; }
.choice p { margin: 0; color: var(--muted); line-height: 1.55; }
.choice.choice-main { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); transition: transform .25s var(--ease), filter .25s; }
.choice.choice-main p { color: rgba(255, 255, 255, .88); }
.choice.choice-main:hover { transform: translateY(-3px); filter: brightness(1.05); }
.choice-cta { margin-top: auto; font-weight: 700; font-size: 1.05rem; }
.join-row { display: flex; gap: .6rem; margin-top: auto; }
.join-row .input { flex: 1; min-width: 0; min-height: 52px; }
.join-row .btn { min-height: 52px; }
.start-foot { font-size: .88rem; color: var(--muted); text-align: center; padding-top: 2rem; }
@media (max-width: 720px) { .choices { grid-template-columns: 1fr; } .choice { min-height: 0; } .start-main { padding: 2.5rem 0; } .start .lead { margin-bottom: 2.5rem; } }

/* ---------- asistente paso a paso ---------- */
.wiz { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; margin: 0 auto; padding: 1.5rem clamp(1.25rem, 5vw, 2rem) 2rem; }
.wiz-top { display: flex; align-items: center; gap: 1rem; }
.wiz-home { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.wiz-home:hover { color: var(--ink); }
.wiz-brand { font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.wiz-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 1.1rem; }
.wiz-progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .45s var(--ease); }
.wiz-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 0 1rem; }
.wiz-step { color: var(--brand); font-weight: 700; font-size: .92rem; margin: 0 0 .75rem; }
.wiz-title { font-size: clamp(1.8rem, 4.5vw, 2.4rem); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .9rem; }
.wiz-hint { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 0 0 2rem; }
.wiz .input { min-height: 60px; font-size: 1.1rem; }
.wiz .prefix { min-height: 60px; }
.wiz .prefix .input { min-height: 56px; font-size: 1.1rem; }
.wiz .error { font-size: 1rem; margin-top: .9rem; }
.wiz-nav { display: flex; gap: .75rem; align-items: center; margin-top: 2.25rem; }
.wiz-nav .btn.big { flex: 1; min-height: 58px; font-size: 1.1rem; }
.wiz-nav .btn.ghost { min-height: 52px; padding: .5rem 1rem; }
.preview-url { color: var(--muted); font-size: .95rem; margin: .7rem 0 0; word-break: break-all; }
.option-list { display: grid; gap: .85rem; }
.option { text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line-2); border-radius: 18px; padding: 1.25rem 1.4rem; cursor: pointer; transition: border-color .2s, transform .2s, box-shadow .2s; box-shadow: var(--sh-1); }
.option:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--sh-2); }
.option b { display: block; font-size: 1.12rem; margin-bottom: .2rem; }
.option span { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.file-pick { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--card); border: 2px dashed var(--line-2); border-radius: 20px; padding: 2rem 1.6rem; cursor: pointer; display: flex; flex-direction: column; gap: .35rem; transition: border-color .2s, background .2s; }
.file-pick:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.file-pick b { font-size: 1.15rem; }
.file-pick span { color: var(--muted); font-size: .95rem; }
.summary { background: var(--card-2); border-radius: 20px; padding: 1.5rem 1.6rem; display: grid; gap: 1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: .9rem; }
.sum-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.sum-row span { color: var(--muted); font-weight: 600; }
.sum-row b { text-align: right; word-break: break-all; }
.summary .muted { margin: .3rem 0 0; }
@media (max-width: 600px) { .wiz-nav { flex-direction: column-reverse; align-items: stretch; } .wiz-nav .btn.ghost { align-self: center; } }
.join-alt { font-size: .92rem; margin-top: auto !important; }
.choice .join-row { margin-top: 0; }
.big-cta { min-height: 60px; padding: 0 2rem; font-size: 1.1rem; border-radius: 16px; align-self: flex-start; }
.audience { margin: 2.5rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.6; max-width: 46ch; }
/* portada: cuatro acciones */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.action { display: flex; flex-direction: column; gap: .4rem; padding: 1.6rem 1.7rem; background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-1); color: var(--ink); text-decoration: none; min-height: 150px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.action:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand); }
.action-ic { font-size: 1.6rem; margin-bottom: .3rem; }
.action b { font-size: 1.2rem; }
.action.action-main { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--sh-brand); }
.action.action-main:hover { border-color: transparent; filter: brightness(1.05); }
@media (max-width: 640px) { .actions { grid-template-columns: 1fr; } .action { min-height: 0; } }
/* portada: cuatro botones iguales y claros */
.action { flex-direction: row; align-items: center; gap: 1.1rem; min-height: 120px; border: 2px solid var(--line-2); cursor: pointer; }
.action:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--card)); }
.action-ic { font-size: 2rem; margin: 0; flex: none; }
.action-txt { display: flex; flex-direction: column; gap: .3rem; flex: 1; min-width: 0; }
.action-txt b { font-size: 1.3rem; }
.action-txt span { color: var(--muted); font-size: .95rem; line-height: 1.5; }
.action-go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 1.15rem; box-shadow: var(--sh-brand); transition: transform .25s var(--ease); }
.action:hover .action-go { transform: translateX(4px); }
.action .action-go { color: #fff; font-size: 1.2rem; line-height: 1; }
/* portada: tres botones en columna */
.actions { grid-template-columns: 1fr; max-width: 640px; }
/* editor: solo se avisa del servidor si algo falla; lo importante es la barra de guardado */
.ed-top .saved:not(.err) { display: none; }
.devsave { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .7rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--card); font-size: .95rem; }
.devsave-msg { flex: 1; min-width: 220px; line-height: 1.45; }
.devsave-msg.ok { color: var(--ok, #16a34a); }
.devsave-msg.bad { color: var(--bad); }
.devsave-none, .devsave-resume, .devsave-error, .devsave-dirty { background: color-mix(in srgb, var(--brand) 9%, var(--card)); }
.devsave .btn { min-height: 40px; }
