/* badabadoo · estilos (sin dependencias) */
:root {
  --ink: #1d1640; --ink2: #4a4370; --ink3: #8a84a8;
  --paper: #fff8ef; --card: #ffffff; --line: #ece2d3; --soft: #f6eee2;
  --coral: #ff5a5f; --sky: #2f80ed; --sun: #ffb400; --mint: #00b894;
  --grape: #8e44ef; --pink: #ff5fb4; --teal: #0fb5c9; --lime: #5fae2e;
  --ok: #00b894; --bad: #ff5a5f;
  --r: 14px; --r-lg: 22px;
  --shadow: 0 2px 0 rgba(29,22,64,.08), 0 10px 30px -12px rgba(29,22,64,.25);
  --font: "Baloo 2", ui-rounded, "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.45; color: var(--ink); background: var(--paper); min-height: 100vh; }
a { color: var(--sky); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .4em; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink3); }
.center { text-align: center; }
.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.eyebrow { text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; font-weight: 700; color: var(--ink3); margin: 0 0 .3em; }
[hidden] { display: none !important; }

/* logo */
.logo { font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo b { font-weight: 800; }
.logo b:nth-child(1) { color: var(--coral); } .logo b:nth-child(2) { color: var(--sun); }
.logo b:nth-child(3) { color: var(--mint); } .logo b:nth-child(4) { color: var(--grape); }
.logo-sm { font-size: 1.35rem; }
.brand:hover { text-decoration: none; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; border-radius: 999px; padding: .62em 1.3em; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.25); transition: transform .08s, filter .15s; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.15); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-sm { padding: .38em .9em; font-size: .92rem; }
.btn-lg { padding: .75em 1.5em; font-size: 1.1rem; }
.btn-xl { padding: .7em 1.6em; font-size: 1.35rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { background: var(--soft); filter: none; }
.btn-danger { color: var(--coral); }
.btn.btn-danger:not(.btn-ghost) { background: var(--coral); color: #fff; }
.confirm-inline { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; font-size: .92rem; }

/* barra superior */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem clamp(16px, 3vw, 40px); border-bottom: 2px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.topnav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); flex-wrap: wrap; justify-content: flex-end; }
.topnav a:not(.btn) { color: var(--ink); }
.topnav .who { color: var(--ink3); }

