:root {
  --cobalt: #2437e5;
  --cobalt-deep: #1a2ab3;
  --ink: #0f1330;
  --paper: #f5f6ff;
  --white: #ffffff;
  --sun: #ffd23f;
  --mist: #e3e6ff;
  --soft: #9aa5f5;
  --line: rgba(15, 19, 48, 0.14);
  --danger: #c2273d;
  --focus: var(--cobalt);
  --font: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
body.dark { background: var(--cobalt); color: var(--white); --focus: var(--sun); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
a { color: inherit; }

/* Botones */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 0.8em 1.2em;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-primary:hover { background: var(--cobalt-deep); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffc61a; }
.btn-line { background: transparent; border: 1.5px solid var(--line); }
.btn-line:hover { background: var(--mist); }
.btn-danger { background: transparent; border: 1.5px solid var(--line); color: var(--danger); }
.btn-danger:hover { background: #fde8eb; }

/* Campos */
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea, .field select, .codebox {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 7rem; }
.muted { color: rgba(15, 19, 48, 0.62); }
.error { color: var(--danger); font-weight: 600; margin-top: 0.6rem; }

/* Resultados (compartido) */
.bars .row { margin-top: 1.1rem; }
.bars .head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-bottom: 0.35rem; }
.bars .label { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.bars .pct { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars .track { height: 26px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.bars .fill { height: 100%; width: 0; border-radius: 999px; background: var(--soft); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bars .row.lead .fill { background: var(--cobalt); }
.bars .row.mine .label::after { content: ' (tu voto)'; font-weight: 500; opacity: 0.75; }
.dark .bars .track { background: rgba(255, 255, 255, 0.16); }
.dark .bars .fill { background: rgba(255, 255, 255, 0.9); }
.dark .bars .row.lead .fill { background: var(--sun); }

.cloud { display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; align-items: center; }
.cloud .w { font-weight: 800; line-height: 1.05; white-space: nowrap; max-width: 100%; }
.cloud .c0 { color: var(--cobalt); }
.cloud .c1 { color: var(--ink); }
.cloud .c2 { color: var(--cobalt-deep); }
.cloud .c3 { color: #6c7bf0; }
.dark .cloud .c0 { color: var(--white); }
.dark .cloud .c1 { color: var(--sun); }
.dark .cloud .c2 { color: var(--mist); }
.dark .cloud .c3 { color: var(--soft); }

/* Inicio */
.landing {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.brand { font-weight: 800; letter-spacing: -0.01em; font-size: 1.15rem; }
.pitch .brand { margin-bottom: 2rem; }
.pitch h1 { font-size: clamp(2.5rem, 6.2vw, 4.8rem); font-weight: 800; max-width: 13ch; }
.pitch .sub { margin-top: 1.4rem; font-size: 1.2rem; max-width: 34ch; opacity: 0.92; }
.demo { margin-top: 2.4rem; max-width: 30rem; }
.demo .row { margin-top: 1rem; }
.demo .head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.3rem; }
.demo .track { height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.demo .fill { height: 100%; width: var(--w); border-radius: 999px; background: rgba(255, 255, 255, 0.9); animation: grow 1.1s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.demo .lead .fill { background: var(--sun); }
.demo .w62 { --w: 62%; } .demo .w28 { --w: 28%; } .demo .w10 { --w: 10%; }
@keyframes grow { from { width: 0; } to { width: var(--w); } }

.entry { background: var(--white); color: var(--ink); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2rem); --focus: var(--cobalt); }
.entry label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.entry .codebox { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; text-align: center; margin-bottom: 0.9rem; }
.entry .btn { width: 100%; }
.entry .or { margin: 1.6rem 0 0.8rem; text-align: center; color: rgba(15, 19, 48, 0.62); }

/* Participante */
.stage { max-width: 560px; margin: 0 auto; padding: 1.5rem 1.25rem 6rem; min-height: 100vh; }
.stage .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.stage h1 { font-size: clamp(1.7rem, 6.4vw, 2.4rem); font-weight: 800; margin-bottom: 1.5rem; overflow-wrap: anywhere; }
.opt {
  display: block; width: 100%; text-align: left; margin-bottom: 0.75rem;
  padding: 1rem 1.1rem; border-radius: 16px; border: 3px solid transparent;
  background: var(--white); color: var(--ink); font-weight: 600; font-size: 1.1rem;
  cursor: pointer; transition: transform 0.12s ease, background 0.12s ease;
}
.opt:active { transform: scale(0.99); }
.opt[disabled] { cursor: default; }
.opt[disabled]:not(.chosen) { opacity: 0.55; }
.opt.chosen { background: var(--sun); border-color: var(--sun); }
.say { margin-top: 1.2rem; font-size: 1.1rem; }
.wait { display: flex; gap: 0.9rem; align-items: center; margin-top: 4rem; font-size: 1.5rem; font-weight: 700; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sun); flex: none; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.5); opacity: 0.55; } }
.wordform { display: flex; gap: 0.6rem; }
.wordform input { flex: 1; min-width: 0; border: 0; border-radius: 14px; padding: 0.95rem 1rem; font-size: 1.1rem; background: var(--white); color: var(--ink); }
.foot { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.25rem; background: var(--cobalt-deep); font-size: 0.9rem; }
.notice { position: fixed; left: 50%; bottom: 3.8rem; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 0.6rem 1rem; border-radius: 10px; font-weight: 600; max-width: 90vw; }

/* Pantalla de proyección */
.screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(1.5rem, 4vw, 4rem); min-height: 100vh; padding: clamp(1.5rem, 4vw, 4rem); }
.screen h1 { font-size: clamp(2rem, 4.6vw, 4.2rem); font-weight: 800; max-width: 22ch; overflow-wrap: anywhere; }
.screen .meta { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.pill { padding: 0.2rem 0.8rem; border-radius: 999px; font-weight: 700; background: rgba(255, 255, 255, 0.16); }
.pill.open { background: var(--sun); color: var(--ink); }
.screen .bars .label { font-size: clamp(1.1rem, 2vw, 1.9rem); }
.screen .bars .pct { font-size: clamp(1rem, 1.8vw, 1.7rem); }
.screen .bars .track { height: clamp(22px, 3.2vw, 40px); }
.screen .cloud { margin-top: 2rem; }
.joincard { background: var(--white); color: var(--ink); border-radius: 22px; padding: 1.2rem; text-align: center; align-self: start; position: sticky; top: 2rem; }
.joincard img { width: 100%; height: auto; display: block; }
.joincard .ask { font-weight: 600; margin-top: 0.6rem; }
.joincard .url { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.joincard .code { font-size: 2rem; font-weight: 800; letter-spacing: 0.12em; margin-top: 0.4rem; }

/* Presentador */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 0.9rem clamp(1rem, 3vw, 2rem); background: var(--white); border-bottom: 1px solid var(--line); }
.bar .left { display: flex; align-items: baseline; gap: 1.2rem; }
.bar .right { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.bar .joinurl { width: 15rem; padding: 0.6rem 0.7rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--paper); }
.grid { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.5rem; max-width: 1300px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; }
.panel h2 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.stack { display: grid; gap: 1.5rem; }
.alist button { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-left: 4px solid transparent; border-radius: 8px; padding: 0.7rem 0.8rem; cursor: pointer; }
.alist button:hover { background: var(--paper); }
.alist button.on { border-left-color: var(--cobalt); background: var(--mist); }
.alist .q { display: block; font-weight: 600; overflow-wrap: anywhere; }
.alist .m { display: block; font-size: 0.85rem; margin-top: 0.15rem; color: rgba(15, 19, 48, 0.62); }
#examples { margin-top: 1rem; width: 100%; }
.now-head { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.now h2 { font-size: 1.6rem; margin-bottom: 0.4rem; overflow-wrap: anywhere; }
.chip { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: #ececf1; color: #4a4a58; }
.chip.open { background: #d9f7e4; color: #0b6b33; }
.now .results { margin: 1.2rem 0; }
.now .cloud .w { font-size: 1.1rem; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.denied { max-width: 520px; margin: 4rem auto; padding: 0 1.25rem; }
.denied h1 { font-size: 2rem; margin-bottom: 0.8rem; }

@media (max-width: 860px) {
  .landing { grid-template-columns: 1fr; min-height: 0; }
  .screen { grid-template-columns: 1fr; }
  .joincard { position: static; max-width: 300px; }
  .grid { grid-template-columns: 1fr; }
  .bar .joinurl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .dot, .demo .fill { animation: none; }
  .bars .fill, .opt, .btn { transition: none; }
}
.gap { margin-top: 1.2rem; }

/* Dona, asistencia */
.donutwrap { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.donut { width: min(260px, 60vw); flex: none; }
.donut circle { stroke: var(--c); }
.donut .bg { stroke: var(--mist); }
.dark .donut .bg { stroke: rgba(255, 255, 255, 0.16); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-weight: 600; }
.legend li { display: flex; gap: 0.6rem; align-items: center; }
.sw { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; }
.s0 { --c: #2437e5; } .s1 { --c: #ffd23f; } .s2 { --c: #ff6b6b; } .s3 { --c: #2ec4b6; } .s4 { --c: #9b5de5; } .s5 { --c: #6c7bf0; }
.dark .s0 { --c: #ffffff; }
.screen .donut { width: min(380px, 30vw); }
.screen .legend { font-size: clamp(1rem, 1.8vw, 1.6rem); }
.attend { font-size: clamp(6rem, 18vw, 14rem); font-weight: 800; line-height: 1; margin-top: 1rem; }
.bigbtn { width: 100%; font-size: 1.4rem; padding: 1.2rem; border-radius: 16px; }

/* Asistencia con nombre */
.nameinput { width: 100%; border: 0; border-radius: 14px; padding: 1rem; font-size: 1.1rem; margin-bottom: 0.8rem; background: var(--white); color: var(--ink); }
.names { margin: 1rem 0; }
.names h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.names ul { margin: 0 0 0.8rem; padding-left: 1.2rem; columns: 2; }

/* Preguntas del público (Q&A) */
.qa .qitem { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.dark .qa .qitem { border-bottom-color: rgba(255, 255, 255, 0.18); }
.qitem.done .qtext { opacity: 0.55; text-decoration: line-through; }
.qv { min-width: 2.2rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.qtext { flex: 1; overflow-wrap: anywhere; font-weight: 600; }
.qact { display: flex; gap: 0.4rem; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.sm { padding: 0.4rem 0.7rem; font-size: 0.85rem; }
.tag { font-size: 0.8rem; font-weight: 700; margin-left: 0.5rem; padding: 0.1rem 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.2); text-decoration: none; display: inline-block; }
.upv { border: 0; border-radius: 10px; padding: 0.5rem 0.7rem; font-weight: 700; cursor: pointer; background: var(--white); color: var(--ink); flex: none; }
.upv.on { background: var(--sun); }
.upv[disabled] { opacity: 0.5; cursor: default; }
.screenqa .qitem { font-size: clamp(1.1rem, 2.1vw, 2rem); }
.wordform + .qa { margin-top: 0.9rem; }

/* Radar y contenido */
.radar { width: min(460px, 100%); display: block; margin: 0.5rem 0; color: var(--ink); }
.dark .radar { color: var(--white); }
.radar .rgrid, .radar .raxis { fill: none; stroke: var(--line); stroke-width: 0.4; }
.dark .radar .rgrid, .dark .radar .raxis { stroke: rgba(255, 255, 255, 0.3); }
.radar .rdata { fill: rgba(36, 55, 229, 0.35); stroke: var(--cobalt); stroke-width: 1.2; }
.dark .radar .rdata { fill: rgba(255, 210, 63, 0.35); stroke: var(--sun); }
.radar text { font-size: 5px; fill: currentColor; }
.body { white-space: pre-wrap; font-size: 1.15rem; line-height: 1.5; overflow-wrap: anywhere; }
.screen .body { font-size: clamp(1.3rem, 2.6vw, 2.6rem); margin-top: 1.4rem; max-width: 30ch; }
.rate { margin-bottom: 1.1rem; }
.rlabel { font-weight: 700; margin-bottom: 0.4rem; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; }
.scale button { border: 0; border-radius: 10px; padding: 0.75rem 0; font-weight: 700; font-size: 1rem; background: var(--white); color: var(--ink); cursor: pointer; }
.scale button.on { background: var(--sun); }
.radar text { font-size: 5.6px; }
.screen .radar { width: min(640px, 100%); }

/* Competencias */
.clock { font-size: 2.4rem; font-weight: 800; margin: 0.2rem 0 1rem; font-variant-numeric: tabular-nums; }
.screen .clock { font-size: clamp(3rem, 8vw, 7rem); }
.verdict { font-size: 1.3rem; font-weight: 800; margin: 0.8rem 0; }
.stage h2 { margin-top: 1.2rem; }
.ranking { margin-top: 0.5rem; }
.rk { display: flex; gap: 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.dark .rk { border-bottom-color: rgba(255, 255, 255, 0.18); }
.rk .pos { width: 2rem; font-weight: 800; }
.rk .nm { flex: 1; overflow-wrap: anywhere; font-weight: 600; }
.rk .pt { font-weight: 800; font-variant-numeric: tabular-nums; }
.screen .rk { font-size: clamp(1.1rem, 2vw, 1.8rem); }
.optview { background: rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 0.8rem 1.1rem; margin-bottom: 0.6rem; font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.8rem); }
.quizres { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1rem; }
.bars .row.correct .label::before { content: '✓ '; }
.bars .row.correct .fill, .dark .bars .row.correct .fill { background: #2ec4b6; }
@media (max-width: 860px) { .quizres { grid-template-columns: 1fr; } }

.screen h3 { font-size: clamp(1.2rem, 2vw, 1.8rem); margin-bottom: 0.4rem; }

/* Cuentas y administración */
.authwrap { max-width: 440px; margin: 0 auto; padding: 2rem 1.25rem; min-height: 100vh; }
.authwrap .brand { display: block; margin-bottom: 1.5rem; text-decoration: none; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-bottom: 1.2rem; }
.tab { border: 0; border-radius: 10px; padding: 0.7rem; font-weight: 700; cursor: pointer; background: var(--mist); color: var(--ink); }
.tab.on { background: var(--cobalt); color: var(--white); }
.okmsg { color: #0b6b33; font-weight: 600; margin-top: 0.6rem; }
.entry form .btn { width: 100%; }
.page { max-width: 1100px; margin: 0 auto; padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; display: grid; gap: 1.5rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; vertical-align: middle; }
.tbl th { font-weight: 700; white-space: nowrap; }
.dayrow { display: grid; grid-template-columns: 6.5rem 1fr 2rem; gap: 0.6rem; align-items: center; margin: 0.4rem 0; }
.daybar { height: 12px; border-radius: 6px; background: var(--cobalt); }
.dn { font-weight: 700; text-align: right; }
.toprow { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.tn { font-weight: 700; }
.tempbox { background: #fff3cd; color: #5c4400; border-radius: 10px; padding: 0.8rem 1rem; font-weight: 600; overflow-wrap: anywhere; }
.chip.warn { background: #fff3cd; color: #7a5b00; }
.chip.bad { background: #fde8eb; color: var(--danger); }
a.brand { color: inherit; text-decoration: none; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* Marca de la organización */
.orgimg { max-height: 44px; max-width: 180px; width: auto; height: auto; object-fit: contain; background: #fff; padding: 0.35rem 0.7rem; border-radius: 12px; }
.orgname { font-weight: 800; overflow-wrap: anywhere; }
.powered { font-size: 0.75rem; opacity: 0.8; margin-left: auto; }
.stage .top { gap: 0.8rem; }
.topbrand { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin-bottom: 1.4rem; }
.topbrand .orgname { font-size: clamp(1.1rem, 2vw, 1.6rem); }
.topbrand .powered { margin-left: 0; }
.screen .orgimg { max-height: clamp(72px, 9vw, 112px); max-width: clamp(160px, 20vw, 340px); padding: 0.45rem 0.9rem; border-radius: 16px; }
.screen .topbrand { gap: 1rem 1.6rem; margin-bottom: 1.8rem; }
.screen .topbrand .orgname { font-size: clamp(1.7rem, 2.8vw, 2.8rem); }
.screen .topbrand .powered { font-size: clamp(0.9rem, 1.2vw, 1.25rem); }
.brandline { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 0.1rem 0.5rem; }
.byline { font-size: 0.85rem; font-weight: 500; color: rgba(15, 19, 48, 0.62); }
.logorow { display: flex; gap: 1.2rem; align-items: flex-end; flex-wrap: wrap; margin-top: 0.4rem; }
.logoprev { width: 220px; height: 76px; overflow: hidden; display: grid; place-items: center; padding: 0.4rem; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff; }
.logoprev img { display: block; width: auto; height: auto; max-width: 200px; max-height: 64px; object-fit: contain; }
.actions2 { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---- Reportes de eventos ---- */
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.9rem; }
.rtitle { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.3rem 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; display: grid; gap: 0.2rem; }
.kpi strong { font-size: 1.8rem; line-height: 1; color: var(--cobalt); }
.kpi span { font-size: 0.85rem; color: rgba(15, 19, 48, 0.7); }
.act .result { margin-top: 1rem; }
.act .tag, .qrow .tag { display: inline-block; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cobalt); }
.qrow .tag { background: var(--mist); padding: 0.1rem 0.5rem; border-radius: 999px; }
.qrow { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.qrow .qv { font-weight: 800; color: var(--cobalt); min-width: 3.2rem; }
.qrow .qt { flex: 1; min-width: 12rem; }
.names { columns: 3 160px; padding-left: 1.1rem; margin: 0.5rem 0 0; }
.exportopts { max-width: 360px; }
#acts { display: grid; gap: 1.5rem; }
.linechart { width: 100%; height: auto; display: block; color: var(--ink); }
.linechart .lgrid { stroke: var(--line); stroke-width: 1; }
.linechart .ltick { font-size: 11px; fill: currentColor; opacity: 0.7; }
.linechart .lline { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.linechart .lline.l0, .linechart .ldot.l0 { stroke: var(--cobalt); fill: var(--cobalt); }
.linechart .lline.l1, .linechart .ldot.l1 { stroke: #d99a00; fill: #d99a00; }
.linechart .lline { fill: none !important; }
.legend .lg::before { content: ''; width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .lg.l0::before { background: var(--cobalt); }
.legend .lg.l1::before { background: #d99a00; }
@media print {
  .noprint { display: none !important; }
  body { background: #fff; }
  .page { max-width: none; padding: 0; }
  .panel { break-inside: avoid; border: 1px solid #ccc; margin-bottom: 0.8rem; }
  .bars .fill { transition: none; }
}

/* Imagen de la pregunta (solo pantalla y presentador) */
.qimg { display: block; max-width: 100%; max-height: 34vh; margin: 0 0 1rem; border-radius: 14px; object-fit: contain; }
.now-img { display: block; max-width: 100%; max-height: 220px; margin: .5rem 0; border-radius: 10px; object-fit: contain; }

/* Aviso beta y textos legales */
.betabar { background: #fff4d6; color: #5a4300; text-align: center; font-size: .85rem; padding: .45rem 1rem; line-height: 1.35; }
.betabar a { color: inherit; font-weight: 700; }
.betafoot { text-align: center; font-size: .8rem; opacity: .75; margin: .5rem 0 2.5rem; }
.betafoot a { color: inherit; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin: .4rem 0 1rem; }
.check input { margin-top: .2rem; width: auto; }
.legal { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem 4rem; line-height: 1.65; }
.legal h1 { font-size: 2rem; margin-bottom: .3rem; }
.legal h2 { font-size: 1.2rem; margin: 2rem 0 .4rem; }
.legal ul { padding-left: 1.2rem; }
.legal .note { background: #fff4d6; color: #5a4300; border-radius: 10px; padding: .8rem 1rem; }
.legal .upd { color: #51607f; font-size: .9rem; }
