/* Plataforma de raspaditas · marca blanca
   Dos mundos visuales: la consola de operación (oscura, neutra, fija) y el sitio de cada marca (tokens --b-* que define la marca). */
:root {
  /* Consola */
  --a-bg: #0d1119; --a-panel: #141a26; --a-panel-2: #1a2231; --a-line: #263045; --a-line-2: #313c55;
  --a-text: #e6eaf2; --a-muted: #8e98ae; --a-faint: #5f6981;
  --a-accent: #5b8cff; --a-on-accent: #ffffff; --a-accent-soft: rgba(91, 140, 255, .14);
  --good: #2fb37a; --warn: #e0a43a; --crit: #e5534b; --info: #4aa3df;
  --c1: #3987e5; --c2: #d95926; --c3: #199e70; --c4: #c98500; --c5: #d55181; --c6: #0ca30c; --c7: #9085e9; --c8: #e66767;
  --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 10px; --r-lg: 14px;
  /* layout: consola = barra lateral fija + contenido; sitio = encabezado pegajoso + columnas centradas */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--f-ui); background: var(--a-bg); color: var(--a-text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
.mono { font-family: var(--f-mono); font-size: .92em; }
.num, .r { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--a-accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- Arranque ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.boot-box { text-align: center; color: var(--a-muted); }
.boot-box.wide { max-width: 460px; }
.boot-box h1 { color: var(--a-text); font-size: 26px; margin-bottom: 8px; }
.boot-spin, .s-spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--a-line); border-top-color: var(--a-accent); animation: spin 0.9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Botones y formularios (consola) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--a-line-2); background: var(--a-panel-2); color: var(--a-text); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: #222c3f; border-color: #3c4966; }
.btn.primary { background: var(--a-accent); border-color: var(--a-accent); color: var(--a-on-accent); }
.btn.primary:hover:not(:disabled) { background: #4a7ef5; }
.btn.ghost { background: transparent; }
.btn.danger { background: var(--crit); border-color: var(--crit); color: #fff; }
.btn.danger-ghost { background: transparent; color: #ff8d86; border-color: rgba(229, 83, 75, .45); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--a-line); background: transparent; color: var(--a-muted); font-size: 16px; }
.icon-btn:hover:not(:disabled) { color: var(--a-text); border-color: var(--a-line-2); }
.icon-btn:disabled { opacity: .35; }
.link { background: none; border: 0; padding: 0; color: var(--a-accent); font-weight: 600; text-decoration: none; }
.link.strong { color: var(--a-text); font-weight: 700; }
.link.back { color: var(--a-muted); font-size: 13px; margin-bottom: 6px; display: inline-block; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span { font-size: 12.5px; color: var(--a-muted); font-weight: 600; }
.fld input:not([type=checkbox]):not([type=radio]):not([type=color]), .fld select, .fld textarea, .toolbar input, .toolbar select, .inline select, .inline input, textarea, .num-in, .hex {
  background: var(--a-bg); border: 1px solid var(--a-line-2); border-radius: 8px; padding: 9px 11px; color: var(--a-text); width: 100%; min-width: 0; }
textarea { resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus, .toolbar input:focus, .num-in:focus { border-color: var(--a-accent); outline: none; box-shadow: 0 0 0 3px var(--a-accent-soft); }
.fld.chk { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
.fld.chk > span { color: var(--a-text); font-size: 13.5px; }
.fld.chk input { width: 18px; height: 18px; accent-color: var(--a-accent); }
.fld.chk .hint { width: 100%; }
.fld input[type=color] { width: 56px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid var(--a-line-2); background: var(--a-bg); }
.hint { color: var(--a-faint); font-size: 12px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.fgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid .span2, .fgrid .fld.span2 { grid-column: span 2; }
.ferr { color: #ff8d86; min-height: 18px; margin: 6px 0 0; font-size: 13px; }
.inline { display: inline-flex; align-items: center; gap: 8px; color: var(--a-muted); font-size: 13px; font-weight: 600; }
.inline select, .inline input { width: auto; padding: 7px 10px; }
.row { display: flex; align-items: center; }
.row.gap { gap: 8px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.muted { color: var(--a-muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.pos { color: var(--good); }
.neg { color: #ff8d86; }
.warn-t { color: var(--warn); }
.good-t { color: var(--good); }
.lead { font-size: 15px; line-height: 1.55; margin: 0; }
.big { font-size: 20px; }

/* Pills de estado */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.06); color: var(--a-muted); white-space: nowrap; }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.good { color: #58d39c; background: rgba(47,179,122,.13); }
.pill.warn { color: #f0bd5e; background: rgba(224,164,58,.14); }
.pill.crit { color: #ff8d86; background: rgba(229,83,75,.14); }
.pill.info { color: #7cc0ee; background: rgba(74,163,223,.14); }
.tag { background: var(--a-panel-2); border: 1px solid var(--a-line); padding: 2px 7px; border-radius: 6px; font-size: 12px; }
.note { padding: 10px 14px; border-radius: 9px; border: 1px solid var(--a-line); background: var(--a-panel-2); margin: 0 0 14px; font-size: 13.5px; }
.note.warn { border-color: rgba(224,164,58,.45); background: rgba(224,164,58,.08); }
.note.crit { border-color: rgba(229,83,75,.45); background: rgba(229,83,75,.08); }
.note.info { border-color: rgba(74,163,223,.4); background: rgba(74,163,223,.07); }
.note.flat { border-radius: 0; margin: 0; border-width: 0 0 1px; }

/* ---------- Diálogos ---------- */
.mwrap { position: fixed; inset: 0; background: rgba(5, 8, 14, .66); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 18px; animation: fade .16s ease; overflow-y: auto; }
.mwrap.out { opacity: 0; transition: opacity .15s; }
@keyframes fade { from { opacity: 0; } }
.mbox { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: var(--r-lg); width: 100%; max-height: calc(100vh - 36px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.45); animation: pop .18s ease; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: 0; } }
.mbox.sm { max-width: 420px; } .mbox.md { max-width: 600px; } .mbox.lg { max-width: 860px; } .mbox.xl { max-width: 1080px; }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--a-line); }
.mhead h3 { font-size: 17px; }
.mclose { background: none; border: 0; font-size: 24px; line-height: 1; color: var(--a-muted); padding: 0 4px; }
.mbody { padding: 18px 20px; overflow-y: auto; }
.mbody > * + * { margin-top: 14px; }
.mbody .fgrid + *, .mbody .fgrid { margin-top: 0; }
.mfoot { padding: 14px 20px; border-top: 1px solid var(--a-line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cred { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cred div { background: var(--a-bg); border: 1px solid var(--a-line); border-radius: 8px; padding: 10px; }
.cred small { display: block; color: var(--a-muted); font-size: 12px; }
.cred b { font-size: 16px; }

/* Toasts */
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 9999; width: min(92vw, 460px); pointer-events: none; }
.toast { background: #1d2534; border: 1px solid var(--a-line-2); border-left: 4px solid var(--good); color: var(--a-text); padding: 11px 14px; border-radius: 9px; box-shadow: 0 12px 30px rgba(0,0,0,.4); font-weight: 600; font-family: var(--f-ui); animation: pop .2s ease; }
.toast.err { border-left-color: var(--crit); } .toast.warn { border-left-color: var(--warn); }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }

/* ---------- Consola: estructura ---------- */
.adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.a-side { background: var(--a-panel); border-right: 1px solid var(--a-line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.a-logo { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.a-logo-m { width: 36px; height: 36px; border-radius: 10px; background: var(--a-accent); color: #fff; display: grid; place-items: center; flex: none; }
.a-logo b { display: block; font-size: 15px; } .a-logo small { color: var(--a-muted); font-size: 11.5px; }
.a-scope { margin: 0 14px 10px; display: flex; flex-direction: column; gap: 5px; padding: 10px; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-bg); }
.a-scope span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--a-faint); font-weight: 700; }
.a-scope select { background: transparent; border: 0; font-weight: 700; padding: 0; color: var(--a-text); }
.a-nav { flex: 1; padding: 4px 10px 14px; }
.a-grp { margin-top: 12px; }
.a-grp > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--a-faint); font-weight: 700; padding: 0 10px 6px; }
.a-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--a-muted); text-decoration: none; font-weight: 600; }
.a-nav a:hover { background: var(--a-panel-2); color: var(--a-text); }
.a-nav a.on { background: var(--a-accent-soft); color: var(--a-text); }
.a-nav a.on svg { color: var(--a-accent); }
.a-nav em { font-style: normal; flex: 1; }
.a-badge { font-style: normal; background: var(--warn); color: #1d1300; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.a-badge:empty { display: none; }
.a-me { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--a-line); }
.a-me > div:nth-child(2) { flex: 1; min-width: 0; }
.a-me b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .a-me small { color: var(--a-muted); font-size: 12px; }
.a-av { width: 34px; height: 34px; border-radius: 50%; background: var(--a-panel-2); border: 1px solid var(--a-line-2); display: grid; place-items: center; font-weight: 800; }
.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { display: flex; align-items: center; gap: 12px; padding: 12px 28px; border-bottom: 1px solid var(--a-line); background: rgba(13,17,25,.85); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 30; }
.a-burger { display: none; }
.a-crumb { flex: 1; display: flex; gap: 8px; align-items: center; color: var(--a-muted); font-size: 13px; }
.a-crumb b { color: var(--a-text); } .a-crumb span::after { content: '/'; margin-left: 8px; color: var(--a-faint); }
.a-top-r { display: flex; gap: 10px; align-items: center; }
.a-content { padding: 24px 28px 60px; }
.a-page > * + * { margin-top: 18px; }
.a-ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.a-ph h1 { font-size: 24px; letter-spacing: -.01em; }
.a-ph p { color: var(--a-muted); margin: 4px 0 0; max-width: 72ch; }
.a-ph-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dirty { color: var(--warn); font-weight: 700; font-size: 12.5px; }
.card { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: var(--r-lg); padding: 18px 20px; }
.card > * + * { margin-top: 12px; }
.ct { font-size: 14.5px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin: 0; }
.ct small { font-weight: 500; }
.count { background: var(--a-panel-2); border: 1px solid var(--a-line); border-radius: 99px; padding: 0 8px; font-size: 12px; color: var(--a-muted); }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cols-2 .span2 { grid-column: span 2; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar input[type=search] { max-width: 320px; }
.toolbar select { width: auto; }
.seg { display: inline-flex; border: 1px solid var(--a-line-2); border-radius: 9px; padding: 3px; background: var(--a-bg); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; color: var(--a-muted); font-weight: 600; font-size: 13px; }
.seg button.on { background: var(--a-panel-2); color: var(--a-text); box-shadow: inset 0 0 0 1px var(--a-line-2); }
.a-empty { text-align: center; padding: 32px 16px; color: var(--a-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.a-empty b { color: var(--a-text); font-size: 15px; } .a-empty p { margin: 0; max-width: 52ch; }
.loading { padding: 30px; text-align: center; color: var(--a-muted); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpis.sm { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; min-width: 0; position: relative; overflow: hidden; }
.kpis.sm .kpi { background: var(--a-bg); padding: 11px 13px; }
.kpi small { color: var(--a-muted); font-weight: 600; font-size: 12.5px; }
.kpi b { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.kpis.sm .kpi b { font-size: 16px; }
.kpi span { color: var(--a-faint); font-size: 12px; }
.kpi.hero { border-color: rgba(91,140,255,.45); background: linear-gradient(180deg, rgba(91,140,255,.12), var(--a-panel) 70%); }
.kpi.good::before, .kpi.crit::before, .kpi.warn::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.kpi.good::before { background: var(--good); } .kpi.crit::before { background: var(--crit); } .kpi.warn::before { background: var(--warn); }

/* Alertas */
.alerts { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.al { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; background: var(--a-bg); border: 1px solid var(--a-line); }
.al i { width: 4px; align-self: stretch; border-radius: 4px; background: var(--info); }
.al.warn i { background: var(--warn); } .al.crit i { background: var(--crit); }
.al span { flex: 1; }

/* Tablas */
.tw { overflow-x: auto; border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-panel); }
.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.t th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--a-faint); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--a-line); background: var(--a-panel-2); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--a-line); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: rgba(255,255,255,.015); }
.t .r { text-align: right; }
.t td small { display: block; font-size: 12px; }
.t td .btn + .btn { margin-left: 6px; }
.t tfoot td { background: var(--a-panel-2); border-top: 1px solid var(--a-line-2); border-bottom: 0; }
.t tfoot small { color: var(--a-faint); font-size: 11.5px; display: block; }
.t.tight td, .t.tight th { padding: 7px 10px; }
.thumb { width: 64px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--a-line); }
.bar { height: 7px; background: var(--a-bg); border-radius: 99px; overflow: hidden; border: 1px solid var(--a-line); min-width: 80px; }
.bar i { display: block; height: 100%; background: var(--a-accent); border-radius: 99px; }
.bar.warn i { background: var(--warn); }
.mini { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--a-line); }
.list li:last-child { border-bottom: 0; }
.list li > div { flex: 1; min-width: 0; }
.list li small { display: block; color: var(--a-muted); font-size: 12px; }
.list.compact li { padding: 6px 0; gap: 8px; font-size: 13px; }
.list.compact li small { margin-left: auto; }
.emlist { display: grid; gap: 10px; }
.emrow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) auto; gap: 12px; align-items: center; }
.emrow b { display: block; } .emrow small { color: var(--a-muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin: 0; }
.facts.row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts dt { color: var(--a-muted); font-size: 12px; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts dd.crit { color: #ff8d86; }
.checklist { margin: 0; padding-left: 18px; display: grid; gap: 10px; max-width: 90ch; }
.checklist li { color: var(--a-muted); } .checklist b { color: var(--a-text); }

/* Gráficos */
.chart { min-height: 120px; }
.ch-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--a-muted); margin-bottom: 6px; }
.ch-legend i, .ch-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ch-grid { stroke: var(--a-line); stroke-width: 1; }
.ch-base { stroke: var(--a-line-2); stroke-width: 1; }
.ch-ref { stroke: var(--a-muted); stroke-dasharray: 5 5; stroke-width: 1.5; }
.ch-ax { fill: var(--a-faint); font-size: 11px; font-family: var(--f-ui); }
.ch-tip { position: fixed; z-index: 9998; pointer-events: none; background: #0a0e15; border: 1px solid var(--a-line-2); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--a-text); opacity: 0; transition: opacity .1s; display: flex; flex-direction: column; gap: 3px; font-family: var(--f-ui); }
.hb { display: grid; gap: 8px; }
.hb-row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 10px; align-items: center; font-size: 13px; }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-t { height: 12px; background: var(--a-bg); border-radius: 4px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hb-v { font-variant-numeric: tabular-nums; color: var(--a-muted); min-width: 70px; text-align: right; }

/* Tabs y editores */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--a-line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 10px 14px; color: var(--a-muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--a-text); border-bottom-color: var(--a-accent); }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.ed-side .sticky { position: sticky; top: 72px; display: flex; flex-direction: column; gap: 12px; }
.ed-side h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--a-faint); margin: 6px 0 0; }
.img-fld .img-row { display: flex; gap: 12px; align-items: center; }
.img-prev { width: 120px; height: 80px; border-radius: 8px; border: 1px dashed var(--a-line-2); background: var(--a-bg) center/cover; display: grid; place-items: center; overflow: hidden; flex: none; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-prev em { color: var(--a-faint); font-style: normal; font-size: 12px; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 16px; }
.preset { border: 1px solid var(--a-line-2); background: var(--a-bg); border-radius: 9px; padding: 8px; text-align: left; font-weight: 600; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }
.preset span { display: flex; height: 18px; border-radius: 5px; overflow: hidden; }
.preset i { flex: 1; }
.preset:hover { border-color: var(--a-accent); }
.colors { display: grid; gap: 8px; }
.color-fld { display: grid; grid-template-columns: 52px 1fr 110px; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-bg); }
.color-fld input[type=color] { width: 52px; height: 36px; border: 0; padding: 0; background: none; border-radius: 6px; cursor: pointer; }
.color-fld b { display: block; font-size: 13.5px; } .color-fld small { color: var(--a-muted); font-size: 12px; }
.fontgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 14px; }
.fontcard { border: 1px solid var(--a-line-2); background: var(--a-bg); border-radius: 9px; padding: 12px; text-align: left; }
.fontcard b { display: block; font-size: 19px; font-weight: 400; } .fontcard small { font-family: var(--f-ui); color: var(--a-muted); }
.fontcard.on { border-color: var(--a-accent); box-shadow: 0 0 0 2px var(--a-accent-soft); }
.benefits-ed { display: grid; gap: 8px; margin-bottom: 18px; }
.ben-ed { display: grid; grid-template-columns: 100px 26px 1fr 2fr 30px; gap: 8px; align-items: center; }
.ben-ed select, .ben-ed input { background: var(--a-bg); border: 1px solid var(--a-line-2); border-radius: 8px; padding: 7px 9px; min-width: 0; }
.ben-i { color: var(--a-accent); display: grid; place-items: center; }
.contrast { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.con-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; font-size: 12.5px; align-items: center; }
.con-row b { font-variant-numeric: tabular-nums; }
.con-row em { font-style: normal; font-weight: 700; font-size: 11.5px; }
.con-row.ok em { color: var(--good); } .con-row.bad em { color: var(--warn); }
.mechs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mech { border: 1px solid var(--a-line-2); border-radius: 10px; padding: 12px; background: var(--a-bg); display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.mech input { position: absolute; opacity: 0; }
.mech small { color: var(--a-muted); font-size: 12px; }
.mech.on { border-color: var(--a-accent); box-shadow: 0 0 0 2px var(--a-accent-soft); }
.tiers-head { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.num-in { max-width: 140px; text-align: right; padding: 6px 9px; font-variant-numeric: tabular-nums; }
.gsum { border-radius: 12px; overflow: hidden; border: 1px solid var(--a-line); background: var(--b-surface); }
.gsum img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.gsum-b { padding: 10px 12px; color: var(--b-text); }
.gsum-b b { display: block; font-family: var(--f-head); font-size: 18px; font-weight: 400; } .gsum-b small { color: var(--b-muted); }

/* Marcas */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.bcard { border: 1px solid var(--a-line); border-radius: 14px; overflow: hidden; background: var(--a-panel); }
.bcard-prev { position: relative; height: 130px; background: var(--b-bg); }
.bcard-prev > img { width: 100%; height: 100%; object-fit: cover; }
.bcard-logo { position: absolute; left: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; color: var(--b-text); }
.bcard-logo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.bcard-logo b { display: block; font-size: 20px; font-weight: 400; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.bcard-logo small { font-size: 12px; opacity: .85; }
.bcard-b { padding: 14px; display: grid; gap: 10px; }
.sw { display: flex; height: 10px; border-radius: 4px; overflow: hidden; }
.sw i { flex: 1; }
.bcard-meta { display: flex; justify-content: space-between; align-items: center; color: var(--a-muted); }
.bcard-n { display: flex; gap: 14px; flex-wrap: wrap; color: var(--a-muted); font-size: 12.5px; }
.bcard-n b { color: var(--a-text); }
.bprev { border-radius: 12px; overflow: hidden; background: var(--b-bg); color: var(--b-text); font-family: var(--f-body); border: 1px solid var(--a-line); }
.bp-top { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--b-secondary); color: var(--b-on-secondary); }
.bp-top img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.bp-top b { font-family: var(--f-head); font-weight: 400; font-size: 15px; flex: 1; }
.bp-bal { background: rgba(0,0,0,.25); padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--b-primary); }
.bp-hero { position: relative; height: 110px; }
.bp-hero img { width: 100%; height: 100%; object-fit: cover; }
.bp-hero div { position: absolute; inset: 0; padding: 12px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; }
.bp-hero b { font-family: var(--f-head); font-weight: 400; font-size: 17px; max-width: 60%; line-height: 1.1; text-shadow: 0 2px 6px rgba(0,0,0,.4); color: #fff; }
.bp-btn { background: var(--b-primary); color: var(--b-on-primary); font-weight: 800; padding: 5px 10px; border-radius: 99px; font-size: 11px; display: inline-block; }
.bp-btn.sm { padding: 3px 8px; font-size: 10px; margin-top: 4px; }
.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.bp-card { background: var(--b-surface); border-radius: 9px; overflow: hidden; padding-bottom: 8px; display: flex; flex-direction: column; align-items: flex-start; }
.bp-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; margin-bottom: 6px; }
.bp-card b, .bp-card small, .bp-card em, .bp-card .bp-btn { margin-left: 8px; }
.bp-card b { font-size: 12px; } .bp-card small { color: var(--b-muted); font-size: 10px; }
.bp-card em { font-style: normal; font-family: var(--f-head); color: var(--b-primary); font-size: 14px; }
.bp-ben { display: flex; gap: 12px; padding: 8px 10px 12px; font-size: 11px; color: var(--b-muted); flex-wrap: wrap; }
.bp-ben span { display: inline-flex; gap: 5px; align-items: center; } .bp-ben svg { color: var(--b-accent); }

/* Banners */
.bnlist { display: grid; gap: 12px; }
.bnrow { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 10px; }
.bn-thumb { position: relative; aspect-ratio: 3/1; border-radius: 8px; overflow: hidden; }
.bn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bn-txt { position: absolute; inset: 0; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.bn-txt b { font-family: var(--f-head); font-weight: 400; font-size: 17px; line-height: 1.1; } .bn-txt small { font-size: 11px; }
.bn-txt.al-center { align-items: center; text-align: center; } .bn-txt.al-right { align-items: flex-end; text-align: right; }
.bn-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bn-act { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 330px; }
.bn-ed { display: grid; gap: 18px; }
.bn-prev { border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3/1; }
.bn-prev .s-slide { position: absolute; }

/* Temáticas */
.thgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.thcard { background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; overflow: hidden; }
.thcard img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.thcard-b { padding: 12px; display: grid; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.syms { display: flex; flex-wrap: wrap; gap: 4px; font-size: 18px; }

/* Login de consola */
.a-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 70% -10%, rgba(91,140,255,.16), transparent 60%), var(--a-bg); }
.a-login-box { width: min(400px, 100%); background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 16px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.a-login-box h1 { font-size: 22px; }
.a-login-box p { margin: 0; }
.a-login-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--a-accent); color: #fff; display: grid; place-items: center; }
.a-login-box a { color: var(--a-muted); }

/* Vista previa del cartón en la consola */
.ticket-demo { padding: 16px; border-radius: 12px; background: var(--b-bg); display: grid; place-items: center; }
.ticket-demo .ticket { max-width: 380px; }
.t-foil-prev { position: absolute; right: 0; top: 0; width: 40%; height: 100%; object-fit: cover; border-left: 2px dashed rgba(255,255,255,.6); }

/* ---------- Responsive consola ---------- */
@media (max-width: 1100px) { .editor { grid-template-columns: 1fr; } .ed-side .sticky { position: static; } .bnrow { grid-template-columns: 220px 1fr; } .bn-act { grid-column: span 2; justify-content: flex-start; max-width: none; } }
@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .a-side { position: fixed; z-index: 60; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .a-side.open { transform: none; }
  .a-burger { display: inline-grid; }
  .a-content { padding: 18px 16px 50px; } .a-top { padding: 10px 16px; }
  .cols-2, .fgrid, .fgrid.three, .mechs { grid-template-columns: 1fr; }
  .cols-2 .span2, .fgrid .span2, .fgrid .fld.span2 { grid-column: auto; }
  .facts.row4 { grid-template-columns: repeat(2, 1fr); }
  .bnrow { grid-template-columns: 1fr; } .bn-act { grid-column: auto; }
  .ben-ed { grid-template-columns: 90px 1fr 30px; } .ben-ed .ben-i { display: none; } .ben-ed input:last-of-type { grid-column: 1 / 3; }
  .color-fld { grid-template-columns: 44px 1fr; } .color-fld .hex { grid-column: span 2; }
}

/* ---------- Consola en teléfono ---------- */
.a-tabbar, .a-shade { display: none; }
.bn-prev { aspect-ratio: 2 / 1 !important; max-width: 560px; }
.bn-thumb { aspect-ratio: 2 / 1 !important; }
@media (max-width: 860px) {
  body { font-size: 15px; }
  .a-shade { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  .adm:has(.a-side.open) .a-shade { opacity: 1; pointer-events: auto; }
  .a-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(20,26,38,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--a-line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .a-tabbar a, .a-tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 0 5px; color: var(--a-muted); text-decoration: none; font-size: 10.5px; font-weight: 700; background: none; border: 0; border-radius: 10px; }
  .a-tabbar a.on { color: var(--a-accent); }
  .a-tabbar .a-badge { position: absolute; top: 2px; left: calc(50% + 4px); font-size: 10px; padding: 0 5px; }
  .a-content { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  .a-top { padding-top: calc(10px + env(safe-area-inset-top)); }
  .a-crumb span { display: none; }
  .a-ph { align-items: stretch; }
  .a-ph h1 { font-size: 21px; }
  .a-ph-act { width: 100%; }
  .a-ph-act .btn { flex: 1 1 auto; min-height: 42px; }
  .a-ph-act .seg { width: 100%; } .seg { overflow-x: auto; max-width: 100%; } .seg button { flex: 1; white-space: nowrap; }
  .toolbar { align-items: stretch; }
  .toolbar > * { flex: 1 1 100%; } .toolbar input[type=search] { max-width: none; } .toolbar .inline { flex-wrap: wrap; }
  .btn { min-height: 40px; }
  .btn.sm { min-height: 34px; }
  .fld input:not([type=checkbox]):not([type=radio]):not([type=color]), .fld select, .fld textarea, .toolbar input, .toolbar select, .inline select, .inline input, textarea, .num-in, .hex, .a-scope select { font-size: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 11px 12px; } .kpi b { font-size: 17px; }
  .card { padding: 14px; border-radius: 12px; }
  .editor { gap: 14px; }
  .hb-row { grid-template-columns: minmax(70px, 1fr) 1.4fr auto; }
  .emrow { grid-template-columns: 1fr auto; } .emrow .bar { grid-column: span 2; order: 3; }
  /* Diálogos a pantalla completa */
  .mwrap:not(.site-modal) { padding: 0; place-items: stretch; }
  .mwrap:not(.site-modal) .mbox { max-width: none !important; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .mwrap:not(.site-modal) .mhead { padding-top: calc(14px + env(safe-area-inset-top)); position: sticky; top: 0; background: var(--a-panel); z-index: 2; }
  .mwrap:not(.site-modal) .mfoot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .mwrap:not(.site-modal) .mfoot .btn { flex: 1; min-height: 46px; }
  .cred { grid-template-columns: 1fr; }
  #toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
/* Tablas como tarjetas */
@media (max-width: 640px) {
  .tw { border: 0; background: none; overflow: visible; }
  .t, .t tbody, .t tfoot { display: block; }
  .t thead { display: none; }
  .t tbody tr, .t tfoot tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; background: var(--a-panel); border: 1px solid var(--a-line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
  .t tfoot tr { background: var(--a-panel-2); }
  .t td { display: block; padding: 0; border: 0 !important; min-width: 0 !important; text-align: left !important; white-space: normal; }
  .t td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--a-faint); font-weight: 700; margin-bottom: 1px; }
  .t td:first-child, .t td.full, .t td.nolabel:last-child { grid-column: 1 / -1; }
  .t td:first-child::before { display: none !important; }
  .t td:first-child b, .t td:first-child .link { font-size: 15px; }
  .t td.nolabel:last-child, .t td:last-child:has(.btn) { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; padding-top: 6px !important; border-top: 1px solid var(--a-line) !important; }
  .t td:last-child:has(.btn)::before { display: none; }
  .t td .btn + .btn { margin-left: 0; }
  .t td .btn { flex: 1 1 auto; }
  .t td:has(> .thumb) { grid-column: 1 / -1; }
  .t td:has(> .thumb)::before { display: none; }
  .t td > .thumb { width: 100%; height: 120px; }
  .t tbody tr:hover td { background: none; }
  .t td:empty { display: none; }
  .t td .mini { min-width: 0; }
  .t td .num-in { max-width: none; }
  .t.tiers tbody tr { grid-template-columns: 1fr 1fr; }
  .t.tiers td:first-child { grid-column: auto; }
  .t.tiers td:first-child::before { display: block !important; }
  .facts.row4 { grid-template-columns: 1fr 1fr; }
  .bgrid, .thgrid { grid-template-columns: 1fr; }
  .presets { grid-template-columns: repeat(2, 1fr); }
  .fontgrid { grid-template-columns: repeat(2, 1fr); }
  .a-login-box { padding: 22px; }
  .s-acc .t { display: table; }
}
/* =====================================================================
   SITIO DE MARCA — app móvil. Tokens --b-* y fuentes --f-head / --f-body de cada marca.
   layout: una columna de teléfono (máx. 480 px) con barra inferior; en PC queda centrada sobre el fondo de la marca.
   ===================================================================== */
.site { min-height: 100vh; background: var(--b-bg); color: var(--b-text); font-family: var(--f-body); font-size: 15px; -webkit-tap-highlight-color: transparent; }
.site button, .site-modal button, .mesa button { touch-action: manipulation; }
.app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--b-bg); padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.s-side { display: none; }
@media (min-width: 900px) {
  .site { background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--b-secondary) 70%, transparent), transparent 55%), radial-gradient(circle at 80% 90%, color-mix(in srgb, var(--b-primary) 18%, transparent), transparent 50%), color-mix(in srgb, var(--b-bg) 85%, #000); }
  .app { box-shadow: 0 0 0 1px var(--b-line), 0 30px 90px rgba(0,0,0,.5); }
  .s-side { display: flex; position: fixed; left: calc(50% - 240px - 300px); top: 50%; transform: translateY(-50%); width: 240px; flex-direction: column; gap: 10px; color: var(--b-text); }
  .s-side img { width: 72px; height: 72px; border-radius: 50%; }
  .s-side b { font-family: var(--f-head); font-weight: 400; font-size: 28px; line-height: 1.05; }
  .s-side p { margin: 0; color: var(--b-primary); font-weight: 700; }
  .s-side small { color: var(--b-muted); line-height: 1.5; }
}
.site-modal .mbox, .mesa, .splash { font-family: var(--f-body); }
.skip { position: absolute; left: -999px; }
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: var(--b-primary); color: var(--b-on-primary); font-weight: 800; min-height: 44px; padding: 10px 18px; border-radius: var(--b-btn-r, 14px); font-family: var(--f-body); font-size: 15px; box-shadow: 0 6px 18px var(--b-glow); transition: transform .1s, filter .12s; text-decoration: none; }
.s-btn:active:not(:disabled) { transform: scale(.97); filter: brightness(.95); }
.s-btn.ghost { background: transparent; color: var(--b-text); box-shadow: inset 0 0 0 1.5px var(--b-line); }
.s-btn.sm { min-height: 36px; padding: 7px 14px; font-size: 13.5px; border-radius: var(--b-btn-r-sm, var(--b-btn-r, 11px)); }
.s-btn.lg { min-height: 52px; padding: 13px 22px; font-size: 16.5px; border-radius: var(--b-btn-r, 16px); }
.s-btn.block { width: 100%; }
.s-btn:disabled { opacity: .45; box-shadow: none; }
.s-muted { color: var(--b-muted); }
.s-muted.c { text-align: center; }
.small { font-size: 12.5px; }
.s-ul { padding-left: 18px; display: grid; gap: 6px; }
.site .mono, .mesa .mono, .site-modal .mono { font-family: var(--f-mono); }

/* Encabezado */
.s-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); background: color-mix(in srgb, var(--b-secondary) 94%, transparent); backdrop-filter: blur(10px); color: var(--b-on-secondary); border-bottom: 1px solid color-mix(in srgb, var(--b-primary) 30%, transparent); }
.s-brand { display: flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; color: inherit; flex: 1; min-width: 0; text-align: left; }
.s-logo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.s-brand b { font-family: var(--f-head); font-weight: 400; font-size: 20px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.s-bal { display: flex; flex-direction: column; align-items: flex-end; background: rgba(0,0,0,.28); border: 1px solid color-mix(in srgb, var(--b-primary) 50%, transparent); padding: 3px 12px; border-radius: calc(var(--b-rs, 1) * 12px); color: inherit; }
.s-bal small { font-size: 10px; opacity: .75; text-transform: uppercase; letter-spacing: .06em; }
.s-bal b { font-family: var(--f-head); font-weight: 400; font-size: 17px; color: var(--b-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Ticker */
.s-ticker { display: flex; align-items: center; background: color-mix(in srgb, var(--b-bg) 70%, #000); border-bottom: 1px solid var(--b-line); overflow: hidden; }
.s-live { flex: none; background: #e11d48; color: #fff; font-weight: 900; font-size: 10px; letter-spacing: .08em; padding: 3px 7px; margin: 0 10px 0 14px; border-radius: 5px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .55; } }
.s-tk { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.s-track { display: inline-flex; gap: 28px; padding: 8px 0; white-space: nowrap; animation: marquee 50s linear infinite; }
.s-track span { font-size: 12.5px; display: inline-flex; align-items: center; gap: 5px; }
.s-track b { color: var(--b-primary); }
.s-tdot { width: 6px; height: 6px; border-radius: 50%; background: var(--b-accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
.s-demo { text-align: center; font-size: 11.5px; font-weight: 700; padding: 5px; background: color-mix(in srgb, var(--b-accent) 18%, var(--b-bg)); }

.s-main { padding: 14px 14px 24px; }
#sHome > * + * { margin-top: 20px; }

/* Carrusel 2:1 */
.s-hero { position: relative; border-radius: calc(var(--b-rs, 1) * 18px); overflow: hidden; aspect-ratio: 2 / 1; background: var(--b-secondary); box-shadow: 0 14px 34px var(--b-shade); touch-action: pan-y; }
.s-slides { position: absolute; inset: 0; }
.s-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; display: flex; align-items: flex-end; pointer-events: none; }
.s-slide.on { opacity: 1; pointer-events: auto; }
.s-slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.15) 60%, transparent); }
.s-slide-txt { position: relative; z-index: 1; padding: 14px 16px 24px; width: 100%; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.s-slide.al-center .s-slide-txt { align-items: center; text-align: center; }
.s-slide.al-right .s-slide-txt { align-items: flex-end; text-align: right; }
.s-slide-txt h2 { font-family: var(--f-head); font-weight: 400; font-size: clamp(22px, 6.4vw, 30px); line-height: 1.02; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.s-slide-txt p { margin: 0; font-size: 13px; line-height: 1.35; text-shadow: 0 1px 6px rgba(0,0,0,.6); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-slide-txt .s-btn { margin-top: 2px; }
.s-kicker { background: var(--b-accent); color: var(--b-on-accent); font-weight: 900; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.s-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.s-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: width .2s; }
.s-dots button.on { width: 20px; background: var(--b-primary); }

/* Resumen deslizable */
.s-stats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); grid-template-columns: 1.6fr; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
.s-stats::-webkit-scrollbar, .s-chips::-webkit-scrollbar, .s-tabs::-webkit-scrollbar { display: none; }
.s-stat { scroll-snap-align: start; background: var(--b-surface); border: 1px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 16px); padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; text-align: left; color: var(--b-text); font-family: var(--f-body); min-width: 0; }
.s-stat small { color: var(--b-muted); font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; }
.s-stat b { font-family: var(--f-head); font-weight: 400; font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.s-stat span { color: var(--b-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-stat.big { min-width: 190px; background: linear-gradient(120deg, color-mix(in srgb, var(--b-primary) 24%, var(--b-surface)), var(--b-surface) 75%); border-color: color-mix(in srgb, var(--b-primary) 45%, var(--b-line)); }
.s-stat.big b { color: var(--b-primary); font-size: 24px; }

/* Lobby */
.s-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; scroll-margin-top: 70px; }
.s-lobby { scroll-margin-top: 66px; }
.s-sec-head h2 { font-family: var(--f-head); font-weight: 400; font-size: 26px; }
.s-sort select { background: var(--b-surface); border: 1.5px solid var(--b-line); color: var(--b-text); border-radius: calc(var(--b-rs, 1) * 11px); padding: 7px 10px; font-family: var(--f-body); font-size: 14px; }
.s-filters { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 20; background: var(--b-bg); margin: 0 -14px 12px; padding: 6px 14px 8px; display: grid; gap: 8px; }
.s-search { display: flex; align-items: center; gap: 8px; background: var(--b-surface); border: 1.5px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 12px); padding: 0 12px; color: var(--b-muted); }
.s-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--b-text); padding: 10px 0; font-family: var(--f-body); font-size: 16px; outline: none; }
.s-chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px; }
.s-chip { flex: none; border: 1.5px solid var(--b-line); background: var(--b-surface); color: var(--b-text); padding: 7px 13px; border-radius: 99px; font-weight: 700; font-size: 13.5px; font-family: var(--f-body); white-space: nowrap; }
.s-chip.on { background: var(--b-primary); color: var(--b-on-primary); border-color: var(--b-primary); }
.s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.s-card { background: var(--b-surface); border-radius: calc(var(--b-rs, 1) * 16px); overflow: hidden; border: 1.5px solid color-mix(in srgb, var(--tc) 40%, var(--b-line)); display: flex; flex-direction: column; }
.s-card.is-out { opacity: .55; }
.s-card-img { position: relative; border: 0; padding: 0; background: var(--b-secondary); display: block; aspect-ratio: var(--cover-ar, 4 / 3); overflow: hidden; }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; }
.bdg { position: absolute; top: 7px; left: 7px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 3px 7px; border-radius: calc(var(--b-rs, 1) * 6px); color: #fff; }
.bdg.new { background: var(--b-accent); color: var(--b-on-accent); } .bdg.hot { background: #e11d48; } .bdg.low { background: #d97706; } .bdg.out { background: #475569; }
.s-card-b { padding: 10px 10px 11px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.s-card-b h3 { font-family: var(--f-head); font-weight: 400; font-size: 17px; line-height: 1.1; min-height: 2.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s-max { display: flex; align-items: baseline; gap: 5px; }
.s-max small { color: var(--b-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.s-max b { font-family: var(--f-head); font-weight: 400; color: var(--b-primary); font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-bar { height: 5px; background: color-mix(in srgb, var(--b-text) 10%, transparent); border-radius: 99px; overflow: hidden; }
.s-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--b-accent), var(--b-primary)); border-radius: 99px; }
.s-card-b .s-btn { margin-top: auto; }
.s-empty { grid-column: 1 / -1; text-align: center; padding: 30px 10px; color: var(--b-muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }

.s-benefits { display: grid; gap: 8px; }
.s-ben { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: calc(var(--b-rs, 1) * 14px); background: var(--b-surface); border: 1px solid var(--b-line); }
.s-ben-i { flex: none; width: 38px; height: 38px; border-radius: calc(var(--b-rs, 1) * 11px); display: grid; place-items: center; background: color-mix(in srgb, var(--b-accent) 18%, transparent); color: var(--b-accent); }
.s-ben b { display: block; font-size: 14px; } .s-ben p { margin: 1px 0 0; color: var(--b-muted); font-size: 12.5px; }

/* Pie */
.s-foot { border-top: 1px solid var(--b-line); padding-top: 18px; display: grid; gap: 12px; }
.s-foot-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.s-foot-links button { background: var(--b-surface); border: 1px solid var(--b-line); color: var(--b-text); padding: 8px 12px; border-radius: 99px; font-size: 13px; font-family: var(--f-body); font-weight: 700; }
.s-wa { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--b-text); text-decoration: none; font-weight: 800; background: color-mix(in srgb, #25d366 18%, var(--b-surface)); border: 1px solid color-mix(in srgb, #25d366 40%, var(--b-line)); padding: 11px; border-radius: calc(var(--b-rs, 1) * 14px); }
.s-wa svg { color: #25d366; }
.s-foot-rg { display: flex; gap: 10px; align-items: center; background: var(--b-surface); border-radius: calc(var(--b-rs, 1) * 14px); padding: 10px 12px; border: 1px solid var(--b-line); }
.s-foot-rg p, .s-legal { margin: 0; color: var(--b-muted); font-size: 12px; line-height: 1.45; }
.s-legal { text-align: center; }
.s-18 { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--b-primary); color: var(--b-primary); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.s-18.big { width: 64px; height: 64px; font-size: 20px; margin: 0 auto 6px; }
.s-foot-bar { display: flex; justify-content: space-between; font-size: 12px; color: var(--b-muted); padding: 4px 2px; }
.s-op { color: var(--b-muted); }

/* Barra inferior */
.s-tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); background: color-mix(in srgb, var(--b-surface) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--b-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.s-tabbar button { position: relative; background: none; border: 0; color: var(--b-muted); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 800; font-family: var(--f-body); border-radius: calc(var(--b-rs, 1) * 12px); }
.s-tabbar button.on { color: var(--b-primary); }
.s-tabbar button.on svg { filter: drop-shadow(0 0 8px var(--b-glow)); }
.s-tb-badge { position: absolute; top: 2px; left: calc(50% + 6px); font-style: normal; background: #e11d48; color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; }

/* Cuenta */
.s-acc-empty { text-align: center; padding: 40px 10px; display: grid; gap: 12px; justify-items: center; }
.s-acc-empty h2 { font-family: var(--f-head); font-weight: 400; font-size: 28px; }
.s-acc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.s-acc-head h2 { font-family: var(--f-head); font-weight: 400; font-size: 24px; line-height: 1.05; }
.s-acc-head p { margin: 0; }
.s-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--b-primary); color: var(--b-on-primary); font-weight: 900; font-size: 20px; }
.s-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 14px; padding: 0 14px; }
.s-tabs button { flex: none; border: 1.5px solid var(--b-line); background: var(--b-surface); color: var(--b-text); padding: 8px 14px; border-radius: 99px; font-weight: 800; font-family: var(--f-body); font-size: 13.5px; }
.s-tabs button.on { background: var(--b-primary); color: var(--b-on-primary); border-color: var(--b-primary); }
.s-dot { font-style: normal; background: #e11d48; color: #fff; font-size: 10.5px; padding: 0 6px; border-radius: 99px; margin-left: 3px; }
.s-acc-body { display: grid; gap: 14px; }
.s-balcard { border-radius: calc(var(--b-rs, 1) * 20px); padding: 18px; background: linear-gradient(135deg, var(--b-secondary), color-mix(in srgb, var(--b-secondary) 50%, var(--b-bg))); border: 1px solid color-mix(in srgb, var(--b-primary) 40%, transparent); box-shadow: 0 14px 34px var(--b-shade); color: var(--b-on-secondary); }
.s-balcard small { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; font-weight: 800; }
.s-balcard b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 38px; color: var(--b-primary); font-variant-numeric: tabular-nums; line-height: 1.1; }
.s-balcard-a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.s-balcard .s-btn.ghost { color: var(--b-on-secondary); }
.s-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-kv > div { background: var(--b-surface); border: 1px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 14px); padding: 10px 12px; }
.s-kv small { display: block; color: var(--b-muted); font-size: 11.5px; font-weight: 700; }
.s-kv b { font-variant-numeric: tabular-nums; font-size: 16px; }
.s-kv .s-bar { margin-top: 6px; }
.s-h3 { font-family: var(--f-head); font-weight: 400; font-size: 20px; }
.s-note { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: calc(var(--b-rs, 1) * 14px); background: color-mix(in srgb, var(--b-primary) 16%, var(--b-surface)); border: 1px solid color-mix(in srgb, var(--b-primary) 40%, var(--b-line)); }
.s-note.warn { display: block; margin: 0; }
.s-list { list-style: none; margin: 0; padding: 0; background: var(--b-surface); border: 1px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 16px); overflow: hidden; }
.s-list li { border-bottom: 1px solid var(--b-line); }
.s-list li:last-child { border-bottom: 0; }
.s-list li > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: 0; color: var(--b-text); text-align: left; font-family: var(--f-body); }
.s-list.mv li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.s-list img { width: 44px; height: 34px; border-radius: calc(var(--b-rs, 1) * 7px); object-fit: cover; flex: none; }
.s-list li div { flex: 1; min-width: 0; }
.s-list b { font-size: 14px; }
.s-list small { display: block; color: var(--b-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-li-r { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s-li-r .pos, .s-list .pos { color: var(--b-accent); } .s-li-r .neg { color: var(--b-muted); }
.s-pend { background: var(--b-primary); color: var(--b-on-primary); font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.s-li-empty { padding: 16px; text-align: center; }
.s-acc-links { display: grid; gap: 8px; }
.s-form { background: var(--b-surface); border: 1px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 16px); padding: 16px; display: grid; gap: 10px; }
.s-form p { margin: 0; }
.s-form.plain, .site-modal .s-form { background: none; border: 0; padding: 0; }
.s-fld { display: grid; gap: 6px; } .s-fld span { font-size: 13px; color: var(--b-muted); font-weight: 700; }
.s-fld input { background: var(--b-bg); border: 1.5px solid var(--b-line); color: var(--b-text); border-radius: calc(var(--b-rs, 1) * 12px); padding: 12px 14px; width: 100%; font-family: var(--f-body); font-size: 16px; }
.s-fld input:focus { outline: none; border-color: var(--b-primary); }
.s-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.s-pause { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site .pill, .site-modal .pill { background: color-mix(in srgb, var(--b-text) 8%, transparent); color: var(--b-muted); }
.site .pill.done { color: var(--b-accent); } .site .pill.pending { color: #f0bd5e; } .site .pill.rejected { color: #ff8d86; }
.s-modal-logo { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; }
.s-steps { padding-left: 20px; display: grid; gap: 8px; margin: 0; }
.s-age { text-align: center; display: grid; gap: 10px; padding-top: 6px; }
.s-age h3 { font-family: var(--f-head); font-weight: 400; font-size: 24px; }
.s-age-a { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.s-busy { text-align: center; padding: 10px; }
.s-spin { border-color: var(--b-line); border-top-color: var(--b-primary); }

/* Hojas inferiores (todos los diálogos del sitio) */
.site-modal { align-items: end; place-items: end center; padding: 0; }
.site-modal .mbox { background: var(--b-surface); border: 1px solid var(--b-line); border-bottom: 0; color: var(--b-text); max-width: 480px !important; border-radius: calc(var(--b-rs, 1) * 22px) 22px 0 0; max-height: 92vh; animation: sheetUp .25s cubic-bezier(.2,.8,.2,1); padding-bottom: env(safe-area-inset-bottom); }
.site-modal .mbox::before { content: ''; width: 40px; height: 4px; border-radius: 99px; background: var(--b-line); margin: 8px auto 0; flex: none; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.site-modal .mhead, .site-modal .mfoot { border-color: var(--b-line); }
.site-modal .mhead { padding: 10px 16px 12px; }
.site-modal .mhead h3 { font-family: var(--f-head); font-weight: 400; font-size: 22px; }
.site-modal .mclose { color: var(--b-muted); width: 36px; height: 36px; }
.site-modal .mbody { padding: 14px 16px 18px; }
.site-modal .mfoot { padding: 12px 16px; }
.site-modal .mfoot .btn { flex: 1; min-height: 46px; border-radius: calc(var(--b-rs, 1) * 14px); font-size: 15px; }
.site-modal .btn.primary { background: var(--b-primary); border-color: var(--b-primary); color: var(--b-on-primary); }
.site-modal .btn { background: transparent; border-color: var(--b-line); color: var(--b-text); }
.site-modal .lead, .site-modal p { color: var(--b-text); }
.site-modal .ferr { color: #ff8d86; }
.s-gm { display: grid; gap: 12px; }
.s-gm-img { border-radius: calc(var(--b-rs, 1) * 14px); aspect-ratio: 16/9; object-fit: cover; width: 100%; border: 2px solid color-mix(in srgb, var(--tc) 60%, transparent); }
.s-gm > p { margin: 0; }
.s-gm-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.s-gm-facts div { background: var(--b-bg); border-radius: calc(var(--b-rs, 1) * 11px); padding: 8px; border: 1px solid var(--b-line); min-width: 0; }
.s-gm-facts small { display: block; color: var(--b-muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; }
.s-gm-facts b { font-variant-numeric: tabular-nums; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.s-rule { font-size: 13.5px; color: var(--b-muted) !important; }
.s-prizes summary { font-family: var(--f-head); font-size: 19px; cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s-prizes summary small { font-family: var(--f-body); font-size: 12px; color: var(--b-muted); }
.s-prizes summary::-webkit-details-marker { display: none; }
.s-ptable { list-style: none; margin: 8px 0; padding: 0; border: 1px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 14px); overflow: hidden; }
.s-ptable li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'p o' 's s'; gap: 0 10px; padding: 8px 12px; border-bottom: 1px solid var(--b-line); font-variant-numeric: tabular-nums; }
.s-ptable li:last-child { border-bottom: 0; }
.s-ptable li:first-child { background: color-mix(in srgb, var(--b-primary) 12%, transparent); }
.s-ptable b { grid-area: p; color: var(--b-primary); font-size: 15px; }
.s-ptable span { grid-area: s; color: var(--b-muted); font-size: 12px; }
.s-ptable em { grid-area: o; font-style: normal; font-size: 12.5px; color: var(--b-text); align-self: center; }
.s-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--b-line); background: var(--b-surface); }
.s-buy .ferr { grid-column: 1 / -1; margin: 0; min-height: 0; }
.s-buy .ferr:empty { display: none; }
.s-qty { display: flex; align-items: center; border: 1.5px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 14px); overflow: hidden; height: 52px; }
.s-qty button { background: none; border: 0; width: 42px; height: 100%; font-size: 20px; color: var(--b-text); }
.s-qty output { min-width: 24px; text-align: center; font-weight: 900; font-size: 17px; }

/* Intro */
.splash { position: fixed; inset: 0; z-index: 500; background: radial-gradient(circle at 50% 40%, var(--b-secondary), var(--b-bg) 70%); color: var(--b-text); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; transition: opacity .4s; overflow: hidden; }
.splash.out { opacity: 0; }
.splash-rays { position: absolute; width: 180vmax; height: 180vmax; left: 50%; top: 42%; transform: translate(-50%, -50%); background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--b-primary) 14%, transparent) 0 6deg, transparent 6deg 18deg); animation: spin 40s linear infinite; mask-image: radial-gradient(circle, #000 10%, transparent 55%); }
.splash-logo { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; position: relative; animation: pulse 1.6s ease-in-out infinite; box-shadow: 0 0 60px var(--b-glow); }
@keyframes pulse { 50% { transform: scale(1.05); } }
.splash h1 { font-family: var(--f-head); font-weight: 400; font-size: clamp(30px, 9vw, 52px); position: relative; }
.splash p { position: relative; color: var(--b-primary); font-weight: 900; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; margin: 0; }
.splash-bar { width: 180px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; position: relative; margin-top: 10px; }
.splash-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--b-accent), var(--b-primary)); transform-origin: left; animation: grow linear forwards; }
@keyframes grow { from { transform: scaleX(0); } }
.splash-skip { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; color: var(--b-text); }

/* Mesa de raspado: pantalla completa */
.mesa { position: fixed; inset: 0; z-index: 300; background: radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--b-secondary) 85%, var(--b-bg)), var(--b-bg) 75%); color: var(--b-text); display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.mesa > * { width: 100%; max-width: 480px; margin-left: auto; margin-right: auto; }
.mesa-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
.icon-round { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--b-line); background: rgba(0,0,0,.2); color: var(--b-text); font-size: 22px; line-height: 1; display: grid; place-items: center; flex: none; }
.mesa-info { flex: 1; text-align: center; min-width: 0; } .mesa-info b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mesa-info span { color: var(--b-muted); font-size: 12px; }
.mesa-bal { text-align: center; font-size: 13px; color: var(--b-muted); }
.mesa-bal b { font-family: var(--f-head); font-weight: 400; color: var(--b-primary); font-size: 18px; font-variant-numeric: tabular-nums; }
.mesa-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px; }
.mesa-actions { display: grid; gap: 8px; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
.mesa-hint { margin: 0; color: var(--b-muted); font-size: 13px; animation: blink 1.8s infinite; }
.ticket { width: min(100%, 420px, calc((100vh - 290px) * .74)); min-width: 280px; background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 30%, var(--b-surface)), var(--b-surface) 60%); border-radius: calc(var(--b-rs, 1) * 20px); padding: 12px; border: 2px solid color-mix(in srgb, var(--tc) 70%, transparent); box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.12); position: relative; color: var(--b-text); font-family: var(--f-body); }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--b-bg); transform: translateY(-50%); }
.ticket::before { left: -11px; } .ticket::after { right: -11px; }
.t-head { display: flex; align-items: center; gap: 9px; }
.t-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.t-head div { flex: 1; min-width: 0; } .t-head b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 18px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-head small { color: var(--b-muted); font-size: 10px; }
.t-price { background: var(--b-primary); color: var(--b-on-primary); font-weight: 900; padding: 4px 9px; border-radius: 99px; font-size: 12px; white-space: nowrap; }
.t-rule { text-align: center; font-size: 11.5px; color: var(--b-muted); margin: 8px 2px; }
.t-area { position: relative; border-radius: calc(var(--b-rs, 1) * 14px); overflow: hidden; background: color-mix(in srgb, var(--b-bg) 75%, #fff 4%); padding: 8px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.t-area canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: calc(var(--b-rs, 1) * 14px); transition: opacity .45s; }
.t-area canvas.gone { opacity: 0; pointer-events: none; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cell { aspect-ratio: 1.15; border-radius: calc(var(--b-rs, 1) * 11px); background: var(--b-surface); border: 1.5px solid var(--b-line); display: flex; flex-direction: column; align-items: center; justify-content: center; transition: transform .3s, background .3s, opacity .3s; }
.cell.amt b { font-family: var(--f-head); font-weight: 400; font-size: clamp(17px, 5.4vw, 24px); line-height: 1; color: var(--b-text); }
.cell.amt small { font-size: 10px; color: var(--b-muted); }
.cell.sym span { font-size: clamp(28px, 9vw, 40px); }
.cell.hit { background: color-mix(in srgb, var(--b-primary) 30%, var(--b-surface)); border-color: var(--b-primary); transform: scale(1.05); box-shadow: 0 0 22px var(--b-glow); }
.cell.hit b { color: var(--b-primary); }
.cell.dim { opacity: .45; }
.t-prizebox { margin-top: 7px; border-radius: calc(var(--b-rs, 1) * 11px); padding: 6px; text-align: center; background: var(--b-surface); border: 1.5px dashed var(--b-line); }
.t-prizebox small { display: block; color: var(--b-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.t-prizebox b { font-family: var(--f-head); font-weight: 400; font-size: 21px; color: var(--b-primary); }
.t-direct { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.t-direct small { color: var(--b-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 11px; }
.t-direct b { font-family: var(--f-head); font-weight: 400; font-size: 40px; color: var(--b-primary); line-height: 1.05; }
.t-direct span { color: var(--b-muted); }
.t-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--b-muted); padding: 0 4px; }
.mesa-result { min-height: 64px; display: grid; place-items: center; }
.res { text-align: center; animation: pop .3s ease; }
.res small { display: block; color: var(--b-accent); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 12px; }
.res.win b { font-family: var(--f-head); font-weight: 400; font-size: 38px; color: var(--b-primary); text-shadow: 0 0 30px var(--b-glow); display: block; line-height: 1.05; }
.res.lose b { font-family: var(--f-head); font-weight: 400; font-size: 24px; display: block; }
.res span { color: var(--b-muted); font-size: 13px; }
.confetti { position: fixed; inset: 0; z-index: 600; pointer-events: none; }
.site-prev .s-slide, .bn-prev .s-slide { position: absolute; }
@media (max-width: 360px) { .s-grid { gap: 9px; } .s-card-b h3 { font-size: 15.5px; } .s-gm-facts { grid-template-columns: 1fr 1fr; } }
.tiers .num-in { min-width: 120px; }
.tiers td:first-child, .tiers td:nth-child(3) { min-width: 140px; }
.t td.num, .t td.r { white-space: nowrap; }
.t td:first-child { min-width: 110px; }
.setup { width: min(920px, 100%); text-align: left; display: grid; gap: 16px; }
.setup h1 { font-size: 28px; }
.setup-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.setup-prog { display: grid; gap: 6px; }
@media (max-width: 760px) { .setup-opts { grid-template-columns: 1fr; } }
/* Ajustes móviles finales */
.s-gm-facts { grid-template-columns: repeat(2, 1fr) !important; }
.s-gm-facts b { font-size: 15px; }
body:has(.s-tabbar) #toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.noscroll #toasts { bottom: auto; top: calc(64px + env(safe-area-inset-top)); }
.bn-txt { justify-content: flex-end; padding-bottom: 12px; background: linear-gradient(0deg, rgba(0,0,0,.6), transparent 70%); }
.bn-prev .s-btn, .bn-thumb .s-btn { font-family: var(--f-body); }

/* ===== Funciones de fidelización y juego (v4) ===== */
.s-user { display: flex; align-items: center; gap: 8px; }
.s-bell { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.25); color: inherit; display: grid; place-items: center; }
.s-bell i { position: absolute; top: -2px; right: -2px; font-style: normal; background: #e11d48; color: #fff; font-size: 10px; font-weight: 900; min-width: 18px; height: 18px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--b-secondary); }
.s-bal em { font-style: normal; font-size: 10px; color: var(--b-accent); font-weight: 800; line-height: 1; }
.s-h2 { font-family: var(--f-head); font-weight: 400; font-size: 22px; margin-bottom: 8px; }

/* Pozo */
.s-jack { position: relative; overflow: hidden; border-radius: calc(var(--b-rs, 1) * 18px); padding: 14px 16px; text-align: center; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--b-primary) 45%, var(--b-secondary)), var(--b-secondary) 70%); border: 1.5px solid color-mix(in srgb, var(--b-primary) 70%, transparent); box-shadow: 0 0 34px var(--b-glow), inset 0 0 30px rgba(0,0,0,.25); }
.s-jack::before { content: ''; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 20deg, rgba(255,255,255,.08) 20deg 30deg, transparent 30deg 60deg); animation: spin 14s linear infinite; }
.s-jack-in { position: relative; display: flex; flex-direction: column; gap: 2px; color: var(--b-on-secondary); }
.s-jack small { font-weight: 900; letter-spacing: .2em; text-transform: uppercase; font-size: 11px; color: var(--b-primary); }
.s-jack b { font-family: var(--f-head); font-weight: 400; font-size: clamp(32px, 10vw, 44px); color: #fff; text-shadow: 0 0 18px var(--b-glow), 0 2px 0 rgba(0,0,0,.35); font-variant-numeric: tabular-nums; line-height: 1.05; }
.s-jack span { font-size: 12px; opacity: .85; }

/* Promos */
.s-promo-row { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 2px; scrollbar-width: none; }
.s-promo-row::-webkit-scrollbar { display: none; }
.s-promo { scroll-snap-align: start; text-align: left; border: 1px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 16px); padding: 14px; color: var(--b-text); font-family: var(--f-body); display: flex; flex-direction: column; gap: 4px; background: linear-gradient(135deg, color-mix(in srgb, var(--b-accent) 22%, var(--b-surface)), var(--b-surface) 70%); }
.s-promo.t-deposit { background: linear-gradient(135deg, color-mix(in srgb, var(--b-primary) 26%, var(--b-surface)), var(--b-surface) 70%); }
.s-promo b { font-family: var(--f-head); font-weight: 400; font-size: 19px; line-height: 1.1; }
.s-promo small { color: var(--b-muted); font-size: 12.5px; }
.s-promo-tag { align-self: flex-start; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: rgba(0,0,0,.25); padding: 3px 8px; border-radius: 99px; color: var(--b-primary); }

/* Cuenta */
.s-balcard-top { display: flex; justify-content: space-between; align-items: center; }
.s-lvl { font-size: 11px; font-weight: 900; background: var(--b-primary); color: var(--b-on-primary); padding: 3px 9px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.s-bonusline { margin: 2px 0 0; font-size: 13px; color: var(--b-accent); font-weight: 700; }
.s-balcard-a.three { grid-template-columns: 1fr 1fr 1fr; }
.s-methods { display: grid; gap: 8px; }
.s-method { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 14px); padding: 11px 12px; background: var(--b-bg); cursor: pointer; }
.s-method:has(input:checked) { border-color: var(--b-primary); box-shadow: 0 0 0 3px var(--b-glow); }
.s-method input { margin-top: 3px; accent-color: var(--b-primary); width: 18px; height: 18px; flex: none; }
.s-method b { display: block; } .s-method small { color: var(--b-muted); font-size: 12.5px; }
.s-note.sm { padding: 9px 12px; font-size: 13px; justify-content: flex-start; }
.s-level { border-radius: calc(var(--b-rs, 1) * 18px); padding: 16px; background: linear-gradient(135deg, var(--b-secondary), var(--b-surface)); border: 1px solid color-mix(in srgb, var(--b-primary) 40%, var(--b-line)); display: grid; gap: 10px; color: var(--b-on-secondary); }
.s-level p { margin: 0; color: inherit !important; opacity: .85; }
.s-level-top { display: flex; justify-content: space-between; align-items: center; }
.s-level-top small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .75; font-weight: 800; }
.s-level-top b { font-family: var(--f-head); font-weight: 400; font-size: 30px; color: var(--b-primary); }
.s-steps-lv { display: grid; grid-auto-flow: column; gap: 4px; }
.s-steps-lv span { text-align: center; font-size: 11px; font-weight: 800; padding: 5px 2px; border-radius: calc(var(--b-rs, 1) * 8px); background: rgba(0,0,0,.2); opacity: .55; }
.s-steps-lv span.on { background: var(--b-primary); color: var(--b-on-primary); opacity: 1; }
.s-bar.big { height: 9px; }
.s-missions { display: grid; gap: 8px; }
.s-mission { display: flex; gap: 12px; align-items: center; background: var(--b-surface); border: 1px solid var(--b-line); border-radius: calc(var(--b-rs, 1) * 14px); padding: 12px; }
.s-mission > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.s-mission small { color: var(--b-muted); font-size: 12px; }
.s-mission.done { opacity: .7; }
.s-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--b-bg); border: 1.5px dashed var(--b-primary); border-radius: calc(var(--b-rs, 1) * 14px); padding: 12px 14px; }
.s-code small { color: var(--b-muted); font-weight: 700; } .s-code b { font-size: 20px; color: var(--b-primary); letter-spacing: .05em; }
.s-list.notes li { align-items: flex-start; }
.s-list.notes li.unread { background: color-mix(in srgb, var(--b-primary) 10%, transparent); }
.s-list.notes li.k-jackpot b { color: var(--b-primary); }
.s-list small.wrap { white-space: normal; color: var(--b-text); font-size: 13px; }

/* Mesa: casi gano, multiplicador, elegir */
.cell.near { border-color: var(--b-accent); box-shadow: 0 0 0 2px var(--b-accent), 0 0 24px color-mix(in srgb, var(--b-accent) 70%, transparent); animation: nearPulse .7s ease-in-out infinite alternate; position: relative; z-index: 1; }
@keyframes nearPulse { to { transform: scale(1.06); } }
.mesa-hint.near-msg { color: var(--b-accent); font-weight: 900; animation: blink 1s infinite; font-size: 15px; }
.t-area canvas { z-index: 2; }
.t-prizebox.mult b { font-size: 28px; color: var(--b-accent); }
.t-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 4px; }
.pick { position: relative; aspect-ratio: 1; border: 0; border-radius: calc(var(--b-rs, 1) * 16px); background: none; padding: 0; perspective: 600px; }
.pick-cover, .pick-val { position: absolute; inset: 0; border-radius: calc(var(--b-rs, 1) * 16px); display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pick-cover { background: linear-gradient(145deg, color-mix(in srgb, var(--b-primary) 85%, #fff), var(--b-primary) 55%, color-mix(in srgb, var(--b-primary) 70%, #000)); color: var(--b-on-primary); font-family: var(--f-head); font-size: 34px; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 6px 14px rgba(0,0,0,.35); }
.pick-val { background: var(--cell-bg, var(--b-surface)); border: 1.5px solid var(--b-line); transform: rotateY(180deg); }
.pick-val b { font-family: var(--f-head); font-weight: 400; font-size: 22px; color: var(--cell-text, var(--b-text)); }
.pick-val small { font-size: 10px; color: var(--b-muted); }
.pick.open .pick-cover { transform: rotateY(180deg); }
.pick.open .pick-val { transform: rotateY(360deg); }
.pick.chosen .pick-val { border-color: var(--b-primary); box-shadow: 0 0 20px var(--b-glow); }
.pick.chosen .pick-val b { color: var(--b-primary); }
.pick.other { opacity: .55; }
.pick:not(.open):active .pick-cover { transform: scale(.94); }

/* Pozo ganado */
.jp-win { position: fixed; inset: 0; z-index: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 24px; background: radial-gradient(circle, color-mix(in srgb, var(--b-primary) 40%, var(--b-secondary)), rgba(0,0,0,.92) 70%); color: #fff; animation: fade .3s; overflow: hidden; }
.jp-rays { position: absolute; width: 200vmax; height: 200vmax; left: 50%; top: 50%; transform: translate(-50%, -50%); background: repeating-conic-gradient(rgba(255,255,255,.08) 0 8deg, transparent 8deg 20deg); animation: spin 10s linear infinite; }
.jp-win > *:not(.jp-rays) { position: relative; }
.jp-win small { letter-spacing: .25em; text-transform: uppercase; font-weight: 900; color: var(--b-primary); }
.jp-win h2 { font-family: var(--f-head); font-weight: 400; font-size: clamp(30px, 9vw, 46px); }
.jp-win b { font-family: var(--f-head); font-weight: 400; font-size: clamp(40px, 13vw, 64px); color: var(--b-primary); text-shadow: 0 0 40px var(--b-glow); animation: pulse 1s infinite; }

/* Diseño del cartón: marcos y casillas */
.cell { background: var(--cell-bg, var(--b-surface)); }
.cell.amt b, .cell.sym span { color: var(--cell-text, var(--b-text)); }
.ticket.has-bg { background-image: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), var(--t-bg); background-size: cover; background-position: center; }
.ticket.frame-dorado { border: 3px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 3px #d4a017, 0 0 0 6px #7a5800, 0 24px 60px rgba(0,0,0,.45); }
.ticket.frame-neon { border-color: var(--tc); box-shadow: 0 0 12px var(--tc), 0 0 36px color-mix(in srgb, var(--tc) 60%, transparent), inset 0 0 18px color-mix(in srgb, var(--tc) 30%, transparent); }
.ticket.frame-minimal { border-width: 1px; box-shadow: 0 16px 40px rgba(0,0,0,.35); background: var(--b-surface); }
.ticket.frame-minimal::before, .ticket.frame-minimal::after { display: none; }
.ticket.frame-boleto { border-style: dashed; border-width: 2.5px; }
.ticket.cell-circulo .cell { border-radius: 50%; aspect-ratio: 1; }
.ticket.cell-cuadrado .cell { border-radius: 4px; }
.ticket.cell-diamante .t-grid { gap: 12px; padding: 8px; }
.ticket.cell-diamante .cell { transform: rotate(45deg) scale(.82); border-radius: calc(var(--b-rs, 1) * 8px); aspect-ratio: 1; }
.ticket.cell-diamante .cell > * { transform: rotate(-45deg); }
.ticket.cell-diamante .cell.hit { transform: rotate(45deg) scale(.9); }
.ticket.cell-moneda .cell { border-radius: 50%; aspect-ratio: 1; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--b-primary) 40%, #fff), var(--b-primary) 60%, color-mix(in srgb, var(--b-primary) 60%, #000)); border: 2px solid color-mix(in srgb, var(--b-primary) 50%, #000); }
.ticket.cell-moneda .cell.amt b, .ticket.cell-moneda .cell.amt small { color: color-mix(in srgb, var(--b-primary) 25%, #000); }
.jp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.jp-tile { border-radius: calc(var(--b-rs, 1) * 12px); padding: 12px 14px; background: linear-gradient(135deg, rgba(224,164,58,.16), var(--a-panel-2)); border: 1px solid rgba(224,164,58,.35); display: grid; gap: 2px; }
.jp-tile small { color: var(--a-muted); font-weight: 700; } .jp-tile b { font-size: 24px; color: #f0bd5e; font-variant-numeric: tabular-nums; } .jp-tile span { font-size: 12px; color: var(--a-faint); }
.t.cohort td { min-width: 0 !important; }
.receipt { white-space: pre-wrap; font-family: var(--f-mono); font-size: 13px; background: var(--a-bg); border: 1px solid var(--a-line); border-radius: calc(var(--b-rs, 1) * 10px); padding: 12px; margin: 0; line-height: 1.5; }
.seg .a-badge { margin-left: 4px; }
.levels-ed, .methods-ed { display: grid; gap: 8px; margin-bottom: 16px; }
.lv-ed { display: grid; grid-template-columns: 1.2fr 1fr 1fr 30px; gap: 8px; align-items: center; }
.lv-ed label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--a-muted); font-weight: 600; }
.lv-ed input, .mt-ed input { background: var(--a-bg); border: 1px solid var(--a-line-2); border-radius: calc(var(--b-rs, 1) * 8px); padding: 8px 10px; min-width: 0; width: 100%; color: var(--a-text); }
.mt-ed { display: grid; grid-template-columns: 1fr 2fr 30px; gap: 8px; align-items: center; }
.design-ed .color-fld { grid-template-columns: 52px 1fr; }
.t-foil-sample { position: absolute; right: 8px; top: 8px; background: linear-gradient(135deg, var(--foil), #fff 50%, var(--foil)); color: #333; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 99px; z-index: 3; }
.ticket-demo .ticket { width: min(100%, 360px); min-width: 0; }
.wz-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.wz-steps li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--a-faint); }
.wz-steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--a-line-2); }
.wz-steps li.on { color: var(--a-text); } .wz-steps li.on i { background: var(--a-accent); border-color: var(--a-accent); color: #fff; }
.wz-steps li.done i { background: rgba(47,179,122,.2); border-color: var(--good); color: var(--good); }
.wz-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
.wz-form { display: grid; gap: 12px; }
.preset.on { border-color: var(--a-accent); box-shadow: 0 0 0 2px var(--a-accent-soft); }
.wz-games { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.wz-game { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--a-line); border-radius: calc(var(--b-rs, 1) * 10px); background: var(--a-bg); cursor: pointer; }
.wz-game img { width: 54px; height: 36px; object-fit: cover; border-radius: calc(var(--b-rs, 1) * 6px); }
.wz-game b { display: block; font-size: 13.5px; } .wz-game small { color: var(--a-muted); font-size: 12px; }
.wz-game input { width: 18px; height: 18px; accent-color: var(--a-accent); }
.wz-sum { display: grid; gap: 4px; padding: 12px; border-radius: calc(var(--b-rs, 1) * 10px); background: var(--a-panel-2); border: 1px solid var(--a-line); }
.wz-sum span { color: var(--a-muted); font-size: 13px; }
@media (max-width: 760px) { .wz-grid { grid-template-columns: 1fr; } .wz-prev { order: -1; } .lv-ed { grid-template-columns: 1fr 1fr; } .mt-ed { grid-template-columns: 1fr 30px; } .mt-ed input:nth-child(2) { grid-column: 1; } }

/* ---------- Editor del cartón ---------- */
.card-ed { display: grid; gap: 18px; }
.ce-sec { border-top: 1px solid var(--a-line, rgba(255,255,255,.08)); padding-top: 14px; }
.ce-sec:first-child { border-top: 0; padding-top: 0; }
.ce-sec .ct small { font-weight: 400; margin-left: 6px; }
.ce-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ce-presets .chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--a-line, rgba(255,255,255,.14)); background: var(--a-surface-2, rgba(255,255,255,.04)); color: inherit; font: inherit; cursor: pointer; }
.ce-presets .chip:hover { border-color: var(--c1, #5b8cff); }
.figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin: 10px 0; }
.fig-slot { position: relative; aspect-ratio: 1; border-radius: 12px; border: 1.5px dashed var(--a-line, rgba(255,255,255,.2)); background: repeating-conic-gradient(rgba(255,255,255,.05) 0 25%, transparent 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; color: var(--a-muted, #9aa3b5); font-size: 26px; cursor: pointer; font-family: inherit; }
.fig-slot.has { border-style: solid; cursor: default; }
.fig-slot img { width: 82%; height: 82%; object-fit: contain; }
.fig-slot .icon-btn { position: absolute; top: 2px; right: 2px; width: 24px; height: 24px; }
.fig-slot:disabled { opacity: .4; cursor: not-allowed; }
.tk-prev { display: grid; gap: 10px; }
.tk-prev .seg { justify-self: center; }
.tk-prev .ticket-demo .ticket { width: min(100%, 340px); }
.t-area { position: relative; }
.tk-foil { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; z-index: 3; }
/* Piezas personalizables del cartón */
.cell.sym img.fig { width: 80%; height: 80%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.ticket.cell-diamante .cell.sym img.fig { width: 70%; height: 70%; }
.t-title-img { display: block; max-height: 42px; max-width: 100%; object-fit: contain; object-position: left center; }
.ticket.has-bgc:not(.has-bg) { background: var(--t-bgc); }
.ticket.has-bg.has-bgc { background-color: var(--t-bgc); }
.ticket.has-ink, .ticket.has-ink .t-head small, .ticket.has-ink .t-rule, .ticket.has-ink .t-foot { color: var(--t-ink); }
.ticket.has-ink .t-head small, .ticket.has-ink .t-foot { opacity: .75; }
.pick-cover img { width: 78%; height: 78%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }


/* ---------- Distribución editable del sitio ---------- */
.lay-off { display: none !important; }
.s-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }
.s-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.s-grid.cols-3 .s-card-b { padding: 8px; }
.s-grid.cols-3 .s-card-b h3 { font-size: 13.5px; }
.s-grid.cols-3 .s-card-b .s-btn { min-height: 34px; padding: 6px 8px; font-size: 12.5px; }
.s-grid.lay-list { grid-template-columns: minmax(0, 1fr); }
.s-grid.lay-list .s-card { flex-direction: row; }
.s-grid.lay-list .s-card-img { width: 42%; flex: none; aspect-ratio: auto; min-height: 120px; }
.s-grid.lay-list .s-card-b { flex: 1; min-width: 0; }
.site.head-center .s-top { display: grid; grid-template-columns: 1fr auto 1fr; }
.site.head-center .s-top::before { content: ''; }
.site.head-center .s-brand { justify-self: center; }
.site.head-center .s-user { justify-self: end; }
.site.tab-icons .s-tabbar span { display: none; }
.site.tab-icons .s-tabbar button { padding-top: 14px; padding-bottom: 14px; }
/* Carruseles: flechas y puntos (en PC), arrastre con el mouse */
.s-promo-row, .s-stats, .s-chips { cursor: grab; }
.dragging { cursor: grabbing; scroll-snap-type: none !important; user-select: none; }
.dragging * { pointer-events: none; }
.car-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 2px; }
.car-dots { display: flex; gap: 6px; }
.car-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; padding: 0; background: color-mix(in srgb, var(--b-text) 25%, transparent); cursor: pointer; transition: width .2s, background .2s; }
.car-dots button.on { width: 18px; background: var(--b-primary); }
.car-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--b-line); background: var(--b-surface); color: var(--b-text); font-size: 20px; line-height: 1; cursor: pointer; display: none; }
.car-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .car-btn { display: inline-grid; place-items: center; } }
/* Vista previa de la distribución en el panel */
.bp-sec { margin: 6px 0; border-radius: calc(var(--b-rs, 1) * 10px); padding: 8px 10px; background: var(--b-surface); color: var(--b-muted); font-size: 11px; border: 1px dashed var(--b-line); }
.bp-grid.cols-1 { grid-template-columns: 1fr; } .bp-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bp-grid.lay-list .bp-card { display: grid; grid-template-columns: 40% 1fr; column-gap: 8px; align-items: center; }
.bp-grid.lay-list .bp-card img { grid-row: span 3; }
.bprev .bp-card img { aspect-ratio: var(--cover-ar, 4 / 3); object-fit: cover; }
.bprev .bp-btn { border-radius: var(--b-btn-r, 14px); }
.bprev.head-center .bp-top { justify-content: center; }
.lay-ed { display: grid; gap: 6px; }
.lay-row { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--a-line); border-radius: 10px; background: var(--a-panel-2, rgba(255,255,255,.03)); }
.lay-row.off { opacity: .55; }
.lay-row .num { color: var(--a-muted); font-size: 12px; width: 18px; text-align: center; }
.bprev .bp-card { border-radius: calc(var(--b-rs, 1) * 9px); }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--a-muted); cursor: pointer; }
.s-promo-row, .s-stats, .s-chips { scroll-padding-inline: 14px; }
