/* Rifa a beneficio — estilos públicos (mobile first) */
:root {
  --bg: #F3F4F1;
  --ink: #16191C;
  --muted: #565C63;
  --line: #D9DCD6;
  --line-strong: #B9BDB5;
  --accent: #C2410C;
  --accent-hover: #9A3412;
  --accent-light: #FDBA74;
  --res-bg: #FCEFC7;
  --res-bd: #C9A040;
  --res-fg: #5C3D00;
  --sold: #DADDD7;
  --ok: #1F6F43;
  --dark: #22262A;
  --dark-line: #33383D;
  --agua: #93C5FD;
  --win: #86EFAC;
  --soft: #D5D8D2;
  --danger: #B42318;
  --radius: 10px;
  --font-head: 'Space Grotesk', Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 8px; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .wrap { padding-left: 24px; padding-right: 24px; } }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: 0.04em; color: var(--bg); text-decoration: none; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; }
.brand:hover { color: #fff; }
.brand .hl { color: var(--accent-light); margin-left: .3em; }
@media (min-width: 640px) { .brand { font-size: 20px; } }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; font-size: 15px; }
.nav a { color: var(--bg); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--accent-light); }
.nav .nav-link { display: none; }
@media (min-width: 760px) { .nav .nav-link { display: inline-flex; } }
.steps { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--soft); list-style: none; margin: 0; padding: 0; }
.steps .on { color: var(--accent-light); font-weight: 700; }
@media (min-width: 640px) { .steps { font-size: 14px; gap: 4px 20px; } }

