/* CTM · Modo Presentación — lienzo 1600×900 escalado al tamaño de la pantalla */
@property --brand  { syntax: '<color>'; inherits: true; initial-value: #2f6bff; }
@property --brand2 { syntax: '<color>'; inherits: true; initial-value: #22c55e; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ffc93c; }

:root {
  --brand: #2f6bff; --brand2: #22c55e; --accent: #ffc93c;
  --bg: #050913; --bg2: #0a1222;
  --text: #eef2fa; --muted: #93a0b8; --line: rgba(255,255,255,.09);
  --ok: #22c55e; --bad: #f43f5e;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  transition: --brand .7s ease, --brand2 .7s ease, --accent .7s ease;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text); overflow: hidden; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1200px 700px at 15% 10%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(900px 600px at 90% 90%, color-mix(in srgb, var(--brand2) 10%, transparent), transparent 60%),
    linear-gradient(180deg, var(--bg2), var(--bg));
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; }
i[data-i] { display: inline-flex; width: 1em; height: 1em; flex: none; }
i[data-i] svg { width: 100%; height: 100%; }
kbd { font: 600 13px/1 inherit; padding: 4px 8px; border-radius: 6px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); }

#viewport { position: fixed; inset: 0; overflow: hidden; }
#canvas {
  position: absolute; left: 50%; top: 50%; width: 1600px; height: 900px;
  transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: center center; overflow: hidden;
}
#canvas::before { /* retícula sutil */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* ================= BARRA SUPERIOR ================= */
.topbar { position: absolute; left: 0; top: 0; width: 1600px; height: 78px; padding: 0 40px 0 70px; display: flex; align-items: center; gap: 22px; z-index: 30; transition: opacity .5s, transform .5s var(--ease); }
.tb-brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.tb-brand img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.4)); }
.tb-brand strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.tb-brand span { display: block; font-size: 13px; color: var(--muted); }
.chips { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.chip { display: flex; align-items: center; gap: 0; height: 38px; padding: 0 6px; white-space: nowrap; border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--muted); transition: all .35s var(--ease); position: relative; overflow: hidden; }
.chip em { font-style: normal; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(255,255,255,.07); transition: inherit; }
.chip:hover { color: var(--text); }
.chip .lb { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; transition: max-width .45s var(--ease), opacity .3s, margin .45s; }
.chip.on { padding-right: 16px; } .chip.on .lb { max-width: 120px; opacity: 1; margin-left: 9px; }
.chip.done em { background: color-mix(in srgb, var(--brand2) 25%, transparent); color: var(--brand2); }
.chip.on { background: #fff; color: #0b1222; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.chip.on em { background: var(--brand); color: #fff; }
.tb-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tb-group { display: flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; color: #cfd7e6; transition: background .2s, color .2s, transform .2s; }
.ic:hover { background: rgba(255,255,255,.1); color: #fff; }
.ic:active { transform: scale(.92); }
.ic.play { background: var(--brand); color: #fff; box-shadow: 0 4px 16px color-mix(in srgb, var(--brand) 50%, transparent); }
.ic.on { background: rgba(255,255,255,.14); color: #fff; }
.pill { height: 40px; padding: 0 15px; border-radius: 99px; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #cfd7e6; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: all .25s; }
.pill i { font-size: 17px; }
.pill:hover { background: rgba(255,255,255,.1); color: #fff; }
.pill.on { background: var(--accent); color: #1b1400; border-color: transparent; }
.pill.notes { background: rgba(255,255,255,.92); color: #0b1222; border-color: transparent; }
.pill.notes:hover { background: #fff; }

/* ================= DISPOSITIVOS (posiciones del escenario) ================= */
.device { position: absolute; transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease), left .9s var(--ease), top .9s var(--ease), width .9s var(--ease), height .9s var(--ease); isolation: isolate; }
.device.dim { opacity: .34; filter: saturate(.45) brightness(.75); transform: scale(.975); }
.device.ping { opacity: 1 !important; filter: none !important; transform: none !important; transition-duration: .25s; }
.device.gone { opacity: 0; transform: scale(.92); pointer-events: none; }
.device::after { content: ''; position: absolute; inset: -40px; z-index: -1; border-radius: 80px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 30%, transparent), transparent); opacity: 0; transition: opacity .8s; pointer-events: none; }
.device.focus::after { opacity: 1; }

.persona { left: 70px; top: 92px; width: 330px; }
.phone   { left: 70px; top: 146px; width: 330px; height: 604px; }
.kiosk   { left: 455px; top: 92px; width: 470px; height: 658px; }
.bus     { left: 975px; top: 92px; width: 555px; height: 286px; }
.admin   { left: 975px; top: 394px; width: 555px; height: 356px; }
#canvas[data-m="7"] .admin, #canvas[data-m="8"] .admin { left: 455px; top: 92px; width: 1075px; height: 658px; }

/* Entrada escalonada al empezar */
#canvas.enter .device, #canvas.enter .persona { animation: rise .9s var(--ease) both; }
#canvas.enter .kiosk { animation-delay: .08s; } #canvas.enter .bus { animation-delay: .16s; } #canvas.enter .admin { animation-delay: .24s; }
#canvas.enter .narrator { animation: rise .9s .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30px) scale(.97); } }

/* ================= PERSONA ================= */
.persona { position: absolute; height: 44px; display: flex; align-items: center; gap: 10px; transition: opacity .6s; }
.avatar, .ph-avatar, .kc-avatar { display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff8a5b, #e84393); }
.persona .avatar { width: 40px; height: 40px; font-size: 15px; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.persona b { display: block; font-size: 16px; }
.persona span { display: block; font-size: 13px; color: var(--muted); }
.persona .persona-tag { white-space: nowrap; margin-left: auto; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }

/* ================= TELÉFONO ================= */
.phone-frame { position: absolute; inset: 0; border-radius: 54px; padding: 11px; background: linear-gradient(145deg, #3a3f4a, #12151b 40%, #2a2e36); box-shadow: 0 0 0 1.5px #4a505c inset, 0 40px 80px rgba(0,0,0,.55), 0 10px 25px rgba(0,0,0,.4); }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #07090d; }
.island { position: absolute; top: 11px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 20px; background: #000; z-index: 20; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 48px; padding: 16px 26px 0 30px; display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; z-index: 19; }
.statusbar .sys { display: flex; gap: 5px; font-size: 15px; }
.phone.buzz { animation: buzz .55s linear 2; }
@keyframes buzz { 0%,100% { transform: translateX(0) rotate(0); } 10% { transform: translateX(-5px) rotate(-1.4deg); } 20% { transform: translateX(5px) rotate(1.4deg); } 30% { transform: translateX(-5px) rotate(-1.2deg); } 40% { transform: translateX(5px) rotate(1.2deg); } 50% { transform: translateX(-3px); } 60% { transform: translateX(3px); } 70% { transform: none; } }

.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .55s; transform: scale(.98); }
.screen.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }

/* Inicio */
.s-home { background: radial-gradient(400px 260px at 80% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), #07090d; }
.ph-scroll { position: absolute; inset: 48px 0 0; padding: 4px 18px 90px; overflow: hidden; }
.ph-head { display: flex; align-items: center; gap: 10px; height: 52px; }
.ph-avatar { width: 38px; height: 38px; font-size: 14px; }
.ph-hello span { display: block; font-size: 12px; color: var(--muted); }
.ph-hello strong { font-size: 16px; }
.ph-bell { margin-left: auto; position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; background: rgba(255,255,255,.07); }
.ph-bell .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #07090d; transform: scale(0); transition: transform .3s var(--spring); }
.ph-bell .dot.on { transform: scale(1); }
.ph-balance { position: relative; margin-top: 8px; padding: 16px 18px 14px; border-radius: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(160px 120px at 100% 0%, color-mix(in srgb, var(--brand2) 60%, transparent), transparent 70%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #0a0f1f)); box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 35%, transparent); }
.ph-balance::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(255,255,255,.04) 22px 23px); }
.ph-bal-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; opacity: .9; }
.ph-bal-top img { width: 30px; height: 30px; object-fit: contain; }
.ph-bal-amount { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.ph-bal-amount small { font-size: 26px; opacity: .65; font-weight: 700; }
.ph-bal-amount.bump { animation: bump .6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.06); } }
.ph-bal-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .9; position: relative; z-index: 1; }
.ph-card-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: rgba(255,255,255,.18); font-weight: 600; }
.ph-delta { position: absolute; right: 16px; top: 46px; font-size: 18px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.95); color: #0b1222; opacity: 0; transform: translateY(10px); z-index: 2; }
.ph-delta.show { animation: delta 1.9s var(--ease) forwards; }
.ph-delta.neg { color: var(--bad); }
@keyframes delta { 15% { opacity: 1; transform: none; } 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
.ph-section { margin-top: 16px; }
.ph-section h4 { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.ph-recharge { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc { height: 46px; border-radius: 15px; background: #161a22; border: 1px solid rgba(255,255,255,.07); font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 3px; transition: transform .15s, background .2s; }
.rc i { font-size: 14px; color: var(--brand2); }
.rc:hover { background: #1d222c; }
.rc:active, .rc.pressed { transform: scale(.94); background: color-mix(in srgb, var(--brand2) 30%, #161a22); }
.ph-empty { padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.14); font-size: 13px; line-height: 1.4; color: var(--muted); }
.ph-ticket { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 16px; background: #161a22; border: 1px solid rgba(255,255,255,.07); text-align: left; animation: rise .6s var(--ease); }
.ph-ticket + .ph-ticket { margin-top: 6px; }
.ph-ticket .ti { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 30%, transparent); color: #fff; font-size: 18px; }
.ph-ticket b { display: block; font-size: 14px; } .ph-ticket span { font-size: 12px; color: var(--muted); }
.ph-ticket .tp { margin-left: auto; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--brand2) 22%, transparent); color: var(--brand2); }
.ph-ticket .tp.used { background: rgba(255,255,255,.08); color: var(--muted); }
.ph-led { display: flex; justify-content: space-between; align-items: center; padding: 8px 2px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.06); }
.ph-led span { color: #cfd6e4; } .ph-led em { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.ph-led b.pos { color: var(--brand2); }
.ph-led.new { animation: rise .6s var(--ease); }
.ph-tabs { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 64px; border-radius: 26px; display: flex; align-items: center; justify-content: space-around; background: rgba(28,32,40,.86); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.07); font-size: 10px; color: var(--muted); }
.ph-tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.ph-tabs span i { font-size: 19px; }
.ph-tabs span.on { color: #fff; }
.ph-tabs .ph-scan { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 55%, transparent); }
.ph-tabs .ph-scan i { font-size: 22px; }
.ph-toast { position: absolute; left: 16px; right: 16px; top: 52px; padding: 12px 14px; border-radius: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.35); backdrop-filter: blur(16px); color: #dcfce7; transform: translateY(-120%); opacity: 0; transition: transform .5s var(--spring), opacity .3s; z-index: 5; }
.ph-toast i { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ok); color: #fff; }
.ph-toast.show { transform: none; opacity: 1; }

/* Bloqueo */
.s-lock { background: #000; }
.lk-wall { position: absolute; inset: 0; background:
  radial-gradient(260px 260px at 20% 25%, color-mix(in srgb, var(--brand) 85%, transparent), transparent 70%),
  radial-gradient(240px 240px at 85% 65%, color-mix(in srgb, var(--brand2) 70%, transparent), transparent 70%),
  radial-gradient(200px 200px at 30% 95%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 70%), #0b0f1a; filter: blur(4px) saturate(1.2); }
.lk-lock { position: absolute; top: 56px; width: 100%; text-align: center; font-size: 16px; opacity: .85; }
.lk-date { position: absolute; top: 82px; width: 100%; text-align: center; font-size: 16px; font-weight: 600; opacity: .9; }
.lk-time { position: absolute; top: 100px; width: 100%; text-align: center; font-size: 84px; font-weight: 700; letter-spacing: -.03em; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.lk-notifs { position: absolute; left: 12px; right: 12px; top: 232px; }
.notif { width: 100%; display: flex; gap: 11px; padding: 13px; border-radius: 22px; text-align: left; background: rgba(245,247,252,.78); color: #0b1222; backdrop-filter: blur(20px) saturate(1.6); box-shadow: 0 12px 30px rgba(0,0,0,.3); transform: translateY(-30px) scale(.9); opacity: 0; pointer-events: none; transition: transform .6s var(--spring), opacity .35s; }
.notif.show { transform: none; opacity: 1; pointer-events: auto; }
.notif.press { transform: scale(.96); }
.notif-app { width: 40px; height: 40px; border-radius: 11px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.notif-app img { width: 32px; height: 32px; object-fit: contain; }
.notif-body { flex: 1; min-width: 0; }
.notif-top { display: flex; justify-content: space-between; font-size: 12px; color: #4b5568; }
.notif-top b { text-transform: uppercase; letter-spacing: .04em; } .notif-top em { font-style: normal; }
.notif-title { display: block; font-size: 15px; margin: 1px 0 2px; }
.notif-text { display: block; font-size: 13px; line-height: 1.35; color: #283043; }
.lk-bottom { position: absolute; bottom: 40px; left: 34px; right: 34px; display: flex; justify-content: space-between; }
.lk-bottom span { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.lk-bar { position: absolute; bottom: 10px; left: 50%; width: 120px; height: 5px; margin-left: -60px; border-radius: 9px; background: rgba(255,255,255,.85); }

/* Boleto / pase de billetera */
.s-ticket { background: #07090d; }
.s-ticket.active .pass { animation: passIn .8s var(--spring); }
@keyframes passIn { from { transform: translateY(60%) scale(.9); opacity: 0; } }
.tk-nav { position: absolute; top: 48px; left: 0; right: 0; height: 40px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.tk-nav button { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--brand2); font-weight: 600; }
.tk-nav span { width: 60px; }
.pass { position: absolute; left: 14px; right: 14px; top: 94px; border-radius: 24px; overflow: hidden; background: #fff; color: #0b1222; box-shadow: 0 24px 50px rgba(0,0,0,.5); }
.pass-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand2) 80%, var(--brand))); }
.pass-head img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.pass-head b { display: block; font-size: 15px; white-space: nowrap; } .pass-head span { font-size: 12px; opacity: .9; }
.pass-id { white-space: nowrap; margin-left: auto; font-size: 12px !important; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.2); opacity: 1 !important; }
.pass-route { display: flex; align-items: center; padding: 12px 16px 6px; }
.pass-route b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.01em; line-height: 1; }
.pass-route span { font-size: 12px; color: #5b6476; }
.pass-route .r { text-align: right; }
.pass-line { flex: 1; position: relative; display: grid; place-items: center; margin: 0 10px; height: 34px; }
.pass-line::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; border-top: 2px dashed #c9d0dc; }
.pass-line i { position: relative; font-size: 18px; color: var(--brand); background: #fff; padding: 0 4px; width: 26px; height: 26px; }
.pass-line em { position: absolute; bottom: -4px; font-style: normal; font-size: 11px; color: #6b7487; white-space: nowrap; }
.pass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; padding: 8px 16px 12px; }
.pass-grid span { display: block; font-size: 11px; color: #6b7487; }
.pass-grid b { font-size: 13px; white-space: nowrap; }
.pass-cut { position: relative; height: 18px; margin: 0 -1px; }
.pass-cut::before { content: ''; position: absolute; left: 14px; right: 14px; top: 8px; border-top: 2px dashed #dfe3ea; }
.pass-cut::after { content: ''; position: absolute; inset: 0 -10px; background: radial-gradient(circle 10px at 0 50%, #07090d 98%, transparent), radial-gradient(circle 10px at 100% 50%, #07090d 98%, transparent); }
.pass-qr { width: 138px; height: 138px; margin: 2px auto 8px; transition: opacity .4s, filter .4s; }
.pass-qr svg { width: 100%; height: 100%; display: block; }
.pass-status { margin: 0 14px 14px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 700; color: #15803d; background: #dcfce7; transition: all .4s; }
.pass-status i { font-size: 16px; }
.pass.used .pass-status { color: #fff; background: #0b1222; }
.pass.used .pass-qr { opacity: .25; filter: grayscale(1); }
.pass.flash { animation: flash 1s; }
@keyframes flash { 30% { box-shadow: 0 0 0 6px var(--ok), 0 24px 50px rgba(0,0,0,.5); } }

/* ================= TERMINAL ================= */
.k-body { position: absolute; left: 0; right: 0; top: 0; height: 632px; border-radius: 36px; padding: 0 16px 16px; background: linear-gradient(160deg, #2b313d, #141821 45%, #1e232d); box-shadow: 0 0 0 1.5px #3c4350 inset, 0 40px 90px rgba(0,0,0,.6); }
.k-body::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-radius: 0 0 36px 36px; background: linear-gradient(90deg, var(--brand), var(--brand2), var(--accent)); opacity: .9; }
.k-top { height: 44px; display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; }
.k-cam { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5b6b8a, #0a0d14 60%); box-shadow: 0 0 0 3px #0b0e14; transition: box-shadow .3s; }
.k-cam.on { box-shadow: 0 0 0 3px #0b0e14, 0 0 14px 4px color-mix(in srgb, var(--brand2) 80%, transparent); background: radial-gradient(circle at 35% 35%, #bbf7d0, var(--brand2) 60%); }
.k-top-label { position: absolute; right: 8px; font-size: 12px; color: #8a94a8; font-weight: 600; }
.k-screen { position: relative; height: 438px; border-radius: 20px; overflow: hidden; background: #f5f7fb; color: #0b1222; box-shadow: 0 0 0 6px #07090e; }
.kscreen { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateX(30px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.kscreen.active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.kscreen h3 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.kq-hero { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #0a1430)); }
.kq-hero img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.kq-hero b { display: block; font-size: 19px; } .kq-hero span { font-size: 13px; opacity: .9; }
.kq-dep { margin-left: auto; text-align: right; } .kq-dep b { font-size: 24px; }
.kscreen[data-k="qty"] h3 { margin: 18px 0 12px; text-align: center; }
.kq-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kq-tile { height: 96px; border-radius: 20px; background: #fff; border: 2px solid #e3e8f1; font-size: 40px; font-weight: 800; color: #0b1222; box-shadow: 0 4px 12px rgba(15,23,42,.06); transition: transform .15s, border-color .2s, background .2s; }
.kq-tile:hover { border-color: var(--brand); }
.kq-tile:active, .kq-tile.pressed { transform: scale(.93); background: var(--brand); color: #fff; border-color: var(--brand); }
.kq-tile:disabled { opacity: .35; }
.kq-info { display: flex; justify-content: space-between; margin-top: 14px; padding: 0 4px; font-size: 15px; color: #4b5568; }
.kq-info b { color: #0b1222; }
.k-steps { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; color: #8a93a6; }
.k-steps span { display: flex; align-items: center; gap: 6px; }
.k-steps em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #e6eaf2; }
.k-steps span.on { color: #0b1222; } .k-steps span.on em { background: var(--brand); color: #fff; }
.k-steps span.done em { background: var(--brand2); color: #fff; }
.k-steps i { width: 40px; height: 2px; background: #dfe4ec; } .k-steps i.on { background: var(--brand2); }

.ki-head { display: flex; align-items: center; gap: 12px; }
.ki-back { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #e9edf4; font-size: 20px; }
.ki-head span { font-size: 15px; color: #5b6476; }
.ki-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 10px; padding: 5px; border-radius: 16px; background: #e9edf4; }
.ki-methods button { height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 13px; font-weight: 700; color: #5b6476; transition: all .3s var(--ease); }
.ki-methods button i { font-size: 20px; }
.ki-methods button.on { background: #fff; color: var(--brand); box-shadow: 0 4px 12px rgba(15,23,42,.1); }
.ki-stage { position: relative; flex: 1; border-radius: 20px; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand) 10%, #fff), #eef2f8); overflow: hidden; }
.ki-art { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: opacity .4s, transform .5s var(--spring); pointer-events: none; }
.ki-stage[data-method="tarjeta"] .art-tarjeta, .ki-stage[data-method="qr"] .art-qr, .ki-stage[data-method="huella"] .art-huella, .ki-stage[data-method="rostro"] .art-rostro { opacity: 1; transform: none; pointer-events: auto; }
.ring { position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 50%, transparent); animation: ringOut 2.4s ease-out infinite; }
.ring.r2 { animation-delay: .8s; } .ring.r3 { animation-delay: 1.6s; }
@keyframes ringOut { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.ki-cardghost { width: 120px; height: 76px; border-radius: 12px; display: grid; place-items: center; font-size: 34px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 40%, transparent); animation: floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-3deg); } }
.ki-mini-phone { width: 92px; height: 150px; border-radius: 18px; background: #0b0f17; padding: 18px 10px; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(0,0,0,.25); animation: floaty 2.4s ease-in-out infinite; }
.ki-mini-qr { width: 72px; height: 72px; background: #fff; border-radius: 6px; padding: 4px; display: block; }
.ki-mini-qr svg, #fly-qr svg { width: 100%; height: 100%; display: block; }
.ki-scanline { position: absolute; left: 30%; right: 30%; height: 3px; top: 30%; background: var(--brand2); box-shadow: 0 0 12px var(--brand2); animation: scanY 1.6s ease-in-out infinite alternate; }
@keyframes scanY { to { top: 70%; } }
.ki-print { position: relative; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 76px; color: var(--brand); background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.12); overflow: hidden; }
.ki-sweep { position: absolute; left: 0; right: 0; height: 30%; background: linear-gradient(transparent, color-mix(in srgb, var(--brand2) 45%, transparent)); animation: scanY2 1.4s ease-in-out infinite alternate; top: 0; }
@keyframes scanY2 { to { top: 70%; } }
.art-rostro { border: 0; background: none; cursor: pointer; }
.ki-face { position: relative; width: 104px; height: 128px; border-radius: 50% 50% 46% 46%; background: linear-gradient(180deg, #f4c6a5, #e7a989); box-shadow: inset 0 -10px 20px rgba(0,0,0,.08); }
.ki-face::before { content: ''; position: absolute; left: -6px; right: -6px; top: -10px; height: 60px; border-radius: 60px 60px 20px 20px; background: #3b2418; }
.ki-face .eye { position: absolute; top: 60px; width: 10px; height: 10px; border-radius: 50%; background: #2b1a10; } .ki-face .eye.l { left: 30px; } .ki-face .eye.r { right: 30px; }
.ki-face .mouth { position: absolute; left: 38px; right: 38px; top: 92px; height: 12px; border-bottom: 3px solid #a24e3a; border-radius: 0 0 20px 20px; }
.ki-corners { position: absolute; width: 170px; height: 170px; left: 50%; top: 50%; margin: -85px; background:
  linear-gradient(var(--brand), var(--brand)) 0 0/30px 4px no-repeat, linear-gradient(var(--brand), var(--brand)) 0 0/4px 30px no-repeat,
  linear-gradient(var(--brand), var(--brand)) 100% 0/30px 4px no-repeat, linear-gradient(var(--brand), var(--brand)) 100% 0/4px 30px no-repeat,
  linear-gradient(var(--brand), var(--brand)) 0 100%/30px 4px no-repeat, linear-gradient(var(--brand), var(--brand)) 0 100%/4px 30px no-repeat,
  linear-gradient(var(--brand), var(--brand)) 100% 100%/30px 4px no-repeat, linear-gradient(var(--brand), var(--brand)) 100% 100%/4px 30px no-repeat; animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.ki-scan { position: absolute; left: calc(50% - 85px); width: 170px; height: 3px; top: calc(50% - 85px); background: var(--brand2); box-shadow: 0 0 14px var(--brand2); animation: scanFace 1.8s ease-in-out infinite alternate; }
@keyframes scanFace { to { top: calc(50% + 85px); } }
.ki-ok { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 92%, #fff); color: #fff; font-size: 90px; opacity: 0; transform: scale(1.1); transition: opacity .3s, transform .5s var(--spring); pointer-events: none; }
.ki-ok i { width: 110px; height: 110px; padding: 18px; border-radius: 50%; background: rgba(255,255,255,.22); }
.ki-ok-burst { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 4px solid #fff; opacity: 0; }
.ki-stage.ok .ki-ok { opacity: 1; transform: none; }
.ki-stage.ok .ki-ok-burst { animation: burst .9s ease-out; }
@keyframes burst { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.ki-cue { margin-top: 12px; text-align: center; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ki-cue i { color: var(--brand); animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.kscreen[data-k="confirm"] { align-items: stretch; }
.kc-hello { text-align: center; }
.kc-avatar { position: relative; width: 74px; height: 74px; margin: 2px auto 8px; font-size: 24px; }
.kc-avatar .halo { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--brand2); opacity: 0; }
.kscreen[data-k="confirm"].active .halo { animation: halo 1.8s ease-out .1s 2; }
.kscreen[data-k="confirm"].active .halo.h2 { animation-delay: .5s; }
@keyframes halo { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.kscreen[data-k="confirm"].active .kc-hello h3 { animation: rise .6s var(--ease); }
.kc-hello h3 { font-size: 34px; }
.kc-hello span { font-size: 15px; color: #15803d; font-weight: 600; }
.kc-sum { margin: 14px 0 12px; padding: 4px 16px; border-radius: 18px; background: #fff; border: 1px solid #e3e8f1; }
.kc-row { display: flex; justify-content: space-between; align-items: center; height: 44px; font-size: 16px; color: #4b5568; border-bottom: 1px solid #eef1f6; }
.kc-row:last-child { border: 0; }
.kc-row b { color: #0b1222; display: flex; align-items: center; gap: 6px; }
.kc-row b i { font-size: 15px; color: #8a93a6; }
.kc-row.total span { font-weight: 700; color: #0b1222; } .kc-row.total b { font-size: 24px; }
.kc-pay { height: 64px; border-radius: 18px; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand2) 70%, var(--brand))); box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .15s, filter .2s; }
.kc-pay:active, .kc-pay.pressed { transform: scale(.96); filter: brightness(1.1); }
.kc-pay:disabled { background: #cbd2de; box-shadow: none; color: #5b6476; font-size: 18px; }
.kc-cancel { margin-top: 6px; height: 30px; font-size: 14px; font-weight: 600; color: #6b7487; }
.kscreen[data-k="paying"], .kscreen[data-k="done"] { align-items: center; justify-content: center; text-align: center; gap: 12px; }
.kscreen[data-k="paying"] b { font-size: 20px; }
.k-spinner { width: 70px; height: 70px; border-radius: 50%; border: 6px solid #e3e8f1; border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.k-check { width: 120px; height: 120px; }
.k-check circle { fill: color-mix(in srgb, var(--ok) 14%, #fff); stroke: var(--ok); stroke-width: 5; stroke-dasharray: 330; stroke-dashoffset: 330; }
.k-check path { fill: none; stroke: var(--ok); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 90; stroke-dashoffset: 90; }
.kscreen[data-k="done"].active .k-check circle { animation: draw .6s var(--ease) forwards; }
.kscreen[data-k="done"].active .k-check path { animation: draw .45s .45s var(--ease) forwards; }
.kscreen[data-k="done"].active .k-check { animation: bump .6s .7s var(--spring); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.kscreen[data-k="done"] h3 { font-size: 34px; }
.kscreen[data-k="done"] p { font-size: 18px; color: #4b5568; margin-top: -6px; }
.kd-bal { margin-top: 6px; padding: 10px 18px; border-radius: 99px; background: #fff; border: 1px solid #e3e8f1; font-size: 16px; color: #4b5568; }
.kd-bal b { color: #0b1222; font-size: 18px; margin-left: 4px; }
.kd-bar { position: absolute; left: 60px; right: 60px; bottom: 24px; height: 4px; border-radius: 4px; background: #e3e8f1; overflow: hidden; }
.kd-bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.kscreen[data-k="done"].active .kd-bar i { animation: fill 7s linear forwards; }
@keyframes fill { to { width: 100%; } }
.k-screen.shake { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.k-reader { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; margin-top: 16px; height: 112px; }
.k-mod { position: relative; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(180deg, #0d1017, #191d26); box-shadow: inset 0 0 0 1.5px #2c323e, inset 0 6px 14px rgba(0,0,0,.5); color: #7f8aa0; font-size: 34px; overflow: hidden; transition: color .3s, box-shadow .3s; }
.k-mod b { font-size: 13px; letter-spacing: .04em; }
.k-mod:hover { color: #c9d2e3; }
.k-mod.active { color: #fff; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 70%, transparent), inset 0 6px 14px rgba(0,0,0,.5), 0 0 26px color-mix(in srgb, var(--brand) 35%, transparent); }
.k-mod.read { color: #fff; box-shadow: inset 0 0 0 2px var(--ok), 0 0 36px color-mix(in srgb, var(--ok) 60%, transparent); }
.k-rings { position: absolute; inset: 0; }
.k-mod.active .k-rings::before, .k-mod.active .k-rings::after, .v-reader .k-rings::before { content: ''; position: absolute; left: 50%; top: 42%; width: 50px; height: 50px; margin: -25px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 70%, transparent); animation: ringOut 2s ease-out infinite; }
.k-mod.active .k-rings::after { animation-delay: 1s; }
.k-window { position: absolute; inset: 18px 22px 30px; border-radius: 10px; background: rgba(47,107,255,.06); border: 1px solid rgba(255,255,255,.08); }
.k-pad { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #222834, #0c0f15); box-shadow: inset 0 0 0 1.5px #343b48; font-size: 32px; }
.k-mod.scanning .k-pad { box-shadow: inset 0 0 0 2px var(--brand2), 0 0 20px var(--brand2); color: var(--brand2); }
.k-foot { position: absolute; left: 50%; bottom: 0; width: 180px; height: 26px; margin-left: -90px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #0c0f15, #1b2029); }

/* ================= BUS / VALIDADOR ================= */
.bus { border-radius: 28px; padding: 18px 22px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.bus-head { display: flex; align-items: center; gap: 12px; }
.bus-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); font-size: 21px; }
.bus-head b { display: block; font-size: 17px; } .bus-head span { font-size: 13px; color: var(--muted); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--brand2); text-transform: uppercase; letter-spacing: .06em; }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: live 1.6s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px transparent; } }
.bus-body { display: flex; gap: 24px; margin-top: 14px; align-items: center; }
.validator { width: 190px; height: 174px; flex: none; border-radius: 22px; padding: 10px; background: linear-gradient(170deg, #ffcf3f, #f2a900); box-shadow: 0 16px 34px rgba(0,0,0,.45), inset 0 -4px 0 rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 8px; }
.v-screen { position: relative; height: 100px; border-radius: 14px; background: #06080c; overflow: hidden; box-shadow: inset 0 0 0 2px #000; }
.vs { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; opacity: 0; transition: opacity .3s; }
.vs b { font-size: 16px; } .vs span { font-size: 12px; color: #9aa6bd; }
.vs-idle i { font-size: 30px; color: var(--brand); animation: bob 1.4s ease-in-out infinite; }
.v-screen[data-v="idle"] .vs-idle, .v-screen[data-v="ok"] .vs-ok, .v-screen[data-v="no"] .vs-no { opacity: 1; }
.vs-ok { background: var(--ok); } .vs-ok span { color: #eafff1; }
.vs-no { background: var(--bad); } .vs-no span { color: #ffe4e9; }
.vs-check, .vs-x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.25); font-size: 22px; }
.v-screen[data-v="ok"] .vs-check { animation: bump .6s var(--spring); }
.v-reader { position: relative; flex: 1; border-radius: 12px; background: #13161d; color: #aab4c8; font-size: 26px; display: grid; place-items: center; overflow: hidden; }
.v-reader .k-rings::before { top: 50%; width: 36px; height: 36px; margin: -18px; }
.v-reader.read { color: #fff; box-shadow: 0 0 0 2px var(--ok), 0 0 24px var(--ok); }
.bus-stats { flex: 1; }
.bs-big > span { font-size: 14px; color: var(--muted); }
.bs-big b { display: block; font-size: 40px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bs-big b small { font-size: 22px; color: var(--muted); }
.bs-big b span.bump { display: inline-block; animation: bump .6s var(--spring); color: var(--brand2); }
.bs-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; margin: 6px 0 12px; }
.bs-bar i { display: block; height: 100%; width: 42%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand2)); transition: width 1s var(--ease); }
.bs-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.07); color: #d4dbea; }
.badge i { font-size: 15px; }
.badge.green { background: color-mix(in srgb, var(--ok) 18%, transparent); color: #86efac; }

/* ================= PANEL CTM (claro) ================= */
.admin { container: adm / inline-size; border-radius: 26px; background: #f3f5fa; color: #101828; box-shadow: 0 40px 90px rgba(0,0,0,.5); overflow: hidden; }
.ad-shell { position: absolute; inset: 0; display: flex; transition: opacity .3s; }
.admin.morph .ad-shell { opacity: 0; }
.ad-side { display: none; }
.ad-main { flex: 1; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ad-head { display: flex; align-items: center; gap: 12px; }
.ad-head h3 { font-size: 18px; font-weight: 800; }
.ad-head p { font-size: 12px; color: #667085; }
.ad-head .live { color: #16a34a; }
.ad-export { height: 36px; padding: 0 13px; border-radius: 11px; display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; background: #101828; color: #fff; transition: transform .15s, background .3s; }
.ad-export:active, .ad-export.pressed { transform: scale(.95); }
.ad-export.ok { background: #16a34a; }
.ad-export.working i { animation: spin .8s linear infinite; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { position: relative; padding: 11px 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05); overflow: hidden; }
.kpi > span { display: block; font-size: 12px; color: #667085; font-weight: 600; }
.kpi b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.kpi b.bump { animation: bumpL .7s var(--spring); }
@keyframes bumpL { 40% { transform: scale(1.08); color: #16a34a; } }
.kpi em { font-style: normal; font-size: 11px; color: #667085; font-weight: 600; }
.kpi em.up { color: #16a34a; }
.spark { display: none; }
.occ { height: 7px; border-radius: 7px; background: #eef1f6; margin-top: 6px; overflow: hidden; }
.occ i { display: block; height: 100%; width: 43%; background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: inherit; transition: width 1s var(--ease); }
.ad-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.ad-card { background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05); min-height: 0; overflow: hidden; }
.ad-card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ad-card-h b { font-size: 14px; } .ad-card-h span { font-size: 12px; color: #667085; }
.ad-card-h .live { color: #16a34a; margin-left: 0; }
.ad-card.map, .ad-card.feed, .tarifas { display: none; }
.sal-head, .sal-row { display: grid; grid-template-columns: 52px minmax(0,1fr) 112px 96px; align-items: center; gap: 8px; }
.sal-head { font-size: 11px; font-weight: 700; color: #98a2b3; text-transform: uppercase; letter-spacing: .05em; padding: 0 4px 6px; border-bottom: 1px solid #eef1f6; }
.sal-row { height: 38px; padding: 0 4px; font-size: 13px; border-bottom: 1px solid #f2f4f7; border-radius: 8px; transition: background .6s; }
.sal-row b { font-variant-numeric: tabular-nums; }
.sal-row .rt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sal-row .rt em { font-style: normal; color: #98a2b3; margin-left: 6px; font-size: 12px; }
@container adm (min-width: 820px) { .sal-row .rt { display: flex; flex-direction: column; line-height: 1.25; } .sal-row .rt em { margin: 0; } }
.sal-row .bar { display: flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sal-row .bar i { flex: 1; height: 6px; border-radius: 6px; background: #eef1f6; overflow: hidden; position: relative; }
.sal-row .bar i::after { content: ''; position: absolute; inset: 0; width: var(--p); background: var(--brand); border-radius: inherit; transition: width .8s var(--ease); }
.sal-row.flash { background: color-mix(in srgb, var(--brand2) 18%, transparent); }
.st { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 99px; text-align: center; white-space: nowrap; }
.st.open { background: #eef4ff; color: #3538cd; } .st.board { background: #fef6e7; color: #b54708; } .st.route { background: #ecfdf3; color: #067647; }
.sal-row:nth-child(n+5) { display: none; }

@container adm (min-width: 820px) {
  .ad-side { display: flex; flex-direction: column; width: 214px; padding: 20px 14px; background: #fff; border-right: 1px solid #eaecf0; }
  .ad-logo { display: flex; align-items: center; gap: 10px; padding: 0 6px 18px; }
  .ad-logo img { width: 40px; height: 40px; object-fit: contain; }
  .ad-logo b { display: block; font-size: 16px; } .ad-logo span { font-size: 12px; color: #667085; }
  .ad-side nav { display: flex; flex-direction: column; gap: 3px; }
  .ad-side nav span { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; font-size: 14px; font-weight: 600; color: #475467; }
  .ad-side nav span i { font-size: 18px; }
  .ad-side nav span.on { background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); }
  .ad-side-foot { margin-top: auto; padding: 12px; border-radius: 14px; background: #f2f4f7; font-size: 12px; }
  .ad-side-foot .live { margin: 0 0 2px; color: #16a34a; display: flex; } .ad-side-foot em { font-style: normal; color: #667085; }
  .ad-main { padding: 20px 24px; gap: 14px; }
  .ad-head h3 { font-size: 24px; } .ad-head p { font-size: 14px; }
  .ad-export { height: 42px; padding: 0 16px; font-size: 14px; }
  .kpis { gap: 14px; }
  .kpi { padding: 14px 16px; border-radius: 18px; }
  .kpi > span { font-size: 13px; } .kpi b { font-size: 32px; } .kpi em { font-size: 12px; }
  .spark { display: block; position: absolute; right: 12px; top: 14px; width: 70px; height: 26px; }
  .spark path { fill: none; stroke: var(--brand2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .ad-grid { grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; }
  .ad-card { padding: 14px 16px; }
  .ad-card-h b { font-size: 15px; }
  .ad-card.salidas { grid-row: span 2; display: flex; flex-direction: column; }
  .ad-card.map, .ad-card.feed { display: block; }
  .sal-row:nth-child(n+5) { display: grid; }
  .sal-row { height: 50px; font-size: 14px; }
  .tarifas { display: flex; gap: 10px; margin-top: auto; padding-top: 10px; }
  .tarifas span { flex: 1; padding: 10px 12px; border-radius: 12px; background: #f6f7fb; font-size: 13px; color: #475467; }
  .tarifas b { color: #101828; margin-right: 4px; }
}
#map { width: 100%; height: calc(100% - 26px); border-radius: 12px; display: block; }
.sea-t { font-size: 11px; fill: #7a9cc6; font-style: italic; }
.rt-alt { fill: none; stroke: #d0d5dd; stroke-width: 3; stroke-dasharray: 2 6; stroke-linecap: round; }
.rt-main-bg { fill: none; stroke: color-mix(in srgb, var(--brand) 20%, #fff); stroke-width: 9; stroke-linecap: round; }
.rt-main { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 6 8; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.city circle { fill: #fff; stroke: #101828; stroke-width: 3; } .city text { font-size: 13px; font-weight: 700; fill: #101828; }
.city.small circle { stroke: #98a2b3; } .city.small text { fill: #98a2b3; font-weight: 600; font-size: 11px; }
#map-bus .dot { fill: var(--brand); stroke: #fff; stroke-width: 3; }
#map-bus .pulse { fill: color-mix(in srgb, var(--brand) 30%, transparent); animation: mpulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes mpulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
#map-bus .busg { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
#feed { display: flex; flex-direction: column; gap: 4px; }
.fd { display: flex; align-items: center; gap: 10px; padding: 7px 4px; font-size: 13px; border-bottom: 1px solid #f2f4f7; }
.fd.new { animation: feedIn .7s var(--ease); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-12px); background: #ecfdf3; } }
.fd i { width: 28px; height: 28px; padding: 6px; border-radius: 9px; background: #eef4ff; color: #3538cd; }
.fd.board i { background: #ecfdf3; color: #067647; } .fd.rech i { background: #fef6e7; color: #b54708; }
.fd span { flex: 1; color: #344054; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd em { font-style: normal; color: #98a2b3; font-size: 12px; font-variant-numeric: tabular-nums; }

/* ================= ELEMENTOS ANIMADOS ================= */
#flyer { position: absolute; left: 0; top: 0; z-index: 40; pointer-events: none; opacity: 0; transition: transform 1s var(--ease), opacity .4s; will-change: transform; }
#flyer.show { opacity: 1; }
.fly-card { width: 168px; height: 106px; margin: -53px 0 0 -84px; border-radius: 14px; padding: 12px 14px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120px 90px at 100% 0%, color-mix(in srgb, var(--brand2) 70%, transparent), transparent 70%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #0a0f1f)); box-shadow: 0 24px 50px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.2); }
.fly-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 45%, transparent 60%); animation: sheen 2.4s infinite; }
@keyframes sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.fc-top { display: flex; align-items: center; gap: 6px; }
.fc-top img { width: 24px; height: 24px; object-fit: contain; background: #fff; border-radius: 50%; padding: 1px; }
.fc-top b { font-size: 14px; } .fc-top i { margin-left: auto; font-size: 18px; }
.fc-chip { display: block; width: 30px; height: 22px; margin: 10px 0 8px; border-radius: 5px; background: linear-gradient(135deg, #f5d77a, #c79a2b); }
.fc-bot { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.fc-bot em { font-style: normal; opacity: .85; }
.fly-phone { display: none; width: 90px; height: 170px; margin: -85px 0 0 -45px; border-radius: 18px; padding: 30px 9px; background: #0b0f17; box-shadow: 0 24px 50px rgba(0,0,0,.5), inset 0 0 0 2px #2a2f3a; }
.fly-phone span { display: block; background: #fff; border-radius: 6px; padding: 4px; width: 72px; height: 72px; }
#flyer.qr .fly-card { display: none; } #flyer.qr .fly-phone { display: block; }
#finger { position: absolute; left: 0; top: 0; z-index: 45; pointer-events: none; opacity: 0; transition: transform .75s var(--ease), opacity .3s; }
#finger span { display: block; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255,255,255,.32); border: 2.5px solid rgba(255,255,255,.95); box-shadow: 0 8px 24px rgba(0,0,0,.4); transition: transform .15s; }
#finger.show { opacity: 1; }
#finger.press span { transform: scale(.72); background: rgba(255,255,255,.6); }
#finger.press::after { content: ''; position: absolute; width: 50px; height: 50px; margin: -25px; border-radius: 50%; border: 3px solid #fff; animation: burst .6s ease-out; }
#hint { position: absolute; left: 0; top: 0; z-index: 44; pointer-events: none; opacity: 0; transition: opacity .3s; }
#hint.show { opacity: 1; }
.h-ring { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px; border-radius: 50%; border: 3px solid var(--accent); box-shadow: 0 0 20px var(--accent); animation: hint 1.4s ease-out infinite; }
@keyframes hint { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.h-label { position: absolute; left: 0; top: 40px; transform: translateX(-50%); white-space: nowrap; padding: 7px 13px; border-radius: 99px; background: var(--accent); color: #1b1400; font-size: 14px; font-weight: 800; box-shadow: 0 8px 20px rgba(0,0,0,.35); }

/* ================= NARRADOR ================= */
.narrator { position: absolute; left: 70px; top: 770px; width: 1460px; height: 106px; border-radius: 26px; padding: 0 28px 0 22px; display: flex; align-items: center; gap: 22px; background: linear-gradient(120deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid var(--line); backdrop-filter: blur(14px); overflow: hidden; z-index: 20; transition: opacity .5s, transform .5s var(--ease); }
.n-num { width: 66px; height: 66px; flex: none; border-radius: 20px; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 10px 26px color-mix(in srgb, var(--brand) 40%, transparent); }
.n-num.ok { background: var(--ok); }
.n-text { flex: 1; min-width: 0; }
.n-kicker { display: block; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.n-text h2 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.n-text p { font-size: 21px; color: #c9d2e3; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-text p.done { color: #86efac; }
.n-text .w { display: inline-block; opacity: 0; transform: translateY(8px); animation: word .5s var(--ease) forwards; white-space: pre; }
@keyframes word { to { opacity: 1; transform: none; } }
.n-next { height: 56px; padding: 0 22px 0 26px; border-radius: 18px; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; background: rgba(255,255,255,.08); border: 1px solid var(--line); transition: all .3s; }
.n-next i { font-size: 22px; }
.n-next:hover { background: rgba(255,255,255,.14); }
.n-next.glow { background: #fff; color: #0b1222; box-shadow: 0 0 0 0 rgba(255,255,255,.6); animation: glow 1.8s infinite; }
@keyframes glow { 70% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.n-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.05); }
.n-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); }

.toast { position: absolute; left: 50%; top: 92px; z-index: 60; transform: translate(-50%, -20px); opacity: 0; padding: 13px 22px; border-radius: 16px; background: #fff; color: #0b1222; font-size: 17px; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.4); transition: all .45s var(--spring); pointer-events: none; display: flex; align-items: center; gap: 10px; }
.toast i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--ok); color: #fff; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= INICIO / FINAL ================= */
.overlay { position: absolute; inset: 0; z-index: 70; display: grid; place-items: center; text-align: center; background: #050913; opacity: 0; visibility: hidden; transition: opacity .8s var(--ease), visibility 0s .8s; overflow: hidden; }
.overlay.show { opacity: 1; visibility: visible; transition-delay: 0s; }
.ov-glow { position: absolute; width: 900px; height: 900px; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.ov-glow.g1 { left: -200px; top: -300px; background: radial-gradient(circle, var(--brand), transparent 65%); }
.ov-glow.g2 { right: -260px; bottom: -380px; background: radial-gradient(circle, var(--brand2), transparent 65%); animation-delay: -7s; }
@keyframes drift { to { transform: translate(120px, 80px) scale(1.1); } }
.ov-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); }
.intro-in, .final-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.overlay.show .intro-in > *, .overlay.show .final-in > * { animation: rise 1s var(--ease) both; }
.overlay.show .intro-in > :nth-child(2), .overlay.show .final-in > :nth-child(2) { animation-delay: .1s; }
.overlay.show .intro-in > :nth-child(3), .overlay.show .final-in > :nth-child(3) { animation-delay: .2s; }
.overlay.show .intro-in > :nth-child(4), .overlay.show .final-in > :nth-child(4) { animation-delay: .3s; }
.overlay.show .intro-in > :nth-child(5), .overlay.show .final-in > :nth-child(5) { animation-delay: .4s; }
.overlay.show .intro-in > :nth-child(6), .overlay.show .final-in > :nth-child(6) { animation-delay: .5s; }
.intro-logo { position: relative; width: 150px; height: 150px; margin-bottom: 26px; }
.intro-logo img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.il-ring { position: absolute; inset: -22px; border-radius: 50%; background: conic-gradient(from 0deg, var(--brand), var(--brand2), var(--accent), var(--brand)); mask: radial-gradient(circle, transparent 68%, #000 69%, #000 71%, transparent 72%); animation: spin 8s linear infinite; }
.eyebrow { display: inline-block; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow.dark { color: var(--brand); }
.overlay h1 { font-size: 92px; font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.overlay h1 em { font-style: normal; background: linear-gradient(100deg, var(--brand) 10%, var(--brand2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-in > p { max-width: 820px; margin-top: 24px; font-size: 24px; line-height: 1.45; color: #b9c3d6; }
.intro-cta, .final-cta { display: flex; gap: 14px; margin-top: 40px; }
.btn { height: 62px; padding: 0 28px; border-radius: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; transition: transform .2s, background .2s, box-shadow .2s; }
.btn i { font-size: 20px; }
.btn.primary { background: #fff; color: #0b1222; box-shadow: 0 16px 40px rgba(255,255,255,.18); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(255,255,255,.28); }
.btn.ghost { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.btn.ghost:hover { background: rgba(255,255,255,.13); }
.btn.big { height: 70px; padding: 0 34px; font-size: 21px; background: linear-gradient(120deg, var(--brand), var(--brand2)); color: #fff; box-shadow: 0 16px 40px color-mix(in srgb, var(--brand) 45%, transparent); }
.intro-route { display: flex; align-items: center; gap: 16px; margin-top: 56px; font-size: 16px; font-weight: 700; color: #c9d2e3; }
.ir-line { position: relative; width: 170px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--brand), var(--brand2)); opacity: .9; }
.ir-line.l2 { background: linear-gradient(90deg, var(--brand2), var(--accent)); }
.ir-city { display: flex; align-items: center; gap: 8px; }
.ir-city::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #fff; }
.ir-bus { position: absolute; top: -17px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); font-size: 19px; box-shadow: 0 6px 18px rgba(0,0,0,.4); animation: busgo 6s var(--ease) infinite; }
@keyframes busgo { 0% { left: -18px; } 45%, 55% { left: 152px; } 100% { left: 372px; } }
.intro-keys { position: absolute; bottom: 34px; display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.intro-keys kbd { margin-right: 4px; }

.final h1 { font-size: 80px; }
.story { display: flex; align-items: center; gap: 8px; margin-top: 34px; }
.story span { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; white-space: nowrap; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 16px; font-weight: 600; }
.story span i { font-size: 18px; color: var(--brand2); }
.story b { width: 12px; height: 2px; background: rgba(255,255,255,.25); }
.values { display: grid; grid-template-columns: repeat(4, 250px); gap: 18px; margin-top: 34px; }
.values div { padding: 24px 22px; border-radius: 24px; text-align: left; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.1); }
.values b { display: block; font-size: 56px; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--brand2) 60%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.values span { display: block; margin-top: 10px; font-size: 18px; line-height: 1.35; color: #c3ccdd; }
#confetti { position: absolute; inset: 0; pointer-events: none; }
#confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 960px) rotate(var(--r)); } }

/* ================= POPOVER / MODAL ================= */
.popover { position: absolute; right: 250px; top: 74px; z-index: 80; width: 340px; padding: 18px; border-radius: 22px; background: #fff; color: #101828; box-shadow: 0 30px 70px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transition: all .3s var(--ease); }
.popover.show { opacity: 1; visibility: visible; transform: none; }
.popover > b { font-size: 18px; } .popover > p { font-size: 14px; color: #667085; margin: 4px 0 12px; line-height: 1.4; }
.brand-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; text-align: left; border: 2px solid transparent; transition: background .2s, border-color .2s; }
.brand-opt:hover { background: #f2f4f7; }
.brand-opt.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, #fff); }
.brand-opt img { width: 42px; height: 42px; object-fit: contain; }
.brand-opt b { display: block; font-size: 15px; } .brand-opt span { font-size: 13px; color: #667085; }
.brand-opt .sw { margin-left: auto; display: flex; gap: 3px; }
.brand-opt .sw i { width: 14px; height: 14px; border-radius: 50%; }
.modal { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(3,6,14,.6); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: all .35s var(--ease); }
.modal.show { opacity: 1; visibility: visible; }
.modal-card { position: relative; width: 1240px; max-height: 840px; overflow: auto; padding: 40px 46px; border-radius: 30px; background: #fff; color: #101828; box-shadow: 0 40px 100px rgba(0,0,0,.5); transform: translateY(20px) scale(.98); transition: transform .4s var(--spring); }
.modal.show .modal-card { transform: none; }
.modal-card h2 { font-size: 40px; letter-spacing: -.02em; margin-bottom: 18px; }
.modal-x { position: absolute; right: 22px; top: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #f2f4f7; }
.notes-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.notes-cols h4 { font-size: 18px; margin: 16px 0 8px; color: var(--brand); }
.notes-cols ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.notes-cols li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.4; color: #344054; }
.notes-cols li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand2); }
.notes-cols kbd { border-color: #d0d5dd; background: #f2f4f7; color: #101828; }

/* Estados de pantalla completa del escenario */
#canvas[data-m="0"] .topbar, #canvas[data-m="0"] .narrator { opacity: 0; transform: translateY(-10px); }
#canvas[data-m="7"] .persona, #canvas[data-m="8"] .persona { opacity: .5; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ================= TICKET IMPRESO ================= */
.k-printer { position: absolute; left: 50%; top: 484px; width: 150px; height: 214px; margin-left: -75px; overflow: hidden; z-index: 3; pointer-events: none; }
.k-slot { position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 4px; background: #000; box-shadow: 0 1px 0 rgba(255,255,255,.12), inset 0 2px 3px rgba(0,0,0,.8); z-index: 2; }
.k-paper { position: absolute; left: 10px; top: 4px; transform: translateY(-102%); transition: transform 2.2s cubic-bezier(.45,0,.55,1); }
.k-paper.out { transform: translateY(0); }
.paper { width: 130px; padding: 8px 9px 12px; background: #fdfdf8; color: #111; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.45);
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 6px) no-repeat, radial-gradient(circle 4px at 50% 100%, transparent 98%, #000) bottom/9px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top/100% calc(100% - 6px) no-repeat, radial-gradient(circle 4px at 50% 100%, transparent 98%, #000) bottom/9px 7px repeat-x; }
.pp-head { display: flex; align-items: center; gap: 5px; padding-bottom: 5px; border-bottom: 1px dashed #bbb; }
.pp-head img { width: 18px; height: 18px; object-fit: contain; }
.pp-head b { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pp-head em { margin-left: auto; font-style: normal; font-size: 9px; color: #666; text-transform: uppercase; }
.pp-route { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 5px; font-size: 17px; font-weight: 800; letter-spacing: .02em; }
.pp-route i { font-size: 12px; }
.pp-meta { font-size: 9px; color: #444; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pp-qr { width: 72px; height: 72px; margin: 5px auto 3px; }
.pp-qr svg { width: 100%; height: 100%; display: block; }
.pp-id { font: 700 10px/1.2 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.pp-foot { margin-top: 3px; font-size: 8px; color: #777; }
.fly-paper { display: none; margin: -95px 0 0 -65px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
.fly-paper .paper { box-shadow: none; }
#flyer.paper .fly-card, #flyer.paper .fly-phone { display: none; } #flyer.paper .fly-paper { display: block; }

.kscreen[data-k="printing"] { align-items: center; justify-content: center; text-align: center; gap: 10px; }
.kscreen[data-k="printing"] b { font-size: 24px; }
.kscreen[data-k="printing"] p { font-size: 17px; color: #4b5568; }
.k-printing { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; font-size: 50px; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, #fff); animation: breathe 1s ease-in-out infinite; }
.k-print-arrow { font-size: 34px; color: var(--brand); animation: bob 1s ease-in-out infinite; }

.persona .paper-chip { display: none; margin-left: auto; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #fff8db; color: #1b1400; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.persona .paper-chip i { font-size: 16px; }
.persona.has-paper .persona-tag { display: none; }
.persona.has-paper .paper-chip { display: inline-flex; }
.paper-chip[data-st="lost"] { background: rgba(244,63,94,.18); color: #fda4af; box-shadow: none; }
.paper-chip[data-st="lost"] span { text-decoration: line-through; }
.paper-chip[data-st="used"] { background: rgba(255,255,255,.08); color: var(--muted); box-shadow: none; }
.paper-chip.bump { animation: chipBump .7s var(--spring); }
@keyframes chipBump { 30% { transform: scale(1.12) rotate(-3deg); } 60% { transform: scale(.96) rotate(2deg); } }

.v-reader { display: flex; align-items: center; justify-content: center; gap: 12px; }
.v-win { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; font-size: 18px; border: 2px dashed rgba(255,255,255,.28); }
.bs-ways { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.bs-ways > span { font-size: 12px; color: var(--muted); margin-right: 2px; white-space: nowrap; }
.bs-ways button { height: 32px; padding: 0 9px; border-radius: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(255,255,255,.07); color: #d4dbea; border: 1px solid transparent; transition: all .25s; }
.bs-ways button i { font-size: 14px; }
.bs-ways button:hover { background: rgba(255,255,255,.13); }
.bs-ways button.on { background: var(--brand); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 45%, transparent); }
.bs-ways button.pressed { transform: scale(.94); }
