:root {
  --bg: #0a0a1f;
  --bg2: #11112e;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f3f3fb;
  --muted: #a8a9c8;
  --gold: #ffc83d;
  --gold-2: #ff9f1c;
  --violet: #7c5cff;
  --pink: #ff4d9d;
  --green: #2ee59d;
  --red: #ff5c72;
  --grad: linear-gradient(135deg, #ffd96b 0%, #ffb02e 55%, #ff8a1f 100%);
  --grad-v: linear-gradient(135deg, #7c5cff 0%, #ff4d9d 100%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(124, 92, 255, 0.35), transparent 60%),
    radial-gradient(700px 500px at -10% 20%, rgba(255, 77, 157, 0.18), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(255, 200, 61, 0.12), transparent 60%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.sec-head { margin-bottom: 36px; }

/* Barra superior */
.demo-banner { background: var(--grad-v); color: #fff; text-align: center; font-size: 0.85rem; padding: 7px 12px; font-weight: 600; }
header.top { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: rgba(10, 10, 31, 0.72); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #2a1a00; box-shadow: 0 6px 20px rgba(255, 176, 46, 0.4); }
.nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav ul a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; }
.nav ul a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
@media (max-width: 820px) { .nav ul { display: none; } }

/* Botones */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); text-decoration: none; background: rgba(255, 255, 255, 0.14); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.btn-primary { background: var(--grad); color: #2a1a00; border: 0; box-shadow: 0 10px 30px rgba(255, 176, 46, 0.35); }
.btn-primary:hover { background: var(--grad); box-shadow: 0 14px 40px rgba(255, 176, 46, 0.5); }
.btn-lg { padding: 17px 32px; font-size: 1.08rem; }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; border-radius: 10px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { margin: 18px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 0.9rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--green); flex: none; }

/* Tarjeta de tómbola */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.t-card { overflow: hidden; position: relative; }
.t-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.8; }
.t-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #2a1f6b, #7c3c9e 60%, #c0407a); display: grid; place-items: center; position: relative; overflow: hidden; }
.t-img img { width: 100%; height: 100%; object-fit: cover; }
.t-img .fallback { font-size: 4.5rem; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.badge { position: absolute; top: 14px; left: 14px; background: rgba(10, 10, 31, 0.8); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: 0.78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46, 229, 157, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }
.t-body { padding: 22px; }
.t-body h3 { font-size: 1.35rem; margin-bottom: 4px; }
.prize { color: var(--gold); font-weight: 700; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 10px; gap: 12px; }
.price { font-size: 2rem; font-weight: 800; }
.price small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.progress { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: inherit; transition: width 0.8s; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; margin-top: 7px; }

/* Cuenta regresiva */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.cd-box { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); border-radius: 14px; text-align: center; padding: 12px 4px; }
.cd-box b { display: block; font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.cd-box span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cd-big .cd-box { padding: 18px 4px; }
.cd-big .cd-box b { font-size: clamp(2rem, 6vw, 3.4rem); }
.t-card .btn { width: 100%; }

.selector { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { cursor: pointer; font: inherit; font-weight: 600; font-size: 0.88rem; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; }
.chip[aria-pressed='true'] { background: var(--grad); color: #2a1a00; border-color: transparent; }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 8px; }
.stat { padding: 22px; text-align: center; }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: 0.92rem; }

/* Escenario del sorteo */
.stage { padding: 36px clamp(16px, 4vw, 48px); text-align: center; position: relative; overflow: hidden; }
.stage::after { content: ''; position: absolute; inset: -40% -10% auto; height: 300px; background: radial-gradient(closest-side, rgba(124, 92, 255, 0.35), transparent); pointer-events: none; }
.stage > * { position: relative; z-index: 1; }
.stage-title { margin-bottom: 4px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 14px; }
.status-pill.live { background: rgba(255, 92, 114, 0.18); border-color: rgba(255, 92, 114, 0.5); color: #ff9aa8; }
.status-pill.live .dot { background: var(--red); animation-name: pulse-red; }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(255, 92, 114, 0.8); } 70% { box-shadow: 0 0 0 10px rgba(255, 92, 114, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 92, 114, 0); } }
.reel { position: relative; height: 130px; margin: 28px auto; max-width: 1000px; border-radius: 20px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--border); overflow: hidden; box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6); }
.reel::before, .reel::after { content: ''; position: absolute; top: 0; bottom: 0; width: 22%; z-index: 3; pointer-events: none; }
.reel::before { left: 0; background: linear-gradient(90deg, #0b0b22, transparent); }
.reel::after { right: 0; background: linear-gradient(-90deg, #0b0b22, transparent); }
.reel-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: var(--grad); z-index: 4; box-shadow: 0 0 24px 4px rgba(255, 176, 46, 0.7); }
.reel-marker::before, .reel-marker::after { content: ''; position: absolute; left: 50%; margin-left: -9px; border: 9px solid transparent; }
.reel-marker::before { top: 0; border-top-color: var(--gold); }
.reel-marker::after { bottom: 0; border-bottom-color: var(--gold); }
.reel-cell { position: absolute; top: 12px; bottom: 12px; left: 0; width: 176px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)); border: 1px solid var(--border); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; font-size: 1.12rem; letter-spacing: 0.04em; will-change: transform; }
.reel-cell.win { background: var(--grad); color: #2a1a00; border-color: transparent; box-shadow: 0 0 40px rgba(255, 176, 46, 0.7); }
.winner-box { margin: 8px auto 0; max-width: 620px; padding: 28px; border-radius: 20px; background: linear-gradient(160deg, rgba(255, 200, 61, 0.16), rgba(124, 92, 255, 0.14)); border: 1px solid rgba(255, 200, 61, 0.5); animation: pop 0.6s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
.winner-box .trophy { font-size: 3rem; }
.winner-code { font-family: ui-monospace, Consolas, monospace; font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; letter-spacing: 0.06em; margin: 6px 0; }
.stage-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: s; }
.step { padding: 26px; position: relative; counter-increment: s; transition: transform 0.2s; }
.step:hover { transform: translateY(-4px); }
.step::before { content: counter(s); position: absolute; top: 18px; right: 22px; font-size: 3rem; font-weight: 800; color: rgba(255, 255, 255, 0.07); }
.ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-v); margin-bottom: 16px; font-size: 1.5rem; box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35); }
.step p, .feat p { color: var(--muted); margin: 0; }

/* Transparencia */
.fair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .fair { grid-template-columns: 1fr; } }
.feat-list { display: grid; gap: 14px; }
.feat { display: flex; gap: 14px; padding: 18px; }
.feat .ico { flex: none; margin: 0; width: 44px; height: 44px; font-size: 1.2rem; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 0.8rem; word-break: break-all; color: var(--muted); background: rgba(0, 0, 0, 0.3); padding: 8px 10px; border-radius: 10px; display: block; margin-top: 4px; }
.verify { padding: 26px; }
.verify .row { margin: 12px 0; }
.verify label { font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.v-result { margin-top: 14px; padding: 14px; border-radius: 12px; font-weight: 600; }
.v-ok { background: rgba(46, 229, 157, 0.14); border: 1px solid rgba(46, 229, 157, 0.5); }
.v-bad { background: rgba(255, 92, 114, 0.14); border: 1px solid rgba(255, 92, 114, 0.5); }

/* Formularios */
label.f { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 14px; }
label.f span.hint { font-weight: 400; color: var(--muted); }
input[type='text'], input[type='email'], input[type='tel'], input[type='number'], input[type='password'], input[type='url'], input[type='datetime-local'], textarea, select {
  width: 100%; margin-top: 6px; font: inherit; color: var(--text); background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; color-scheme: dark;
}
input::placeholder, textarea::placeholder { color: #6f7099; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.qty { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.qty button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 1.4rem; cursor: pointer; }
.qty output { min-width: 48px; text-align: center; font-size: 1.6rem; font-weight: 800; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--muted); margin: 8px 0 16px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-top: 1px dashed var(--border); margin-top: 6px; font-weight: 700; }
.total-row b { font-size: 1.7rem; }
.form-error { color: #ff9aa8; background: rgba(255, 92, 114, 0.12); border: 1px solid rgba(255, 92, 114, 0.4); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 0.92rem; }

/* Modal */
dialog { border: 1px solid var(--border); border-radius: 22px; background: #14143a; color: var(--text); padding: 0; width: min(560px, 100% - 24px); max-height: calc(100vh - 24px); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }
dialog::backdrop { background: rgba(5, 5, 20, 0.75); backdrop-filter: blur(5px); }
.modal-in { padding: 28px; overflow-y: auto; max-height: calc(100vh - 28px); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.x { background: var(--surface-2); border: 0; color: var(--text); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; flex: none; }

/* Ticket */
.tickets { display: grid; gap: 14px; margin: 16px 0; }
.ticket { position: relative; display: grid; grid-template-columns: 1fr auto; background: linear-gradient(135deg, #2b1f7a, #6b2f9c 55%, #b53a78); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4); }
.ticket::before, .ticket::after { content: ''; position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #14143a; right: 98px; }
.ticket::before { top: -11px; }
.ticket::after { bottom: -11px; }
.tk-main { padding: 18px 20px; min-width: 0; }
.tk-main small { color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.68rem; font-weight: 700; }
.tk-code { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: clamp(1.25rem, 4.5vw, 1.7rem); letter-spacing: 0.06em; color: #ffe08a; margin: 2px 0 8px; }
.tk-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.tk-stub { width: 120px; border-left: 2px dashed rgba(255, 255, 255, 0.35); display: grid; place-items: center; text-align: center; padding: 10px; font-size: 0.75rem; }
.tk-stub b { display: block; font-size: 1.5rem; }
.s-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; }
.s-paid { background: rgba(46, 229, 157, 0.25); color: #7dffc8; }
.s-pending { background: rgba(255, 200, 61, 0.25); color: #ffe08a; }
.s-void { background: rgba(255, 92, 114, 0.25); color: #ff9aa8; }
.notice { padding: 14px 16px; border-radius: 14px; background: rgba(255, 200, 61, 0.12); border: 1px solid rgba(255, 200, 61, 0.4); font-size: 0.92rem; margin: 12px 0; }
.success-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(46, 229, 157, 0.18); border: 2px solid var(--green); display: grid; place-items: center; font-size: 2rem; margin-bottom: 10px; }

/* Mi ticket */
.lookup { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 20px; }
.lookup input { margin: 0; text-transform: uppercase; font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.08em; }
@media (max-width: 520px) { .lookup { flex-direction: column; } }
.lookup-result { max-width: 560px; margin: 0 auto; }

/* Contador de tómbolas realizadas */
.counter { text-align: center; padding: clamp(28px, 6vw, 56px) 20px; max-width: 720px; margin-inline: auto; }
.counter-num { font-size: clamp(4rem, 16vw, 7.5rem); font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
.counter h2 { margin-bottom: 10px; }
.empty { color: var(--muted); text-align: center; padding: 28px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: '+'; color: var(--gold); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); margin: 0 0 16px; }

footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 0.88rem; background: rgba(0, 0, 0, 0.25); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot p { max-width: 70ch; margin: 8px 0 0; }

.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #1d1d4a; border: 1px solid var(--border); padding: 12px 20px; border-radius: 12px; z-index: 100; box-shadow: var(--shadow); font-weight: 600; }

/* Admin */
.admin-wrap { padding: 36px 0 80px; }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
@media (max-width: 960px) { .admin-grid { grid-template-columns: 1fr; } }
.panel { padding: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.login-box { max-width: 400px; margin: 12vh auto; padding: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.mx { margin-inline: auto; }
.w100 { width: 100%; }
[hidden] { display: none !important; }

/* Yappy */
.btn-yappy { background: linear-gradient(135deg, #0a5bff 0%, #00a8ff 100%); color: #fff; border: 0; box-shadow: 0 10px 30px rgba(10, 91, 255, 0.4); }
.btn-yappy:hover { background: linear-gradient(135deg, #0a5bff 0%, #00a8ff 100%); box-shadow: 0 14px 40px rgba(10, 91, 255, 0.55); }
.y-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #0a5bff; display: inline-grid; place-items: center; font-weight: 900; font-size: 1.05rem; line-height: 1; }
.yappy-note { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 12px 0 0; }
.yappy-wait { text-align: center; }
.yappy-pulse { width: 84px; height: 84px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: rgba(10, 91, 255, 0.2); border: 2px solid #3d86ff; animation: pulse-blue 1.8s infinite; }
@keyframes pulse-blue { 0% { box-shadow: 0 0 0 0 rgba(61, 134, 255, 0.7); } 70% { box-shadow: 0 0 0 22px rgba(61, 134, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 134, 255, 0); } }
.yappy-steps { text-align: left; max-width: 340px; margin: 14px auto; color: var(--muted); padding-left: 20px; }
.yappy-steps li { margin: 6px 0; }
.wait-clock { font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 8px 0; }
.yappy-holder { display: flex; justify-content: center; margin: 6px 0; }

/* ---------- Adaptación a celulares y tablets ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); overflow-x: hidden; }
button, a, summary { touch-action: manipulation; }
dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.modal-in { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }

@media (max-width: 820px) {
  .nav { flex-wrap: wrap; height: auto; padding-top: 10px; row-gap: 4px; }
  .nav ul { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 4px; padding-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav ul::-webkit-scrollbar { display: none; }
  .nav ul a { white-space: nowrap; }
  section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  section { padding: 44px 0; }
  .hero { padding: 28px 0 24px; }
  .hero-cta .btn { width: 100%; }
  .trust { gap: 12px; }
  .t-body { padding: 18px; }
  .price { font-size: 1.7rem; }
  .price-row { flex-wrap: wrap; }
  .countdown { gap: 6px; }
  .cd-box b { font-size: 1.5rem; }
  .cd-big .cd-box { padding: 12px 2px; }
  .stage { padding: 26px 14px; }
  .reel { height: 112px; margin: 20px auto; }
  .reel::before, .reel::after { width: 14%; }
  .modal-in { padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); }
  dialog { width: calc(100% - 16px); border-radius: 18px; }
  .ticket { grid-template-columns: 1fr 92px; }
  .ticket::before, .ticket::after { right: 70px; }
  .tk-stub { width: 92px; }
  .winner-box { padding: 20px 14px; }
  .stage-actions .btn { flex: 1 1 100%; }
  .foot { flex-direction: column; }
  .panel { padding: 16px; }
  .login-box { margin: 6vh 12px; padding: 24px; }
}
@media (pointer: coarse) {
  .btn-sm { min-height: 44px; }
  .chip { min-height: 44px; padding: 10px 16px; }
  .qty button { width: 52px; height: 52px; }
  .x { width: 44px; height: 44px; }
  .nav ul a { padding: 12px 14px; }
  summary { padding: 18px 0; }
}

/* Logo de Yappy */
.y-logo { height: 28px; width: auto; display: inline-block; vertical-align: middle; }
.y-logo-lg { height: 40px; margin: 0 auto 8px; display: block; }
.pay-badge { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 0.85rem; margin-top: 14px; }
.pay-badge .y-logo { height: 24px; }

/* iOS hace zoom al enfocar campos con letra menor de 16px */
input, select, textarea { font-size: 16px !important; }
@media (min-width: 601px) and (max-width: 920px) {
  .hero-grid > div:last-child { max-width: 560px; margin: 0 auto; width: 100%; }
}

.ts-box { display: flex; justify-content: center; margin: 10px 0; }

/* Huella de la lista sellada */
.seal-info { max-width: 760px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 14px; background: rgba(46, 229, 157, 0.1); border: 1px solid rgba(46, 229, 157, 0.35); color: var(--text); font-size: 0.92rem; line-height: 1.7; }
.seal-hash { font-family: ui-monospace, Consolas, monospace; background: rgba(0, 0, 0, 0.35); padding: 2px 8px; border-radius: 8px; word-break: break-all; }
.seal-info .btn { margin-left: 6px; }
