:root {
  --ink: #1d1838; --ink-2: #4a4568; --muted: #6f6a88; --line: #e6e1d8;
  --paper: #f8f5ef; --card: #ffffff; --brand: #5b45e0; --brand-2: #7c5cff; --brand-ink: #ffffff;
  --coral: #ff6a4d; --mint: #12a57d; --amber: #f2a922; --red: #d6455d;
  --c0: #5b45e0; --c1: #ff6a4d; --c2: #12a57d; --c3: #e09a12; --c4: #2b8fd6; --c5: #c2459b;
  --r: 14px; --shadow: 0 1px 2px rgba(29,24,56,.06), 0 8px 24px rgba(29,24,56,.08);
  --f-head: "Fraunces", Georgia, serif; --f-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 16px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); } h2 { font-size: 1.45rem; margin-top: 1.6em; } h3 { font-size: 1.12rem; }
a { color: var(--brand); }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .85em; } .fine { font-size: .82rem; color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.center { text-align: center; } .right { text-align: right; } .grow { flex: 1; }
.inline { display: inline; } h3.inline { display: inline; margin: 0; }
main { min-height: 70vh; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: var(--brand-ink); font: 600 .95rem var(--f-body);
  padding: .7em 1.2em; border-radius: 999px; text-decoration: none; box-shadow: 0 2px 0 rgba(0,0,0,.12), 0 6px 16px rgba(91,69,224,.28);
  transition: transform .12s, box-shadow .12s, opacity .12s; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.big { font-size: 1.05rem; padding: .85em 1.5em; } .btn.small { font-size: .85rem; padding: .45em .9em; }
.btn.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.block { width: 100%; }
.btn.light.ghost { color: #fff; }
.link { background: none; border: 0; color: var(--brand); cursor: pointer; font: inherit; padding: .2em .35em; }
.link.danger { color: var(--red); } .link:disabled { opacity: .3; cursor: default; }

/* cabecera */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 24px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5em; font: 700 1.15rem var(--f-head); color: var(--ink); text-decoration: none; }
.brand.light { color: #fff; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--brand) 0 33%, var(--coral) 0 66%, var(--mint) 0); box-shadow: 0 0 0 3px rgba(91,69,224,.15); }
.top nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.top nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.top nav a.btn { color: #fff; }
.langs a { font-size: .8rem; padding: .15em .45em; border-radius: 6px; color: var(--muted) !important; }
.langs a.on { background: var(--ink); color: #fff !important; }
.foot { display: flex; gap: 1.5rem; justify-content: center; padding: 32px 16px; color: var(--muted); font-size: .9rem; }
.foot a { color: var(--muted); }
.flashes { max-width: 760px; margin: 8px auto 0; padding: 0 16px; }
.flash { padding: .7em 1em; border-radius: 10px; margin-bottom: 8px; background: #fff; box-shadow: var(--shadow); border-left: 4px solid var(--brand); }
.flash.error { border-left-color: var(--red); } .flash.ok { border-left-color: var(--mint); }

/* contenedores */
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px 24px 40px; }
.narrow { max-width: 620px; margin: 24px auto; padding: 0 16px; }
.card { background: var(--card); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.panel { background: var(--card); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.panel.hl { border-left: 4px solid var(--coral); }
.row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; margin: 0; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: rgba(255,255,255,.6); border: 1.5px dashed var(--line); border-radius: var(--r); }

/* formularios */
.form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .93rem; color: var(--ink-2); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: .6em .75em; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
textarea { resize: vertical; }
label.check, label.radio { display: flex; gap: .6em; align-items: flex-start; font-weight: 400; }
label.check input, label.radio input { width: auto; margin-top: .25em; accent-color: var(--brand); }
.inline-label { display: flex; align-items: center; gap: .6em; margin: 10px 0; } .inline-label input { width: 90px; }
.hint { color: var(--muted); font-size: .9rem; }

/* portada */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 40px 24px 32px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--coral); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.hero-demo { position: relative; min-height: 380px; }
.phone { position: absolute; right: 8%; top: 0; width: 250px; background: #fff; border-radius: 30px; padding: 22px 16px; box-shadow: 0 30px 60px rgba(29,24,56,.25); border: 8px solid #1d1838; z-index: 2; transform: rotate(3deg); }
.ph-top { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); font-weight: 600; }
.ph-top .timer { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 .55em; }
.ph-q { font-weight: 600; font-size: .92rem; margin: 12px 0; }
.ph-opt { border-radius: 10px; padding: .55em .7em; font-size: .82rem; margin-bottom: 7px; color: #fff; }
.ph-opt.ok { background: var(--mint); } .ph-opt.bad { background: #cfc9dc; color: var(--ink-2); }
.ph-fb { font-size: .76rem; background: #f4f1ff; border-radius: 10px; padding: .6em; color: var(--ink-2); }
.screen { position: absolute; left: 0; top: 90px; width: 330px; background: linear-gradient(160deg, #2a2156, #17122f); border-radius: 18px; padding: 18px; color: #fff; box-shadow: 0 20px 50px rgba(29,24,56,.3); transform: rotate(-2deg); }
.sc-code { font-size: .8rem; opacity: .8; } .sc-code b { font-size: 1.2rem; opacity: 1; letter-spacing: .08em; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 130px; margin: 16px 0 12px; }
.bar { flex: 1; height: var(--h); background: rgba(255,255,255,.25); border-radius: 8px 8px 3px 3px; position: relative; }
.bar.ok { background: linear-gradient(180deg, #3fe0b0, var(--mint)); }
.bar span { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: .75rem; opacity: .8; }
.sc-note { font-size: .74rem; background: rgba(255,106,77,.18); border-left: 3px solid var(--coral); padding: .5em .6em; border-radius: 6px; margin-top: 24px; }
.steps, .diff, .plans { max-width: 1120px; margin: 0 auto; padding: 24px; }
.steps li, .pill-card, .plan { background: var(--card); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .9rem var(--f-body); margin-right: .5em; }
.steps .num { margin-bottom: 12px; }
.pill-card h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--coral); margin-right: .5em; }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan.feat { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.plan ul { padding-left: 1.1em; margin: 0 0 auto; color: var(--ink-2); }
.plan .for { color: var(--muted); margin: 0; }
.wait { display: grid; gap: 8px; }

/* panel */
.usage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.u { background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); display: grid; }
.u-n { font: 700 1.6rem var(--f-head); } .u-n small { font-size: .9rem; color: var(--muted); }
.u-l { color: var(--muted); font-size: .85rem; }
.games { display: grid; gap: 12px; }
.game { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--card); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); flex-wrap: wrap; }
.game h3 { margin: .3em 0 .1em; } .game h3 a { color: var(--ink); text-decoration: none; }
.game p { margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2em .6em; border-radius: 999px; background: #ece8f7; color: var(--ink-2); }
.tag.publicado { background: #d9f5ec; color: #0b6e53; } .tag.borrador { background: #fff0d6; color: #8a5a00; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fbfaf7; }
.tbl th.right, .tbl td.right { text-align: right; }
.tbl td a { margin-left: .8em; }
.arch { margin-top: 24px; } .arch summary { cursor: pointer; color: var(--muted); }
.arch-row { padding: 8px 0; border-bottom: 1px solid var(--line); align-items: center; }

/* asistente */
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 10px 0 18px; }
.progress-bar { height: 100%; width: 12%; background: linear-gradient(90deg, var(--brand), var(--coral)); transition: width .3s; }
.wizard fieldset { border: 0; background: var(--card); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); margin: 0; display: grid; gap: 14px; }
.wizard legend { font: 700 1.2rem var(--f-head); padding: 0; margin-bottom: 4px; display: flex; align-items: center; float: left; width: 100%; }
.wizard.js fieldset { display: none; } .wizard.js fieldset.on { display: grid; }
.wizard:not(.js) .wiz-nav #prev, .wizard:not(.js) .wiz-nav #next { display: none; }
.wiz-nav { display: flex; justify-content: space-between; gap: 10px; }
.bloom { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chip { display: block; } .chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: grid; gap: 2px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; transition: all .12s; }
.chip small { color: var(--muted); font-weight: 400; }
.chip input:checked + span { border-color: var(--brand); background: #f1edff; box-shadow: 0 0 0 3px rgba(91,69,224,.12); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); }

/* editor */
.ed-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; margin-top: 16px; align-items: start; }
.ed-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; }
.ed-side .panel label { margin-bottom: 10px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.checks li { padding: .45em .6em; border-radius: 8px; }
.checks li.err { background: #fde8ec; color: #8f1d33; } .checks li.warn { background: #fff4dc; color: #7a5300; }
.checks li.go { cursor: pointer; } .checks li.go:hover { filter: brightness(.96); }
.ok-line { color: var(--mint); font-weight: 600; margin: 0; }
.est-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin-bottom: 6px; }
.q-card { background: var(--card); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px; display: grid; gap: 12px; border-left: 5px solid #ddd8ea; }
.q-card.approved { border-left-color: var(--mint); } .q-card.has-err { border-left-color: var(--red); }
.q-card.verify { background: linear-gradient(0deg, #fffaf0, #fffaf0); box-shadow: 0 0 0 2px var(--amber), var(--shadow); }
.q-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.q-head select { width: auto; padding: .35em .5em; font-size: .85rem; }
.q-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 700; }
.q-text { font-weight: 600; }
.ops { display: grid; gap: 8px; }
.op { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; padding: 8px; border-radius: 12px; background: #faf9f6; }
.op.is-ok { background: #e7f7f1; }
.op-ok { padding-top: .55em; } .op-ok input { width: 18px; height: 18px; accent-color: var(--mint); }
.op-body { display: grid; gap: 6px; } .op-err { font-size: .85rem; background: #fff; border-style: dashed; }
.q-foot { display: flex; gap: 20px; justify-content: flex-end; flex-wrap: wrap; }
.verify-chk span { color: #8a5a00; } .approve-chk span { color: #0b6e53; font-weight: 600; }
.danger-zone { margin-top: 30px; color: var(--muted); } .danger-zone summary { cursor: pointer; }

/* reporte */
.est-bars { display: grid; gap: 10px; background: var(--card); padding: 18px; border-radius: var(--r); box-shadow: var(--shadow); }
.eb { display: grid; grid-template-columns: minmax(120px, 240px) 1fr 60px; gap: 12px; align-items: center; }
.eb-track { height: 12px; background: #efebe4; border-radius: 999px; overflow: hidden; }
.eb-track i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), #3fe0b0); border-radius: 999px; }
.eb-track i.low { background: linear-gradient(90deg, var(--red), var(--coral)); }
.eb-pct { text-align: right; font-weight: 700; } .low-txt { color: var(--red); font-weight: 700; }

/* jugar: código */
.code-in { font-size: 2rem; text-align: center; letter-spacing: .25em; padding: .5em; }

/* ======== pantalla del anfitrión ======== */
body.stage { background: radial-gradient(1200px 700px at 20% -10%, #3b2d86 0%, #1a1438 55%, #110d24 100%); color: #fff; min-height: 100vh; }
.host { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.host-bar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; flex-wrap: wrap; }
.h-title { font: 600 1rem var(--f-body); opacity: .75; flex: 1; }
.h-code { background: rgba(255,255,255,.1); padding: .3em .8em; border-radius: 999px; }
.h-code b { font-size: 1.15rem; } .h-count { opacity: .75; }
.host-body { padding: 10px 4vw; display: grid; align-content: center; }
.host-body.paused { filter: saturate(.4) brightness(.8); }
.host-ctrl { display: flex; gap: 12px; padding: 16px 24px; align-items: center; background: rgba(0,0,0,.2); flex-wrap: wrap; }
.lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5vw; align-items: center; }
.join-box { text-align: center; }
.big-label { font: 600 1.4rem var(--f-body); opacity: .85; }
.code-xl { font: 800 clamp(4rem, 10vw, 8rem) ui-monospace, Menlo, monospace; letter-spacing: .08em; line-height: 1; margin: 10px 0; text-shadow: 0 6px 30px rgba(124,92,255,.6); }
.join-url { opacity: .7; word-break: break-all; }
.qr { width: min(240px, 60%); background: #fff; padding: 12px; border-radius: 16px; margin-top: 10px; }
.lobby-people h2 { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-p { background: rgba(255,255,255,.12); padding: .35em .8em; border-radius: 999px; font-weight: 600; animation: pop .3s ease-out; }
.chip-p.lit { background: var(--mint); } .chip-p.off { opacity: .4; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qview { display: grid; gap: 18px; max-width: 1300px; width: 100%; margin: 0 auto; }
.q-meta { display: flex; align-items: center; gap: 16px; opacity: .9; }
.q-est { background: var(--coral); padding: .2em .8em; border-radius: 999px; font-weight: 700; }
.timer-ring { --p: 100; margin-left: auto; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--brand-2) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); position: relative; }
.timer-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #1d1640; }
.timer-ring span { position: relative; font: 800 1.6rem var(--f-body); }
.timer-ring.low { background: conic-gradient(var(--coral) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.timer-ring.done { opacity: .35; }
.q-ctx { background: rgba(255,255,255,.08); border-left: 4px solid var(--amber); padding: 14px 18px; border-radius: 10px; font-size: 1.15rem; }
.q-big { font-size: clamp(1.8rem, 3.4vw, 3rem); margin: 0; }
.opts-host { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.opt-h { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 16px; font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 600; background: var(--cc); box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: opacity .3s, transform .3s; }
.opt-h b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.22); flex: none; position: relative; }
.opt-h span { position: relative; flex: 1; }
.opt-h .bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(255,255,255,.22); transition: width .8s ease-out; }
.opt-h .pct { position: relative; font-style: normal; font-size: .9em; opacity: .9; }
.opt-h.is-wrong { opacity: .45; } .opt-h.is-right { box-shadow: 0 0 0 4px #fff, 0 6px 0 rgba(0,0,0,.25); transform: scale(1.02); }
.c0 { --cc: var(--c0); } .c1 { --cc: var(--c1); } .c2 { --cc: var(--c2); } .c3 { --cc: var(--c3); } .c4 { --cc: var(--c4); } .c5 { --cc: var(--c5); }
.answered { display: grid; gap: 10px; } .answered #n-resp { font-weight: 700; font-size: 1.1rem; }
.reveal-fb { background: rgba(255,255,255,.1); border-radius: 14px; padding: 16px 20px; font-size: 1.15rem; }
.reveal-fb .err-comun { border-left: 4px solid var(--coral); padding-left: 12px; }
.reveal-fb .muted { color: rgba(255,255,255,.7); }
.board { max-width: 800px; margin: 0 auto; width: 100%; text-align: center; }
.board h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.rank { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; text-align: left; }
.rank li { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; background: rgba(255,255,255,.1); padding: 12px 18px; border-radius: 12px; font-size: 1.2rem; }
.rank .pos { font-weight: 800; opacity: .7; } .rank .pts { font-weight: 800; }
.rank.small li { font-size: 1rem; padding: 8px 12px; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; margin: 10px 0 30px; }
.pod { display: grid; justify-items: center; gap: 4px; width: 180px; }
.pod-name { font-weight: 700; font-size: 1.2rem; } .pod-score { opacity: .8; }
.pod-step { width: 100%; display: grid; place-items: center; font: 800 2.4rem var(--f-head); border-radius: 14px 14px 4px 4px; }
.pod.p1 .pod-step { height: 160px; background: linear-gradient(180deg, #ffd35a, #e09a12); color: #3b2a00; }
.pod.p2 .pod-step { height: 115px; background: linear-gradient(180deg, #e4e2ef, #a9a5c0); color: #2a2640; }
.pod.p3 .pod-step { height: 85px; background: linear-gradient(180deg, #f2a77a, #c46a3b); color: #3b1c08; }
body.stage .muted { color: rgba(255,255,255,.65); }

/* ======== celular del jugador ======== */
body.player { background: linear-gradient(180deg, #f1edff 0%, var(--paper) 40%); min-height: 100vh; }
.play { max-width: 520px; margin: 0 auto; min-height: 100vh; display: grid; grid-template-rows: auto auto 1fr; }
.p-bar { display: flex; justify-content: space-between; padding: 14px 16px; font-weight: 700; }
.p-score { background: var(--ink); color: #fff; padding: .2em .8em; border-radius: 999px; }
.off-banner { display: none; background: var(--amber); color: #3b2a00; text-align: center; padding: 6px; font-weight: 600; }
.off-banner.on { display: block; }
.p-body { padding: 8px 16px 24px; }
.p-body.paused { filter: grayscale(.6); pointer-events: none; }
.p-join { display: grid; gap: 14px; margin-top: 10vh; text-align: center; }
.p-join input { font-size: 1.3rem; text-align: center; padding: .7em; }
.p-err { color: var(--red); min-height: 1.2em; margin: 0; }
.p-wait { text-align: center; margin-top: 14vh; display: grid; justify-items: center; gap: 10px; }
.pulse { width: 70px; height: 70px; border-radius: 50%; background: var(--brand); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(91,69,224,.5); } 70% { box-shadow: 0 0 0 30px rgba(91,69,224,0); } 100% { box-shadow: 0 0 0 0 rgba(91,69,224,0); } }
.sent { width: 80px; height: 80px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 2.4rem; }
.p-q { display: grid; gap: 12px; }
.p-q h2 { margin: 0; font-size: 1.35rem; }
.p-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .85rem; font-weight: 600; }
.p-timer { height: 8px; background: #e4def3; border-radius: 999px; overflow: hidden; }
.p-timer i { display: block; height: 100%; width: 100%; background: var(--brand); border-radius: 999px; }
.p-timer i.low { background: var(--coral); }
.p-q .q-ctx { background: #fff; border-left: 4px solid var(--amber); font-size: 1rem; padding: 12px; color: var(--ink); }
.opts-p { display: grid; gap: 10px; }
.opt-p { display: flex; align-items: center; gap: 12px; text-align: left; border: 0; border-radius: 14px; padding: 16px; font: 600 1.05rem var(--f-body); color: #fff; background: var(--cc); box-shadow: 0 5px 0 rgba(0,0,0,.2); cursor: pointer; transition: transform .1s; }
.opt-p:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.opt-p b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.25); flex: none; }
.opt-p.sel { outline: 4px solid var(--ink); outline-offset: 2px; }
.p-res { text-align: center; display: grid; gap: 10px; margin-top: 6vh; }
.res-badge { font: 800 2rem var(--f-head); padding: 20px; border-radius: 20px; color: #fff; }
.p-res.good .res-badge { background: linear-gradient(160deg, #3fe0b0, var(--mint)); }
.p-res.bad .res-badge { background: linear-gradient(160deg, #ff8f73, var(--red)); }
.p-res.none .res-badge { background: #8b86a3; }
.res-pts { font: 800 1.6rem var(--f-body); color: var(--mint); margin: 0; }
.res-streak { font-weight: 700; color: var(--coral); }
.res-right { background: #e7f7f1; padding: 10px; border-radius: 12px; }
.res-fb { background: #fff; padding: 14px; border-radius: 14px; text-align: left; box-shadow: var(--shadow); }
.p-board { text-align: center; margin-top: 4vh; }
.my-pos { display: grid; gap: 2px; margin: 10px 0 20px; }
.big-num { font: 800 3.4rem var(--f-head); color: var(--brand); }
.p-board .rank li { background: #fff; box-shadow: var(--shadow); color: var(--ink); }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; } .hero-demo { min-height: 360px; }
  .cards3 { grid-template-columns: 1fr; } .grid2 { grid-template-columns: 1fr; }
  .ed-grid { grid-template-columns: 1fr; } .ed-side { position: static; max-height: none; }
  .usage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby { grid-template-columns: 1fr; } .opts-host { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .top { padding: 12px 16px; } .wrap { padding: 12px 16px 32px; } .card { padding: 22px; }
  .bloom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phone { right: 0; width: 210px; } .screen { width: 260px; }
  .eb { grid-template-columns: 1fr 50px; } .eb-track { grid-column: 1 / -1; grid-row: 2; }
  .tbl th, .tbl td { padding: 8px; font-size: .9rem; }
}
@media print {
  .top, .foot, .actions, .flashes { display: none !important; }
  body { background: #fff; } .tbl, .panel, .u, .est-bars { box-shadow: none; border: 1px solid #ddd; }
}

/* ======== robot, guía, recursos ======== */
.robot { flex: none; filter: drop-shadow(0 4px 10px rgba(46,230,255,.25)); }
.brand .brand-bot { margin-right: -2px; }
.hero-bot { margin-bottom: 6px; }
.guide-cta { max-width: 1120px; margin: 8px auto 0; padding: 0 24px; }
.gc-in { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; background: linear-gradient(120deg, #ffffff, #f1edff); border-radius: 22px; padding: 26px 30px; box-shadow: var(--shadow); }
.gc-in h2 { margin-top: 0; }
.gc-cover, .rc-cover { aspect-ratio: 210/297; border-radius: 12px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; color: #fff;
  background: radial-gradient(120px 120px at 85% 10%, #7c5cff, transparent 70%), radial-gradient(120px 110px at 0 100%, #ff6a4d, transparent 70%), linear-gradient(160deg, #2a2156, #140f2c);
  box-shadow: 0 14px 30px rgba(29,24,56,.3); transform: rotate(-3deg); }
.gc-cover b, .rc-cover b { font: 800 1.45rem/1.05 var(--f-head); }
.gc-cover small, .rc-cover small { color: #d7d1f7; }
.gc-k, .rc-cover span { font: 700 .66rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: #ffb4a3; margin-bottom: auto; }
.pill-card.wide { margin-bottom: 16px; }
.nar-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nar-chip { display: grid; padding: 8px 12px; border-radius: 12px; color: #fff; background: var(--nar-bg, #2a2156); }
.nar-chip small { opacity: .8; font-size: .75rem; }
.kit-banner { display: flex; align-items: center; gap: 16px; margin: 6px 0 4px; padding: 14px 20px; border-radius: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(120deg, #2a2156, #3b2d86); box-shadow: var(--shadow); }
.kit-banner span { display: grid; flex: 1; } .kit-banner small { color: #d7d1f7; } .kit-banner .go { flex: none; font-size: 1.4rem; }
.empty .robot { display: block; margin: 0 auto 8px; }
.rc-head { display: flex; align-items: center; gap: 18px; margin: 10px 0 20px; }
.rc-head h1 { margin-bottom: .1em; }
.rc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rc-card { display: grid; grid-template-columns: 150px 1fr; gap: 22px; background: var(--card); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); align-items: start; }
.rc-cover.free { background: radial-gradient(110px 110px at 85% 10%, #3fe0b0, transparent 70%), linear-gradient(160deg, #0f5c4a, #0b2f28); }
.rc-cover b { font-size: 1.15rem; }
.rc-list { padding-left: 1.1em; color: var(--ink-2); font-size: .93rem; }
.rc-lock { font-weight: 600; color: var(--brand); }

/* asistente: elegir narrativa */
.nar-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nar-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nar-opt span { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border-radius: 12px; cursor: pointer; color: #fff; background: var(--nar-bg, #2a2156); opacity: .78; transition: all .15s; border: 3px solid transparent; }
.nar-opt small { opacity: .85; font-weight: 400; } .nar-opt em { font-style: normal; font-size: .8rem; opacity: .85; font-weight: 400; margin-top: 4px; }
.nar-opt input:checked + span { opacity: 1; border-color: var(--nar-acc, #fff); box-shadow: 0 0 0 3px rgba(91,69,224,.35); }
.nar-opt.t-base span { background: #fff; color: var(--ink); border-color: var(--line); }
.nar-opt.t-base input:checked + span { border-color: var(--brand); }

/* sala: narrativa */
.nar-intro { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.nar-intro h2 { margin: .1em 0 .3em; }
.nar-gen { font: 700 .75rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--nar-acc, #ffb4a3); }
.nar-rol { font-weight: 700; color: var(--nar-acc, #ffd35a); }
.bot-wrap { animation: flota 3s ease-in-out infinite; }
@keyframes flota { 50% { transform: translateY(-8px); } }
.nar-card { background: #fff; border-radius: 14px; padding: 14px; text-align: left; box-shadow: var(--shadow); max-width: 420px; }
.nar-card p { margin: .4em 0 0; font-size: .95rem; }
.nar-card .nar-rol { color: var(--ink); }

/* temas de narrativa: fondo de la sala y acento */
.t-vigilancia, body.nar-vigilancia { --nar-bg: linear-gradient(160deg, #3a3a3a, #121212); --nar-acc: #ff4d4d; }
.t-algoritmo, body.nar-algoritmo { --nar-bg: linear-gradient(160deg, #0d3b4f, #06141c); --nar-acc: #2ee6ff; }
.t-distritos, body.nar-distritos { --nar-bg: linear-gradient(160deg, #5a3a1a, #1d120a); --nar-acc: #ffb347; }
.t-orbital, body.nar-orbital { --nar-bg: linear-gradient(160deg, #1b2a6b, #070b24); --nar-acc: #8fd3ff; }
.t-detective, body.nar-detective { --nar-bg: linear-gradient(160deg, #3b2f25, #110d0a); --nar-acc: #e8c27a; }
.t-expedicion, body.nar-expedicion { --nar-bg: linear-gradient(160deg, #2f5a2a, #0f1f0d); --nar-acc: #e9d38a; }
.t-audiencia, body.nar-audiencia { --nar-bg: linear-gradient(160deg, #4a1f2a, #170a0e); --nar-acc: #e3b85a; }
body.stage:not(.nar-base) { background: var(--nar-bg); }
body.stage:not(.nar-base) .q-est { background: var(--nar-acc); color: #111; }
body.stage.nar-vigilancia { background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px), var(--nar-bg); }
body.player:not(.nar-base) .p-bar { background: var(--nar-bg); color: #fff; }
body.player:not(.nar-base) .p-score { background: var(--nar-acc); color: #111; }
body.player:not(.nar-base) .nar-card { border-left: 5px solid var(--nar-acc); }

@media (max-width: 900px) {
  .gc-in { grid-template-columns: 1fr; } .gc-cover { max-width: 170px; }
  .rc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .rc-card { grid-template-columns: 1fr; } .rc-cover { max-width: 150px; }
  .nar-pick { grid-template-columns: 1fr; }
}
