:root {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --surface: #151518;
  --surface-2: #1d1d21;
  --line: #27272c;
  --line-strong: #37373e;
  --text: #f6f6f7;
  --muted: #a3a3ad;
  --brand: #e3222a;
  --brand-strong: #f43a41;
  --brand-text: #ff5a60;
  --brand-soft: rgba(227, 35, 43, 0.12);
  --on-brand: #ffffff;
  --ok: #3ecf8e;
  --error: #ff8a8a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--brand-text); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  border-top: 3px solid var(--brand);
  background: rgba(11, 15, 21, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.logo { display: block; height: 40px; width: auto; }
.brand-tag {
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line-strong);
  color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
}
.nav { display: flex; gap: 28px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 0; border-radius: var(--radius-sm);
  background: var(--brand); color: var(--on-brand);
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 24px rgba(227, 35, 43, 0.28);
}
.btn:hover { background: var(--brand-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-sm { padding: 9px 16px; font-size: 14px; box-shadow: none; }
.btn-lg { padding: 17px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 72px;
  background:
    radial-gradient(55% 60% at 80% 25%, rgba(227, 35, 43, 0.16), transparent 70%),
    radial-gradient(45% 50% at 5% 95%, rgba(255, 255, 255, 0.04), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid rgba(227, 35, 43, 0.3);
  color: var(--brand-text); font-size: 13px; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(227, 35, 43, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(227, 35, 43, 0); } }
h1 { font-size: clamp(40px, 6.4vw, 72px); font-weight: 800; margin: 20px 0 16px; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--brand); display: block; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 28px; }
.lead strong { color: var(--text); }

.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 84px)); gap: 10px; }
.countdown div {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 6px; text-align: center;
}
.countdown strong { display: block; font: 700 28px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.countdown span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.countdown-label { color: var(--muted); font-size: 13px; margin: 10px 0 28px; }
.countdown.done { display: block; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; fill: var(--brand); flex: none; }

.hero-media {
  margin: 0; justify-self: center; width: min(100%, 400px);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-media img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 60%;
}
/* Pie de la foto: va debajo de la imagen, con el mismo ancho, sin taparla */
.hero-badge {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 20px; background: var(--surface); border-top: 1px solid var(--line);
}
.hero-badge span { color: var(--brand-text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.hero-badge strong { font: 700 18px/1.3 var(--font-display); }
.hero-badge small { color: var(--muted); font-size: 13px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 40px; max-width: 640px; }
.kicker { display: block; color: var(--brand-text); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }
h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; }
.sub { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Prize */
.prize-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 460px); justify-content: center; gap: 32px; align-items: center; }
.video-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: var(--shadow); }
.video-card video { width: 100%; aspect-ratio: 512 / 910; object-fit: cover; background: #000; }
.specs h3 { font-size: 24px; }
.specs .sub { font-size: 15px; margin: 8px 0 20px; }
.specs dl { margin: 0 0 24px; }
.specs dl div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.gallery-item {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  background: var(--surface); cursor: zoom-in;
}
.gallery-item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(0, 0, 0, 0.92); color: var(--text);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(92vw, 720px); max-height: 88vh; border-radius: var(--radius-sm); }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(21, 21, 24, 0.85); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox button:hover { border-color: var(--brand); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Buy */
.buy-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: start; }
.qty-block { border: 0; padding: 0; margin: 0 0 24px; }
.qty-block legend { font: 600 17px/1.3 var(--font-display); margin-bottom: 14px; padding: 0; }
.packs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.packs button {
  position: relative; padding: 14px 4px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  font: 700 18px/1 var(--font-display); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.packs button:hover { border-color: var(--line-strong); }
.packs button[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-text); }
.packs button span {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--brand); color: var(--on-brand); font: 700 9px/1 var(--font-body);
  padding: 4px 6px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em;
}
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output { font: 700 26px/1 var(--font-display); min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper-label { color: var(--muted); }

.summary {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  padding: 20px; margin-bottom: 24px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(227, 35, 43, 0.12), rgba(227, 35, 43, 0.03));
  border: 1px solid rgba(227, 35, 43, 0.25);
}
.summary-label { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.total { font: 800 38px/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.summary-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; color: var(--muted); font-size: 14px; }
.saving { background: rgba(62, 207, 142, 0.14); color: var(--ok); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 13px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input:not([type="checkbox"]) {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #5f6b7c; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(227, 35, 43, 0.18); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.error { display: block; min-height: 0; color: var(--error); font-size: 13px; margin-top: 4px; }
.error:empty { display: none; }

.notice {
  margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--brand-soft); border-left: 3px solid var(--brand); color: #f6d5d6;
}
.form-status { margin: 12px 0 0; font-size: 14px; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.form-status.is-ok { color: var(--ok); }
.fine { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

.prices-card h3 { font-size: 18px; margin-bottom: 8px; }
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 0 8px; }
.prices td { padding: 14px 0; border-top: 1px solid var(--line); }
.prices th:not(:first-child), .prices td:not(:first-child) { text-align: right; }
.prices td:nth-child(2) { font-weight: 700; }
.prices td:last-child { color: var(--muted); font-size: 14px; }
.prices tr.is-active td { color: var(--brand-text); }
.prices tr { cursor: pointer; }
.prices tbody tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-text); font: 800 20px/1 var(--font-display);
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--brand-text); font-size: 22px; font-weight: 400; transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

.legal { padding: 40px; }
.rules { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.rules li { position: relative; padding-left: 34px; color: var(--muted); }
.rules li strong { color: var(--text); }
.rules li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text);
  font-size: 13px; font-weight: 700;
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 100px; }
.site-footer .logo { height: 48px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
}
.socials a:hover { border-color: var(--brand); color: var(--brand-text); }
.socials svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.socials svg.icon-stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.socials svg .dot-fill { fill: currentColor; stroke: none; }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 25;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s, bottom 0.25s, background 0.15s;
}
.wa-float:hover { background: #1ebe5b; transform: translateY(-2px); }
.wa-icon { width: 26px; height: 26px; flex: none; fill: currentColor; }
.wa-icon .wa-bubble { fill: none; stroke: currentColor; stroke-width: 1.8; }
.socials .wa-icon { width: 18px; height: 18px; }

/* Mobile sticky CTA */
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .hero-grid, .prize-grid, .buy-grid { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 56px; }
  .hero-grid { gap: 36px; }
  .hero-media { order: -1; width: min(100%, 360px); }
  .hero-media img { aspect-ratio: 1 / 1; object-position: center 72%; }
  .prize-grid { grid-template-columns: minmax(0, 360px); }
  .gallery {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: -20px; padding: 0 20px 8px; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 62%; scroll-snap-align: start; }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav, .header-row > .btn { display: none; }
  .lead { font-size: 16px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 20px; }
  .step-n { grid-row: span 2; margin: 0; }
  .steps h3 { font-size: 18px; margin-bottom: 4px; }
  .countdown { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .countdown strong { font-size: 24px; }
  .hero-actions .btn { flex: 1; padding-inline: 12px; white-space: nowrap; }
  .card { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .total { font-size: 32px; }
  .summary-side { align-items: flex-start; }
  .site-footer { padding-bottom: 104px; }
  .mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(15, 20, 28, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transition: transform 0.25s;
  }
  .mobile-cta div { display: flex; flex-direction: column; line-height: 1.2; }
  .mobile-cta span { color: var(--muted); font-size: 13px; }
  .mobile-cta.is-hidden { transform: translateY(110%); }
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); padding: 14px; }
  .wa-float span { display: none; }
  .wa-icon { width: 28px; height: 28px; }
  /* Sobre la barra inferior mientras está visible; baja cuando la barra se oculta. */
  .mobile-cta ~ .wa-float { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .mobile-cta.is-hidden ~ .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Página de confirmación */
.result-page { min-height: 60vh; }
.result { text-align: center; padding: 48px 28px; }
.result-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  font: 800 34px/1 var(--font-display);
}
.result-icon.is-ok { background: rgba(62, 207, 142, 0.14); color: var(--ok); }
.result-icon.is-error { background: var(--brand-soft); color: var(--brand-text); }
.result-icon.is-wait, .result-icon.is-info { background: var(--surface-2); }
.result-title { font-size: clamp(26px, 4vw, 36px); }
.result .notice { text-align: left; margin-top: 24px; }
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.spinner {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.numbers li {
  padding: 12px 18px; border-radius: var(--radius-sm); border: 1px dashed rgba(227, 35, 43, 0.6);
  background: var(--brand-soft); font: 800 24px/1 var(--font-display); letter-spacing: 0.06em; font-variant-numeric: tabular-nums;
}

/* Panel de administración */
.admin-main { padding-top: 32px; padding-bottom: 64px; display: grid; gap: 24px; }
#dashboard { display: grid; gap: 24px; }
.data-table td:first-child { white-space: nowrap; }
.login-view { display: grid; place-items: center; min-height: 60vh; }
.login-card { width: min(100%, 380px); display: grid; gap: 16px; }
.login-card h1 { font-size: 24px; }
.field select, .toolbar select, .toolbar input, .email-test-form input {
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg);
  border: 1px solid var(--line-strong); color: var(--text); font-size: 14px;
}
.toolbar input { min-width: 260px; }
.email-test { margin-top: 24px; }
.email-test .fine { margin-top: 6px; }
.email-test-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.email-test-form input { flex: 1 1 240px; }
.email-test .form-status { text-align: left; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat span { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.stat strong { font: 800 28px/1.3 var(--font-display); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar h2 { font-size: 22px; }
.toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; margin: 0 -28px; padding: 0 28px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 10px 12px 10px 0; white-space: nowrap;
}
.data-table td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .empty { text-align: center; color: var(--muted); padding: 32px 0; }
.data-table a { color: var(--text); }
.muted-line { display: block; color: var(--muted); font-size: 12px; }
.ticket-list { font-variant-numeric: tabular-nums; color: var(--muted); max-width: 240px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.is-ok { background: rgba(62, 207, 142, 0.14); color: var(--ok); }
.badge.is-wait { background: rgba(255, 200, 80, 0.12); color: #f5c451; }
.badge.is-error { background: var(--brand-soft); color: var(--brand-text); }

.draw-card { text-align: center; }
.draw-card .toolbar { text-align: left; }
.draw-stage { margin: 28px 0; padding: 36px 16px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.draw-number {
  font: 800 clamp(56px, 12vw, 120px)/1 var(--font-display); letter-spacing: 0.08em; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.draw-number.rolling { color: var(--brand); }
.draw-winner { margin-top: 16px; min-height: 52px; }
.draw-winner strong { display: block; font: 700 28px/1.3 var(--font-display); }
.draw-winner span { color: var(--muted); }
.draw-history-title { font-size: 16px; margin: 32px 0 8px; text-align: left; }
.draw-history { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 14px; }
.draw-history li { padding: 10px 0; border-top: 1px solid var(--line); }
.draw-history span { color: var(--muted); }
.draw-card:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 6vw; border-radius: 0; background: var(--bg); }
.draw-card:fullscreen .draw-number { font-size: 18vw; }
.draw-card:fullscreen .draw-winner strong { font-size: 4vw; }
.draw-card:fullscreen :is(.draw-history, .draw-history-title, .sub, #fullscreen) { display: none; }
.draw-card:fullscreen .toolbar { justify-content: center; }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .toolbar input { min-width: 0; width: 100%; }
  .toolbar-actions { width: 100%; }
}
@media (max-width: 640px) {
  .table-scroll { margin: 0 -20px; padding: 0 20px; }
  .admin-body .header-row > .btn { display: inline-flex; }
}

/* Bases y condiciones */
.legal-doc h1 { font-size: clamp(30px, 4.2vw, 42px); margin: 0; }
.legal-doc h2 { font-size: 20px; margin: 36px 0 0; }
.legal-doc p, .legal-doc li { color: var(--muted); line-height: 1.65; }
.legal-doc p { margin: 12px 0 0; }
.legal-doc ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.legal-doc a { color: var(--brand-text); }
.legal-table { border-collapse: collapse; margin: 16px 0 0; min-width: 240px; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--line); padding: 8px 20px 8px 0; text-align: left; }
.legal-table th { color: var(--text); font-size: 13px; }
.legal-table td { color: var(--muted); }