/* Camo (index header + hero). Replace /img/camo.svg to change the texture. */
.camo { background-color: #0E1012; background-image: linear-gradient(rgba(14,16,18,.55), rgba(14,16,18,.55)), url('../img/camo.svg'); background-size: auto, 480px 480px; background-repeat: repeat; }
.camo .site-header, .camo .hero { background: transparent; }
.camo .site-header { border-bottom: 1px solid rgba(255,255,255,.08); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; line-height: 1.2; text-align: center; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2F34; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn-ghost:hover { background: #F7F8F5; color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--bg); border: 1px solid #565C63; }
.btn-ghost-dark:hover { border-color: var(--soft); color: #fff; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; font-weight: 700; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; }
.btn svg { flex: none; }
.btn-icon { width: 44px; padding: 0; }

/* ---------- Hero ---------- */
.hero .wrap { padding-top: 36px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; color: var(--bg); }
@media (min-width: 760px) { .hero .wrap { padding-top: 56px; padding-bottom: 72px; gap: 48px; } }
.hero-main { flex: 1 1 320px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
@media (min-width: 900px) { .hero-main { flex-basis: 480px; } }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); font-weight: 600; }
.hero h1 { font-size: 40px; line-height: 1.02; }
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
.hero .lead { font-size: 17px; line-height: 1.5; color: var(--soft); max-width: 520px; }
@media (min-width: 640px) { .hero .lead { font-size: 19px; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.hero-ctas .link-light { color: var(--bg); font-weight: 600; padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; }
.hero-ctas .link-light:hover { color: var(--accent-light); }
.progress { display: flex; flex-direction: column; gap: 8px; max-width: 520px; margin-top: 8px; }
.progress-labels { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 14px; color: var(--soft); }
.progress-bar { height: 10px; background: var(--dark-line); border-radius: 5px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--accent-light); border-radius: 5px; width: 0; transition: width .6s ease; }
.hero-card { flex: 1 1 300px; background: var(--bg); color: var(--ink); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .hero-card { padding: 28px; flex-basis: 360px; } }
.card-kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
.countdown > div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px 2px; }
.countdown b { display: block; font-family: var(--font-head); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .countdown b { font-size: 34px; } }
.countdown small { font-size: 12px; color: var(--muted); }
.card-facts { border-top: 1px dashed var(--line-strong); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.45; }

/* ---------- Sections ---------- */
.section { padding-top: 48px; padding-bottom: 16px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 760px) { .section { padding-top: 64px; } }
.section h2 { font-size: 28px; }
@media (min-width: 640px) { .section h2 { font-size: 36px; } }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
@media (min-width: 640px) { .grid-cards { gap: 20px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.prize { overflow: hidden; display: flex; flex-direction: column; }
.prize-img { height: 180px; background: #E4E7E0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-align: center; padding: 8px; }
.prize-img img { width: 100%; height: 100%; object-fit: cover; }
.prize-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.prize-pos { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.prize h3 { font-size: 19px; }
.prize-desc { font-size: 14px; color: var(--muted); }
.pack-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.pack-card .pk-label { font-size: 15px; color: var(--muted); }
.pack-card .pk-price { font-family: var(--font-head); font-size: 38px; font-weight: 700; line-height: 1.1; }
.pack-card .pk-note { font-size: 14px; color: var(--muted); }
.pack-card.featured { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pack-card.featured .pk-label { color: var(--accent-light); font-weight: 600; }
.pack-card.featured .pk-note { color: var(--soft); }
.how { display: flex; flex-direction: column; gap: 8px; }
.how .n { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.how h3 { font-size: 18px; }
.how p { font-size: 15px; line-height: 1.5; color: var(--muted); }

.site-footer { background: var(--ink); color: var(--soft); margin-top: 48px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; font-size: 14px; }
.site-footer a { color: var(--accent-light); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: #FED7AA; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* ---------- Status / feedback ---------- */
.notice { border-radius: 8px; padding: 14px 16px; font-size: 15px; line-height: 1.45; border: 1px solid var(--line); background: #fff; }
.notice strong { display: block; margin-bottom: 2px; }
.notice-error { background: #FDECEA; border-color: #F1B0A8; color: #7A1A10; }
.notice-warn { background: var(--res-bg); border-color: var(--res-bd); color: var(--res-fg); }
.notice-ok { background: #E6F4EC; border-color: #9CCFB1; color: #14472B; }
.notice-info { background: #FFF4E6; border-color: #F1C9A0; color: var(--ink); }
.notice .btn { margin-top: 10px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; padding: 12px 0; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
.dark-page .spinner { border-color: var(--dark-line); border-top-color: var(--accent-light); }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #E7E9E4 25%, #F0F1EE 50%, #E7E9E4 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { color: var(--muted); font-size: 15px; padding: 8px 0; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 15px; z-index: 50; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; }
.input { height: 44px; border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 12px; font-size: 16px; background: #fff; color: var(--ink); width: 100%; }
.input:focus { border-color: var(--ink); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); min-height: 0; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Layout with aside ---------- */
.page { padding-top: 24px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
@media (min-width: 760px) { .page { padding-top: 32px; gap: 32px; } }
.page-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page-aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .panel { padding: 24px; } }
.panel h2 { font-size: 22px; }
@media (min-width: 640px) { .panel h2 { font-size: 24px; } }
.panel-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* ---------- Compra ---------- */
.seller-banner { background: #FFF4E6; border: 1px solid #F1C9A0; border-radius: 8px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.seller-banner .txt { font-size: 15px; line-height: 1.4; min-width: 0; flex: 1 1 240px; }
.seller-banner .sub { color: var(--muted); font-size: 13px; display: block; margin-top: 2px; }
.seller-banner form { display: flex; gap: 8px; align-items: center; }
.seller-banner label { font-size: 13px; color: var(--muted); }
.seller-banner .input { width: 96px; font-weight: 600; text-transform: uppercase; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .packs { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; } }
.pack-btn { text-align: left; background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 96px; }
.pack-btn .l { font-size: 14px; font-weight: 600; }
.pack-btn .p { font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.pack-btn .o { font-size: 13px; color: var(--muted); }
.pack-btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pack-btn[aria-pressed="true"] .o { color: var(--soft); }
.pack-btn:hover { border-color: var(--ink); }
.grid-tools { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.grid-tools form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid-tools label { font-size: 14px; color: var(--muted); }
.grid-tools .input { width: 110px; }
.grid-tools .spacer { flex: 1 1 0; }
.pager { display: flex; gap: 8px; align-items: center; }
.pager .rango { font-size: 15px; font-weight: 600; min-width: 140px; text-align: center; }
.num-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 420px) { .num-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
.num { height: 44px; padding: 0; background: #fff; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; }
@media (min-width: 420px) { .num { font-size: 12px; } }
@media (min-width: 560px) { .num { font-size: 14px; } }
.num:hover:not(:disabled) { border-color: var(--ink); }
.num.r { background: var(--res-bg); color: var(--res-fg); border-color: var(--res-bd); }
.num.s { background: var(--sold); color: var(--muted); border-color: var(--sold); text-decoration: line-through; }
.num.sel { background: var(--accent); color: #fff; border-color: var(--accent); }
.num.flash { outline: 3px solid #2563EB; outline-offset: 1px; }
.num.ph { border-color: transparent; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.legend li { display: flex; gap: 8px; align-items: center; }
.sw { width: 16px; height: 16px; border-radius: 4px; flex: none; border: 1px solid transparent; }
.sw.a { background: #fff; border-color: var(--line-strong); }
.sw.sel { background: var(--accent); }
.sw.r { background: var(--res-bg); border-color: var(--res-bd); }
.sw.s { background: var(--sold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; list-style: none; margin: 0; padding: 0; }
.chip { background: var(--ink); color: #fff; border-radius: 6px; padding: 0 4px 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 2px; min-height: 36px; }
.chip.static { padding: 8px 12px; }
.chip button { background: transparent; border: 0; color: var(--soft); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.chip button:hover { color: #fff; background: rgba(255,255,255,.1); }
.chip.taken { background: var(--danger); }
.total-row { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total-row .v { font-family: var(--font-head); font-size: 30px; font-weight: 700; }
.form-stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Pago ---------- */
.status-banner { border-radius: 8px; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; border: 1px solid; }
.status-banner .t { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; }
.status-banner strong { font-size: 17px; }
.status-banner .msg { font-size: 14px; }
.status-banner .clock { font-family: var(--font-head); font-size: 40px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.sb-reserved { background: var(--res-bg); border-color: var(--res-bd); color: var(--res-fg); }
.sb-uploaded { background: #FFF4E6; border-color: #F1C9A0; color: var(--ink); }
.sb-confirmed { background: #E6F4EC; border-color: #9CCFB1; color: #14472B; }
.sb-rejected { background: #FDECEA; border-color: #F1B0A8; color: #7A1A10; }
.sb-expired { background: #EDEEEA; border-color: var(--line-strong); color: var(--ink); }
.bank { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) auto; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; margin: 0; }
.bank dt, .bank dd { margin: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; align-items: center; min-width: 0; }
.bank dt { color: var(--muted); }
.bank dd { font-weight: 600; overflow-wrap: anywhere; }
.bank dd.cp { padding: 0 4px; }
.bank > :nth-last-child(-n+3) { border-bottom: 0; }
.bank .glosa { color: var(--accent); font-weight: 700; }
.copy-btn { background: transparent; border: 0; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 6px; }
.copy-btn:hover { background: #F0F1EE; color: var(--ink); }
.drop { border: 2px dashed var(--line-strong); border-radius: 8px; padding: 28px 16px; display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; cursor: pointer; position: relative; }
.drop:hover, .drop.over { border-color: var(--ink); background: #FAFAF8; }
.drop:focus-within { outline: 3px solid #2563EB; outline-offset: 2px; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop strong { font-size: 15px; }
.drop .hint { pointer-events: none; }
.file-chosen { font-size: 14px; display: flex; gap: 8px; align-items: center; }
.upload-progress { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.upload-progress > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.timeline li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
.timeline .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.timeline .done .dot { background: var(--ok); border-color: var(--ok); }
.timeline .current .dot { border-color: var(--accent); }
.timeline .fail .dot { background: var(--danger); border-color: var(--danger); }
.timeline .todo { color: var(--muted); }
.timeline .sub { color: var(--muted); display: block; }
.order-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.certificate { border: 2px solid var(--ok); }
.certificate .big-chips .chip { font-size: 22px; padding: 10px 16px; background: var(--ok); }

/* ---------- Consulta / vendedor ---------- */
.narrow { max-width: 760px; }
.order-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.order-item { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.order-item .top { display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; }
.order-item .code { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.order-item .meta { font-size: 14px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.b-reserved { background: var(--res-bg); border-color: var(--res-bd); color: var(--res-fg); }
.b-receipt_uploaded { background: #FFF4E6; border-color: #F1C9A0; color: #7C2D12; }
.b-confirmed { background: #E6F4EC; border-color: #9CCFB1; color: #14472B; }
.b-rejected { background: #FDECEA; border-color: #F1B0A8; color: #7A1A10; }
.b-expired { background: #EDEEEA; border-color: var(--line-strong); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 16px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-family: var(--font-head); font-size: 28px; font-weight: 700; }
.link-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.link-box .input { flex: 1 1 220px; font-size: 14px; }
.small-chips .chip { font-size: 13px; min-height: 28px; padding: 2px 8px; }

/* ---------- Sorteo (dark) ---------- */
.dark-page { background: var(--ink); color: var(--bg); min-height: 100vh; }
.dark-page a { color: var(--accent-light); }
.draw-header { padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 760px) { .draw-header { padding: 18px 32px; } }
.draw-header .brand { min-height: 0; }
.draw-header .meta { font-size: 14px; color: var(--soft); }
.draw-header .meta strong { color: #fff; }
.draw-body { display: flex; flex-wrap: wrap; gap: 24px; padding: 16px; align-items: flex-start; }
@media (min-width: 760px) { .draw-body { padding: 32px; gap: 32px; } }
.draw-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.draw-main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dpanel { background: var(--dark); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dpanel h2 { font-size: 18px; }
.dpanel .muted { color: #B4B9B1; font-size: 14px; line-height: 1.45; }
.prize-row { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; background: #2B3035; font-size: 14px; }
.prize-row .nm { font-weight: 600; }
.prize-row .st { color: #B4B9B1; font-family: var(--font-head); font-weight: 700; }
.prize-row.cur { background: #3A2A1C; }
.prize-row.cur .st { color: var(--accent-light); }
.prize-row.done { background: #1F3D2C; }
.prize-row.done .st { color: var(--win); }
.big-stat { font-family: var(--font-head); font-size: 30px; font-weight: 700; line-height: 1.1; }
.stage { background: var(--dark); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 32px 16px; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; transition: border-color .3s; min-height: 340px; justify-content: center; }
.stage.win { border: 3px solid var(--win); }
.stage .etapa { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); font-weight: 600; }
.stage .big { font-family: var(--font-head); font-size: clamp(84px, 22vw, 190px); line-height: 1; font-weight: 700; letter-spacing: .06em; color: #8A9097; font-variant-numeric: tabular-nums; }
.stage .big.agua { color: var(--agua); }
.stage .big.winner { color: var(--win); }
.stage .big.pop { animation: pop .45s ease-out; }
@keyframes pop { 0% { transform: scale(1.14); filter: brightness(2.2) saturate(.3); } 100% { transform: scale(1); filter: none; } }
.stage .res { font-size: 22px; font-weight: 600; min-height: 32px; }
.stage .res.agua { color: var(--agua); }
.stage .res.winner { color: var(--win); }
.acta { list-style: none; margin: 0; padding: 0; }
.acta li { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--dark-line); font-size: 15px; }
.acta .o { color: #B4B9B1; min-width: 28px; }
.acta .n { font-family: var(--font-head); font-weight: 700; font-size: 20px; min-width: 70px; font-variant-numeric: tabular-nums; }
.acta .t { font-weight: 600; }
.acta .t.agua { color: var(--agua); }
.acta .t.winner { color: var(--win); }
.acta .d { color: #B4B9B1; }
.acta li.new { animation: fadein .6s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fs-btn { min-height: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Print (comprobante de participación) ---------- */
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .page-aside .timeline-panel { display: none !important; }
  .panel, .card { border-color: #999; break-inside: avoid; }
  .chip { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  .page { padding: 0; }
}
#load-state:empty, #conn:empty { display: none; }
