:root {
  --bg: #f3f4f6;
  --bg-2: #ffffff;
  --card: #ffffff;
  --line: #e4e7ec;
  --text: #07102c;
  --muted: #5c6578;
  --gold: #76f20a;
  --gold-2: #c6ff62;
  --ink: #07102c;
  --green: #178a4a;
  --red: #c24141;
  --amber: #b7791f;
  --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  --top: rgba(255, 255, 255, 0.96);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--top);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.top-bar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; }
.brand img { height: 48px; width: auto; }
.logo-dark { display: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-actions .btn, .top-actions .corner-menu { margin-left: 0; }
.theme-btn {
  width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center;
}
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .icon-moon { fill: currentColor; }
.theme-btn .icon-sun { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; display: none; }
.top nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.top nav a:hover { color: var(--text); }
.top .btn { margin-left: auto; }
.corner-menu { position: relative; margin-left: auto; }
.corner-menu .btn { margin-left: 0; }
.menu-btn { width: 48px; height: 44px; padding: 0; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 99px; background: currentColor; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30;
  min-width: 210px; padding: 8px; background: #fff; border-radius: 16px;
  box-shadow: 0 16px 40px rgba(7, 16, 44, 0.14);
}
.menu-panel[hidden] { display: none; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 800; }
.menu-panel a:hover { background: #f4ffe6; }
h1, h2, h3 { font-family: "Manrope", "Segoe UI", sans-serif; font-weight: 800; letter-spacing: -0.04em; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; }
h2 { font-size: clamp(28px, 4vw, 42px); }
.muted { color: var(--muted); }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 18px; background: var(--bg-2);
  border: 1px solid var(--line); transition: 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold); color: var(--ink); border-color: transparent; font-weight: 800;
  box-shadow: 0 8px 22px rgba(118, 242, 10, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; }
.btn-danger { background: #fde8e8; border-color: #f3c0c0; color: #9b1c1c; }
.btn-ok { background: #e7f8ee; border-color: #b7e4c7; color: #17663a; }
.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }
.btn.small { padding: 8px 12px; font-size: 13px; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 42px; align-items: center; padding: 42px 0 20px; }
.hero-card {
  min-height: 360px; border-radius: 28px; overflow: hidden; position: relative;
  background: #eef0f3 center/cover no-repeat; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.kicker { color: var(--gold); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 12px; }
.stats { display: flex; gap: 18px; margin: 22px 0; }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.progress { height: 10px; background: #eceff3; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), var(--gold)); }

.section { padding: 34px 0; }
.winner-list { display: grid; gap: 16px; margin-top: 16px; max-width: 640px; }
.winner-card {
  background: #fff; border-radius: 28px; padding: 16px 16px 14px;
  box-shadow: 0 14px 36px rgba(7, 16, 44, 0.08);
}
.winner-top { display: flex; gap: 14px; align-items: center; }
.winner-photo, .winner-fallback {
  width: 74px; height: 74px; border-radius: 50%; flex: none; background: var(--ink);
}
.winner-photo { object-fit: cover; }
.winner-fallback { display: grid; place-items: center; }
.winner-fallback img { width: 42px; height: auto; }
.winner-card strong { display: block; font-size: 18px; text-transform: uppercase; letter-spacing: 0.01em; }
.winner-card .place, .winner-card .prize { margin: 2px 0 0; }
.winner-card .prize { color: var(--muted); font-weight: 700; }
.winner-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 12px 16px; border-radius: 16px;
  background: var(--gold); color: var(--ink);
}
.winner-bar small { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.winner-num { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.winner-num img { width: 34px; height: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card .body { padding: 18px; }
.card img, .ph { width: 100%; height: 190px; object-fit: cover; background: #eef0f3; }
.ph { display: grid; place-items: center; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  background: #e7f8ee; color: #17663a;
}
.pill.warn { background: #fff4d6; color: #8a5a00; }
.pill.bad { background: #fde8e8; color: #9b1c1c; }
.pill.neutral { background: #eef0f3; color: var(--muted); }
.row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.row input { width: auto; flex: 1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.step b { display: block; color: var(--gold); margin-bottom: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { color: var(--muted); line-height: 1.6; }

.layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 22px; padding: 28px 0 48px; }
.raffle-switch { grid-column: 1 / -1; max-width: 420px; }
.raffle-switch label { margin-top: 0; }
.gallery { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #07102c; padding: 22px; }
.gallery img {
  width: 100%; height: auto; max-height: min(82vh, 760px);
  object-fit: contain; object-position: center;
  animation: poster-drift 14s ease-in-out infinite;
}
.dropzone {
  border: 2px dashed #c5cad3;
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  background: #f7f8fa;
  cursor: pointer;
  margin: 6px 0 14px;
}
.voucher-drop {
  min-height: 148px;
  border: 2px dashed #c5cad3;
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  background: #f7f8fa;
  cursor: pointer;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
}
.voucher-drop p { margin: 0; font-weight: 800; color: var(--ink); }
.voucher-drop.on, .voucher-drop.ready { border-color: var(--ink); background: #f4ffe6; }
.voucher-drop img {
  width: min(100%, 220px);
  max-height: 160px;
  object-fit: contain;
  border-radius: 12px;
  background: #070b16;
}
.dropzone.on { border-color: var(--ink); background: #f4ffe6; }
.dropzone p { margin: 0 0 4px; font-weight: 700; }
.drop-previews { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.drop-previews figure { margin: 10px 0 0; }
.drop-previews img { width: 92px; height: 72px; object-fit: contain; background: #070b16; border-radius: 10px; }
.drop-previews button { display: block; margin: 4px auto 0; border: 0; background: none; color: var(--muted); cursor: pointer; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; }
.thumbs img { width: 74px; height: 56px; object-fit: cover; }
.thumbs .on { border-color: var(--gold); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
.buy { position: sticky; top: 86px; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin: 8px 0 12px; }
.dot { width: 9px; height: 9px; border-radius: 99px; display: inline-block; margin-right: 6px; }
.libre { background: #6d7882; } .revision { background: var(--amber); } .vendido { background: var(--red); } .sel { background: var(--gold); }
.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; max-height: 280px; overflow: auto; padding-right: 4px; }
.num {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 0; text-align: center; font-size: 13px;
}
.num.revision { color: #f0d7a4; }
.num.vendido { opacity: 0.45; text-decoration: line-through; }
.num.on { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; max-height: 120px; overflow: auto; }
.chip { background: #fff6d8; color: #7a5b00; border-radius: 99px; padding: 4px 8px; font-size: 13px; }
.chip button { border: 0; background: none; color: inherit; padding: 0 0 0 6px; }
label { display: block; font-size: 13px; margin: 12px 0 6px; color: var(--muted); }
input, textarea, select {
  width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px;
}
textarea { min-height: 110px; resize: vertical; }
.pay {
  white-space: pre-wrap; background: #fffdf6; border-radius: 14px; padding: 12px; color: var(--text);
  border: 1px dashed #e6c56a; line-height: 1.5;
}
.notice { background: #f4ffe6; color: var(--ink); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.error { color: #b42318; font-size: 14px; min-height: 1.2em; }
.wizard { display: flex; gap: 8px; margin-bottom: 12px; }
.wizard span { flex: 1; height: 4px; border-radius: 99px; background: #eceff3; }
.wizard .on { background: var(--gold); }
.hidden { display: none !important; }
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }

.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: #f5f5f7; }
.side {
  padding: 28px 16px; border-right: 0; background: rgba(255, 255, 255, 0.92);
  box-shadow: 1px 0 0 rgba(7, 16, 44, 0.06);
  backdrop-filter: blur(16px);
}
.side button {
  width: 100%; text-align: left; background: transparent; border: 0; color: var(--muted);
  padding: 10px 12px; border-radius: 10px; margin-top: 4px;
}
.side button.on, .side button:hover { background: #f4f6f8; color: var(--text); }
.main { padding: 36px 40px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric {
  padding: 18px 18px 16px; border-radius: 22px; background: #fff; border: 0;
  box-shadow: 0 12px 32px rgba(7, 16, 44, 0.06);
}
.metric b { display: block; font-size: 26px; margin-top: 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.order {
  display: grid; grid-template-columns: 220px 1fr; gap: 14px; padding: 14px; margin-bottom: 12px;
}
.proofs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.proofs img, .proofs a.frame {
  width: 100%; height: 180px; object-fit: cover; border-radius: 12px; background: #eef0f3; border: 1px solid var(--line);
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(ellipse at 50% 0, rgba(118, 242, 10, 0.16), transparent 42%),
    #f5f5f7;
}
.login .panel {
  width: min(420px, 100%); border: 0; border-radius: 28px; padding: 28px;
  box-shadow: 0 24px 70px rgba(7, 16, 44, 0.1);
}

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 0 10px; }
.action-card p { margin: 6px 0 0; }
.action-card .step strong { display: block; margin-bottom: 6px; }
.filters .on { background: var(--gold); color: var(--ink); border-color: transparent; }
.prizes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.prize { border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px; font-size: 13px; background: #fff; }
.prize.salio { opacity: 0.5; text-decoration: line-through; }
.bank-picks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.bank-logo {
  width: clamp(56px, 14vw, 72px); height: clamp(56px, 14vw, 72px); padding: 0;
  border-radius: 16px; border: 2px solid transparent; background: transparent;
  overflow: hidden; box-shadow: 0 8px 20px rgba(7, 16, 44, 0.08);
}
.bank-logo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.bank-logo.on { border-color: var(--ink); }
.bank-logo span { font-size: 11px; font-weight: 800; line-height: 1.15; }
.bank-detail {
  margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: #fff;
  box-shadow: 0 12px 32px rgba(7, 16, 44, 0.06);
}
.bank-detail p { margin: 8px 0 0; }
.admin-logo { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; background: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; }
.check input { width: auto; margin-top: 4px; }
.float-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(7, 16, 44, 0.18);
}
.float-wa svg { width: 34px; height: 34px; fill: var(--ink); }
.steps { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .hero, .layout, .steps, .duo, .packs, .admin-shell, .order, .metrics { grid-template-columns: 1fr; }
  .top nav { display: none; }
  .buy { position: static; }
  .side { display: flex; gap: 6px; overflow: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side button { width: auto; white-space: nowrap; }
  .brand img { height: 36px; }
  .top-bar { gap: 10px; }
  .top .btn { padding: 10px 12px; font-size: 13px; }
  .packs { grid-template-columns: 1fr 1fr; }
  .sticky-buy { display: flex; }
  body:has(.sticky-buy) { padding-bottom: 78px; }
  .side, .side-nav { flex-direction: row; }
  .side-user { margin-top: 0; }
  .dash-grid, .detail-grid { grid-template-columns: 1fr; }
  .float-wa { bottom: 86px; }
}
.sticky-buy {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: #fff; border-top: 1px solid var(--line); padding: 12px 16px;
  justify-content: space-between; align-items: center; gap: 12px;
}
.side { display: flex; flex-direction: column; }
.side-nav { display: flex; flex-direction: column; flex: 1; }
.side-user { margin-top: auto; }
.side button.on { background: var(--ink); color: #fff; }
.side .brand img { height: 42px; }
.nav-badge { background: var(--gold); color: var(--ink); border-radius: 99px; padding: 1px 7px; font-size: 12px; margin-left: 6px; }
.dash-head, .dash-grid { display: grid; gap: 16px; }
.dash-head { grid-template-columns: 1fr 220px; align-items: center; }
.dash-grid { grid-template-columns: 1.7fr .8fr; }
.metric.sold { background: #f4ffe6; }
.linkish { background: none; border: 0; color: var(--muted); padding: 0; }
.order-row { cursor: pointer; transition: background .2s ease; }
.order-row:hover td { background: #f6f7f9; }
.admin-shell .panel {
  border: 0; border-radius: 24px;
  box-shadow: 0 12px 32px rgba(7, 16, 44, 0.06);
}
.admin-shell h2 { letter-spacing: -0.04em; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; margin: 12px 0; }
.bars span { flex: 1; background: #d9dde3; border-radius: 6px 6px 0 0; }
.bars span.hot { background: var(--ink); }
.tag { border-radius: 99px; padding: 3px 8px; font-size: 12px; font-weight: 800; }
.tag-pendiente { background: var(--gold); color: var(--ink); }
.tag-confirmada { background: var(--ink); color: #fff; }
.tag-rechazada { color: #be123c; border: 1px solid #be123c; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proof { width: 100%; max-height: 360px; object-fit: contain; background: #eef0f3; border-radius: 12px; }
.chip { display: inline-block; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; margin: 2px; }
.ticket-box { margin: 12px 0; }
.ticket-scroll {
  max-height: 160px; overflow: auto; border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 12px; line-height: 1.8; word-break: break-word; background: var(--bg-2);
}
.btn-black { background: var(--ink); color: #fff; border-color: var(--ink); }
.login-card .btn-black { width: 100%; border-radius: 12px; padding: 14px; }
#confirm-box:not(.hidden), #reject-box:not(.hidden) {
  position: fixed; right: 24px; top: 24px; width: min(420px, calc(100vw - 32px));
  z-index: 30; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.reject-box { border-color: #f3b4be; }
.login-card { text-align: center; }
.login-card h2 { margin-bottom: 16px; }
.logo-slot { display: block; border: 0; padding: 0; margin: 0 auto 8px; background: transparent; }
.logo-slot img { height: 118px; width: auto; margin: 0 auto; }
.pass-line { position: relative; }
.pass-line input { padding-right: 72px; }
.see { position: absolute; right: 8px; top: 8px; background: none; border: 0; color: var(--muted); }
.login-error { border: 1px solid #e11d48; color: #be123c; border-radius: 12px; padding: 10px 12px; }
.login-error:empty { display: none; }
.forgot { width: 100%; background: none; border: 0; color: var(--muted); margin-top: 10px; }
.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pack { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.pack.on, .pack:hover { border-color: var(--gold); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty input { width: 90px; text-align: center; }

body:has(#landing), body:has(.layout) { background: #f5f5f7; }
.brand img { filter: drop-shadow(0 6px 10px rgba(7, 16, 44, 0.12)); }
.intro {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(118, 242, 10, 0.2), transparent 28%),
    var(--ink);
  animation: intro-leave 0.55s ease 1.7s forwards;
}
.intro-stage { position: relative; width: min(640px, 88vw); }
.intro img {
  width: 100%; height: auto;
  animation: logo-in 0.9s cubic-bezier(.16, 1, .3, 1) both;
  filter: drop-shadow(0 16px 28px rgba(118, 242, 10, 0.35));
}
.spark {
  position: absolute; width: 18px; height: 18px; background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 1.2s ease-in-out infinite;
}
.intro .s1 { top: 8%; left: 6%; }
.intro .s2 { top: 18%; right: 4%; width: 28px; height: 28px; animation-delay: .2s; }
.intro .s3 { bottom: 18%; left: 18%; width: 12px; height: 12px; animation-delay: .4s; }
.stage { padding: 36px 0 12px; }
.product {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(70, 130, 255, 0.35), transparent 52%),
    radial-gradient(ellipse at 80% 90%, rgba(118, 242, 10, 0.16), transparent 42%),
    #070b16;
  box-shadow: 0 30px 80px rgba(7, 16, 44, 0.16);
  padding: 28px 28px 0;
}
.product img {
  width: 100%; height: auto; max-height: none;
  display: block; border-radius: 22px 22px 0 0;
  animation: product-in 1.15s cubic-bezier(.16, 1, .3, 1) both;
}
.stage-copy { max-width: 640px; margin: 48px auto 0; text-align: center; }
.stage-copy .lead { margin: 14px auto 0; }
.stage-copy .progress { margin: 22px auto 10px; max-width: 420px; }
.stage-copy .btn { margin-top: 18px; }
.eyebrow { margin-bottom: 10px; }
#landing .section { padding: 72px 0 24px; }
#sorteo { text-align: center; }
.raffle-grid {
  display: grid;
  grid-template-columns: repeat(var(--raffle-count, 2), minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  align-items: stretch;
}
.raffle-card {
  display: flex; flex-direction: column; height: 100%;
  text-align: left; color: inherit; text-decoration: none;
  background: #fff; border-radius: 24px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(7, 16, 44, 0.06);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}
.raffle-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(7, 16, 44, 0.1); }
.raffle-card .poster {
  display: block; background:
    radial-gradient(ellipse at 50% 30%, rgba(70, 130, 255, 0.35), transparent 52%),
    #070b16;
  padding: 22px 22px 8px;
  overflow: hidden;
}
.raffle-card img {
  width: 100%; height: auto; display: block; border-radius: 16px 16px 0 0;
  animation: poster-drift 14s ease-in-out infinite;
}
.raffle-card:nth-child(even) img { animation-delay: -7s; }
.raffle-card .body { display: grid; gap: 8px; padding: 18px 20px 22px; }
.raffle-card .body p { color: var(--muted); }
#sorteo .muted { margin-top: 8px; }
.raffle-card .btn { justify-self: start; }
#landing h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; }
.pack {
  background: #fff; border: 0; border-radius: 24px; padding: 22px;
  box-shadow: 0 12px 32px rgba(7, 16, 44, 0.06);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s ease;
}
.pack:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(7, 16, 44, 0.1); border-color: transparent; }
.pack .ticket { width: 52px; height: auto; margin-bottom: 14px; }
.pack strong { font-size: 20px; }
.buy .packs { grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.buy .pack { width: 100%; padding: 14px; border: 2px solid transparent; }
.buy .pack p { margin: 4px 0 0; color: var(--muted); }
.buy .pack.on { border-color: var(--ink); }
.buy .pack .best {
  display: inline-block; margin-top: 8px;
  background: var(--gold); color: var(--ink);
  border-radius: 99px; padding: 2px 8px;
  font-size: 11px; font-weight: 800;
}
body:has(#landing) .panel, body:has(#landing) .step {
  border: 0; box-shadow: 0 12px 32px rgba(7, 16, 44, 0.05);
}
@keyframes poster-drift {
  0%, 100% { transform: translate3d(-3.2%, 2.2%, 0) rotate(-1.4deg) scale(0.9); }
  50% { transform: translate3d(3.2%, -2.6%, 0) rotate(1.4deg) scale(0.9); }
}
@keyframes product-in {
  from { opacity: 0; transform: translateY(28px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(.78) translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes intro-leave {
  to { opacity: 0; visibility: hidden; }
}
@keyframes twinkle {
  0%, 100% { transform: scale(.7) rotate(0deg); opacity: .55; }
  50% { transform: scale(1.15) rotate(12deg); opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
#landing { animation: rise .7s ease 1.15s both; }
.blessed-board {
  margin-top: 22px;
  background: #07102c;
  color: #fff;
  border-radius: 22px;
  padding: 18px 16px 16px;
  text-align: center;
}
.blessed-board p { margin: 0 0 14px; line-height: 1.45; }
.blessed-title {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold); font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 15px;
}
.blessed-mark {
  width: 14px; height: 14px; flex: none; background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.blessed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.blessed-num {
  position: relative; background: #101a3d; border: 1px solid #2a3b66;
  border-radius: 10px; padding: 12px 4px; font-weight: 800; color: #fff;
}
.blessed-num b { font-weight: 800; }
.blessed-num.out b { color: #8b93a7; text-decoration: line-through; }
.blessed-num.out::after {
  content: "✕"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #ff4d4d; font-size: 22px; font-weight: 800;
}
.blessed-win {
  background: #07102c; color: #fff; border-radius: 22px; text-align: center;
  padding: 26px 18px; margin-bottom: 16px;
}
.blessed-win .kicker { color: var(--gold); }
.blessed-win h2 { color: #fff; margin: 8px 0 10px; }
.blessed-win p { margin: 0 0 8px; }
.blessed-splash {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  overflow: hidden; background: #f5f5f7; pointer-events: none;
  animation: intro-leave 0.55s ease 1.7s forwards;
}
.blessed-splash img {
  width: min(920px, 92vw); max-height: 70vh; object-fit: contain;
  animation: logo-in 0.9s cubic-bezier(.16, 1, .3, 1) both;
}
html[data-theme="dark"] .blessed-splash { background: #000; }
.order-frame {
  margin-top: 16px; border-radius: 18px; overflow: hidden;
  border: 1px solid #07102c; background: var(--card);
}
.order-frame header, .order-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.order-frame header {
  background: #07102c; color: #fff; padding: 14px 84px 14px 16px;
}
.order-frame header strong { letter-spacing: 0.04em; text-transform: uppercase; }
.order-state, .order-count {
  background: var(--gold); color: var(--ink); border-radius: 99px;
  padding: 4px 10px; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.order-state.pendiente { background: #f6e7b2; }
.order-state.rechazada { background: #ffd5d5; }
.order-meta { background: #101a3d; color: #fff; padding: 10px 84px 10px 16px; font-weight: 800; }
.order-copy { padding: 14px 16px 22px; }
.order-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.order-copy p + p { margin-top: 8px; }
.ticket-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px;
  max-height: 520px; overflow: auto; padding: 12px 16px 16px;
}
.lotto {
  display: grid; place-items: center; gap: 2px; min-height: 52px; padding: 6px 4px;
  border: 2px solid #07102c; border-radius: 12px; background: #fff; color: #07102c; text-align: center;
}
.lotto b { font-size: 15px; letter-spacing: 0.03em; }
.lotto small, .lotto em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.lotto.win { background: var(--gold); border-color: #5cc000; }
.ticket-more { display: none; }
html[data-theme="dark"] .lotto { background: #101a3d; color: #fff; border-color: var(--gold); }
html[data-theme="dark"] .lotto.win { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 520px) {
  .ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lookup-modes { display: flex; gap: 8px; margin-bottom: 14px; }
.lookup-modes button {
  flex: 1; border: 1px solid var(--line); background: transparent; color: inherit;
  border-radius: 12px; padding: 12px 8px; font-weight: 800; cursor: pointer;
}
.lookup-modes button.on { border-color: var(--gold); color: var(--gold); }
.blessed-hits { list-style: none; margin: 12px 0; padding: 0; }
.blessed-hits li { font-weight: 800; margin: 6px 0; }
@media (max-width: 520px) {
  .blessed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

html[data-theme="dark"] {
  --bg: #07102c;
  --bg-2: #101a3d;
  --card: #101a3d;
  --line: #2a3b66;
  --text: #ffffff;
  --muted: #d7e0f0;
  --top: rgba(7, 16, 44, 0.94);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}
html[data-theme="dark"] body,
html[data-theme="dark"] body:has(#landing),
html[data-theme="dark"] body:has(.layout) {
  background: #07102c;
  color: #fff;
}
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; height: 68px; }
html[data-theme="dark"] .theme-btn {
  background: #101a3d; color: var(--gold); border-color: #345018;
}
html[data-theme="dark"] .theme-btn .icon-moon { display: none; }
html[data-theme="dark"] .theme-btn .icon-sun { display: block; }
html[data-theme="dark"] .menu-panel,
html[data-theme="dark"] .winner-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .raffle-card,
html[data-theme="dark"] .pack,
html[data-theme="dark"] .bank-detail,
html[data-theme="dark"] .num,
html[data-theme="dark"] .sticky-buy,
html[data-theme="dark"] .pay,
html[data-theme="dark"] .prize,
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
  background: #101a3d;
  color: #fff;
}
html[data-theme="dark"] .menu-panel a:hover { background: #17300c; color: #fff; }
html[data-theme="dark"] .notice,
html[data-theme="dark"] .voucher-drop,
html[data-theme="dark"] .voucher-drop.ready,
html[data-theme="dark"] .dropzone,
html[data-theme="dark"] .dropzone.on {
  background: #0d1738;
  color: #fff;
  border-color: #345018;
}
html[data-theme="dark"] .voucher-drop p { color: #fff; }
html[data-theme="dark"] .progress { background: #24345c; }
html[data-theme="dark"] .progress span { background: linear-gradient(90deg, #fff, var(--gold)); }
html[data-theme="dark"] .buy .pack.on,
html[data-theme="dark"] .bank-logo.on { border-color: var(--gold); }
html[data-theme="dark"] .pill { background: #17300c; color: var(--gold); }
html[data-theme="dark"] .chip { background: #13220c; color: #fff; }
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .card img,
html[data-theme="dark"] .ph { background-color: #0d1738; }

@media (prefers-reduced-motion: reduce) {
  .intro, .blessed-splash { display: none; }
  #landing, .spark, .product img, .raffle-card img, .gallery img { animation: none; }
}
@media (max-width: 900px) {
  .side, .side-nav { flex-direction: row; }
  .side-user { margin-top: 0; }
  .dash-grid, .detail-grid, .dash-head { grid-template-columns: 1fr; }
  .packs { grid-template-columns: 1fr 1fr; }
  .qty { flex-wrap: wrap; }
  .qty .btn-gold { flex: 1 1 100%; }
}
