/* Tema oscuro con dorado */
:root {
  color-scheme: dark;
  --paper: #0E111C;      /* fondo de página */
  --paper-2: #1B2031;    /* superficies sutiles, pistas */
  --card: #161A28;       /* tarjetas */
  --bar: #090B13;        /* barras y paneles profundos */
  --ink: #F4ECD8;        /* texto principal, marfil */
  --ink-2: #D2CAB6;
  --ink-3: #A39B8A;
  --cobalt: #D4A72C;     /* acento principal: dorado */
  --cobalt-dark: #E6BC4A;
  --on-gold: #1A1406;    /* texto sobre dorado */
  --sun: #F3D27A;        /* dorado claro: resaltados */
  --sun-soft: #2A2414;
  --wine: #7A1F2B;       /* vino: acento secundario */
  --mint: #3FBF8F;
  --mint-soft: #132A22;
  --red: #E5606A;
  --red-soft: #2E1519;
  --line: #2A3045;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--body);
  background-image: radial-gradient(var(--paper-2) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(14,17,28,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--wine); display: grid; place-items: center; color: var(--sun); font-size: 15px; transform: rotate(-6deg); }
.nav { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: transform .12s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--cobalt); color: var(--on-gold); }
.btn-primary:hover { background: var(--cobalt-dark); }
.btn-sun { background: var(--sun); color: var(--on-gold); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--cobalt); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; padding: 15px 20px; font-size: 17px; }

/* Hero de la rifa */
.hero { display: grid; gap: 24px; padding: 24px 0 8px; }
.hero-media { position: relative; }
@media (min-width: 880px) { .hero { grid-template-columns: 5fr 6fr; gap: 40px; padding-top: 40px; align-items: start; } .hero-media { position: sticky; top: 88px; } .photo { aspect-ratio: 4/5; } }
.brand span:last-child { white-space: nowrap; }
.brand-mark { flex: none; overflow: hidden; line-height: 1; }
.brand-mark.has-logo { background: transparent; transform: none; width: 38px; height: 38px; box-shadow: none; }
.brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 420px) { .brand { font-size: 15px; } .nav .btn { padding: 9px 13px; font-size: 14px; } }
.photo { aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; background: var(--wine); position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 24px;
  background: repeating-linear-gradient(-45deg, var(--wine) 0 22px, #6A1A25 22px 44px); }
.photo-ph b { font-family: var(--display); font-size: clamp(28px, 6vw, 44px); line-height: 1.05; letter-spacing: -.03em; color: var(--sun); }
.live { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(9,11,19,.86); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; overflow: hidden; white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.raffle-title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 52px); line-height: 1; letter-spacing: -.025em; margin: 0 0 10px; }
.raffle-sub { font-size: 18px; color: var(--ink-2); margin: 0 0 18px; max-width: 60ch; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.fact strong { font-family: var(--display); font-weight: 700; }
.price-line { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 18px; }
.price-line .bs { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -.03em; }
.price-line .usd { color: var(--ink-2); font-weight: 700; }
.price-line small { color: var(--ink-3); }

.price-line { margin-bottom: 6px; }
.fx-note { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); }
.fx-note b { color: var(--ink-2); font-weight: 700; }
.meter {background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.meter-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.meter-row span:last-child { font-family: var(--display); }
.bar { height: 12px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--cobalt); background-image: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(255,255,255,.18) 8px 16px); transition: width .8s ease; }
.meter.hot .bar > i { background-color: var(--red); }
.meter-note { font-size: 13px; color: var(--ink-2); margin-top: 8px; }

.desc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; white-space: pre-line; color: var(--ink-2); }
.desc.clamp { max-height: 110px; overflow: hidden; position: relative; cursor: pointer; }
.desc.clamp::after { content: 'Ver más'; position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; background: linear-gradient(transparent, var(--card) 60%); font-weight: 700; color: var(--cobalt); }

/* Selector de modo */
.seg { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 9px 18px; font-weight: 700; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }

