/* Presentación guiada de Helio TPV: escenario, marco de pantalla, cursor, subtítulos y escenas propias (impresora, cierre) */
html, body { height: 100%; margin: 0; }
body { overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #17223a 0%, #0b1120 55%, #070b16 100%); color: #e2e8f0; font-family: var(--font); }
.stage { display: grid; grid-template-rows: 56px 1fr 112px; height: 100%; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 0 22px; font-size: .9em; color: #94a3b8; }
.topbar .tb-logo { height: 22px; } .topbar .tb-title { color: #e2e8f0; font-weight: 600; } .topbar .grow { flex: 1; } .topbar kbd { font-size: .8em; }
.device-wrap { display: flex; align-items: center; justify-content: center; min-height: 0; padding: 6px 20px; }
.device { position: relative; width: 1280px; height: 800px; border-radius: 22px; background: #0f172a; box-shadow: 0 0 0 10px #1e293b, 0 0 0 12px #334155, 0 40px 120px rgba(0,0,0,.6); overflow: hidden; transform-origin: center center; }
.screen { position: absolute; inset: 0; overflow: hidden; }
.screen .app { height: 100%; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease; pointer-events: none; }
.scene.on { opacity: 1; pointer-events: auto; }
/* cursor animado */
.cursor { position: absolute; left: 640px; top: 400px; z-index: 900; pointer-events: none; transition: left 520ms cubic-bezier(.3,.7,.3,1), top 520ms cubic-bezier(.3,.7,.3,1), opacity 300ms; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.cursor.on { opacity: 1; }
.cursor .tap { position: absolute; left: -10px; top: -10px; width: 44px; height: 44px; border-radius: 50%; background: rgba(0,186,198,.45); transform: scale(0); opacity: 0; }
.cursor.tapping .tap { animation: tapAnim 420ms ease-out; }
@keyframes tapAnim { 0% { transform: scale(0); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
/* subtítulos y control */
.captionbar { display: grid; grid-template-columns: 44px 44px 44px 1fr; grid-template-rows: 1fr 6px; gap: 10px 12px; align-items: center; padding: 10px 22px 12px; }
.cbtn { grid-row: 1; width: 44px; height: 44px; border-radius: 50%; background: #1e293b; color: #e2e8f0; border: 1px solid #334155; font-size: 1.3em; min-height: 0; padding: 0; }
.cbtn:hover { background: #334155; }
.caption { grid-row: 1; min-width: 0; }
.cap-title { font-weight: 700; font-size: 1.05em; color: #fff; } .cap-text { color: #94a3b8; margin-top: 2px; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 4px; height: 6px; }
.progress span { flex: 1; border-radius: 3px; background: #1e293b; overflow: hidden; position: relative; }
.progress span i { position: absolute; inset: 0; width: 0; background: var(--primary); }
.progress span.done i { width: 100%; } .progress span.cur i { animation: fill linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
/* login en la demo (mismo diseño que la SPA); sin el fundido de la SPA porque la demo repinta el DOM en cada pulsación */
.demo-login { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.demo-login.login-wrap { opacity: 1; transition: none; }
/* teclado PIN y puntos */
.pindots { display: flex; gap: 14px; justify-content: center; margin: 6px 0 12px; } .pindots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #64748b; } .pindots i.on { background: var(--primary); border-color: var(--primary); }
/* impresora y ticket */
.print-scene { display: flex; align-items: flex-start; justify-content: center; gap: 70px; padding: 14px 60px; background: var(--bg); height: 100%; box-sizing: border-box; }
.printer { position: relative; width: 340px; margin-top: 0; }
.printer .body { height: 120px; border-radius: 26px 26px 18px 18px; background: linear-gradient(180deg, #334155, #1e293b); box-shadow: 0 30px 60px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.08); position: relative; }
.printer .slot { position: absolute; left: 30px; right: 30px; top: 22px; height: 12px; border-radius: 6px; background: #0b1120; box-shadow: inset 0 3px 8px rgba(0,0,0,.8); }
.printer .led { position: absolute; right: 34px; bottom: 26px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.printer .brand { position: absolute; left: 34px; bottom: 22px; color: #94a3b8; font-size: .8em; letter-spacing: 2px; }
.paper { position: absolute; left: 36px; right: 36px; top: 28px; background: #fff; color: #111; border-radius: 4px 4px 0 0; padding: 14px 18px 20px; font-family: 'Inter', Arial, sans-serif; font-size: 11px; line-height: 1.28; transform: translateY(-100%); transition: transform 2600ms cubic-bezier(.2,.6,.2,1); box-shadow: 0 20px 40px rgba(0,0,0,.45); z-index: 2; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.paper.out { transform: translateY(92px); }
.paper .c { text-align: center; } .paper .b { font-weight: 700; } .paper .sep { border-top: 1px dashed #999; margin: 8px 0; }
.paper table { width: 100%; border-collapse: collapse; } .paper td { padding: 2px 0; vertical-align: top; } .paper .r { text-align: right; }
.paper .total { display: flex; justify-content: space-between; font-size: 1.35em; font-weight: 800; margin: 6px 0; }
.paper .zig { position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: linear-gradient(135deg, transparent 50%, #fff 50%) 0 0/8px 8px, linear-gradient(45deg, #fff 50%, transparent 50%) 0 0/8px 8px; }
.barcode { height: 32px; margin: 6px auto 2px; width: 78%; background: repeating-linear-gradient(90deg, #111 0 2px, #fff 2px 4px, #111 4px 5px, #fff 5px 8px, #111 8px 11px, #fff 11px 12px); }
.qr { width: 76px; height: 76px; margin: 6px auto; background: conic-gradient(from 90deg at 50% 50%, #111 0 25%, #fff 0 50%, #111 0 75%, #fff 0) 0 0/16px 16px; position: relative; outline: 6px solid #fff; }
.qr::before, .qr::after { content: ''; position: absolute; width: 22px; height: 22px; border: 5px solid #111; background: #fff; } .qr::before { left: 4px; top: 4px; } .qr::after { right: 4px; top: 4px; }
.print-side { color: #e2e8f0; max-width: 460px; margin-top: 30px; }
.print-side h2 { margin: 0 0 6px; font-size: 1.8em; letter-spacing: -.5px; } .print-side p { color: #94a3b8; margin: 0 0 18px; }
.print-side .chips { display: flex; gap: 8px; flex-wrap: wrap; } .print-side .chips span { background: #1e293b; border: 1px solid #334155; border-radius: 999px; padding: 8px 14px; font-weight: 600; }
.print-side .docnum { font-size: 2.4em; font-weight: 800; color: var(--primary); margin: 10px 0 14px; }
/* cierre */
.end-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 22px; background: radial-gradient(60% 50% at 50% 40%, rgba(0,186,198,.12), transparent 70%), var(--bg); }
.end-scene img { height: 64px; } .end-scene h2 { margin: 0; font-size: 2em; color: #fff; letter-spacing: -.5px; } .end-scene .sub { color: #94a3b8; margin-top: -10px; }
.benefits { display: grid; grid-template-columns: repeat(2, 380px); gap: 14px; }
.benefit { background: #1e293b; border: 1px solid #334155; border-radius: 14px; padding: 16px 18px; opacity: 0; transform: translateY(10px); transition: opacity 600ms ease, transform 600ms ease; }
.benefit.in { opacity: 1; transform: none; } .benefit b { display: block; color: #fff; margin-bottom: 4px; } .benefit span { color: #94a3b8; font-size: .92em; }
.cta { margin-top: 6px; color: var(--primary); font-weight: 700; letter-spacing: .5px; }
/* estados */
.lines tbody tr.new td { animation: rowIn 500ms ease; } @keyframes rowIn { from { background: #e0f7f9; transform: translateX(-8px); } to { background: transparent; } }
.tile.hl { outline: 2px solid var(--primary); background: var(--surface-2); }
.highlight { box-shadow: 0 0 0 3px rgba(0,186,198,.55) !important; }