/* páginas */
.page { padding: clamp(16px, 3vw, 40px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.actions form { margin: 0; }
.card { background: var(--card); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.2rem; }
.empty { padding: 3rem 1rem; text-align: center; color: var(--ink2); border: 3px dashed var(--line); border-radius: var(--r-lg); }
.note { padding: .8rem 1.1rem; border-radius: var(--r); margin: 0 0 1rem; font-weight: 600; }
.note-error { background: #ffe9e9; color: #b3262b; }
.note-ok { background: #ddf7ef; color: #087a5f; }
.note-info { background: #e6f0ff; color: #1d5fbf; }
.note-warn { background: #fff3d6; color: #8a6100; }

/* formularios */
label { display: block; font-weight: 700; margin: 0 0 1rem; }
input, select, textarea { display: block; width: 100%; margin-top: .3rem; font: inherit; font-weight: 500; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: .62em .85em; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47,128,237,.15); }
input:disabled { background: var(--soft); color: var(--ink3); }
textarea { resize: vertical; }
label.check { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
label.check input { width: auto; margin: 0; }
.form-msg { color: var(--coral); font-weight: 700; min-height: 1.4em; margin-top: .6rem; }

/* inicio */
.home { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(24px, 5vw, 70px) clamp(16px, 4vw, 60px); align-items: center; min-height: calc(100vh - 70px); }
.home-title { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; letter-spacing: -.03em; }
.home-title span { color: var(--coral); }
.home-sub { font-size: 1.25rem; color: var(--ink2); max-width: 36ch; }
.pin-form { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.6rem 0; }
.pin-input { flex: 1 1 260px; max-width: 420px; margin: 0; font-size: 2rem; font-weight: 800; letter-spacing: .25em; text-align: center; padding: .4em .5em; border-width: 3px; border-radius: 18px; }
.pin-input::placeholder { letter-spacing: .02em; font-size: 1.2rem; font-weight: 600; color: var(--ink3); }
.home-host { color: var(--ink2); }
.home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.tile { border-radius: var(--r-lg); padding: 1.2rem 1.3rem; color: #fff; display: flex; flex-direction: column; gap: .2rem; box-shadow: var(--shadow); transform: rotate(var(--rot, 0deg)); }
.tile:nth-child(odd) { --rot: -1.2deg; } .tile:nth-child(even) { --rot: 1deg; }
.tile b { font-size: 1.3rem; } .tile small { opacity: .92; font-size: .95rem; line-height: 1.3; }
.tile-ico { font-weight: 800; font-size: 1.5rem; line-height: 1; }
.t-quiz { background: var(--coral); } .t-truefalse { background: var(--sky); } .t-poll { background: var(--sun); }
.t-wordcloud { background: var(--mint); } .t-scale { background: var(--grape); } .t-qa { background: var(--pink); } .t-slide { background: var(--ink2); }
@media (max-width: 820px) { .home { grid-template-columns: 1fr; min-height: 0; } }

/* autenticación */
.auth { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(24px, 6vw, 80px) clamp(16px, 5vw, 70px); align-items: center; }
.auth-side h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.auth-side p { font-size: 1.2rem; color: var(--ink2); max-width: 40ch; }
.auth-card h2 { font-size: 1.6rem; }
@media (max-width: 760px) { .auth { grid-template-columns: 1fr; } }

/* panel de actividades */
.live-strip { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.2rem; }
.chip { display: inline-flex; align-items: center; gap: .3em; padding: .35em .9em; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 700; }
.chip-live { background: #ddf7ef; color: #087a5f; }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.1rem; }
.act-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.act-main { padding: 1.2rem 1.3rem .6rem; color: var(--ink); flex: 1; }
.act-main:hover { text-decoration: none; background: #fffdfa; }
.act-main h3 { font-size: 1.35rem; margin: .5rem 0 .2rem; }
.act-main p { font-size: .95rem; margin: 0; }
.act-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.dot { width: 18px; height: 8px; border-radius: 4px; display: inline-block; }
.act-actions { display: flex; gap: .4rem; flex-wrap: wrap; padding: .8rem 1.3rem 1.1rem; }
.act-actions form { margin: 0; }

/* tablas y reportes */
.table-wrap { overflow-x: auto; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink3); }
.table tr:last-child td { border-bottom: 0; }
.table td .btn { margin-left: .3rem; }
.badge { display: inline-block; padding: .15em .65em; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--soft); }
.b-live, .b-lobby { background: #ddf7ef; color: #087a5f; } .b-ended { background: var(--soft); color: var(--ink2); }
.b-admin { background: #efe3ff; color: #6a2bc4; } .b-off { background: #ffe9e9; color: #b3262b; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat { background: var(--card); border-radius: var(--r-lg); padding: 1rem 1.3rem; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 2.2rem; line-height: 1; }
.stat span { color: var(--ink3); font-weight: 600; }
.rank-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank-list li { counter-increment: r; display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.rank-list li::before { content: counter(r); width: 1.8em; font-weight: 800; color: var(--ink3); }
.rank-list .pts { margin-left: auto; font-weight: 800; }
.av { font-size: 1.3em; line-height: 1; }
.rep-item { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.rep-item:last-child { border-bottom: 0; }
.rbar { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .7rem; margin-top: .35rem; background: var(--soft); border-radius: 8px; overflow: hidden; font-size: .95rem; }
.rbar span { position: absolute; inset: 0 auto 0 0; background: rgba(47,128,237,.18); }
.rbar.ok span { background: rgba(0,184,148,.28); }
.rbar em, .rbar i { position: relative; font-style: normal; }
.rbar.ok em::after { content: ' ✓'; color: var(--ok); font-weight: 800; }
.words span { display: inline-block; margin: .2rem .3rem 0 0; padding: .1rem .55rem; background: var(--soft); border-radius: 999px; }
.words i, .qa-rep i { font-style: normal; color: var(--ink3); font-size: .85em; }
.qa-rep { margin: .4rem 0 0; padding-left: 1.2rem; }

/* toasts */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { background: var(--ink); color: #fff; padding: .7rem 1.2rem; border-radius: 14px; font-weight: 700; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); opacity: 0; transform: translateY(10px); transition: all .25s; text-align: center; }
.toast.in { opacity: 1; transform: none; }
.toast-error { background: var(--coral); } .toast-ok { background: var(--mint); }
body.offline::after { content: 'Reconectando…'; position: fixed; top: 10px; left: 50%; transform: translateX(-50%); background: var(--sun); color: var(--ink); padding: .3rem 1rem; border-radius: 999px; font-weight: 800; z-index: 200; }

/* ===================================================================== editor */
.page-editor { background: var(--soft); }
.editor { padding: 0 clamp(12px, 2vw, 28px) 2rem; }
.ed-bar { display: flex; align-items: center; gap: .8rem; padding: 1rem 0; flex-wrap: wrap; position: sticky; top: 64px; z-index: 10; background: var(--soft); }
.ed-bar form { margin: 0; }
.ed-title { flex: 1 1 280px; margin: 0; font-size: 1.5rem; font-weight: 800; border-color: transparent; background: transparent; padding: .25em .4em; }
.ed-title:hover { border-color: var(--line); background: #fff; }
.ed-status { font-weight: 700; font-size: .9rem; color: var(--ink3); min-width: 9em; text-align: right; }
.ed-status.ok { color: var(--mint); } .ed-status.err { color: var(--coral); } .ed-status.pending { color: var(--sun); }
.ed-problems { background: #fff3d6; color: #6b4b00; border-radius: var(--r); padding: .8rem 1.2rem; margin-bottom: 1rem; }
.ed-problems ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.ed-body { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.ed-list { display: flex; flex-direction: column; gap: .6rem; }
.ed-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.ed-item { background: #fff; border-radius: var(--r); padding: .6rem .7rem; cursor: pointer; border: 2px solid transparent; box-shadow: 0 1px 0 rgba(29,22,64,.06); transition: border-color .15s, box-shadow .15s; }
.ed-item:hover { box-shadow: 0 6px 18px -10px rgba(29,22,64,.35); }
.ed-item.on { border-color: var(--ink); }
.ed-item.drag { opacity: .4; }
.ed-row { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.ed-n { font-weight: 800; color: var(--ink3); width: 1.4em; text-align: center; flex: none; }
.ed-txt { flex: 1; min-width: 0; font-weight: 600; font-size: .95rem; line-height: 1.25; }
.ed-txt small { display: block; color: var(--ink3); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-txt > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.ed-txt em { color: var(--ink3); }
.ed-thumb { flex: none; width: 44px; height: 32px; border-radius: 8px; background: var(--soft) center / cover no-repeat; }
.ed-tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.ed-tools button { border: 0; background: var(--soft); border-radius: 999px; padding: .28rem .75rem; cursor: pointer; font: inherit; font-weight: 700; font-size: .82rem; color: var(--ink2); white-space: nowrap; }
.ed-tools button:hover:not(:disabled) { background: var(--line); color: var(--ink); }
.ed-tools button:disabled { opacity: .4; cursor: default; }
.ed-tools button.danger { margin-left: auto; color: var(--coral); }
.ed-tools button.ask { background: var(--coral); color: #fff; }
.ed-empty { color: var(--ink3); padding: 1.2rem; text-align: center; border: 2px dashed var(--line); border-radius: var(--r); }
.ed-settings { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; background: #fff; border: 2px solid transparent; border-radius: var(--r); padding: .6rem .7rem; font: inherit; cursor: pointer; color: var(--ink); box-shadow: 0 1px 0 rgba(29,22,64,.06); }
.ed-settings.on { border-color: var(--ink); }
.set-ico { background: var(--ink); }
.ed-addmain { width: 100%; border: 2px dashed var(--ink3); background: transparent; color: var(--ink); border-radius: var(--r); padding: .8rem; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: background .15s, border-color .15s; }
.ed-addmain:hover { background: #fff; border-color: var(--ink); }
.ed-form { background: #fff; border-radius: var(--r-lg); padding: clamp(18px, 2.5vw, 32px); box-shadow: var(--shadow); min-height: 420px; }
.ef-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; }
.ef-head h2 { margin: 0; font-size: 1.6rem; }
.ef-head p.muted { margin: 0; }
.ef-fields { display: flex; flex-wrap: wrap; gap: 0 1.2rem; }
.ef-field { flex: 1 1 100%; margin-bottom: 1.2rem; }
.ef-field.half { flex-basis: calc(50% - .6rem); }
.ef-field.short { flex: 0 1 220px; }
.ef-field > label { margin-bottom: .3rem; }
.ef-field input[data-k="q"] { font-size: 1.35rem; font-weight: 700; }
.ef-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: .6rem; }
.ef-opts > .btn { justify-self: start; align-self: center; }
.ef-opt { display: flex; align-items: center; gap: .4rem; border-radius: var(--r); padding: .35rem; background: var(--c, var(--soft)); }
.ef-opt input { margin: 0; border: 0; background: rgba(255,255,255,.95); }
.ef-opt .ol { color: #fff; font-weight: 800; width: 1.8rem; text-align: center; flex: none; }
.ef-opt.is-ok { box-shadow: 0 0 0 3px var(--ok); }
.ok-tog, .ef-opt .rm { border: 0; border-radius: 10px; padding: .45rem .6rem; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; background: rgba(255,255,255,.3); color: #fff; white-space: nowrap; }
.ef-opt.is-ok .ok-tog { background: #fff; color: var(--ok); }
.seg { display: inline-flex; background: var(--soft); border-radius: 999px; padding: 4px; gap: 4px; margin-top: .3rem; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: .45em 1.1em; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .ed-body { grid-template-columns: 1fr; }
  .ed-bar { top: 0; position: static; }
  .ef-field.half { flex-basis: 100%; }
}

/* colores de opciones */
.o0 { --c: var(--coral); } .o1 { --c: var(--sky); } .o2 { --c: var(--sun); } .o3 { --c: var(--mint); }
.o4 { --c: var(--grape); } .o5 { --c: var(--pink); } .o6 { --c: var(--teal); } .o7 { --c: var(--lime); }

/* ===================================================================== escenario (anfitrión y proyector) */
.page-stage { background: #15102f; color: #fff; overflow: hidden; }
.stage { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; height: 100dvh;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(142,68,239,.35), transparent 60%), radial-gradient(900px 500px at 110% 110%, rgba(255,90,95,.25), transparent 60%), #15102f; }
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(16px, 2.5vw, 36px); font-size: clamp(1rem, 1.5vw, 1.35rem); }
.st-join { background: rgba(255,255,255,.1); padding: .25rem 1rem; border-radius: 999px; }
.st-join b { color: var(--sun); }
.st-title { opacity: .7; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; text-align: center; }
.st-stats { display: flex; gap: 1rem; font-weight: 800; }
.stage-main { overflow: auto; padding: clamp(10px, 2vw, 30px) clamp(16px, 3vw, 48px); display: flex; flex-direction: column; }
.stage-main > * { flex: 1; }
.stage-wait { margin: auto; opacity: .6; font-size: 1.5rem; }
.stage-ctrl { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .7rem clamp(12px, 2vw, 24px); background: rgba(0,0,0,.35); flex-wrap: wrap; }
.ctrl-left, .ctrl-mid, .ctrl-right { display: flex; gap: .5rem; align-items: center; }
.ctrl-pos { opacity: .75; font-weight: 600; }
.cbtn { border: 0; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; padding: .5rem .95rem; border-radius: 12px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.cbtn:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.cbtn:disabled { opacity: .35; cursor: default; }
.cbtn-main { background: var(--sun); color: var(--ink); padding: .55rem 1.6rem; font-size: 1.15rem; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.cbtn-main:hover { background: #ffc633; }
.cbtn-danger { background: rgba(255,90,95,.25); }
.cbtn-sm { padding: .3rem .65rem; font-size: .9rem; }
.stage-ctrl .confirm-inline .btn { font-size: .9rem; }
.screen-full { position: fixed; right: 14px; bottom: 14px; opacity: .3; }
.screen-full:hover { opacity: 1; }
.stage-screen .stage { grid-template-rows: auto 1fr; }
.stage.stage-screen { grid-template-rows: auto 1fr; }

/* sala de espera */
.lobby { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.4fr); gap: clamp(1rem, 3vw, 3rem); align-items: stretch; }
.lobby-join { background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; text-align: center; box-shadow: 0 20px 60px -20px rgba(0,0,0,.6); }
.lj-1, .lj-2 { font-size: clamp(1.1rem, 1.6vw, 1.5rem); color: var(--ink2); margin: 0; font-weight: 600; }
.lj-url { font-size: clamp(1.8rem, 3.4vw, 3.2rem); font-weight: 800; margin: .1em 0 .3em; word-break: break-all; line-height: 1.05; color: var(--grape); }
.lj-pin { font-size: clamp(3.5rem, 8vw, 7.5rem); font-weight: 800; line-height: 1; margin: .1em 0 .2em; letter-spacing: .06em; }
.lj-qr canvas { width: clamp(150px, 16vw, 240px); height: auto; aspect-ratio: 1; border-radius: 12px; }
.lj-qr small { display: block; color: var(--ink3); font-weight: 600; }
.lobby-people { display: flex; flex-direction: column; min-height: 0; }
.lp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-head h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0; }
.lp-head h2 span { color: var(--sun); }
.lp-lock { background: rgba(255,90,95,.25); padding: .3rem 1rem; border-radius: 999px; font-weight: 700; }
.lp-grid { display: flex; flex-wrap: wrap; gap: .6rem; align-content: flex-start; margin-top: 1rem; flex: 1; overflow: hidden; }
.lp-empty { opacity: .6; font-size: 1.4rem; }
.lp-title { opacity: .5; margin-top: auto; padding-top: 1rem; font-size: 1.3rem; }
.pchip { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); padding: .4rem .95rem .4rem .5rem; border-radius: 999px; font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.3rem); animation: pop .35s cubic-bezier(.2,1.6,.4,1); cursor: default; position: relative; }
.pchip i { font-style: normal; font-size: 1.3em; }
.pchip.off { opacity: .45; }
[data-mode="host"] .pchip { cursor: pointer; }
[data-mode="host"] .pchip:hover { background: rgba(255,255,255,.2); }
.pchip.ask { background: var(--coral); }
.pchip.ask::after { content: 'Clic para retirar'; position: absolute; top: -1.6em; left: 50%; transform: translateX(-50%); font-size: .7rem; white-space: nowrap; background: var(--coral); padding: .1rem .5rem; border-radius: 6px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) { .lobby { grid-template-columns: 1fr; } }

/* encabezado de dinámicas */
.dyn { display: flex; flex-direction: column; }
.dyn > div { flex: 1; display: flex; flex-direction: column; }
.dq-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: clamp(1rem, 2.5vw, 2rem); }
.dq-q { flex: 1; font-size: clamp(1.8rem, 3.6vw, 3.4rem); margin: 0; background: #fff; color: var(--ink); border-radius: 22px; padding: .45em .8em; box-shadow: 0 14px 40px -18px rgba(0,0,0,.6); }
.dq-meta { text-align: center; flex: none; min-width: 5.5rem; }
.dq-count { display: block; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; line-height: 1; }
.dq-meta small { opacity: .7; font-weight: 600; }
.timer { position: relative; width: clamp(80px, 8vw, 120px); aspect-ratio: 1; flex: none; }
.timer svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 4; }
.tr-bg { stroke: rgba(255,255,255,.15); }
.tr-fg { stroke: var(--sun); stroke-linecap: round; transition: stroke .3s; }
.timer b { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; }
.timer.low .tr-fg { stroke: var(--coral); }
.timer.low b { color: var(--coral); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.12); } }

/* opciones (abiertas) */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.2vw, 1.1rem); flex: 1; align-content: end; }
.tiles.n3 .otile:last-child, .tiles.n5 .otile:last-child { grid-column: span 2; }
.otile { background: var(--c); border-radius: 20px; padding: clamp(.8rem, 1.6vw, 1.4rem) 1.3rem; display: flex; align-items: center; gap: 1rem; min-height: clamp(80px, 13vh, 150px); font-size: clamp(1.3rem, 2.3vw, 2.2rem); font-weight: 800; box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.ol { background: rgba(0,0,0,.18); border-radius: 12px; min-width: 1.8em; height: 1.8em; display: grid; place-items: center; flex: none; font-weight: 800; }
.otile .ot { flex: 1; line-height: 1.15; }

/* barras */
.bars { display: flex; flex-direction: column; gap: clamp(.5rem, 1vw, .9rem); flex: 1; justify-content: center; }
.bar { display: grid; grid-template-columns: auto minmax(8em, 1.2fr) 3fr auto; align-items: center; gap: 1rem; font-size: clamp(1.1rem, 2vw, 1.9rem); font-weight: 800; }
.bar .bar-l { background: var(--c); border-radius: 12px; min-width: 1.8em; height: 1.8em; display: grid; place-items: center; }
.bar-t { line-height: 1.1; }
.bar-track { height: clamp(26px, 4.5vh, 50px); background: rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--c); border-radius: 12px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.bar-n { min-width: 6.5em; text-align: right; font-variant-numeric: tabular-nums; opacity: .9; }
.bars-reveal .bar:not(.is-ok) { opacity: .45; }
.bars-reveal .bar.is-ok .bar-t::after { content: ' ✓'; color: var(--mint); }
.bars-reveal .bar.is-ok .bar-l { box-shadow: 0 0 0 4px #fff; }

/* diapositiva */
.dslide { justify-content: center; max-width: 1400px; }
.dslide h1 { font-size: clamp(2.6rem, 6vw, 6rem); line-height: 1; margin-bottom: .4em; }
.dslide p { font-size: clamp(1.3rem, 2.4vw, 2.3rem); opacity: .9; max-width: 40ch; }

/* nube */
.cloud { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: .2em .7em; padding: 1rem; background: rgba(255,255,255,.05); border-radius: 28px; }
.cw { font-weight: 800; line-height: 1.05; transition: font-size .5s; animation: pop .4s; }
.cw.c0 { color: var(--sun); } .cw.c1 { color: #ff8a8d; } .cw.c2 { color: #45e0bd; } .cw.c3 { color: #79b0ff; } .cw.c4 { color: #c39bff; } .cw.c5 { color: #ff8fd0; }
.cloud-empty { opacity: .5; font-size: 1.5rem; margin: auto; }

/* escala */
.scale-wrap { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(1rem, 3vw, 3rem); align-items: stretch; }
.scale-avg { display: flex; flex-direction: column; justify-content: center; align-items: center; background: #fff; color: var(--ink); border-radius: 28px; padding: 1rem clamp(1.2rem, 3vw, 3rem); }
.scale-avg b { font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1; color: var(--grape); }
.scale-avg small { font-weight: 700; color: var(--ink3); font-size: 1.1rem; }
.hist { display: flex; gap: clamp(.3rem, 1vw, .9rem); align-items: stretch; }
.hcol { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.hbar { flex: 1; width: 100%; background: rgba(255,255,255,.07); border-radius: 12px; display: flex; align-items: flex-end; overflow: hidden; min-height: 120px; }
.hbar i { display: block; width: 100%; background: linear-gradient(var(--pink), var(--grape)); border-radius: 12px; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.hcol em { font-style: normal; font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.6rem); }
.hn { font-size: 1.1rem; opacity: .8; }
.scale-labels { display: flex; justify-content: space-between; padding: .6rem 0 0; opacity: .75; font-size: 1.2rem; font-weight: 700; margin-left: auto; width: 70%; }

/* preguntas del público */
.qa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; overflow: hidden; }
.qa-item { display: flex; align-items: center; gap: 1rem; background: #fff; color: var(--ink); border-radius: 18px; padding: .8rem 1.1rem; font-size: clamp(1.1rem, 1.9vw, 1.7rem); font-weight: 700; animation: pop .35s; }
.qa-item small { color: var(--ink3); font-weight: 600; }
.qa-votes { background: var(--pink); color: #fff; border-radius: 12px; padding: .2rem .7rem; font-weight: 800; flex: none; min-width: 3.4em; text-align: center; }
.qa-text { flex: 1; }
.qa-item.is-done { opacity: .5; }
.qa-item.is-done .qa-text { text-decoration: line-through; text-decoration-thickness: 2px; }
.qa-item.is-hidden { opacity: .35; background: #ddd; }
.qa-act { display: flex; gap: .3rem; flex: none; }
.qa-act .cbtn { background: var(--soft); color: var(--ink); }
.qa-empty { opacity: .6; font-size: 1.4rem; }

/* tabla de posiciones y podio */
.board { max-width: 1200px; width: 100%; margin: 0 auto; }
.board h1 { text-align: center; font-size: clamp(2rem, 4vw, 3.4rem); }
.board ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.board li { display: grid; grid-template-columns: 2.4em auto minmax(6em, 14em) auto 1fr auto; align-items: center; gap: .8rem; background: rgba(255,255,255,.08); border-radius: 16px; padding: .55rem 1rem; font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 800; animation: slidein .5s both; animation-delay: var(--d); }
.board li:first-child { background: var(--sun); color: var(--ink); }
.board .bp { opacity: .7; text-align: center; }
.board .streak { font-size: .8em; }
.btrack { height: 10px; background: rgba(255,255,255,.1); border-radius: 5px; overflow: hidden; }
.btrack i { display: block; height: 100%; background: currentColor; opacity: .55; border-radius: 5px; }
.bs { font-variant-numeric: tabular-nums; }
@keyframes slidein { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.podium { text-align: center; display: flex; flex-direction: column; }
.podium h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.pods { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.6rem, 2vw, 2rem); flex: 1; }
.pod { display: flex; flex-direction: column; align-items: center; width: clamp(140px, 20vw, 280px); font-weight: 800; animation: rise .8s both cubic-bezier(.2,1.2,.4,1); }
.pod .av { font-size: clamp(3rem, 6vw, 5.5rem); }
.pod b { font-size: clamp(1.3rem, 2.4vw, 2.2rem); line-height: 1.1; overflow-wrap: anywhere; }
.pod span:not(.av) { opacity: .8; margin-bottom: .5rem; }
.pod-col { width: 100%; border-radius: 18px 18px 0 0; display: grid; place-items: center; font-size: clamp(2.5rem, 5vw, 4.5rem); color: rgba(0,0,0,.35); }
.pod-1 .pod-col { height: 34vh; background: var(--sun); } .pod-2 .pod-col { height: 24vh; background: #c9d3e6; } .pod-3 .pod-col { height: 17vh; background: #f0a36a; }
.pod-1 { animation-delay: .9s; } .pod-2 { animation-delay: .4s; } .pod-3 { animation-delay: .1s; }
.pod.empty { opacity: .3; }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.pod-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; padding: 1rem 0 0; margin: 0; font-weight: 700; font-size: 1.15rem; opacity: .85; }
.pod-rest li i { font-style: normal; opacity: .6; margin-left: .4rem; }
.thanks { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.thanks h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
.thanks p { font-size: 1.6rem; opacity: .7; }
.confetti { position: fixed; top: -12px; width: 10px; height: 16px; border-radius: 2px; z-index: 50; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* ===================================================================== jugador */
.page-play { background: var(--ink); color: #fff; }
.play { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: radial-gradient(600px 400px at 0 0, rgba(142,68,239,.4), transparent 70%), radial-gradient(500px 400px at 100% 100%, rgba(255,90,95,.3), transparent 70%), var(--ink); }
.play-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .7rem 16px; padding-top: max(.7rem, env(safe-area-inset-top)); }
.play-me { display: flex; align-items: center; gap: .45rem; font-weight: 700; min-width: 0; }
.play-me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40vw; }
.play-me .score { background: rgba(255,255,255,.14); padding: .1rem .7rem; border-radius: 999px; font-variant-numeric: tabular-nums; }
.play-main { flex: 1; display: flex; padding: 0 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.play-card { flex: 1; display: flex; flex-direction: column; width: 100%; max-width: 760px; margin: 0 auto; }
.play-card > h2, .play-card > p, .play-card > form, .play-card > .eyebrow { text-align: center; }
.play-card:has(> h2) { justify-content: center; }
.play-card .eyebrow { color: rgba(255,255,255,.6); }
.play-card .pin-input { color: var(--ink); }
.play-card .pin-form { justify-content: center; }
.join-form { background: #fff; color: var(--ink); border-radius: 24px; padding: 1.4rem; text-align: left !important; margin-top: 1rem; }
.join-form input { font-size: 1.5rem; font-weight: 800; text-align: center; margin-bottom: 1rem; }
.join-form label { margin: 0; text-align: center; }
.p-body { flex: 1; display: flex; flex-direction: column; }
.p-wait, .p-res { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .2rem; padding: 1rem; }
.p-wait h2, .p-res h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
.p-wait p, .p-res p { font-size: 1.15rem; opacity: .85; margin: 0 0 .3rem; }
.p-ico { font-size: 4rem; line-height: 1; margin-bottom: .6rem; animation: pop .4s; }
.p-big { font-size: 6rem; }
.p-pts { font-size: 2.6rem !important; font-weight: 800; opacity: 1 !important; color: var(--sun); }
.p-res.ok { background: var(--mint); border-radius: 26px; }
.p-res.no { background: var(--coral); border-radius: 26px; }
.p-res .muted { color: rgba(255,255,255,.85); }
.p-final .btn { margin-top: 1rem; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.p-q { font-size: clamp(1.2rem, 5vw, 1.6rem); font-weight: 800; line-height: 1.2; text-align: center; margin: .3rem 0 1rem; }
.p-opts { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.p-opts.n2 { grid-template-columns: 1fr; }
.p-opts.n3 .p-opt:last-child, .p-opts.n5 .p-opt:last-child { grid-column: span 2; }
.p-opt { border: 0; border-radius: 20px; background: var(--c); color: #fff; font: inherit; font-weight: 800; font-size: clamp(1.05rem, 4.5vw, 1.4rem); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; padding: .8rem; cursor: pointer; box-shadow: 0 6px 0 rgba(0,0,0,.28); min-height: 90px; line-height: 1.15; transition: transform .08s; }
.p-opt:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,.28); }
.p-opt:disabled { opacity: .6; }
.p-opt .ol { font-size: 1.3rem; }
.p-list { display: flex; flex-direction: column; gap: .6rem; }
.p-row { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 64px; padding: .7rem 1rem; }
.p-form { display: flex; flex-direction: column; gap: .7rem; }
.p-in { margin: 0; font-size: 1.3rem; font-weight: 700; color: var(--ink); text-align: center; border: 0; }
textarea.p-in { text-align: left; font-size: 1.1rem; }
.p-scale { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.p-scale output { font-size: 6rem; font-weight: 800; text-align: center; line-height: 1; color: var(--sun); }
.p-scale input[type=range] { -webkit-appearance: none; appearance: none; height: 14px; border-radius: 7px; background: rgba(255,255,255,.2); border: 0; padding: 0; }
.p-scale input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sun); border: 4px solid #fff; cursor: pointer; }
.p-scale input[type=range]::-moz-range-thumb { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); border: 4px solid #fff; cursor: pointer; }
.p-scale-l { display: flex; justify-content: space-between; font-weight: 700; opacity: .8; gap: 1rem; }
.p-qa { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.p-qa li { display: flex; gap: .7rem; align-items: center; background: rgba(255,255,255,.1); border-radius: 14px; padding: .55rem .7rem; font-weight: 600; }
.p-qa li.is-done { opacity: .55; }
.p-qa small { opacity: .7; }
.p-qa .tag { background: rgba(255,255,255,.18); border-radius: 6px; padding: 0 .4rem; margin-left: .4rem; }
.p-vote { border: 0; flex: none; background: rgba(255,255,255,.15); color: #fff; border-radius: 12px; min-width: 3.2rem; padding: .3rem .4rem; font: inherit; font-weight: 800; cursor: pointer; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.p-vote.on { background: var(--pink); }
.p-vote:disabled { opacity: .4; }
.p-timer { height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; overflow: hidden; margin-bottom: .8rem; }
.p-timer i { display: block; height: 100%; width: 100%; background: var(--sun); border-radius: 4px; }
.p-timer i.low { background: var(--coral); }
.dots { display: flex; gap: .5rem; margin-top: 1rem; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); animation: bounce 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; background: var(--mint); } .dots i:nth-child(3) { animation-delay: .3s; background: var(--coral); }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } }
.play .note { color: var(--ink); }

/* ===================================================================== admin e instalador */
.admin-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; border-bottom: 2px solid var(--line); }
.admin-tabs a { padding: .55rem 1.1rem; border-radius: 12px 12px 0 0; color: var(--ink2); margin-bottom: -2px; border: 2px solid transparent; }
.admin-tabs a.on { background: var(--card); color: var(--ink); border-color: var(--line); border-bottom-color: var(--card); }
.admin-tabs a:hover { text-decoration: none; background: var(--soft); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.4rem; margin: 0; }
.kv dt { color: var(--ink3); font-weight: 700; } .kv dd { margin: 0; font-weight: 600; }
.drop { border: 3px dashed var(--line); border-radius: var(--r-lg); padding: 1.6rem; text-align: center; background: var(--soft); margin-bottom: 1rem; }
.drop input { background: #fff; }
.log { background: #15102f; color: #d7d3f0; border-radius: var(--r); padding: 1rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; white-space: pre-wrap; max-height: 320px; overflow: auto; }
.inst { min-height: 100vh; display: grid; grid-template-columns: minmax(260px, 360px) 1fr; }
.inst-side { background: var(--ink); color: #fff; padding: 2rem; }
.inst-side .logo { font-size: 2.2rem; }
.inst-steps { list-style: none; padding: 0; margin: 2rem 0 0; counter-reset: s; }
.inst-steps li { counter-increment: s; display: flex; align-items: center; gap: .8rem; padding: .6rem 0; opacity: .5; font-weight: 700; }
.inst-steps li::before { content: counter(s); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.inst-steps li.on { opacity: 1; } .inst-steps li.on::before { background: var(--sun); color: var(--ink); }
.inst-steps li.done { opacity: .85; } .inst-steps li.done::before { content: '✓'; background: var(--mint); }
.inst-main { padding: clamp(20px, 4vw, 60px); }
.inst-main .card { max-width: 820px; }
.req { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.req li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.req .y { color: var(--mint); font-weight: 800; } .req .n { color: var(--coral); font-weight: 800; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 760px) { .inst { grid-template-columns: 1fr; } .inst-steps { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; } .row-2 { grid-template-columns: 1fr; } }

/* ===================================================================== 1.1 · barras de desplazamiento discretas */
* { scrollbar-width: thin; scrollbar-color: rgba(29,22,64,.25) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(29,22,64,.22); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background-color: rgba(29,22,64,.4); }
.page-stage *, .page-play * { scrollbar-color: rgba(255,255,255,.25) transparent; }
.page-stage *::-webkit-scrollbar-thumb, .page-play *::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.22); }
.stage-main { scrollbar-width: none; }
.stage-main::-webkit-scrollbar { display: none; }

/* ===================================================================== 1.1 · temas */
.theme-noche     { --tb: #15102f; --t1: rgba(142,68,239,.38); --t2: rgba(255,90,95,.26); --tp: #8e44ef; --ts: #ff5a5f; }
.theme-aurora    { --tb: #0b1f2e; --t1: rgba(0,184,148,.40);  --t2: rgba(142,68,239,.38); --tp: #00b894; --ts: #8e44ef; }
.theme-oceano    { --tb: #0a2340; --t1: rgba(47,128,237,.45); --t2: rgba(15,181,201,.35); --tp: #2f80ed; --ts: #0fb5c9; }
.theme-selva     { --tb: #0e2619; --t1: rgba(95,174,46,.38);  --t2: rgba(0,184,148,.30);  --tp: #5fae2e; --ts: #00b894; }
.theme-atardecer { --tb: #35102f; --t1: rgba(255,90,95,.45);  --t2: rgba(255,180,0,.32);  --tp: #ff5a5f; --ts: #ffb400; }
.theme-pizarra   { --tb: #1f2a2a; --t1: rgba(255,255,255,.07); --t2: rgba(255,255,255,.04); --tp: #4f6b63; --ts: #c9d6cf; }
.theme-dulce     { --tb: #3a1747; --t1: rgba(255,95,180,.45); --t2: rgba(255,180,0,.30);  --tp: #ff5fb4; --ts: #ffb400; }
.theme-mono      { --tb: #121212; --t1: rgba(255,255,255,.06); --t2: rgba(255,255,255,.03); --tp: #3a3a3a; --ts: #9a9a9a; }
.stage[class*="theme-"], .play[class*="theme-"] {
  background: radial-gradient(1200px 620px at 8% -10%, var(--t1), transparent 62%), radial-gradient(900px 520px at 110% 110%, var(--t2), transparent 62%), var(--tb);
}
.stage.theme-pizarra, .play.theme-pizarra {
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), radial-gradient(1000px 600px at 50% 0, rgba(255,255,255,.06), transparent 70%);
  background-size: 48px 48px, 48px 48px, auto; background-color: var(--tb);
}
.stage { position: relative; isolation: isolate; }
.stage-bg { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; pointer-events: none; }
.stage.has-bg .stage-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,6,30,.55), rgba(10,6,30,.72)); }
.play.has-bg { background-size: cover !important; background-position: center !important; }

/* tarjetas de vista previa de tema (demo, panel, editor) */
.tpl-cover, .tp-cover, .act-cover, .th-card .th-sw, .tpl-mini {
  background: radial-gradient(260px 160px at 0 0, var(--t1), transparent 70%), radial-gradient(240px 160px at 100% 100%, var(--t2), transparent 70%), var(--tb);
}

/* ===================================================================== 1.1 · escenario */
.dyn-box.has-img .tiles { flex: 0 0 auto; }
.dyn-box.has-img .otile { min-height: clamp(60px, 9vh, 110px); }
.dq-img { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: center; margin: -.5rem 0 1rem; }
.dq-img img { max-height: 34vh; max-width: 100%; border-radius: 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); object-fit: contain; }
.dslide.has-img { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; max-width: none; }
.dslide.has-img .dq-img { margin: 0; }
.dslide.has-img .dq-img img { max-height: 60vh; }
.type-wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; font-size: clamp(1.4rem, 2.6vw, 2.4rem); font-weight: 800; opacity: .9; }
.type-wait .kbd { font-size: 3.5em; line-height: 1; animation: pulse 1.8s infinite; }
.type-ans { align-self: center; display: flex; flex-direction: column; align-items: center; background: var(--mint); color: #fff; border-radius: 24px; padding: .6rem 2.4rem 1rem; box-shadow: 0 8px 0 rgba(0,0,0,.25); margin-bottom: 1.4rem; }
.type-ans span { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .9rem; opacity: .9; }
.type-ans b { font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.05; }
.type-list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.type-sum { width: 100%; text-align: center; font-size: 1.3rem; font-weight: 700; opacity: .85; margin: 0 0 .4rem; }
.type-chip { background: rgba(255,255,255,.12); padding: .35rem 1rem; border-radius: 999px; font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.5rem); }
.type-chip.ok { background: rgba(0,184,148,.35); }
.type-chip i { font-style: normal; opacity: .7; margin-left: .3rem; }
.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(.5rem, 1vw, .8rem); flex: 1; justify-content: center; }
.order-list li { display: flex; align-items: center; gap: 1rem; background: var(--c); border-radius: 18px; padding: .7rem 1.2rem; font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 800; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.order-list li b { background: rgba(0,0,0,.2); border-radius: 12px; min-width: 1.8em; height: 1.8em; display: grid; place-items: center; }
.order-list.is-correct li { background: rgba(255,255,255,.1); box-shadow: none; }
.order-list.is-correct li b { background: var(--mint); }
.order-sum { text-align: center; font-size: 1.4rem; font-weight: 700; opacity: .85; margin: 1rem 0 0; }
.qbtn { border: 0; background: var(--soft); color: var(--ink); font: inherit; font-weight: 700; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.qbtn:hover { background: var(--line); }
.lp-demo { background: rgba(255,180,0,.16); border-radius: 12px; padding: .5rem 1rem; margin: .6rem 0 0; font-weight: 600; }
.pchip.bot small { font-size: .7em; opacity: .75; margin-left: .2rem; }
.demo-end { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; background: rgba(255,255,255,.1); border-radius: 18px; padding: .8rem 1.2rem; font-size: 1.1rem; }
.screen-tools { position: fixed; right: max(14px, env(safe-area-inset-right, 0px)); bottom: max(14px, env(safe-area-inset-bottom, 0px)); display: flex; gap: .4rem; opacity: .35; transition: opacity .2s; }
.screen-tools:hover { opacity: 1; }
.stage-ctrl { flex-wrap: nowrap; }
.ctrl-left { min-width: 0; flex: 1; }
.ctrl-left .ctrl-pos { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ctrl-right { flex: 1; justify-content: flex-end; }
.cbtn { white-space: nowrap; }
@media (max-width: 760px) { .stage-ctrl { flex-wrap: wrap; } .ctrl-left, .ctrl-right { flex: 1 1 100%; justify-content: center; } }

/* ===================================================================== 1.1 · jugador */
.nick-row { display: flex; gap: .5rem; margin-bottom: 1rem; }
.nick-row input { margin: 0; flex: 1; min-width: 0; }
.nick-dice { flex: none; width: 3.4rem; border: 2px solid var(--line); background: var(--soft); border-radius: var(--r); font-size: 1.6rem; cursor: pointer; }
.nick-dice:hover { background: var(--line); }
.av-cur { border: 0; background: transparent; cursor: pointer; color: inherit; font: inherit; }
.p-avbtn { margin-top: 1rem; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.p-avbtn:hover { background: rgba(255,255,255,.12); }
.av-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .4rem; margin-top: .8rem; width: 100%; max-width: 360px; }
.av-opt { border: 0; background: rgba(255,255,255,.1); border-radius: 12px; font-size: 1.7rem; padding: .3rem 0; cursor: pointer; }
.av-opt.on { background: var(--sun); }
.p-hint { text-align: center; opacity: .8; margin: -.4rem 0 .8rem; font-size: .95rem; }
.p-opt.is-picked { box-shadow: inset 0 0 0 4px #fff, 0 6px 0 rgba(0,0,0,.28); }
.p-opt.is-picked .ol { background: #fff; color: var(--ink); }
.p-row-actions { display: flex; gap: .6rem; margin-top: 1rem; }
.p-row-actions .btn { flex: 1; }
.p-row-actions .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); flex: 0 0 auto; }
.p-ans { background: rgba(0,0,0,.2); border-radius: 12px; padding: .4rem .9rem; margin: .4rem 0 .6rem !important; opacity: 1 !important; }

/* ===================================================================== 1.1 · editor */
.ef-sec { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.ef-sec:first-of-type { border-top: 0; padding-top: 0; }
.ef-sec h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .7rem; }
.md-card { text-align: left; border: 2px solid var(--line); background: #fff; border-radius: var(--r); padding: .8rem 1rem; font: inherit; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; gap: .2rem; }
.md-card small { color: var(--ink2); line-height: 1.3; }
.md-card.on { border-color: var(--ink); background: var(--soft); }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .7rem; }
.th-card { border: 2px solid transparent; background: transparent; padding: 0; font: inherit; cursor: pointer; color: var(--ink); display: flex; flex-direction: column; gap: .3rem; text-align: left; }
.th-card .th-sw { height: 64px; border-radius: 12px; display: flex; align-items: flex-end; gap: 5px; padding: 8px; }
.th-sw i { width: 18px; height: 10px; border-radius: 4px; background: var(--tp); }
.th-sw i:nth-child(2) { background: var(--ts); } .th-sw i:nth-child(3) { background: #fff; opacity: .85; }
.th-card b { font-size: .95rem; padding-left: .2rem; }
.th-card.on .th-sw { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
.ef-img { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ef-img-prev { width: 160px; height: 96px; border-radius: 12px; background: var(--soft) center / cover no-repeat; display: grid; place-items: center; color: var(--ink3); font-weight: 600; font-size: .9rem; border: 2px dashed var(--line); flex: none; }
.ef-img-prev:not(.empty) { border-style: solid; border-color: transparent; }
.ef-img.tall .ef-img-prev { width: 240px; height: 135px; }
.ef-img-act { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ef-img-act small { flex-basis: 100%; }
.ef-img-act label.btn { margin: 0; }
.ef-img.busy { opacity: .6; pointer-events: none; }
.ef-answers { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.ef-ans { display: flex; gap: .4rem; width: 100%; max-width: 560px; }
.ef-ans input { margin: 0; }
.ef-ans .rm, .ef-opt .rm { flex: none; }
.ef-ans .rm { border: 0; background: var(--soft); border-radius: 10px; width: 2.6rem; cursor: pointer; font: inherit; color: var(--ink2); }
.ef-opts.numbered .ef-opt { background: var(--ink2); }
.ef-addopt { align-self: center; justify-self: start; }
.ok-tog { min-width: 6.5em; }
.tog { display: flex; align-items: center; gap: .8rem; font-weight: 600; margin: 0 0 .8rem; cursor: pointer; }
.tog input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tog span { flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; }
.tog span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.tog input:checked + span { background: var(--mint); }
.tog input:checked + span::after { transform: translateX(20px); }
.tog input:focus-visible + span { box-shadow: 0 0 0 3px rgba(47,128,237,.35); }
.picker { position: fixed; inset: 0; z-index: 60; background: rgba(21,16,47,.55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: fadein .15s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.pk-box { background: var(--paper); border-radius: 26px; width: min(980px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: clamp(18px, 3vw, 32px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.pk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.pk-head h2 { margin: 0; font-size: 1.7rem; }
.pk-close { border: 0; background: var(--soft); width: 2.4rem; height: 2.4rem; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.pk-box .eyebrow { margin-top: 1rem; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .7rem; }
.pk-card { text-align: left; background: #fff; border: 2px solid transparent; border-radius: 18px; padding: .9rem 1rem; font: inherit; color: var(--ink); cursor: pointer; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .8rem; row-gap: .15rem; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.pk-card:hover, .pk-card:focus-visible { border-color: var(--ink); transform: translateY(-2px); outline: none; }
.pk-ico { grid-row: span 2; width: 3rem; height: 3rem; border-radius: 14px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1rem; }
.pk-card b { font-size: 1.1rem; line-height: 1.1; align-self: end; }
.pk-card small { color: var(--ink2); line-height: 1.3; font-size: .88rem; }
.t-typeanswer { background: var(--teal); } .t-order { background: var(--lime); }
@media (max-width: 860px) { .ed-bar { position: static; } }

/* ===================================================================== 1.1 · demo y plantillas */
.demo { padding-block: clamp(24px, 4vw, 56px); padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); display: flex; flex-direction: column; gap: 2rem; }
.demo-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: .98; letter-spacing: -.03em; margin: .2rem 0 .6rem; text-wrap: balance; }
.demo-lead { font-size: 1.2rem; color: var(--ink2); max-width: 62ch; }
.demo-steps { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; counter-reset: st; }
.demo-steps li { counter-increment: st; background: #fff; border-radius: 999px; padding: .4rem 1rem .4rem .45rem; display: flex; align-items: center; gap: .55rem; box-shadow: var(--shadow); }
.demo-steps li::before { content: counter(st); width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-weight: 800; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.2rem; }
.tpl { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tpl-cover { color: #fff; padding: 1.1rem 1.3rem 1rem; min-height: 150px; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; position: relative; }
.tpl-cover h2 { font-size: 1.6rem; margin: 0; text-wrap: balance; }
.tpl-mode { position: absolute; top: .9rem; left: 1.3rem; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.16); padding: .15rem .65rem; border-radius: 999px; }
.tpl-icons { display: flex; gap: .3rem; flex-wrap: wrap; }
.tpl-icons i { font-style: normal; font-weight: 800; font-size: .78rem; background: rgba(255,255,255,.16); border-radius: 8px; padding: .15rem .45rem; }
.tpl-body { padding: 1rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tpl-body p { margin: 0; }
.tpl-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.tpl-tags span { background: var(--soft); border-radius: 999px; padding: .1rem .65rem; font-size: .85rem; font-weight: 700; }
.tpl-list { font-size: .9rem; }
.tpl-act { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.tpl-act .check { margin: 0; font-size: .92rem; }
.demo-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 1.4rem 1.6rem; }
.demo-cta h2 { margin: 0 0 .2rem; } .demo-cta p { margin: 0; opacity: .85; max-width: 60ch; }
.demo-cta .btn { background: var(--sun); color: var(--ink); }
.act-cover { display: block; height: 72px; padding: .9rem 1.3rem; }
.act-cover .dot { box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.tpl-strip { margin-top: 2.4rem; }
.tpl-strip .page-head { margin-bottom: .8rem; }
.tpl-strip h2 { margin: 0; font-size: 1.5rem; }
.tpl-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .8rem; }
.tpl-mini { color: #fff; border-radius: var(--r-lg); padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; margin: 0; }
.tpl-mini b { font-size: 1.15rem; line-height: 1.15; }
.tpl-mini small { opacity: .85; }
.tpl-mini .btn { align-self: flex-start; margin-top: .5rem; background: #fff; color: var(--ink); }
.topnav .nav-demo { color: var(--coral) !important; }
.home-demo { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; font-size: 1.1rem; }

/* ===================================================================== 1.2 · nuevas dinámicas */
.t-estimate { background: #e07a1f; } .t-match { background: #2e9e8f; } .t-brainstorm { background: #c9a400; }
.t-ranking { background: #6c5ce7; } .t-likely { background: #e84393; } .t-wheel { background: #d63031; }

/* estimar */
.numline { margin: 1rem 0 0; display: flex; flex-direction: column; gap: .4rem; flex: 1; justify-content: center; }
.nl-hist { height: 26vh; display: flex; align-items: flex-end; gap: 4px; opacity: 0; transition: opacity .4s; }
.numline.is-rev .nl-hist { opacity: 1; }
.nl-hist i { flex: 1; height: 0; background: linear-gradient(var(--sun), #e07a1f); border-radius: 6px 6px 0 0; transition: height .6s cubic-bezier(.2,.8,.2,1); }
.nl-track { position: relative; height: 18px; background: rgba(255,255,255,.14); border-radius: 9px; }
.nl-band { position: absolute; top: 0; bottom: 0; background: rgba(0,184,148,.45); border-radius: 9px; }
.nl-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; border: 4px solid #fff; }
.nl-mark b { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: clamp(1.1rem, 2vw, 1.7rem); background: var(--mint); color: #fff; padding: .15rem .8rem; border-radius: 999px; }
.nl-ans { background: var(--mint); z-index: 2; }
.nl-avg { background: var(--sun); width: 18px; height: 18px; border-width: 3px; }
.nl-avg b { top: auto; bottom: 30px; background: rgba(255,180,0,.9); color: var(--ink); font-size: clamp(.9rem, 1.4vw, 1.2rem); }
.nl-ends { display: flex; justify-content: space-between; font-weight: 800; opacity: .75; font-size: 1.2rem; margin-top: 2.6rem; }
.numline:not(.is-rev) .nl-ends { margin-top: .4rem; }

/* emparejar */
.match-cols { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 3rem); align-content: center; }
.match-cols ol, .match-pairs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.mc-left li, .mc-right li { display: flex; align-items: center; gap: .9rem; border-radius: 16px; padding: .7rem 1.1rem; font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 800; }
.mc-left li { background: var(--c); box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.mc-right li { background: rgba(255,255,255,.1); }
.mc-left b, .mc-right b { background: rgba(0,0,0,.2); border-radius: 10px; min-width: 1.7em; height: 1.7em; display: grid; place-items: center; }
.match-pairs { flex: 1; justify-content: center; }
.match-pairs li { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 800; }
.match-pairs .mp-a { background: var(--c); border-radius: 14px; padding: .55rem 1rem; text-align: right; }
.match-pairs .mp-b { background: rgba(255,255,255,.12); border-radius: 14px; padding: .55rem 1rem; }
.match-pairs i { font-style: normal; color: var(--mint); font-size: 1.4em; }

/* lluvia de ideas */
.brain-step { font-size: clamp(1.1rem, 1.8vw, 1.5rem); font-weight: 700; opacity: .85; margin: -.6rem 0 1rem; }
.brain-board { flex: 1; overflow: hidden; }
.brain-board.notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; align-content: start; }
.note-card { background: var(--nc); color: var(--ink); border-radius: 6px 6px 18px 6px; padding: 1rem 1.1rem; font-weight: 700; font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.25; transform: rotate(var(--rot)); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); animation: pop .4s; display: flex; flex-direction: column; gap: .4rem; }
.note-card small { opacity: .65; font-weight: 600; }
.note-card .qbtn { align-self: flex-start; background: rgba(0,0,0,.08); }
.note-card.is-hidden, .br-row.is-hidden { opacity: .35; }
.brain-board.ranked { display: flex; flex-direction: column; gap: .55rem; }
.br-row { display: grid; grid-template-columns: 2.4em minmax(0, 2fr) minmax(0, 1fr) auto auto; align-items: center; gap: .9rem; background: rgba(255,255,255,.08); border-radius: 14px; padding: .55rem 1rem; font-size: clamp(1rem, 1.7vw, 1.5rem); font-weight: 800; }
.br-row.top { background: rgba(255,180,0,.2); }
.br-row small { opacity: .65; font-weight: 600; }
.br-pos { text-align: center; opacity: .8; }
.br-txt { overflow-wrap: anywhere; }
.br-bar { height: 12px; background: rgba(255,255,255,.1); border-radius: 6px; overflow: hidden; }
.br-bar i { display: block; height: 100%; background: var(--sun); border-radius: 6px; transition: width .6s; }

/* ranking colectivo */
.rank-live { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; flex: 1; justify-content: center; }
.rank-live li { display: grid; grid-template-columns: 2.2em minmax(8em, 1.2fr) 3fr auto; align-items: center; gap: 1rem; font-size: clamp(1.1rem, 2vw, 1.8rem); font-weight: 800; animation: slidein .4s both; }
.rk-pos { background: var(--c); border-radius: 12px; height: 1.8em; display: grid; place-items: center; }
.rk-bar { height: clamp(22px, 4vh, 44px); background: rgba(255,255,255,.08); border-radius: 12px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; background: var(--c); border-radius: 12px; transition: width .6s; }
.rank-live b { min-width: 5em; text-align: right; opacity: .9; }

/* quién es más probable */
.likely-win { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2rem; }
.lw-first { display: flex; flex-direction: column; align-items: center; background: var(--sun); color: var(--ink); border-radius: 30px; padding: 1.2rem 3rem; box-shadow: 0 10px 0 rgba(0,0,0,.25); animation: rise .7s both cubic-bezier(.2,1.3,.4,1); }
.lw-first .av { font-size: clamp(4rem, 9vw, 7rem); }
.lw-first b { font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1; }
.lw-first small { font-weight: 700; font-size: 1.2rem; opacity: .75; }
.lw-rest { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem; padding: 0; margin: 0; font-weight: 700; font-size: 1.3rem; }
.lw-rest li i { font-style: normal; opacity: .6; margin-left: .4rem; }

/* ruleta */
.wheel-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); align-items: center; min-height: 0; }
.wheel { display: flex; justify-content: center; min-height: 0; }
.wheel-svg { width: min(100%, 60vh); height: auto; aspect-ratio: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.wheel-svg text { fill: #fff; font-family: var(--font); font-weight: 800; }
.wheel-rot { transform-origin: 0 0; }
.wheel-ptr { fill: #fff; stroke: #1d1640; stroke-width: 2; }
.wheel-side { display: flex; flex-direction: column; gap: 1rem; }
.wheel-res { background: #fff; color: var(--ink); border-radius: 26px; padding: 1.2rem 1.6rem; display: flex; flex-direction: column; align-items: flex-start; box-shadow: 0 10px 0 rgba(0,0,0,.25); animation: rise .6s both cubic-bezier(.2,1.3,.4,1); }
.wheel-res small { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--coral); }
.wheel-res .av { font-size: 3.5rem; line-height: 1.1; }
.wheel-res b { font-size: clamp(2rem, 4.5vw, 3.8rem); line-height: 1.05; overflow-wrap: anywhere; }
.wheel-hint { font-size: 1.4rem; opacity: .8; margin: 0; }
.wheel-hist { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.wheel-hist li { background: rgba(255,255,255,.12); border-radius: 999px; padding: .2rem .8rem; font-weight: 700; text-decoration: line-through; opacity: .7; }
@media (max-width: 900px) { .wheel-wrap { grid-template-columns: 1fr; } }

/* jugador: nuevas dinámicas */
.p-est output { font-size: clamp(3rem, 14vw, 5rem); }
.p-est-row { display: flex; align-items: center; gap: .5rem; }
.p-est-row input { flex: 1; min-width: 0; }
.p-est-row .btn { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); width: 3rem; padding: .5rem 0; font-size: 1.4rem; }
.p-match { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.pm-col { display: flex; flex-direction: column; gap: .5rem; }
.pm-l, .pm-r { border: 0; border-radius: 14px; font: inherit; font-weight: 800; font-size: clamp(.95rem, 3.8vw, 1.15rem); color: #fff; padding: .7rem .6rem; display: flex; align-items: center; gap: .5rem; text-align: left; cursor: pointer; min-height: 58px; line-height: 1.15; }
.pm-l { background: var(--c); box-shadow: 0 4px 0 rgba(0,0,0,.28); opacity: .75; }
.pm-l.is-act { opacity: 1; box-shadow: inset 0 0 0 3px #fff, 0 4px 0 rgba(0,0,0,.28); }
.pm-l.is-set { opacity: 1; }
.pm-r { background: rgba(255,255,255,.12); }
.pm-r.is-set { background: var(--c); }
.pm-l .ol, .pm-r .ol { min-width: 1.6em; height: 1.6em; border-radius: 9px; }
.p-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.p-person { border: 0; background: rgba(255,255,255,.12); color: #fff; font: inherit; font-weight: 700; border-radius: 14px; padding: .6rem .7rem; display: flex; align-items: center; gap: .5rem; text-align: left; cursor: pointer; overflow: hidden; }
.p-person .av { font-size: 1.5rem; flex: none; }
.p-person:active { background: var(--pink); }
.p-search { margin-bottom: .7rem; text-align: left; font-size: 1.05rem; }
.p-rank { text-align: left; font-size: 1.2rem; font-weight: 700; margin: .6rem 0 0; padding-left: 1.6rem; }
.p-ico.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* editor: nuevos campos */
.ef-field.third { flex: 1 1 calc(33.33% - .8rem); min-width: 150px; }
.ef-pairs { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.ef-pair { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; width: 100%; background: var(--c); border-radius: var(--r); padding: .35rem; }
.ef-pair input { margin: 0; border: 0; }
.ef-pair .ol { color: #fff; font-weight: 800; width: 1.8rem; text-align: center; }
.ef-pair i { font-style: normal; color: #fff; font-weight: 800; }
.ef-pair .rm { border: 0; border-radius: 10px; padding: .45rem .6rem; background: rgba(255,255,255,.3); color: #fff; cursor: pointer; font: inherit; }
@media (max-width: 560px) { .ef-pair { grid-template-columns: auto minmax(0, 1fr) auto; } .ef-pair i { display: none; } }

/* ===================================================================== 1.3 · equipos y eliminación */
.lp-teams { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; align-content: stretch; }
.lt-col { background: rgba(255,255,255,.06); border-radius: 18px; padding: .7rem; display: flex; flex-direction: column; gap: .5rem; border-top: 6px solid var(--tc); min-height: 0; }
.lt-head { display: flex; align-items: center; gap: .5rem; font-size: 1.3rem; }
.lt-head span { font-size: 1.6rem; }
.lt-head i { margin-left: auto; font-style: normal; background: var(--tc); color: #fff; border-radius: 999px; padding: 0 .65rem; font-weight: 800; }
.lt-list { display: flex; flex-wrap: wrap; gap: .4rem; overflow: hidden; }
.lt-list .pchip { font-size: clamp(.9rem, 1.1vw, 1.1rem); }
.tboard li { --c: var(--tc); }
.tboard li .btrack i { background: var(--tc); opacity: 1; }
.tboard li:first-child { background: var(--tc); color: #fff; }
.tboard li:first-child .btrack i { background: #fff; }
.tb-win { display: flex; flex-direction: column; align-items: center; background: var(--tc); border-radius: 28px; padding: 1rem 2rem; margin: 0 auto 1.4rem; width: fit-content; box-shadow: 0 10px 0 rgba(0,0,0,.25); animation: rise .7s both cubic-bezier(.2,1.3,.4,1); }
.tb-win span { font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; }
.tb-win b { font-size: clamp(2rem, 4.5vw, 3.6rem); line-height: 1.05; }
.tb-win small { font-weight: 700; opacity: .9; font-size: 1.1rem; }
.tb-mvp { text-align: center; font-size: 1.3rem; margin-top: 1.2rem; opacity: .9; }
.eboard h1 { color: #ff8a8d; }
.eb-note { text-align: center; font-size: 1.4rem; opacity: .85; margin: -.4rem 0 1.2rem; }
.eb-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.eb-alive { background: rgba(0,184,148,.25); }
.eb-out { background: rgba(255,90,95,.18); text-decoration: line-through; opacity: .7; animation: pop .4s, shake .5s .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.st-alive { color: #ff8a8d; }
.me-team { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--tc); font-size: 1.05rem; flex: none; }
.me-life { font-size: 1.05rem; }
.p-teams { width: 100%; max-width: 420px; margin-top: 1.2rem; }
.p-teams > p { font-weight: 700; opacity: .8; margin: 0 0 .5rem; }
.p-teams-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.p-team { border: 0; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 800; padding: .6rem; display: flex; align-items: center; gap: .4rem; justify-content: center; cursor: pointer; box-shadow: inset 0 0 0 3px transparent; }
.p-team span { font-size: 1.3rem; }
.p-team.on { background: var(--tc); box-shadow: inset 0 0 0 3px #fff; }
.p-elim { font-weight: 800; font-size: 1.15rem; background: rgba(0,184,148,.3); border-radius: 12px; padding: .35rem .9rem; margin-top: .6rem !important; opacity: 1 !important; }
.p-elim.out { background: rgba(0,0,0,.3); }
.p-teamview .p-ico { width: 6rem; height: 6rem; border-radius: 50%; background: var(--tc); display: grid; place-items: center; font-size: 3.4rem; }
.ef-teams { display: flex; align-items: center; gap: .8rem; margin: .9rem 0 0; font-weight: 700; }
.ef-teams select { width: auto; margin: 0; }

/* ===================================================================== 1.3.1 · logo propio (se ajusta sin deformarse) */
.logo-img { display: block; width: auto; height: auto; max-height: 42px; max-width: min(240px, 45vw); object-fit: contain; }
.logo-img.logo-sm { max-height: 34px; max-width: 40vw; }
.inst-side .logo-img { max-height: 64px; max-width: 100%; }
.st-logo { flex: none; width: auto; height: auto; max-height: clamp(28px, 4.2vh, 46px); max-width: min(220px, 18vw); object-fit: contain; }
.stage-top.logo-s .st-logo { max-height: clamp(22px, 3vh, 34px); max-width: min(160px, 14vw); }
.stage-top.logo-l .st-logo { max-height: clamp(36px, 6vh, 64px); max-width: min(300px, 24vw); }
.lj-logo { display: block; margin: 0 auto .8rem; width: auto; height: auto; max-width: 70%; max-height: 11vh; object-fit: contain; }
.logo-s .lj-logo { max-height: 7vh; max-width: 50%; }
.logo-l .lj-logo { max-height: 16vh; max-width: 85%; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin: 1rem 0 1.2rem; }
.brand-slot { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; }
.brand-slot small { color: var(--ink3); }
.brand-slot .check { margin: 0; }
.brand-prev { width: 100%; height: 140px; border-radius: var(--r); display: grid; place-items: center; padding: 1rem; border: 2px solid var(--line); }
.brand-prev.light { background: #fff; }
.brand-prev.dark { background: #15102f; border-color: #15102f; }
.brand-prev img { max-width: 90%; max-height: 100px; width: auto; height: auto; object-fit: contain; }
.brand-file { font-size: .85rem; }

/* ===================================================================== 1.4 · página de inicio interactiva */
.page-landing { overflow-x: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lp { display: block; }
.lp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
  padding-block: clamp(28px, 5vw, 64px) clamp(36px, 5vw, 70px); padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); isolation: isolate; }
.lp-hero::before { content: ''; position: absolute; inset: -10% -5% 0; z-index: -2;
  background: radial-gradient(520px 340px at 12% 20%, rgba(255,180,0,.22), transparent 70%), radial-gradient(600px 420px at 95% 30%, rgba(142,68,239,.18), transparent 70%), radial-gradient(500px 360px at 60% 100%, rgba(0,184,148,.16), transparent 70%); }
.lp-float { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lp-float span { position: absolute; font-size: clamp(1.4rem, 2.4vw, 2.4rem); opacity: .55; translate: var(--px, 0) var(--py, 0); animation: lpbob 6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); filter: drop-shadow(0 6px 10px rgba(29,22,64,.15)); }
.lp-float span:nth-child(1) { left: 3%; top: 12%; } .lp-float span:nth-child(2) { left: 44%; top: 6%; } .lp-float span:nth-child(3) { left: 8%; top: 78%; }
.lp-float span:nth-child(4) { left: 52%; top: 88%; } .lp-float span:nth-child(5) { left: 30%; top: 2%; } .lp-float span:nth-child(6) { left: 96%; top: 8%; }
.lp-float span:nth-child(7) { left: 41%; top: 60%; } .lp-float span:nth-child(8) { left: 94%; top: 90%; } .lp-float span:nth-child(9) { left: 1%; top: 46%; } .lp-float span:nth-child(10) { left: 60%; top: 2%; }
@keyframes lpbob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }
.lp-pill { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border-radius: 999px; padding: .3rem .95rem; font-weight: 700; font-size: .95rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.lp-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(0,184,148,.6); animation: lppulse 1.8s infinite; }
@keyframes lppulse { 70% { box-shadow: 0 0 0 10px rgba(0,184,148,0); } 100% { box-shadow: 0 0 0 0 rgba(0,184,148,0); } }
.lp-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -.035em; margin: 0 0 .5em; text-wrap: balance; }
.lp-rot { display: inline-block; position: relative; height: 1.08em; vertical-align: bottom; overflow: hidden; transition: width .45s cubic-bezier(.2,.8,.2,1); white-space: nowrap; }
.lp-rot span { position: absolute; left: 0; top: 0; transform: translateY(110%); opacity: 0; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .4s; }
.lp-rot span:nth-child(1) { color: var(--coral); } .lp-rot span:nth-child(2) { color: var(--sky); } .lp-rot span:nth-child(3) { color: var(--grape); } .lp-rot span:nth-child(4) { color: #e07a1f; } .lp-rot span:nth-child(5) { color: var(--mint); }
.lp-rot span.on { transform: none; opacity: 1; position: relative; }
.lp-rot span.off { transform: translateY(-110%); opacity: 0; }
body:not(.lp-js) .lp-rot span:first-child { position: relative; transform: none; opacity: 1; }
.lp-title-2 { display: block; }
.lp-sub { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--ink2); max-width: 46ch; }
.lp-pin { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.6rem 0 1rem; }
.lp-pin input { flex: 1 1 240px; max-width: 380px; margin: 0; font-size: 1.8rem; font-weight: 800; letter-spacing: .25em; text-align: center; padding: .38em .5em; border-width: 3px; border-radius: 18px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lp-pin input::placeholder { letter-spacing: .02em; font-size: 1.15rem; font-weight: 600; color: var(--ink3); }
.lp-pin input.full { border-color: var(--mint); box-shadow: 0 0 0 5px rgba(0,184,148,.18); }
.lp-pin input.shake { animation: shake .45s; border-color: var(--coral); }
.lp-cta-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.lp-cta-row.center { justify-content: center; }
.lp-btn-demo { background: var(--coral); }
.lp-btn-light { background: #fff; color: var(--ink); }

/* dispositivo con mini demo */
.lp-device { position: relative; display: flex; flex-direction: column; align-items: center; gap: .7rem; min-width: 0; animation: lpin .8s both cubic-bezier(.2,1,.3,1); }
@keyframes lpin { from { transform: translateY(30px) rotate(1.5deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-screen { position: relative; width: 100%; max-width: 560px; aspect-ratio: 16 / 11.5; border-radius: 26px; overflow: hidden; color: #fff; display: flex; flex-direction: column; padding: 14px 16px 16px;
  background: radial-gradient(420px 260px at 0 0, rgba(142,68,239,.55), transparent 70%), radial-gradient(380px 260px at 100% 100%, rgba(255,90,95,.4), transparent 70%), #15102f;
  box-shadow: 0 0 0 10px #1d1640, 0 40px 80px -30px rgba(29,22,64,.65); transform: rotate(-1deg); transition: transform .4s; }
.lp-device:hover .lp-screen { transform: rotate(0); }
.lp-screen-top { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem; }
.lp-live { color: #ff8a8d; animation: lpblink 1.4s infinite; }
@keyframes lpblink { 50% { opacity: .45; } }
.lp-pinbadge { background: rgba(255,255,255,.12); border-radius: 999px; padding: .1rem .7rem; }
.lp-pinbadge b { color: var(--sun); letter-spacing: .05em; }
.lp-players { margin-left: auto; font-variant-numeric: tabular-nums; }
.lp-tabs { display: flex; gap: .35rem; margin: .7rem 0 .5rem; flex-wrap: wrap; }
.lp-tabs button { border: 0; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 700; font-size: .85rem; padding: .25rem .8rem; border-radius: 999px; cursor: pointer; transition: background .2s; }
.lp-tabs button.on { background: var(--sun); color: var(--ink); }
.lp-stagebox { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lp-stagebox.lp-in { animation: lpstage .45s both; }
@keyframes lpstage { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.lp-q { background: #fff; color: var(--ink); border-radius: 14px; padding: .45rem .8rem; font-weight: 800; font-size: clamp(.95rem, 1.5vw, 1.15rem); margin: 0 0 .55rem; line-height: 1.2; }
.lp-timer { height: 6px; background: rgba(255,255,255,.15); border-radius: 3px; overflow: hidden; margin-bottom: .55rem; }
.lp-timer i { display: block; height: 100%; width: 100%; background: var(--sun); border-radius: 3px; }
.lp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; flex: 1; }
.lp-opt { position: relative; overflow: hidden; border: 0; border-radius: 14px; background: var(--c); color: #fff; font: inherit; font-weight: 800; font-size: clamp(.85rem, 1.3vw, 1.05rem); display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; cursor: pointer; text-align: left; box-shadow: 0 4px 0 rgba(0,0,0,.28); transition: transform .12s, opacity .3s; }
.lp-opt:hover:not(:disabled) { transform: translateY(-2px); }
.lp-opt:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.28); }
.lp-opt span { background: rgba(0,0,0,.2); border-radius: 8px; min-width: 1.6em; height: 1.6em; display: grid; place-items: center; flex: none; }
.lp-opt em { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: rgba(255,255,255,.85); transition: width .8s cubic-bezier(.2,.8,.2,1); font-size: 0; }
.lp-opt.no { opacity: .4; }
.lp-opt.ok { box-shadow: 0 0 0 3px #fff, 0 4px 0 rgba(0,0,0,.28); }
.lp-opt.ok::after { content: '✓'; margin-left: auto; font-size: 1.2em; }
.lp-opt.mine { outline: 3px dashed rgba(255,255,255,.8); outline-offset: 2px; }
.lp-res { margin: .5rem 0 0; min-height: 1.6em; font-weight: 700; text-align: center; font-size: .95rem; }
.lp-pop { display: inline-block; background: var(--mint); color: #fff; border-radius: 999px; padding: .15rem .9rem; animation: pop .4s cubic-bezier(.2,1.6,.4,1); }
.lp-pop.no { background: var(--coral); }
.lp-bars { display: flex; flex-direction: column; gap: .4rem; flex: 1; justify-content: center; }
.lp-bar { display: grid; grid-template-columns: minmax(6.5em, auto) 1fr 3em; align-items: center; gap: .55rem; border: 0; background: transparent; color: #fff; font: inherit; font-weight: 800; font-size: clamp(.85rem, 1.3vw, 1rem); cursor: pointer; padding: .15rem; border-radius: 10px; text-align: left; }
.lp-bar:hover { background: rgba(255,255,255,.06); }
.lp-bar-track { height: 22px; background: rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.lp-bar-track i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 8px; transition: width .55s cubic-bezier(.2,.8,.2,1); }
.lp-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.lp-bar.mine .lp-bar-t::after { content: ' ✓'; color: var(--sun); }
.lp-cloud { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: .1em .6em; background: rgba(255,255,255,.05); border-radius: 16px; padding: .5rem; min-height: 0; overflow: hidden; }
.lp-cloud span { font-weight: 800; line-height: 1.05; animation: pop .35s; transition: font-size .4s; }
.lp-cloud .c0 { color: var(--sun); } .lp-cloud .c1 { color: #ff8a8d; } .lp-cloud .c2 { color: #45e0bd; } .lp-cloud .c3 { color: #79b0ff; } .lp-cloud .c4 { color: #c39bff; } .lp-cloud .c5 { color: #ff8fd0; }
.lp-cloud .mine { color: #fff; text-shadow: 0 0 18px rgba(255,180,0,.9); }
.lp-addword { display: flex; gap: .4rem; margin-top: .5rem; }
.lp-addword input { margin: 0; padding: .35rem .7rem; font-size: .95rem; border: 0; border-radius: 10px; }
.lp-addword .btn { background: var(--sun); color: var(--ink); }
.lp-wheel { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: .8rem; align-items: center; min-height: 0; }
.lp-wheel svg { width: 100%; max-height: 100%; aspect-ratio: 1; filter: drop-shadow(0 12px 20px rgba(0,0,0,.4)); }
.lp-wheel text { fill: #fff; font-family: var(--font); font-weight: 800; font-size: 11px; }
#lpRotG { transform-origin: 0 0; }
.lp-wheel-side { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.lp-wheel-side .btn { background: var(--sun); color: var(--ink); }
.lp-wheel-side .lp-res { text-align: left; }
.lp-join { position: absolute; left: 14px; bottom: 12px; display: flex; flex-direction: column; gap: .3rem; pointer-events: none; }
.lp-joinchip { background: rgba(255,255,255,.95); color: var(--ink); font-weight: 700; font-size: .78rem; padding: .2rem .7rem; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); animation: lpjoin 2.6s both; }
@keyframes lpjoin { 0% { transform: translateX(-120%); opacity: 0; } 12%, 80% { transform: none; opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.lp-conf { position: absolute; top: 20%; width: 8px; height: 12px; border-radius: 2px; z-index: 5; pointer-events: none; animation: lpconf 1.8s ease-in forwards; }
@keyframes lpconf { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), 380px) rotate(540deg); opacity: 0; } }
.lp-device-hint { font-weight: 700; color: var(--ink2); margin: .4rem 0 0; animation: lpbob 3s ease-in-out infinite; }

/* carrusel de dinámicas */
.lp-marquee { overflow: hidden; padding: 1rem 0; background: var(--ink); transform: rotate(-1.2deg) scale(1.03); }
.lp-track { display: flex; gap: .7rem; width: max-content; animation: lpmarq 38s linear infinite; }
.lp-marquee:hover .lp-track { animation-play-state: paused; }
@keyframes lpmarq { to { transform: translateX(-50%); } }
.lp-chip { display: inline-flex; align-items: center; gap: .5rem; color: #fff; font-weight: 800; padding: .45rem 1.1rem .45rem .55rem; border-radius: 999px; white-space: nowrap; font-size: 1.05rem; }
.lp-chip i { font-style: normal; background: rgba(0,0,0,.18); border-radius: 999px; min-width: 2em; height: 2em; display: grid; place-items: center; font-size: .8em; padding: 0 .35em; }

/* secciones */
.lp-sec { padding-block: clamp(48px, 7vw, 96px); padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); }
.lp-sec-alt { background: #fff; }
.lp-h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -.025em; max-width: 22ch; margin-bottom: 1.6rem; text-wrap: balance; }
.lp-js .lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.lp-js .lp-reveal.in { opacity: 1; transform: none; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; }
.lp-steps li { position: relative; background: #fff; border-radius: var(--r-lg); padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow); }
.lp-steps li:nth-child(2) { --d: 120ms; } .lp-steps li:nth-child(3) { --d: 240ms; }
.lp-step-n { position: absolute; top: -.9rem; left: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-weight: 800; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.lp-step-ico { font-size: 2.6rem; line-height: 1; margin-bottom: .6rem; transition: transform .4s cubic-bezier(.2,1.6,.4,1); }
.lp-steps li:hover .lp-step-ico { transform: scale(1.2) rotate(-8deg); }
.lp-steps b { font-size: 1.3rem; display: block; margin-bottom: .3rem; }
.lp-steps p { color: var(--ink2); margin: 0; }
.lp-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.lp-filter button { border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; padding: .4rem 1.1rem; border-radius: 999px; cursor: pointer; color: var(--ink2); transition: all .2s; }
.lp-filter button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: .9rem; }
.lp-card { color: #fff; border-radius: 20px; padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; min-height: 150px; box-shadow: 0 6px 0 rgba(0,0,0,.18); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, opacity .3s; will-change: transform; }
.lp-card:hover { box-shadow: 0 14px 30px -10px rgba(29,22,64,.45); }
.lp-card-ico { font-weight: 800; font-size: 1.5rem; background: rgba(255,255,255,.2); border-radius: 12px; width: fit-content; min-width: 2.4rem; height: 2.4rem; display: grid; place-items: center; padding: 0 .5rem; margin-bottom: .4rem; transition: transform .4s cubic-bezier(.2,1.6,.4,1); }
.lp-card:hover .lp-card-ico { transform: scale(1.15) rotate(-6deg); }
.lp-card b { font-size: 1.2rem; line-height: 1.15; }
.lp-card small { opacity: .92; line-height: 1.3; }
.lp-card.lp-hide { display: none; }
.lp-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1rem; }
.lp-mode { background: #fff; border-radius: var(--r-lg); padding: 1.3rem; box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.lp-mode:nth-child(2) { --d: 90ms; } .lp-mode:nth-child(3) { --d: 180ms; } .lp-mode:nth-child(4) { --d: 270ms; }
.lp-mode b { font-size: 1.3rem; display: block; margin: .8rem 0 .2rem; }
.lp-mode p { color: var(--ink2); margin: 0; }
.lp-mode-art { height: 90px; border-radius: 16px; background: var(--ink); display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: 2rem; overflow: hidden; }
.art-classic { align-items: flex-end; padding-bottom: 14px; }
.art-classic i { width: 26px; border-radius: 6px 6px 0 0; background: var(--sun); animation: lpgrow 2.4s ease-in-out infinite; }
.art-classic i:nth-child(1) { height: 40px; background: #c9d3e6; animation-delay: .2s; } .art-classic i:nth-child(2) { height: 62px; } .art-classic i:nth-child(3) { height: 28px; background: #f0a36a; animation-delay: .4s; }
@keyframes lpgrow { 50% { transform: scaleY(.6); transform-origin: bottom; } }
.art-accuracy span { animation: lpspin 6s linear infinite; }
@keyframes lpspin { to { transform: rotate(360deg); } }
.art-teams span { animation: lpbob 2.4s ease-in-out infinite; } .art-teams span:nth-child(2) { animation-delay: -.8s; } .art-teams span:nth-child(3) { animation-delay: -1.6s; }
.art-elim span { color: #ff5a5f; animation: lpbeat 1.2s infinite; }
.art-elim span.out { animation: lpfade 2.4s infinite; }
@keyframes lpbeat { 50% { transform: scale(1.18); } }
@keyframes lpfade { 0%, 40% { opacity: 1; transform: none; } 70%, 100% { opacity: .2; transform: translateY(8px) rotate(20deg); } }
.lp-uses { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.lp-use-tabs { display: flex; flex-direction: column; gap: .5rem; }
.lp-use-tabs button { text-align: left; border: 2px solid var(--line); background: var(--paper); font: inherit; font-weight: 800; font-size: 1.1rem; padding: .8rem 1rem; border-radius: 16px; cursor: pointer; color: var(--ink); transition: all .2s; }
.lp-use-tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateX(6px); }
.lp-use { display: none; background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.2rem, 3vw, 2rem); }
.lp-use.on { display: block; animation: lpstage .4s both; }
.lp-use b { font-size: clamp(1.4rem, 2.6vw, 2rem); display: block; margin-bottom: .5rem; line-height: 1.1; }
.lp-use p { font-size: 1.15rem; color: var(--ink2); max-width: 55ch; }
.lp-use-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.lp-use-tags i { font-style: normal; font-weight: 700; background: #fff; border-radius: 999px; padding: .2rem .8rem; box-shadow: var(--shadow); }
.lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem; padding-block: clamp(36px, 5vw, 64px); padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); }
.lp-stat { text-align: center; }
.lp-stat b { display: block; font-size: clamp(3rem, 7vw, 5rem); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.lp-stat:nth-child(1) b { color: var(--coral); } .lp-stat:nth-child(2) b { color: var(--sky); } .lp-stat:nth-child(3) b { color: var(--grape); } .lp-stat:nth-child(4) b { color: var(--mint); }
.lp-stat span { font-weight: 700; color: var(--ink2); }
.lp-final { text-align: center; color: #fff; padding-block: clamp(56px, 8vw, 110px); padding-left: max(16px, 4vw); padding-right: max(16px, 4vw);
  background: radial-gradient(700px 400px at 15% 0, rgba(142,68,239,.5), transparent 70%), radial-gradient(600px 400px at 90% 100%, rgba(255,90,95,.4), transparent 70%), var(--ink); }
.lp-final h2 { font-size: clamp(2rem, 4.5vw, 3.6rem); letter-spacing: -.025em; text-wrap: balance; }
.lp-final p { font-size: 1.2rem; opacity: .85; margin-bottom: 1.6rem; }
.lp-final-logo { display: flex; justify-content: center; margin-bottom: 1.2rem; animation: lpbob 3.2s ease-in-out infinite; }
.lp-final-logo .logo { font-size: 3rem; }
.lp-final-logo .logo-img { max-height: 90px; max-width: min(360px, 80vw); }
.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.4rem; padding-left: max(16px, 4vw); padding-right: max(16px, 4vw); background: var(--ink); color: rgba(255,255,255,.7); border-top: 1px solid rgba(255,255,255,.08); }
.lp-foot nav { display: flex; gap: 1.2rem; }
.lp-foot a { color: #fff; }
.lp-foot .logo-img { max-height: 30px; }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; }
  .lp-screen { transform: none; }
  .lp-uses { grid-template-columns: 1fr; }
  .lp-use-tabs { flex-direction: row; flex-wrap: wrap; }
  .lp-use-tabs button.on { transform: none; }
}
@media (max-width: 520px) {
  .lp-screen { aspect-ratio: auto; min-height: 360px; }
  .lp-wheel { grid-template-columns: 1fr; }
  .lp-wheel svg { max-width: 220px; margin: 0 auto; }
  .lp-wheel-side { align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-float span, .lp-track, .lp-device-hint, .lp-final-logo, .lp-mode-art * { animation: none !important; }
  .lp-js .lp-reveal { opacity: 1; transform: none; }
}

/* ===================================================================== 1.4 · panel: dinámicas por bloque y plantillas */
.dz-sec, .tpl-strip { margin-top: 2.6rem; }
.dz-sec .page-head, .tpl-strip .page-head { margin-bottom: 1rem; align-items: flex-end; }
.dz-sec h2, .tpl-strip h2 { margin: 0 0 .2rem; font-size: 1.6rem; }
.dz-sec .page-head p, .tpl-strip .page-head p { margin: 0; }
.dz-groups { display: grid; grid-template-columns: 3fr 2fr; gap: 1.2rem 1.4rem; }
.dz-group:nth-child(-n+2) { grid-column: 1 / -1; }
.dz-group .eyebrow { margin-bottom: .5rem; }
.dz-grid { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: .7rem; }
.dz-group:nth-child(1) .dz-grid { --n: 8; } .dz-group:nth-child(2) .dz-grid { --n: 6; }
.dz-group:nth-child(3) .dz-grid { --n: 3; } .dz-group:nth-child(4) .dz-grid { --n: 2; }
.dz-form { margin: 0; display: flex; }
.dz-tile { flex: 1; border: 0; border-radius: 18px; color: #fff; font: inherit; text-align: left; padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .2rem; cursor: pointer; min-height: 132px;
  box-shadow: 0 5px 0 rgba(0,0,0,.18); transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; }
.dz-tile:hover, .dz-tile:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 24px -10px rgba(29,22,64,.5); outline: none; }
.dz-tile:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.dz-ico { font-weight: 800; font-size: 1.15rem; background: rgba(255,255,255,.22); border-radius: 10px; width: fit-content; min-width: 2.1rem; height: 2.1rem; display: grid; place-items: center; padding: 0 .45rem; margin-bottom: .35rem; }
.dz-tile b { font-size: 1.08rem; line-height: 1.15; }
.dz-tile small { opacity: .92; line-height: 1.25; font-size: .88rem; }
.tp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.tp-card { margin: 0; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.tp-cover { color: #fff; padding: .9rem 1.1rem 1rem; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; gap: .35rem; position: relative; }
.tp-cover b { font-size: 1.25rem; line-height: 1.15; }
.tp-fmt { align-self: flex-start; font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.18); border-radius: 999px; padding: .1rem .6rem; }
.tp-body { padding: .9rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.tp-desc { margin: 0; color: var(--ink2); font-size: .93rem; line-height: 1.35; }
.tp-seq { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; counter-reset: s; flex: 1; }
.tp-seq li { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; }
.tp-ico { flex: none; min-width: 1.7rem; height: 1.7rem; border-radius: 8px; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .72rem; padding: 0 .3rem; }
.tp-body .btn { align-self: flex-start; }
.tp-blank { background: transparent; box-shadow: none; }
.tp-blank-btn { flex: 1; border: 3px dashed var(--ink3); background: transparent; border-radius: var(--r-lg); font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: 1.4rem; min-height: 220px; transition: background .2s, border-color .2s; }
.tp-blank-btn:hover { background: #fff; border-color: var(--ink); }
.tp-blank-btn span { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.tp-blank-btn b { font-size: 1.2rem; }
.tp-blank-btn small { color: var(--ink2); text-align: center; }
@media (max-width: 1200px) { .dz-group:nth-child(1) .dz-grid { --n: 4; } .dz-group:nth-child(2) .dz-grid { --n: 3; } .tp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .dz-groups { grid-template-columns: 1fr; } .dz-group .dz-grid { --n: 2 !important; } }
@media (max-width: 520px) { .tp-grid { grid-template-columns: 1fr; } }

/* ===================================================================== 1.5 · segundo bloque de dinámicas */
.t-pin { background: #e1306c; } .t-fillblank { background: #3867d6; } .t-buzzer { background: #f0932b; } .t-matrix { background: #16a085; }

/* ubicar en la imagen */
.dpin, .dmatrix, .dbuzz, .dfill { min-height: 0; }
.pin-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pin-box { position: relative; aspect-ratio: var(--ar, 1.5); width: min(100%, calc(60vh * var(--ar, 1.5))); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px -20px rgba(0,0,0,.7); background: rgba(255,255,255,.08); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.pin-box img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.pin-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(10,6,30,.78); color: #fff; padding: .4rem 1.2rem; border-radius: 999px; font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.5rem); white-space: nowrap; animation: pulse 2s infinite; }
.pin-ring { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(0,184,148,.28); border: 3px dashed #fff; animation: ringIn .5s; }
@keyframes ringIn { from { transform: translate(-50%, -50%) scale(.3); opacity: 0; } }
.pin-dot { position: absolute; width: 22px; height: 22px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.45); }
.pin-dot.sm { width: 14px; height: 14px; border-width: 2px; opacity: 0; animation: pinIn .35s forwards; animation-delay: var(--d, 0ms); }
.pin-dot.ok { background: var(--mint); } .pin-dot.no { background: var(--coral); }
.pin-dot.is-ans { width: 30px; height: 30px; background: var(--sun); z-index: 3; border-width: 4px; }
.pin-dot.is-me { background: var(--sky); z-index: 4; }
.pin-dot b { position: absolute; left: 50%; bottom: 130%; transform: translateX(-50%); background: var(--sun); color: var(--ink); padding: .05rem .7rem; border-radius: 999px; font-size: clamp(.9rem, 1.5vw, 1.3rem); white-space: nowrap; }
.pin-dot.is-me b { background: var(--sky); color: #fff; }
@keyframes pinIn { from { opacity: 0; transform: translate(-50%, -150%); } to { opacity: .9; transform: translate(-50%, -50%); } }
.p-pin { display: flex; justify-content: center; margin-bottom: .9rem; }
.p-pin-box { width: min(100%, calc(52vh * var(--ar, 1.5))); cursor: crosshair; }
.p-pin-res { width: min(100%, calc(34vh * var(--ar, 1.5))); margin-top: .8rem; }
.ef-pin { position: relative; aspect-ratio: var(--ar, 1.5); width: min(100%, calc(46vh * var(--ar, 1.5))); border-radius: 14px; overflow: hidden; cursor: crosshair; border: 2px solid var(--line); background: var(--soft); user-select: none; }
.ef-pin img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ef-pin-dot { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--sun); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--ink), 0 4px 12px rgba(0,0,0,.4); }
.ef-prev { background: var(--soft); border-radius: var(--r); padding: .8rem 1rem; }
.ef-prev p { margin: 0; }
.ef-prev-q { font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem !important; }
.ef-prev-empty { color: var(--ink2); font-size: .95rem; background: var(--soft); border-radius: var(--r); padding: .8rem 1rem; margin: 0; }

/* completar espacios */
.fb-ins { flex: 1; margin: 0; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.fb-phrase { background: #fff; color: var(--ink); border-radius: 26px; padding: .7em 1em; font-size: clamp(1.8rem, 4vw, 3.6rem); font-weight: 800; line-height: 1.5; text-align: center; margin: 0 0 1.4rem; box-shadow: 0 14px 40px -18px rgba(0,0,0,.6); }
.fb-gap { display: inline-block; min-width: 3.2em; padding: 0 .45em; margin: 0 .1em; border-radius: 12px; background: var(--soft); border-bottom: 5px solid var(--grape); color: var(--grape); text-align: center; line-height: 1.25; }
.fb-gap.is-rev { background: var(--mint); color: #fff; border-color: #00876b; animation: pop .45s; }
.fb-gap.is-ed { min-width: 0; font-size: .95em; background: #e7ddff; border-bottom-width: 3px; }
.fb-stats { display: flex; flex-direction: column; gap: .7rem; align-items: center; }
.fb-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; }
.fb-row > b { font-size: clamp(1rem, 1.7vw, 1.4rem); opacity: .85; margin-right: .3rem; }
.p-fill { background: #fff; color: var(--ink); border-radius: 20px; padding: 1rem; font-size: clamp(1.15rem, 5vw, 1.45rem); font-weight: 700; line-height: 2.2; text-align: center; margin: 0 0 1rem; }
.p-gap { display: inline-block; width: 7.5em; max-width: 60vw; margin: 0 .15rem; padding: .25em .5em; font-weight: 800; text-align: center; border: 0; border-bottom: 4px solid var(--grape); border-radius: 10px; background: #f1ebff; vertical-align: baseline; line-height: 1.2; }
.p-gap:focus { outline: none; box-shadow: 0 0 0 3px rgba(142,68,239,.35); }

/* botón rápido */
.buzz-main { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 28vh; }
.buzz-go, .buzz-turn, .buzz-win { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .2rem; animation: pop .4s; }
.buzz-go b, .buzz-turn b, .buzz-win b { font-size: clamp(2.4rem, 6vw, 5.4rem); line-height: 1; }
.buzz-turn small, .buzz-win small { font-size: clamp(1.1rem, 2vw, 1.7rem); font-weight: 800; opacity: .85; text-transform: uppercase; letter-spacing: .1em; }
.buzz-turn .av, .buzz-win .av { font-size: clamp(4rem, 9vw, 8rem); line-height: 1; }
.buzz-win i { font-style: normal; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2.4rem); color: var(--sun); }
.buzz-bell { font-size: clamp(5rem, 11vw, 9rem); line-height: 1; display: inline-block; animation: ring 1s infinite; }
.buzz-go.wait .buzz-bell { animation: pulse 1s infinite; }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-14deg); } 20%, 40% { transform: rotate(14deg); } }
.buzz-q { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.buzz-q li { display: flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.12); border-radius: 999px; padding: .3rem .9rem .3rem .35rem; font-weight: 800; font-size: clamp(.95rem, 1.6vw, 1.3rem); animation: pop .3s; }
.buzz-q li i { font-style: normal; background: rgba(255,255,255,.2); border-radius: 999px; min-width: 1.7em; text-align: center; }
.buzz-q li small { opacity: .65; font-weight: 600; }
.buzz-q li.turn { background: var(--sun); color: var(--ink); }
.buzz-q li.ok { background: var(--mint); }
.buzz-q li.no { opacity: .45; text-decoration: line-through; }
.buzz-host { margin-top: 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.buzz-secret { margin: 0; background: rgba(0,0,0,.35); border: 2px dashed rgba(255,255,255,.35); border-radius: 14px; padding: .4rem 1rem; font-weight: 600; }
.buzz-btns { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; }
.buzz-btns .cbtn { font-size: 1.2rem; padding: .7rem 1.6rem; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.buzz-ok { background: var(--mint) !important; } .buzz-no { background: var(--coral) !important; }
.p-buzz { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
.buzz-btn { width: min(72vw, 300px); aspect-ratio: 1; border-radius: 50%; border: 0; background: radial-gradient(circle at 35% 30%, #ff8a8d, var(--coral) 55%, #c9363b); color: #fff; font: inherit; font-weight: 800; font-size: clamp(2.6rem, 13vw, 4rem); box-shadow: 0 12px 0 #9e2228, 0 22px 40px rgba(0,0,0,.45); cursor: pointer; transition: transform .06s, box-shadow .06s; -webkit-tap-highlight-color: transparent; }
.buzz-btn:active:not(:disabled) { transform: translateY(10px); box-shadow: 0 2px 0 #9e2228, 0 8px 18px rgba(0,0,0,.45); }
.buzz-btn.wait { background: radial-gradient(circle at 35% 30%, #8a84a8, #4a4370); box-shadow: 0 12px 0 #2c2650; font-size: clamp(1.6rem, 8vw, 2.4rem); }
.p-buzz-me { animation: pop .4s; }

/* matriz 2×2 */
.mx-stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 22%); gap: 1.4rem; align-items: center; min-height: 0; }
.mx-wrap { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: .4rem; align-items: center; justify-items: center; }
.mx-y { grid-row: 1; grid-column: 1; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.5rem); }
.mx-x { grid-row: 2; grid-column: 2; font-weight: 800; font-size: clamp(1rem, 1.8vw, 1.5rem); }
.mx-grid { grid-row: 1; grid-column: 2; position: relative; width: min(100%, calc(58vh * 1.45)); aspect-ratio: 1.45; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; background: rgba(255,255,255,.35); border-radius: 18px; overflow: hidden; user-select: none; touch-action: manipulation; }
.mx-q { background: rgba(255,255,255,.1); }
.mx-q.q2 { background: rgba(0,184,148,.22); }
.mx-end { position: absolute; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; opacity: .6; pointer-events: none; }
.mx-y0 { left: 8px; bottom: 6px; } .mx-y1 { left: 8px; top: 6px; } .mx-x1 { right: 8px; bottom: 6px; }
.mx-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--c); opacity: .45; transform: translate(-50%, -50%); transition: left .5s, top .5s; }
.mx-avg { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .35rem; z-index: 2; transition: left .6s cubic-bezier(.2,.8,.2,1), top .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.mx-avg b { width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; background: var(--c); border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.45); font-size: clamp(.9rem, 1.6vw, 1.3rem); }
.mx-avg em { font-style: normal; font-weight: 800; background: rgba(10,6,30,.72); padding: .05rem .6rem; border-radius: 999px; font-size: clamp(.85rem, 1.4vw, 1.15rem); white-space: nowrap; max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.mx-avg.sm b { font-size: .95rem; }
.mx-avg.is-act b { box-shadow: 0 0 0 4px var(--sun), 0 4px 12px rgba(0,0,0,.45); }
.mx-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.mx-legend li { display: flex; align-items: center; gap: .6rem; background: rgba(255,255,255,.1); border-radius: 14px; padding: .45rem .8rem; font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.mx-legend b { background: var(--c); border-radius: 50%; width: 1.8em; height: 1.8em; display: grid; place-items: center; flex: none; }
.p-mx-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-bottom: .8rem; }
.p-mx-chips .pm-l { min-height: 48px; }
.p-mx { margin-bottom: .9rem; }
.p-mx .mx-grid { width: 100%; cursor: crosshair; }
.p-mx .mx-y, .p-mx .mx-x { font-size: .95rem; }
@media (max-width: 900px) { .mx-stage { grid-template-columns: 1fr; } .mx-legend { flex-direction: row; flex-wrap: wrap; justify-content: center; } }

/* ===================================================================== 1.6 · importar desde Excel */
.ed-import { width: 100%; margin-top: .5rem; border: 0; background: transparent; color: var(--ink2); border-radius: var(--r); padding: .55rem; font: inherit; font-weight: 700; cursor: pointer; }
.ed-import:hover { background: #fff; color: var(--ink); }
.imp-box { max-width: 760px; }
.imp-box > p { color: var(--ink2); }
.imp-steps { display: flex; gap: .7rem; flex-wrap: wrap; margin: .4rem 0 .6rem; }
.imp-small { font-size: .9rem; }
.imp-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: 1rem 0 .6rem; font-size: 1.1rem; }
.imp-sum span { display: flex; flex-wrap: wrap; gap: .35rem; }
.imp-sum i { font-style: normal; color: #fff; border-radius: 999px; padding: .1rem .65rem; font-weight: 800; font-size: .85rem; }
.imp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; border-radius: var(--r); background: var(--soft); padding: .5rem; }
.imp-list li { display: flex; align-items: center; gap: .65rem; background: #fff; border-radius: 12px; padding: .45rem .6rem; }
.imp-actions { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.note-warn { background: #fff4d6; color: #7a5600; border-radius: var(--r); padding: .7rem 1rem; margin: .6rem 0; font-size: .95rem; }
.note-warn ul { margin: .3rem 0 0; padding-left: 1.2rem; }

/* ===================================================================== 1.6 · planes, mi plan y empresa */
.plans { padding: clamp(16px, 3vw, 40px); }
.plans-hero { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.plans-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .3em; }
.plans-lead { font-size: 1.15rem; color: var(--ink2); }
.cycle-toggle { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow); gap: 4px; margin-top: .6rem; }
.cycle-toggle button { border: 0; background: transparent; font: inherit; font-weight: 800; padding: .55rem 1.3rem; border-radius: 999px; cursor: pointer; color: var(--ink2); }
.cycle-toggle button[aria-checked="true"] { background: var(--ink); color: #fff; }
.cycle-toggle i { font-style: normal; font-size: .78rem; background: var(--mint); color: #fff; border-radius: 999px; padding: .1rem .5rem; margin-left: .3rem; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; align-items: stretch; }
.plan-card { position: relative; background: #fff; border-radius: 26px; padding: 1.6rem 1.4rem 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5rem; border: 3px solid transparent; }
.plan-card h2 { margin: 0; font-size: 1.6rem; }
.plan-card.is-top { border-color: var(--grape); box-shadow: 0 24px 50px -24px rgba(142,68,239,.6); }
.plan-flag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grape); color: #fff; font-weight: 800; font-size: .82rem; padding: .2rem .9rem; border-radius: 999px; white-space: nowrap; }
.plan-tag { color: var(--ink3); margin: 0; min-height: 2.8em; }
.plan-price { min-height: 5.2rem; display: flex; flex-direction: column; justify-content: center; }
.plan-price b { font-size: 2.6rem; line-height: 1; }
.plan-price span span, .plan-price > span:not([class]) { display: block; color: var(--ink2); font-weight: 600; font-size: .95rem; margin-top: .2rem; }
.plan-price .pp-m, .plan-price .pp-y { display: block; }
[data-cycle-box="month"] .pp-y, [data-cycle-box="year"] .pp-m { display: none !important; }
.plan-min { margin: 0; font-size: .9rem; color: var(--ink2); font-weight: 700; }
.plan-feats { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .97rem; }
.plan-feats li { padding-left: 1.6rem; position: relative; line-height: 1.3; }
.plan-feats li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.plan-feats li.on::before { content: '✓'; color: var(--mint); }
.plan-feats li.off { color: var(--ink3); text-decoration: line-through; text-decoration-color: rgba(138,132,168,.5); }
.plan-feats li.off::before { content: '–'; color: var(--ink3); }
.btn.is-off { pointer-events: none; opacity: .7; }
.plans-faq { max-width: 1100px; margin: 3rem auto 0; }
.plans-faq h2 { text-align: center; font-size: 1.8rem; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.faq-grid > div { background: #fff; border-radius: var(--r-lg); padding: 1.1rem 1.3rem; box-shadow: var(--shadow); }
.faq-grid p { margin: .35rem 0 0; color: var(--ink2); }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }

.plan-strip { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; background: #fff; border-radius: var(--r); padding: .55rem .6rem .55rem 1rem; margin-bottom: 1.2rem; box-shadow: var(--shadow); }
.plan-now h2 { font-size: 2.2rem; margin: 0 0 .2rem; }
.sub-box { margin-top: 1rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.up-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: .8rem; }
.up-card { border: 2px solid var(--line); border-radius: var(--r-lg); padding: 1rem; display: flex; flex-direction: column; gap: .4rem; margin: 0; }
.up-card.is-want { border-color: var(--grape); box-shadow: 0 0 0 3px rgba(142,68,239,.15); }
.up-card.is-cur { background: var(--soft); }
.up-card b { font-size: 1.3rem; }
.up-card small { color: var(--ink3); }
.up-opt { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin: 0; cursor: pointer; }
.up-opt input { width: auto; margin: 0; }
.up-opt em { font-style: normal; color: var(--ink3); font-weight: 600; }
.up-note { margin: .9rem 0 0; }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--sky); font-weight: 700; cursor: pointer; text-decoration: underline; }

.how-list { padding-left: 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; }
.inline-form input { width: auto; flex: 1; min-width: 12rem; margin: 0; }
.inline-form input[type=number] { flex: none; width: 6rem; min-width: 0; }
.bill-box { margin-bottom: 1.2rem; }
.pay-form { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: flex-end; }
.pay-form label:first-of-type { width: 9rem; margin: 0; }
.pay-form .seg label { display: inline-flex; align-items: center; gap: .35rem; padding: .45em 1em; font-weight: 700; cursor: pointer; margin: 0; }
.pay-form .seg input { width: auto; margin: 0; }
.pay-total { margin: 0; font-size: 1.2rem; flex: 1; min-width: 14rem; }
.team-grid { margin-top: 1.2rem; }
.add-results ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.add-results li { padding: .5rem .8rem; border-radius: 12px; background: var(--soft); }
.add-results .ar-error { background: #ffe9e9; color: #b3262b; }
.add-results .ar-added { background: #ddf7ef; }
.copy-row { display: flex; gap: .4rem; margin-top: .35rem; }
.copy-row input { margin: 0; font-size: .85rem; }
.mini-form { display: inline-flex; gap: .3rem; align-items: center; flex-wrap: wrap; margin: .3rem 0 0; }
.mini-form select, .mini-form input { width: auto; margin: 0; padding: .3em .5em; font-size: .88rem; }
.plan-table input { margin: 0; padding: .35em .55em; min-width: 5.5em; }
.plan-table td small { display: block; margin-top: .2rem; }
.plan-table input[type=checkbox] { width: auto; min-width: 0; display: inline-block; }
.big-ico { font-size: 3.6rem; line-height: 1; margin-bottom: .4rem; }
.md-card.is-locked { opacity: .75; text-decoration: none; color: inherit; border-style: dashed; }
.ef-lock { display: block; background: var(--soft); border: 2px dashed var(--line); border-radius: var(--r); padding: .9rem 1rem; color: var(--ink2); font-weight: 700; text-decoration: none; }

/* ===================================================================== 1.6.1 · foto de perfil y cuenta */
.uav { width: 2.4rem; height: 2.4rem; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; vertical-align: middle; }
.uav-ini { background: hsl(var(--h, 260) 70% 58%); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.uav-sm { width: 1.9rem; height: 1.9rem; font-size: .78rem; }
.uav-xl { width: 9rem; height: 9rem; font-size: 3rem; box-shadow: 0 10px 30px -12px rgba(29,22,64,.45); border: 4px solid #fff; }
.uav.is-loading { opacity: .55; }
.topnav .who { display: inline-flex; align-items: center; gap: .45rem; }
.who-cell { display: flex; align-items: center; gap: .55rem; }
.acc-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.acc-photo { display: flex; flex-direction: column; gap: .6rem; text-align: center; }
.acc-photo form { margin: 0; }
.acc-pic { display: flex; justify-content: center; margin: .4rem 0 .6rem; }
.acc-note { font-size: .88rem; margin: .4rem 0 0; }
.acc-plan { background: var(--soft); border-radius: var(--r); padding: .55rem .8rem; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 2.8rem; }
.pw-eye { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); margin-top: .15rem; border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; opacity: .5; padding: .3rem; border-radius: 8px; }
.pw-eye.on, .pw-eye:hover { opacity: 1; }
.pw-meter { display: block; height: 6px; background: var(--soft); border-radius: 3px; margin: .45rem 0 .25rem; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--coral); transition: width .25s, background .25s; }
.pw-meter i[data-lv="2"] { background: var(--sun); } .pw-meter i[data-lv="3"] { background: var(--mint); }
.pw-bad { color: var(--coral); font-weight: 700; }
@media (max-width: 1000px) { .acc-grid { grid-template-columns: 1fr 1fr; } .acc-photo { grid-column: 1 / -1; } }
@media (max-width: 640px) { .acc-grid { grid-template-columns: 1fr; } .topnav .who span { display: none; } }

/* ===================================================================== 1.7 · app instalable (PWA)
   Todo lo de esta sección aplica solo con html.is-app (abierta desde el ícono) o en la página app.php,
   así la vista web normal no cambia. */
.app-tabs { display: none; }
.uav-lg { width: 3.4rem; height: 3.4rem; font-size: 1.3rem; }
.uav-tab { width: 1.6rem; height: 1.6rem; font-size: .7rem; }

/* inicio de la app */
.page-app { background: var(--ink); color: #fff; min-height: 100dvh;
  background-image: radial-gradient(600px 400px at 0 0, rgba(142,68,239,.4), transparent 70%), radial-gradient(500px 400px at 100% 100%, rgba(255,90,95,.3), transparent 70%); }
.page-app .topbar { background: transparent; border-bottom-color: rgba(255,255,255,.08); }
.page-app .topnav a:not(.btn) { color: #fff; }
.page-app .topnav .who { color: rgba(255,255,255,.75); }
.apphome { max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; display: flex; flex-direction: column; gap: 1.1rem; }
.ah-hero { display: flex; flex-direction: column; gap: 1.2rem; padding-top: 1rem; }
.ah-hello { display: flex; align-items: center; gap: .8rem; }
.ah-hello small { display: block; opacity: .7; font-weight: 600; }
.ah-hello b { font-size: 1.8rem; line-height: 1; }
.ah-logo { text-align: center; }
.ah-logo .logo { font-size: 2.6rem; }
.ah-logo .logo-img { max-height: 70px; max-width: 80%; }
.ah-pin { background: #fff; color: var(--ink); border-radius: 26px; padding: 1.2rem; display: flex; flex-direction: column; gap: .7rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); }
.ah-pin label { font-weight: 800; font-size: 1.15rem; text-align: center; }
.ah-pin .pin-input { margin: 0; text-align: center; flex: none; max-width: none; width: 100%; }
.ah-live { display: flex; align-items: center; gap: .8rem; background: var(--mint); color: #fff; border-radius: 18px; padding: .8rem 1rem; text-decoration: none; }
.ah-live .dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; flex: none; }
.ah-live span:nth-child(2) { flex: 1; } .ah-live small { display: block; opacity: .9; }
.ah-live i { font-style: normal; font-size: 1.6rem; }
.ah-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.ah-tile-form { margin: 0; display: flex; }
.ah-tile { flex: 1; border: 0; font: inherit; color: #fff; text-decoration: none; border-radius: 20px; padding: 1rem; min-height: 104px; display: flex; flex-direction: column; justify-content: space-between; gap: .4rem; text-align: left; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.ah-tile span { font-size: 1.7rem; line-height: 1; }
.ah-tile b { font-size: 1.05rem; line-height: 1.15; }
.ah-tile:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.ah-recent { background: rgba(255,255,255,.08); border-radius: 20px; padding: .6rem; }
.ah-recent h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; opacity: .7; margin: .3rem .5rem .5rem; }
.ah-recent a { display: flex; justify-content: space-between; color: #fff; text-decoration: none; padding: .65rem .6rem; border-radius: 12px; font-weight: 700; }
.ah-recent a + a { border-top: 1px solid rgba(255,255,255,.08); }
.ah-recent i { font-style: normal; opacity: .6; }
.ah-install .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3); }
.ios-help { background: rgba(255,255,255,.1); border-radius: 16px; padding: .9rem 1.1rem; margin-top: .6rem; }
.ios-help ol { margin: .4rem 0 0; padding-left: 1.3rem; }
.ios-share { display: inline-block; border: 2px solid currentColor; border-radius: 6px; padding: 0 .3rem; font-size: .8em; }
.app-icon-row { display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: 1rem; }
.app-icon-prev { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.app-icon-prev img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.app-icon-prev.mask img { border-radius: 50%; }
.app-icon-fields { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: .4rem; }
.app-icon-fields label { margin: 0; }
.app-install-cta[hidden] { display: none !important; }

/* modo app: solo cuando se abre desde el ícono */
html.is-app { -webkit-tap-highlight-color: transparent; }
html.is-app body { padding-top: env(safe-area-inset-top); overscroll-behavior-y: none; }
html.is-app .page-play, html.is-app .page-stage { padding-top: 0; }
html.is-app .play { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 820px) {
  html.is-app body:not(.page-play):not(.page-stage) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  html.is-app .topbar { position: sticky; top: 0; z-index: 40; padding-top: .5rem; padding-bottom: .5rem; }
  html.is-app .topnav { display: none; }
  html.is-app .topbar .brand { margin: 0 auto; }
  html.is-app .app-tabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(29,22,64,.35); }
  html.is-app .page-app .app-tabs { background: rgba(29,22,64,.92); border-top-color: rgba(255,255,255,.08); }
  html.is-app .app-tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--ink3); font-size: .72rem; font-weight: 700; padding: 4px 0; border-radius: 12px; }
  html.is-app .app-tabs a span { font-size: 1.35rem; line-height: 1.2; height: 1.6rem; display: grid; place-items: center; filter: grayscale(.6); opacity: .8; }
  html.is-app .app-tabs a.on { color: var(--ink); }
  html.is-app .page-app .app-tabs a { color: rgba(255,255,255,.6); } html.is-app .page-app .app-tabs a.on { color: #fff; }
  html.is-app .app-tabs a.on span { filter: none; opacity: 1; transform: scale(1.08); }
  html.is-app .page { padding-left: 16px; padding-right: 16px; }
  html.is-app .page-head h1 { font-size: 1.7rem; }
  html.is-app .lp-device-hint, html.is-app .lp-final, html.is-app footer { display: none; }
}
.lp-ios { margin-top: .8rem; background: var(--soft); color: var(--ink); max-width: 34rem; }
.acc-ios { background: var(--soft); color: var(--ink); text-align: left; font-size: .9rem; }
html.is-app [data-install], html.is-app [data-ios-help] { display: none !important; }
@media (max-width: 820px) {
  html.is-app .page-head .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  html.is-app .page-head .actions > form:last-child { grid-column: 1 / -1; }
  html.is-app .page-head .actions .btn { width: 100%; white-space: normal; padding-left: .6em; padding-right: .6em; }
}

/* ===================================================================== 1.8 · menú de cuenta del sitio */
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .55rem .25rem .25rem; border-radius: 999px; font-weight: 700; color: var(--ink); }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary:hover, .usermenu[open] summary { background: var(--soft); }
.usermenu summary i { font-style: normal; font-size: .75rem; opacity: .6; }
.um-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: #fff; border-radius: 16px; box-shadow: 0 18px 50px -12px rgba(29,22,64,.35), 0 0 0 1px var(--line); padding: .4rem; z-index: 60; display: flex; flex-direction: column; }
.um-head { margin: 0; padding: .6rem .75rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.um-head b { display: block; } .um-head small { color: var(--ink3); word-break: break-all; }
.um-pop a { padding: .55rem .75rem; border-radius: 10px; color: var(--ink) !important; font-weight: 600; text-decoration: none; }
.um-pop a:hover { background: var(--soft); text-decoration: none; }
.um-pop .um-admin { color: var(--grape) !important; }
.um-pop .um-out { border-top: 1px solid var(--line); margin-top: .3rem; border-radius: 0 0 10px 10px; color: #b3262b !important; }
.page-app .usermenu summary { color: #fff; } .page-app .usermenu summary:hover, .page-app .usermenu[open] summary { background: rgba(255,255,255,.1); }

/* ===================================================================== 1.8 · panel de administración */
.adm-body {
  --a-bg: #f5f6fa; --a-surface: #fff; --a-line: #e6e8f0; --a-text: #171a2b; --a-muted: #6b7088; --a-soft: #f0f1f6;
  --a-accent: #6c4cf1; --a-accent-soft: #efeaff; --a-ok: #0f9f78; --a-warn: #c77d00; --a-bad: #d23b42;
  --a-side: #15112e; --a-side-2: #211b45;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--a-bg); color: var(--a-text); font-size: 15px; line-height: 1.5;
}
.adm-body h1, .adm-body h2, .adm-body h3 { letter-spacing: -.01em; font-weight: 700; }
.adm-body .adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--a-side) 248px, transparent 248px); }

/* menú lateral */
.adm-body .adm-side { background: var(--a-side); color: #c9c6e0; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px; }
.adm-body .adm-brand { display: flex; align-items: center; gap: .6rem; padding: 4px 10px 18px; text-decoration: none !important; }
.adm-body .adm-brand .logo { font-size: 1.45rem; } .adm-brand .logo-img { max-height: 30px; max-width: 140px; }
.adm-body .adm-brand span { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9d97c9; border: 1px solid #3a3366; border-radius: 6px; padding: 1px 6px; }
.adm-body .adm-group { margin: 16px 10px 6px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7d77a8; }
.adm-body .adm-nav a, .adm-body .adm-side-foot a { display: flex; align-items: center; gap: .7rem; padding: 8px 10px; border-radius: 9px; color: #d5d2ec; font-weight: 500; font-size: .93rem; text-decoration: none !important; transition: background .12s, color .12s; }
.adm-body .adm-nav a:hover, .adm-body .adm-side-foot a:hover { background: var(--a-side-2); color: #fff; }
.adm-body .adm-nav a.on { background: var(--a-accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(108,76,241,.9); }
.adm-body .ai { width: 18px; height: 18px; flex: none; }
.adm-body .adm-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid #2a244f; }
.adm-body .adm-ver { display: block; padding: 8px 10px 0; font-size: .75rem; color: #6f6a99; }
.adm-body .adm-shade { position: fixed; inset: 0; background: rgba(10,8,25,.45); z-index: 70; }

/* encabezado */
.adm-body .adm-wrap { min-width: 0; display: flex; flex-direction: column; }
.adm-body .adm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: rgba(245,246,250,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--a-line); }
.adm-body .adm-title { flex: 1; min-width: 0; }
.adm-body .adm-title h1 { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.adm-body .adm-title p { margin: 0; color: var(--a-muted); font-size: .88rem; }
.adm-body .adm-burger { display: none; border: 1px solid var(--a-line); background: var(--a-surface); border-radius: 10px; padding: 7px; cursor: pointer; color: var(--a-text); }
.adm-body .adm-user { position: relative; }
.adm-body .adm-user summary { list-style: none; display: flex; align-items: center; gap: .6rem; cursor: pointer; padding: 5px 10px 5px 5px; border-radius: 12px; border: 1px solid transparent; }
.adm-body .adm-user summary::-webkit-details-marker { display: none; }
.adm-body .adm-user summary:hover, .adm-body .adm-user[open] summary { background: var(--a-surface); border-color: var(--a-line); }
.adm-body .adm-user summary .ai { width: 14px; height: 14px; transform: rotate(90deg); color: var(--a-muted); }
.adm-body .adm-user-n { display: flex; flex-direction: column; line-height: 1.15; }
.adm-body .adm-user-n b { font-size: .9rem; } .adm-user-n small { color: var(--a-muted); font-size: .75rem; }
.adm-body .adm-menu { position: absolute; right: 0; top: calc(100% + 6px); width: 260px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; box-shadow: 0 20px 50px -18px rgba(23,26,43,.35); padding: 6px; z-index: 80; }
.adm-body .adm-menu-head { margin: 0 0 4px; padding: 8px 10px 10px; border-bottom: 1px solid var(--a-line); }
.adm-body .adm-menu-head b { display: block; font-size: .92rem; } .adm-menu-head small { color: var(--a-muted); word-break: break-all; }
.adm-body .adm-menu a { display: flex; align-items: center; gap: .6rem; padding: 8px 10px; border-radius: 9px; color: var(--a-text) !important; font-weight: 500; text-decoration: none !important; font-size: .9rem; }
.adm-body .adm-menu a:hover { background: var(--a-soft); }
.adm-body .adm-menu a.danger { color: var(--a-bad) !important; }
.adm-body .adm-main { padding: 24px 32px 48px; max-width: 1400px; width: 100%; }

/* bloques */
.adm-body .adm-main .note { border-radius: 12px; margin-bottom: 18px; font-weight: 500; word-break: break-word; }
.adm-body .panel, .adm-body .adm-main .card { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 2px rgba(23,26,43,.04); }
.adm-body .adm-main .card h3 { font-size: 1.05rem; margin-bottom: .7em; }
.adm-body .panel.flush { padding: 0; overflow: hidden; }
.adm-body .panel-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 14px; }
.adm-body .panel-h h2 { font-size: 1rem; margin: 0; }
.adm-body .panel-h a { font-size: .85rem; font-weight: 600; color: var(--a-accent); }
.adm-body .adm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.adm-body .span-2 { grid-column: span 2; } .span-3 { grid-column: 1 / -1; }
.adm-body .empty-s { color: var(--a-muted); margin: 0; padding: 18px 22px; }

/* indicadores */
.adm-body .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.adm-body .kpi { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.adm-body .kpi-l { color: var(--a-muted); font-size: .82rem; font-weight: 600; }
.adm-body .kpi b { font-size: 1.9rem; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.adm-body .kpi small { color: var(--a-muted); font-size: .8rem; }
.adm-body .kpi small.up { color: var(--a-ok); font-weight: 600; }
.adm-body .kpi .live { font-style: normal; color: var(--a-ok); font-weight: 700; }

/* gráfica de barras */
.adm-body .legend { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--a-muted); }
.adm-body .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: .5rem; }
.adm-body .lg-a, .adm-body .b-a { background: var(--a-accent); } .lg-b, .b-b { background: #c9bdfb; }
.adm-body .adm-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; }
.adm-body .bar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.adm-body .bar-stack { flex: 1; width: 100%; max-width: 30px; display: flex; flex-direction: column-reverse; background: var(--a-soft); border-radius: 6px; overflow: hidden; }
.adm-body .bar-stack i { display: block; width: 100%; }
.adm-body .bar-col small { color: var(--a-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }

/* estado del sistema */
.adm-body .checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.adm-body .checks li { display: flex; align-items: center; gap: .7rem; padding: 8px 4px; border-bottom: 1px solid var(--a-soft); }
.adm-body .checks li:last-child { border-bottom: 0; }
.adm-body .checks .ai { width: 26px; height: 26px; padding: 5px; border-radius: 8px; }
.adm-body .checks .ok .ai { background: #e2f6ef; color: var(--a-ok); } .checks .warn .ai { background: #fff3dc; color: var(--a-warn); }
.adm-body .checks span { flex: 1; min-width: 0; } .checks b { display: block; font-size: .9rem; } .checks small { color: var(--a-muted); font-size: .8rem; }
.adm-body .checks a { font-size: .82rem; font-weight: 600; color: var(--a-accent); }
.adm-body .people { list-style: none; margin: 0; padding: 0; }
.adm-body .people li { display: flex; align-items: center; gap: .7rem; padding: 8px 0; border-bottom: 1px solid var(--a-soft); }
.adm-body .people li:last-child { border-bottom: 0; }
.adm-body .people li > span:not(.uav) { flex: 1; min-width: 0; } .people b { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-body .people small { color: var(--a-muted); font-size: .8rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-body .people em { font-style: normal; color: var(--a-muted); font-size: .78rem; white-space: nowrap; }
.adm-body .sysinfo dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; }
.adm-body .sysinfo dt { color: var(--a-muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.adm-body .sysinfo dd { margin: 2px 0 0; font-weight: 600; font-size: .88rem; word-break: break-word; }

/* tablas */
.adm-body .dt { width: 100%; border-collapse: collapse; font-size: .9rem; }
.adm-body .dt th { text-align: left; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--a-muted); padding: 10px 14px; border-bottom: 1px solid var(--a-line); background: #fafbfd; white-space: nowrap; }
.adm-body .dt td { padding: 11px 14px; border-bottom: 1px solid var(--a-soft); vertical-align: middle; }
.adm-body .dt tbody tr:hover { background: #fafaff; }
.adm-body .dt tbody tr:last-child td { border-bottom: 0; }
.adm-body .dt a { color: var(--a-text); font-weight: 600; }
.adm-body .dt .sub, .adm-body .dt-users .sub { display: block; color: var(--a-muted); font-size: .78rem; font-weight: 400; }
.adm-body .dt .num { text-align: right; font-variant-numeric: tabular-nums; }
.adm-body .dt .act { width: 1%; text-align: right; }
.adm-body .dt tr.is-off td { opacity: .6; }
.adm-body .panel .dt th:first-child, .adm-body .panel .dt td:first-child { padding-left: 4px; }
.adm-body .panel.flush .dt th:first-child, .adm-body .panel.flush .dt td:first-child { padding-left: 20px; }
.adm-body .who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.adm-body .who b { display: block; font-size: .9rem; } .who small { color: var(--a-muted); font-size: .8rem; }
.adm-body .you { font-style: normal; font-size: .68rem; font-weight: 700; background: var(--a-accent-soft); color: var(--a-accent); border-radius: 5px; padding: 1px 6px; margin-left: 4px; vertical-align: 2px; }
.adm-body .plan-n { font-weight: 600; }
.adm-body .pill { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--a-soft); color: #4a4f66; white-space: nowrap; }
.adm-body .pill.admin { background: var(--a-accent-soft); color: var(--a-accent); }
.adm-body .pill.off { background: #fde8e9; color: var(--a-bad); }
.adm-body .pill.live { background: #e2f6ef; color: var(--a-ok); } .pill.wait { background: #fff3dc; color: var(--a-warn); }

/* barra de herramientas y paginación */
.adm-body .toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-body .search { position: relative; flex: 0 1 340px; margin: 0; }
.adm-body .search .ai { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--a-muted); width: 16px; height: 16px; }
.adm-body .adm-main .search input { margin: 0; padding: 8px 12px 8px 34px; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-surface); font-size: .9rem; }
.adm-body .search input:focus { border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-accent-soft); }
.adm-body .chips { display: flex; gap: 4px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 10px; padding: 3px; flex-wrap: wrap; }
.adm-body .chips a { padding: 5px 11px; border-radius: 7px; font-size: .84rem; font-weight: 600; color: var(--a-muted); text-decoration: none !important; }
.adm-body .chips a.on { background: var(--a-text); color: #fff; }
.adm-body .count { margin-left: auto; color: var(--a-muted); font-size: .85rem; }
.adm-body .pager { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 16px; font-size: .88rem; color: var(--a-muted); }
.adm-body .pager a { font-weight: 600; color: var(--a-accent); }

/* menú de acciones por fila */
.adm-body .row-menu { position: relative; display: inline-block; }
.adm-body .row-menu summary { list-style: none; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--a-muted); }
.adm-body .row-menu summary::-webkit-details-marker { display: none; }
.adm-body .row-menu summary:hover, .adm-body .row-menu[open] summary { background: var(--a-soft); color: var(--a-text); }
.adm-body .rm-pop { position: absolute; right: 0; top: calc(100% + 4px); width: 300px; background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 12px; box-shadow: 0 20px 50px -18px rgba(23,26,43,.4); padding: 6px; z-index: 40; text-align: left; }
.adm-body .rm-pop form { margin: 0; }
.adm-body .rm-pop button:not(.mini) { width: 100%; display: flex; align-items: center; gap: .6rem; border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 500; color: var(--a-text); padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; }
.adm-body .rm-pop button:not(.mini):hover { background: var(--a-soft); }
.adm-body .rm-pop button.danger { color: var(--a-bad); }
.adm-body .rm-pop .ai { width: 16px; height: 16px; color: var(--a-muted); }
.adm-body .rm-inline { display: flex; gap: 6px; padding: 6px 8px; border-top: 1px solid var(--a-soft); flex-wrap: wrap; }
.adm-body .rm-inline input, .adm-body .rm-inline select { flex: 1; min-width: 0; margin: 0; padding: 6px 8px; font-size: .84rem; border: 1px solid var(--a-line); border-radius: 8px; }
.adm-body .rm-plan select { flex: 1 1 100px; } .rm-plan input { flex: 1 1 120px; }
.adm-body .mini { border: 0; background: var(--a-text); color: #fff; font: inherit; font-size: .8rem; font-weight: 600; border-radius: 8px; padding: 6px 10px; cursor: pointer; white-space: nowrap; }
.adm-body .rm-pop .confirm-inline { padding: 4px 10px; }

/* formularios y secciones existentes dentro del panel */
.adm-body .adm-main .grid-2 { gap: 18px; }
.adm-body .adm-main label { font-size: .88rem; font-weight: 600; color: var(--a-text); }
.adm-body .adm-main input, .adm-body .adm-main select, .adm-body .adm-main textarea { border: 1px solid var(--a-line); border-radius: 10px; font-size: .92rem; padding: .55em .75em; }
.adm-body .adm-main input:focus, .adm-body .adm-main select:focus, .adm-body .adm-main textarea:focus { border-color: var(--a-accent); box-shadow: 0 0 0 3px var(--a-accent-soft); outline: none; }
.adm-body .adm-main input[type=checkbox] { accent-color: var(--a-accent); }
.adm-body .adm-main .btn { border-radius: 10px; font-family: var(--font); font-weight: 600; box-shadow: none; background: var(--a-text); font-size: .92rem; }
.adm-body .adm-main .btn-lg { padding: .65em 1.4em; font-size: .95rem; }
.adm-body .adm-main .btn-ghost { background: var(--a-surface); color: var(--a-text); box-shadow: inset 0 0 0 1px var(--a-line); }
.adm-body .adm-main .btn-ghost:hover { background: var(--a-soft); }
.adm-body .adm-main .btn-danger { color: var(--a-bad); }
.adm-body .adm-main .muted { color: var(--a-muted); }
.adm-body .adm-main .table-wrap { background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 14px; box-shadow: none; overflow-x: auto; }
.adm-body .adm-main .table { font-size: .9rem; }
.adm-body .adm-main .table th { font-size: .74rem; font-weight: 600; letter-spacing: .06em; color: var(--a-muted); background: #fafbfd; }
.adm-body .adm-main .badge { font-size: .76rem; font-weight: 600; }
.adm-body .adm-main .b-live { background: #e2f6ef; color: var(--a-ok); }
.adm-body .adm-main .empty { border: 1px dashed var(--a-line); background: var(--a-surface); border-radius: 14px; color: var(--a-muted); }
.adm-body .adm-main .brand-prev { border-radius: 12px; }
.adm-body .adm-main .drop { border-radius: 12px; border-color: var(--a-line); }
.adm-body .adm-main .note-ok { background: #e2f6ef; color: #08694f; }
.adm-body .adm-main .note-error { background: #fde8e9; color: #a3242b; }
.adm-body .adm-main .plan-table input { padding: .4em .55em; }
.adm-body .adm-main .plan-table td:nth-child(1) input { min-width: 8rem; } .adm-main .plan-table td:nth-child(2) input { min-width: 15rem; }

/* responsivo */
@media (max-width: 1200px) { .adm-body .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-body .adm-grid { grid-template-columns: 1fr 1fr; } .adm-body .span-2 { grid-column: 1 / -1; } .adm-body .sysinfo dl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .adm-body .adm { grid-template-columns: 1fr; background: none; }
  .adm-body .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; z-index: 80; transform: translateX(-100%); transition: transform .2s; }
  .adm-body .adm-side.open { transform: none; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .adm-body .adm-burger { display: inline-grid; place-items: center; }
  .adm-body .adm-top { padding: 10px 16px; }
  .adm-body .adm-main { padding: 18px 16px 40px; }
  .adm-body .adm-user-n { display: none; }
  .adm-body .adm-grid { grid-template-columns: 1fr; }
  .adm-body .dt-users th:nth-child(4), .adm-body .dt-users td:nth-child(4), .adm-body .dt-users th:nth-child(5), .adm-body .dt-users td:nth-child(5), .adm-body .dt-users th:nth-child(6), .adm-body .dt-users td:nth-child(6) { display: none; }
  .adm-body .count { margin-left: 0; }
}
@media (max-width: 560px) { .adm-body .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .adm-body .kpi b { font-size: 1.5rem; } .adm-body .sysinfo dl { grid-template-columns: 1fr 1fr; } .adm-body .dt-users th:nth-child(3), .adm-body .dt-users td:nth-child(3) { display: none; } .adm-body .rm-pop { width: min(300px, 86vw); } }
.adm-body .app-icon-fields > label.btn { align-self: flex-start; }

/* ===================================================================== 1.8.1 · pantalla del anfitrión en celular */
.stage { grid-template-columns: minmax(0, 1fr); }
.stage-top > *, .stage-main > *, .dyn, .dyn > div { min-width: 0; }
@media (max-width: 700px) {
  .stage-top { flex-wrap: wrap; gap: .4rem .6rem; padding: .55rem 12px; font-size: .92rem; }
  .stage-top .st-logo { max-height: 26px !important; max-width: 110px !important; }
  .st-title { display: none; }
  .st-join { order: 3; flex: 1 1 100%; text-align: center; padding: .2rem .8rem; font-size: .85rem; }
  .st-stats { margin-left: auto; gap: .6rem; font-size: .9rem; white-space: nowrap; }
  .stage-main { padding: 10px 12px; }
  .dq-head { flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
  .dq-q { flex: 1 1 100%; font-size: clamp(1.25rem, 6vw, 1.7rem); border-radius: 16px; padding: .5em .7em; }
  .dq-meta { min-width: 0; display: flex; align-items: baseline; gap: .35rem; }
  .dq-count { font-size: 1.6rem; display: inline; }
  .timer { width: 56px; }
  .timer b { font-size: 1.35rem; }
  .tiles { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  .tiles.n3 .otile:last-child, .tiles.n5 .otile:last-child { grid-column: auto; }
  .otile { min-height: 0; padding: .65rem .8rem; font-size: 1.05rem; gap: .6rem; border-radius: 14px; box-shadow: 0 4px 0 rgba(0,0,0,.25); }
  .otile .ol { min-width: 1.8em; height: 1.8em; }
  .bars { gap: .55rem; }
  .bar { grid-template-columns: auto minmax(0, 1fr) auto; gap: .2rem .6rem; font-size: .98rem; }
  .bar .bar-track { grid-column: 2 / 4; grid-row: 2; height: 16px; border-radius: 8px; }
  .bar .bar-fill { border-radius: 8px; }
  .bar-n { min-width: 0; font-size: .85rem; }
  .bar .bar-l { grid-row: 1 / 3; border-radius: 10px; }
  .board h1, .podium h1, .thanks h1 { font-size: 1.6rem; }
  .board li { grid-template-columns: 1.8em auto minmax(0, 1fr) auto; gap: .5rem; padding: .45rem .7rem; font-size: 1rem; border-radius: 12px; }
  .board li .streak, .board li .btrack { display: none; }
  .eb-grid .pchip { font-size: .9rem; }
  .eb-note { font-size: 1rem; }
  .pods { gap: .4rem; }
  .pod { min-width: 0; font-size: .9rem; }
  .lobby-join { padding: 18px; border-radius: 20px; }
  .lj-pin { font-size: clamp(2.4rem, 13vw, 3.4rem) !important; }
  .stage-ctrl { gap: .5rem; padding: .5rem 10px calc(.5rem + env(safe-area-inset-bottom)); }
  .ctrl-left, .ctrl-mid, .ctrl-right { flex: 1 1 100%; justify-content: center; flex-wrap: wrap; min-width: 0; }
  .ctrl-mid { order: -1; }
  .ctrl-mid .cbtn-main { flex: 1; justify-content: center; font-size: 1.05rem; }
  .ctrl-left .ctrl-pos { font-size: .85rem; }
  .ctrl-right .cbtn { padding: .45rem .7rem; font-size: .9rem; }
  .buzz-btns .cbtn { flex: 1; justify-content: center; padding: .6rem 1rem; }
  .mx-stage { grid-template-columns: minmax(0, 1fr); }
}
/* 1.8.2 · nuevo usuario desde el admin */
.adm-body .newuser { margin-bottom: 16px; }
.adm-body .newuser > summary { list-style: none; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; background: var(--a-accent); color: #fff; border-radius: 10px; padding: .55em 1.1em; font-weight: 600; font-size: .92rem; }
.adm-body .newuser > summary::-webkit-details-marker { display: none; }
.adm-body .newuser > summary .ai { width: 16px; height: 16px; }
.adm-body .newuser[open] > summary { background: var(--a-text); }
.adm-body .nu-form { margin-top: 12px; }
.adm-body .nu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.adm-body .nu-grid label { margin: 0; }
.adm-body .nu-grid small { font-weight: 400; }
.adm-body .nu-check { align-self: end; padding-bottom: .55em; }
.adm-body .nu-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 4px; font-size: .85rem; }
.adm-body .chip-b { border: 1px solid var(--a-line); background: var(--a-surface); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; color: var(--a-text); }
.adm-body .chip-b:hover { border-color: var(--a-accent); color: var(--a-accent); }
.adm-body .nu-note { background: #fff6e0; color: #7a5600; border-radius: 10px; padding: .55rem .8rem; font-size: .86rem; margin: 10px 0 0; }
.adm-body .nu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--a-soft); }
.adm-body .nu-foot label { margin: 0; font-weight: 500; }
@media (max-width: 900px) { .adm-body .nu-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- 1.8.3 · QR ampliado en la sala de espera */
button.lj-qr { appearance: none; background: none; border: 0; padding: 6px; margin: 0 auto; font: inherit; color: inherit; cursor: zoom-in; border-radius: 16px; transition: transform .15s ease, background .15s ease; }
button.lj-qr:hover { transform: scale(1.04); background: rgba(124, 58, 237, .07); }
button.lj-qr:focus-visible { outline: 3px solid var(--grape); outline-offset: 2px; }
.qr-zoom { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 3vmin; background: rgba(10, 6, 30, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); cursor: zoom-out; opacity: 0; transition: opacity .2s ease; }
.qr-zoom.on { opacity: 1; }
.qz-card { background: #fff; color: var(--ink); border-radius: 28px; padding: 3vmin 3vmin 2vmin; text-align: center; box-shadow: 0 30px 90px -20px rgba(0,0,0,.7); transform: scale(.92); transition: transform .2s ease; }
.qr-zoom.on .qz-card { transform: scale(1); }
.qz-card canvas { display: block; width: min(72vmin, 760px); height: auto; aspect-ratio: 1; border-radius: 14px; }
.qz-pin { margin: .6vmin 0 0; font-size: clamp(1.4rem, 4.5vmin, 3.2rem); font-weight: 700; color: var(--ink2); }
.qz-pin b { color: var(--ink); letter-spacing: .06em; }
.qz-url { margin: 0; font-size: clamp(1rem, 2.6vmin, 1.8rem); font-weight: 800; color: var(--grape); }
.qz-close { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.3rem; cursor: pointer; }
.qz-close:hover { background: rgba(255,255,255,.26); }

/* ---------------------------------------------------------------- 1.8.4 · presentar y enlaces en la sala de espera */
.cbtn-present { display: inline-flex; align-items: center; gap: .35em; }
@media (max-width: 1100px) { .cbtn-present span { display: none; } }
.lp-share { display: flex; flex-wrap: wrap; gap: .5rem; margin: .2rem 0 1rem; }
.lp-sbtn { appearance: none; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; padding: .55em 1em; border-radius: 999px; cursor: pointer; transition: background .15s ease; }
.lp-sbtn:hover { background: rgba(255,255,255,.18); }
.lp-sbtn-main { background: var(--sun, #ffc21a); border-color: transparent; color: #1d1640; }
.lp-sbtn-main:hover { background: #ffd24d; }
.present-go { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; border: 0; padding: 24px; background: rgba(10, 6, 30, .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); color: #fff; font: inherit; cursor: pointer; text-align: center; }
.present-go span { font-size: clamp(3rem, 10vmin, 6rem); line-height: 1; }
.present-go b { font-size: clamp(1.4rem, 4vmin, 2.4rem); }
.present-go small { font-size: clamp(.95rem, 2vmin, 1.2rem); opacity: .8; }

/* ---------------------------------------------------------------- 1.9.0 · compartir y resultados públicos */
.share-card { margin-top: 1.2rem; scroll-margin-top: 90px; }
.share-card h3 { margin-top: 0; }
.share-form { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.share-link { display: flex; gap: .5rem; flex-wrap: wrap; }
.share-link input { flex: 1 1 280px; min-width: 0; font-family: ui-monospace, monospace; font-size: .92rem; }
.share-note { margin: .6rem 0 0; font-size: .9rem; }
.share-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: .8rem; }
.share-row form { margin: 0; }
.p-final .p-results { margin-bottom: .5rem; }
.res-page { width: 100%; max-width: 1100px; margin: 0 auto; padding: 18px 16px 40px; }
.res-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.res-top .logo-img { max-height: 44px; width: auto; }
.res-head h1 { margin: .1rem 0 1rem; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; }
.res-sec { margin-top: 1.2rem; }
.res-sec h3 { margin-top: 0; }
.res-gone { max-width: 520px; margin: 8vh auto 0; }
.res-foot { text-align: center; margin-top: 2rem; font-size: .9rem; }
@media print {
  .no-print, .pwa-tabs, .app-tabs { display: none !important; }
  body.page-results { background: #fff !important; color: #111; }
  .page-results .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .page-results .rep-item { break-inside: avoid; }
  .page-results .res-page { padding: 0; max-width: none; }
}

/* ---------------------------------------------------------------- 1.10.0 · gestión del cambio y comparar partidas */
.table .chk { width: 36px; text-align: center; }
.table .chk input { width: 18px; height: 18px; margin: 0; accent-color: var(--grape); cursor: pointer; }
.cmp-bar .btn { background: var(--sun); color: var(--ink); }
.cmp-bar .btn:disabled { opacity: .45; }
.cmp-bar { position: sticky; top: 74px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; padding: .6rem .9rem; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; }
.cmp-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.cmp-s { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .8rem 1rem; border-radius: 16px; background: #fff; box-shadow: var(--shadow, 0 6px 20px -12px rgba(0,0,0,.25)); color: inherit; text-decoration: none; }
.cmp-s b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-s small { grid-column: 2; color: var(--ink3); }
.cmp-n { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grape); color: #fff; font-weight: 800; }
.cmp-note { margin: 0 0 1rem; }
.cmp-card { margin-bottom: 1rem; }
.cmp-card h3 { margin: .1rem 0 .6rem; }
.cmp-spark { display: block; width: 100%; max-width: 760px; height: auto; margin: .2rem 0 .8rem; overflow: visible; }
.cmp-spark .ax { stroke: rgba(29,22,64,.1); stroke-width: 1; }
.cmp-spark .lbl { fill: var(--ink3); font-size: 12px; font-weight: 600; }
.cmp-spark polyline { fill: none; stroke: var(--grape); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.cmp-spark circle { fill: #fff; stroke: var(--grape); stroke-width: 3; }
.cmp-spark .val { fill: var(--ink); font-size: 14px; font-weight: 800; text-anchor: middle; }
.cmp-wrap { box-shadow: none; }
.cmp-table th.num, .cmp-table td.num { text-align: right; white-space: nowrap; }
.cmp-table td.cmp-text { font-size: .92rem; min-width: 160px; }
.cmp-table tr.cmp-n-row td { color: var(--ink3); font-size: .88rem; }
.cmp-d { display: inline-block; padding: .15em .55em; border-radius: 999px; font-weight: 700; font-size: .88rem; background: rgba(0,0,0,.06); }
.cmp-d.up { background: #d9f6ea; color: #047857; }
.cmp-d.down { background: #fde2e2; color: #b42318; }
.cmp-d.same { color: var(--ink3); }

/* ---------------------------------------------------------------- 1.10.1 · escala estable en tabletas */
.scale-wrap { grid-template-columns: auto minmax(0, 1fr); min-height: 0; }
.hist-box { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hist { flex: 1; min-height: 0; }
.hcol { min-width: 0; }
.hbar { min-height: 90px; }
.scale-labels { width: auto; margin-left: 0; gap: 1rem; }
.scale-labels span:last-child { text-align: right; }