/* Paquetes: boletos troquelados */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.pack {
  position: relative; border: 2px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 14px 6px 12px; text-align: center; transition: border-color .15s, transform .12s;
}
.pack::before, .pack::after { content: ''; position: absolute; top: 58%; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.pack::before { left: -9px; clip-path: inset(0 0 0 50%); }
.pack::after { right: -9px; clip-path: inset(0 50% 0 0); }
.pack .q { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.pack .l { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.pack .p { margin-top: 10px; padding-top: 8px; border-top: 2px dashed var(--line); font-weight: 700; font-size: 14px; }
.pack:hover { border-color: var(--cobalt); }
.pack[aria-pressed="true"] { border-color: var(--cobalt); background: var(--cobalt); color: var(--on-gold); }
.pack[aria-pressed="true"] .l { color: rgba(26,20,6,.7); }
.pack[aria-pressed="true"] .p { border-color: rgba(26,20,6,.3); }
.pack[aria-pressed="true"]::before, .pack[aria-pressed="true"]::after { border-color: var(--cobalt); }
.tag-pop { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--wine); color: var(--sun); font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }

.stepper { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.stepper button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font-size: 22px; font-weight: 700; }
.stepper input { width: 90px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 22px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 8px; background: var(--card); }
.stepper span { color: var(--ink-2); font-size: 14px; }

/* Selector manual de números */
.picker { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 18px; }
.picker-tools { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.picker-tools input { flex: 1; min-width: 120px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; background: var(--paper); }
.grid-nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 6px; }
.num { border: 1.5px solid var(--line); background: var(--paper); border-radius: 8px; padding: 8px 0; font-family: var(--display); font-size: 13px; font-weight: 600; }
.num:hover:not([disabled]) { border-color: var(--cobalt); }
.num[aria-pressed="true"] { background: var(--sun); border-color: var(--cobalt); color: var(--on-gold); }
.num[disabled] { background: transparent; color: var(--ink-3); text-decoration: line-through; border-style: dashed; cursor: not-allowed; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.pager button { border: 1.5px solid var(--line); background: var(--card); border-radius: 99px; padding: 6px 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { background: var(--sun-soft); border: 1px solid var(--cobalt); border-radius: 99px; padding: 3px 10px; font-family: var(--display); font-size: 12px; font-weight: 700; }
.chip button { border: 0; background: none; padding: 0 0 0 4px; font-weight: 800; color: var(--ink-2); }

/* Barra de compra fija */
.buybar { position: sticky; bottom: 0; z-index: 25; background: var(--bar); color: var(--ink); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 24px; }
.buybar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.buybar .sum { line-height: 1.2; }
.buybar .sum small { display: block; color: var(--ink-3); font-size: 13px; }
.buybar .sum b { font-family: var(--display); font-size: 20px; }

/* Secciones */
.section { padding: 36px 0 8px; }
.section h2 { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.section .lead { color: var(--ink-2); margin: 0 0 16px; }
.cols { display: grid; gap: 16px; }
@media (min-width: 760px) { .cols { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.ranks { list-style: none; padding: 0; margin: 0; }
.ranks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.ranks li:last-child { border: 0; }
.ranks .pos { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; flex: none; }
.ranks li:first-child .pos { background: var(--sun); color: var(--on-gold); }
.ranks .nm { flex: 1; font-weight: 600; }
.ranks .ct { font-family: var(--display); font-weight: 700; }
.methods { display: flex; flex-wrap: wrap; gap: 8px; }
.method-pill { border: 1.5px solid var(--line); border-radius: 99px; padding: 8px 14px; font-weight: 700; background: var(--paper); }
.method-pill small { color: var(--ink-3); font-weight: 600; }
.empty { color: var(--ink-3); font-size: 15px; padding: 6px 0; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rail::-webkit-scrollbar { height: 6px; } .rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 9px; }
.rcard { scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.rcard .im { aspect-ratio: 16/10; background: var(--wine); position: relative; }
.rcard .im img { width: 100%; height: 100%; object-fit: cover; }
.rcard .im.ph { background: repeating-linear-gradient(-45deg, var(--wine) 0 14px, #6A1A25 14px 28px); }
.rcard .bd { padding: 12px 14px 14px; }
.rcard h3 { font-family: var(--display); font-size: 16px; margin: 0 0 4px; letter-spacing: -.02em; }
.rcard .dt { font-size: 13px; color: var(--ink-2); }
.st { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 3px 10px; background: var(--paper-2); color: var(--ink); }
.st.active { background: var(--mint); color: #0B1F17; }
.st.sold_out { background: var(--red); color: #fff; }
.st.finished { background: var(--cobalt); color: var(--on-gold); }

.foot { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.foot .wrap { display: grid; gap: 10px; }
.foot button { background: none; border: 0; color: var(--cobalt); padding: 0; font-weight: 600; text-decoration: underline; }

/* Modales */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.7); display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@media (min-width: 640px) { .overlay { align-items: center; padding: 24px; } }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--card); width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; border-radius: 24px 24px 0 0; animation: up .22s ease-out; }
@media (min-width: 640px) { .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.sheet-head h3 { margin: 0; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper); font-size: 20px; }
.sheet-body { padding: 4px 20px 16px; overflow-y: auto; }
.sheet-foot { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sheet-foot .btn { flex: 1; }
.steps { display: flex; gap: 6px; padding: 0 20px 12px; }
.steps i { flex: 1; height: 5px; border-radius: 9px; background: var(--paper-2); }
.steps i.on { background: var(--cobalt); }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.input, .field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--paper); font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: var(--card); }
.row { display: flex; gap: 10px; } .row > * { flex: 1; } .row > .narrow { flex: 0 0 82px; }
.notice { border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.notice.err { background: var(--red-soft); color: #F2A0A6; }
.notice.ok { background: var(--mint-soft); color: #8BE0BE; }
.notice.info { background: var(--sun-soft); color: var(--sun); }

.pay-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.pay-opt { display: flex; justify-content: space-between; align-items: center; border: 2px solid var(--line); border-radius: var(--radius); padding: 13px 14px; background: var(--card); text-align: left; }
.pay-opt[aria-pressed="true"] { border-color: var(--cobalt); background: var(--sun-soft); }
.pay-opt b { display: block; }
.pay-opt small { color: var(--ink-3); }
.pay-opt .amt { font-family: var(--display); font-weight: 700; }
.pay-data { background: var(--bar); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.pay-data .amount { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--sun); margin-bottom: 8px; }
.pay-data dl { margin: 0; display: grid; gap: 6px; }
.pay-data dl div { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 6px; }
.pay-data dt { color: var(--ink-3); font-size: 13px; }
.pay-data dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; text-align: right; }
.copy { border: 0; background: rgba(212,167,44,.18); color: var(--sun); border-radius: 8px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.pay-data p { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }

.drop { display: block; border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--ink-2); cursor: pointer; background: var(--paper); }
.drop:hover { border-color: var(--cobalt); }
.drop img { max-height: 180px; margin: 0 auto 8px; border-radius: 8px; }
.drop input { display: none; }

/* Boletos de resultado */
.stubs { display: flex; flex-wrap: wrap; gap: 8px; }
.stub { position: relative; background: var(--sun); color: var(--on-gold); border-radius: 8px; padding: 8px 16px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.stub::before, .stub::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--card); }
.stub::before { left: -5px; } .stub::after { right: -5px; }
.stub.pending { background: var(--paper-2); color: var(--ink-2); }
.stub.win { background: var(--mint); color: #0B1F17; }
.done-hero { text-align: center; padding: 8px 0 16px; }
.done-hero .big { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; }
.done-hero .code { display: inline-block; font-family: var(--display); background: var(--paper); border-radius: 8px; padding: 4px 10px; font-weight: 700; }

/* Términos */
.terms-list { display: grid; gap: 10px; }
.terms-list div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--paper); }
.terms-list b { display: block; margin-bottom: 2px; }
.terms-list p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Mis tickets */
.lookup { max-width: 560px; margin: 32px auto 0; }
.lookup h1 { font-family: var(--display); font-size: clamp(28px, 6vw, 40px); letter-spacing: -.03em; margin: 0 0 6px; line-height: 1.05; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; margin-top: 14px; }
.pcard-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.pcard-head h3 { margin: 0; font-family: var(--display); font-size: 17px; letter-spacing: -.02em; }
.pcard-head small { color: var(--ink-3); }
.badge { font-size: 12px; font-weight: 800; border-radius: 99px; padding: 4px 10px; white-space: nowrap; }
.badge.pending { background: var(--sun-soft); color: var(--sun); }
.badge.approved { background: var(--mint-soft); color: #8BE0BE; }
.badge.rejected { background: var(--red-soft); color: #F2A0A6; }
.badge.expired { background: var(--paper-2); color: var(--ink-2); }
.pcard .meta { font-size: 14px; color: var(--ink-2); margin-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 99px; font-weight: 600; z-index: 80; font-size: 14px; animation: fade .2s; }
.wa { position: fixed; right: 16px; bottom: 96px; z-index: 24; width: 54px; height: 54px; border-radius: 50%; background: var(--mint); color: #0B1F17; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Legibilidad: números con ancho fijo y texto un poco más grande en móvil */
body { font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
.num, .stub, .chip, .pack .q, .price-line .bs, .buybar .sum b, .pay-data .amount { font-variant-numeric: tabular-nums; letter-spacing: 0; }
.num { font-size: 14px; font-weight: 700; }
.raffle-sub, .desc { font-size: 17px; line-height: 1.6; }
.lead, .meter-note, .pcard .meta { font-size: 15px; }
.field .hint, .fx-note { font-size: 14px; }

/* ============================================================
   Toques de luz: brillos dorados sutiles
   ============================================================ */
:root { --glow: rgba(212,167,44,.22); --glow-soft: rgba(212,167,44,.10); --wine-glow: rgba(122,31,43,.28); }

/* Resplandor ambiental: dorado arriba, vino abajo, muy suave */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, var(--glow-soft), transparent 70%),
    radial-gradient(700px 600px at -10% 110%, var(--wine-glow), transparent 70%);
}
body { position: relative; z-index: 0; }

/* Líneas finas doradas en encabezado y barra de compra */
.top { border-bottom-color: transparent; }
.top::after, .buybar::before {
  content: ''; position: absolute; left: 0; right: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212,167,44,.55) 50%, transparent);
}
.top::after { bottom: 0; }
.buybar { border-top-color: transparent; }
.buybar::before { top: 0; }
.brand-mark { box-shadow: 0 0 0 1px rgba(243,210,122,.25), 0 4px 18px var(--wine-glow); }

/* Título con un leve degradado marfil → dorado claro */
.raffle-title {
  background: linear-gradient(180deg, #FFF8E8 30%, #E9CF8A 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(212,167,44,.12);
}

/* Foto: aro dorado finísimo y halo cálido */
.photo { box-shadow: 0 0 0 1px rgba(243,210,122,.18), 0 24px 60px -20px var(--glow), 0 10px 40px -10px var(--wine-glow); }
.photo::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,240,200,.10), transparent 55%);
}

/* Destellos que titilan sobre la foto */
.sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; border-radius: var(--radius-lg); }
.sparkles i {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: radial-gradient(circle, #FFF6D8 0 30%, rgba(243,210,122,.6) 45%, transparent 70%);
  box-shadow: 0 0 10px 2px rgba(243,210,122,.35);
  opacity: 0; animation: twinkle 4.8s ease-in-out infinite;
}
.sparkles i::before, .sparkles i::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: rgba(255,240,200,.7); transform: translate(-50%,-50%);
}
.sparkles i::before { width: 18px; height: 1px; }
.sparkles i::after { width: 1px; height: 18px; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 45%, 55% { opacity: .9; transform: scale(1); } }

/* Botones dorados: reflejo que cruza al pasar el cursor */
.btn-primary, .btn-sun { position: relative; overflow: hidden; }
.btn-primary::after, .btn-sun::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-18deg); transition: left .7s ease;
}
.btn-primary:hover::after, .btn-sun:hover::after { left: 120%; }
.btn-primary, .btn-sun { box-shadow: 0 6px 22px -8px var(--glow); }
.btn-primary:hover, .btn-sun:hover { box-shadow: 0 8px 28px -6px rgba(212,167,44,.45); }

/* El botón de compra respira suavemente para llamar la atención */
#buyBtn { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(243,210,122,0); } 50% { box-shadow: 0 0 22px 2px rgba(243,210,122,.35); } }

/* Paquete elegido: halo dorado y un reflejo lento que pasa cada tanto */
.pack[aria-pressed="true"] { box-shadow: 0 0 0 1px rgba(255,236,170,.5) inset, 0 10px 30px -10px rgba(212,167,44,.6); }
.pack[aria-pressed="true"] { background-image: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.32) 50%, transparent 58%); background-size: 260% 100%; background-repeat: no-repeat; animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.pack:not([aria-pressed="true"]):hover { box-shadow: 0 0 0 1px rgba(212,167,44,.25), 0 8px 24px -12px var(--glow); }

/* Barra de progreso: punta luminosa y brillo que recorre */
.bar { position: relative; }
.bar > i { position: relative; box-shadow: 0 0 12px rgba(212,167,44,.45); overflow: hidden; }
.bar > i::after {
  content: ''; position: absolute; inset: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,248,220,.55), transparent);
  animation: run 2.8s ease-in-out infinite;
}
@keyframes run { from { transform: translateX(-120%); } to { transform: translateX(300%); } }

/* Tarjetas: borde con un toque de luz arriba */
.panel, .meter, .desc, .picker, .rcard, .pcard {
  background-image: linear-gradient(180deg, rgba(255,240,200,.035), transparent 40%);
}
.rcard { transition: transform .2s ease, box-shadow .2s ease; }
.rcard:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px var(--glow); }

/* Números elegidos y boletos: brillo dorado */
.num[aria-pressed="true"] { box-shadow: 0 0 14px -2px rgba(243,210,122,.6); }
.stub:not(.pending) { box-shadow: 0 6px 20px -8px rgba(243,210,122,.55); }
.stub:not(.pending)::selection { background: transparent; }
.chip { box-shadow: 0 0 10px -4px rgba(243,210,122,.6); }

/* Ventanas: hilo dorado arriba y sombra profunda */
.sheet { box-shadow: 0 -1px 0 rgba(243,210,122,.35), 0 30px 80px rgba(0,0,0,.6); }
.pay-data .amount { text-shadow: 0 0 24px rgba(243,210,122,.35); }

/* Punto "en vivo" con halo */
.live i { box-shadow: 0 0 0 0 rgba(63,191,143,.6); animation: pulse-ring 2s infinite; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(63,191,143,.55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(63,191,143,0); } }

/* Mensaje de compra recibida: un destello al aparecer */
.done-hero .big { background: linear-gradient(90deg, #F4ECD8, #F3D27A, #F4ECD8); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine-text 2.4s ease-out 1; }
@keyframes shine-text { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Sin animaciones para quien prefiere movimiento reducido (los brillos fijos se mantienen) */
@media (prefers-reduced-motion: reduce) {
  .sparkles { display: none; }
  .bar > i::after { display: none; } #buyBtn, .pack[aria-pressed="true"] { animation: none; }
}

/* ============================================================
   Detalles llamativos
   ============================================================ */
/* Cuenta regresiva al sorteo */
.countdown { margin: 0 0 18px; }
.cd-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.cd-boxes { display: flex; gap: 8px; }
.cd-box {
  position: relative; flex: 1; max-width: 92px; text-align: center; padding: 10px 4px 8px; border-radius: 14px;
  background: linear-gradient(180deg, #1F2538, #131726); border: 1px solid rgba(212,167,44,.28);
  box-shadow: inset 0 1px 0 rgba(255,240,200,.08), 0 10px 24px -14px var(--glow);
}
.cd-box::after { content: ''; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: rgba(0,0,0,.35); }
.cd-box b { display: block; font-size: clamp(24px, 6vw, 32px); font-weight: 800; line-height: 1.1; color: var(--sun);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(243,210,122,.35); }
.cd-box small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.cd-box b.flip { animation: cd-flip .45s ease-out; }
@keyframes cd-flip { 0% { transform: translateY(-35%); opacity: .2; } 100% { transform: none; opacity: 1; } }
.countdown.urgent .cd-box { border-color: rgba(229,96,106,.55); box-shadow: inset 0 1px 0 rgba(255,240,200,.08), 0 10px 26px -12px rgba(229,96,106,.45); }
.countdown.urgent .cd-label { color: #F2A0A6; }

/* Etiqueta "Se están agotando" */
.hot-pill { font-style: normal; margin-left: 8px; font-size: 12px; font-weight: 700; color: #FFD9DC; background: rgba(229,96,106,.2);
  border: 1px solid rgba(229,96,106,.45); border-radius: 99px; padding: 2px 9px; animation: hot 1.8s ease-in-out infinite; }
@keyframes hot { 50% { background: rgba(229,96,106,.35); } }

/* Confeti */
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; border-radius: inherit; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 12px; border-radius: 2px; opacity: 0;
  animation: fall 2s cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), 520px) rotate(var(--rot)); }
}

/* Los boletos aparecen uno a uno al confirmar */
.stubs.reveal .stub { opacity: 0; animation: stub-in .5s cubic-bezier(.2,.9,.3,1.3) forwards; }
@keyframes stub-in { 0% { opacity: 0; transform: translateY(14px) scale(.7) rotate(-6deg); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stubs.reveal .stub { opacity: 1; }
}

/* ============================================================
   Promociones, sorteo en vivo y ganadores
   ============================================================ */
.promo-tag { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 800; color: #0B1F17; background: var(--mint); border-radius: 99px; padding: 2px 8px; }
.pack[aria-pressed="true"] .promo-tag { background: #0B1F17; color: #8BE0BE; }
.pack .p s { opacity: .55; font-weight: 500; margin-right: 2px; }
.promo-box { border: 1px dashed rgba(63,191,143,.55); background: var(--mint-soft); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.promo-box b { color: #8BE0BE; }
.promo-box ul { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.promo-hint { margin: -4px 0 12px; font-size: 14px; color: #8BE0BE; }
.promo-hint[hidden] { display: none; }
.stub.gift { background: var(--mint); color: #0B1F17; }
.stub.gift::after { content: '✦'; position: absolute; top: -9px; right: -6px; width: auto; height: auto; margin: 0; background: none; color: var(--sun); font-size: 13px; }
.winner-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.winner-note .btn { margin-left: auto; }

.draw-stage { text-align: center; padding: 48px 0 24px; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.draw-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--sun); background: var(--sun-soft); border: 1px solid rgba(212,167,44,.35); border-radius: 99px; padding: 5px 14px; margin: 0 0 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); display: inline-block; animation: pulse 1.2s infinite; box-shadow: 0 0 10px var(--red); }
.draw-title { font-size: clamp(30px, 7vw, 56px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px; line-height: 1.05;
  background: linear-gradient(180deg, #FFF8E8 30%, #E9CF8A 120%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.reels { display: inline-flex; gap: clamp(6px, 2vw, 14px); margin: 10px 0 26px; padding: 18px clamp(12px, 3vw, 22px); border-radius: 24px;
  background: linear-gradient(180deg, #1F2538, #0F1220); border: 1px solid rgba(212,167,44,.35);
  box-shadow: 0 0 0 6px rgba(212,167,44,.06), 0 30px 80px -20px rgba(212,167,44,.35), inset 0 1px 0 rgba(255,240,200,.08); }
.reel { width: clamp(54px, 15vw, 96px); height: clamp(76px, 21vw, 132px); border-radius: 16px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0B0E18 0%, #1A2033 50%, #0B0E18 100%); border: 1px solid rgba(255,240,200,.08); }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; height: 30%; pointer-events: none; }
.reel::before { top: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), transparent); }
.reel::after { bottom: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent); }
.reel b { font-size: clamp(40px, 11vw, 78px); font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; line-height: 1; }
.reel.land { border-color: rgba(243,210,122,.6); box-shadow: 0 0 24px -4px rgba(243,210,122,.55), inset 0 0 18px rgba(243,210,122,.12); }
.reel.land b { color: var(--sun); text-shadow: 0 0 22px rgba(243,210,122,.6); animation: land .5s cubic-bezier(.2,.9,.3,1.4); }
@keyframes land { 0% { transform: translateY(-40%) scale(1.25); } 100% { transform: none; } }
.draw-info { min-height: 90px; }
.winner-card { display: inline-flex; flex-direction: column; gap: 2px; padding: 16px 30px; border-radius: 18px; background: var(--card); border: 1px solid rgba(212,167,44,.4);
  box-shadow: 0 18px 50px -18px var(--glow); animation: stub-in .6s cubic-bezier(.2,.9,.3,1.3); }
.winner-card span { color: var(--sun); font-weight: 700; }
.winner-card b { font-size: 26px; }
.winner-card small { color: var(--ink-2); font-size: 15px; }
.draw-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.winners { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wcard { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  background-image: linear-gradient(180deg, rgba(255,240,200,.035), transparent 40%); transition: transform .2s, box-shadow .2s; }
.wcard:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px var(--glow); }
.wim { width: 84px; height: 84px; border-radius: 14px; overflow: hidden; flex: none; background: var(--wine); }
.wim img { width: 100%; height: 100%; object-fit: cover; }
.wim.ph { background: repeating-linear-gradient(-45deg, var(--wine) 0 10px, #6A1A25 10px 20px); }
.wbd h3 { margin: 0; font-size: 16px; }
.wnum { font-size: 30px; font-weight: 800; color: var(--sun); line-height: 1.1; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(243,210,122,.3); }
.wbd .dt { font-size: 13px; color: var(--ink-2); }
@media (max-width: 480px) { .nav .nav-opt { display: none; } }

/* ============================================================
   Bloque informativo bajo la foto
   Escritorio: foto + bloque a la izquierda, información a la derecha.
   Móvil: foto, información y compra, y después este bloque.
   ============================================================ */
.hero { grid-template-areas: "media" "info" "extra"; }
.hero-media { grid-area: media; }
.hero-info { grid-area: info; min-width: 0; }
.hero-extra { grid-area: extra; display: grid; gap: 14px; align-content: start; }
@media (min-width: 880px) {
  .hero { grid-template-areas: "media info" "extra info"; grid-template-rows: auto 1fr; row-gap: 18px; }
  .hero-media { position: relative; top: auto; }
  .hero-info { grid-row: 1 / span 2; }
}
.xstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xstats > div { text-align: center; padding: 12px 6px 10px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  background-image: linear-gradient(180deg, rgba(255,240,200,.04), transparent 60%); }
.xstats b { display: block; font-size: 22px; font-weight: 800; color: var(--sun); font-variant-numeric: tabular-nums; line-height: 1.15; }
.xstats small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.xcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px;
  background-image: linear-gradient(180deg, rgba(255,240,200,.035), transparent 40%); }
.xcard h3 { margin: 0 0 10px; font-size: 17px; }
.xsteps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.xsteps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: start; }
.xsteps li::before { content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: var(--on-gold); background: var(--sun); box-shadow: 0 0 14px -2px rgba(243,210,122,.5); }
.xsteps b { font-size: 15px; }
.xsteps span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.xtrust { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.xtrust li { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.xtrust li > span:first-child { color: var(--sun); }
.xtrust a { color: var(--sun); }
.xshare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 4px; }
.xshare > span { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
@media (max-width: 480px) { .xshare > span { flex-basis: 100%; } }
