/* ===== Sorteos 618 — Estilos (pensado primero para celular) =====
   Cambia los colores aquí para ajustar toda la página. */
:root {
  --bg: #050805;
  --surface: #0c120c;
  --card: #111911;
  --line: #243322;
  --text: #f3f7ef;
  --muted: #a5b59e;
  --brand: #7cc41f;        /* verde del logo */
  --brand-hi: #c8f01e;     /* verde limón brillante */
  --brand-dk: #3d8a0b;
  --ink: #061003;          /* texto sobre verde */
  --grad: linear-gradient(180deg, #dcf74a 0%, #9bd425 42%, #5aa911 70%, #3d8a0b 100%);
  --pending: #f5a524;
  --paid: #3b4a3a;
  --danger: #ef4444;
  --radius: 14px;
  --display: 'Montserrat', 'Arial', sans-serif;
  --band-font: 'Montserrat', 'Arial Black', Arial, sans-serif;   /* títulos de franjas */
  --band-bg: #6fae33;      /* verde plano de las franjas */
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --col: 640px;            /* ancho máximo del contenido */
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--brand-hi); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
.mono { font-variant-numeric: tabular-nums; }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Header: link · logo · link ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: #000;
  border-top: 4px solid var(--brand);
  box-shadow: 0 2px 0 var(--brand-dk), 0 8px 24px rgba(0,0,0,.5);
}
.site-header .bar {
  max-width: var(--col); margin: 0 auto; height: 58px; padding: 0 14px;
  display: grid; grid-template-columns: 1fr 86px 1fr; align-items: center;
}
.site-header .side {
  color: var(--text); font-family: var(--display); font-size: 12px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .4px; font-weight: 800; }
.site-header .side.r { text-align: right; }
.site-header .side:hover { color: var(--brand-hi); }
.site-header .logo { justify-self: center; align-self: start; margin-top: 2px; }
.site-header .logo img {
  width: 78px; height: 78px; border-radius: 50%;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.7));
}
.site-header .logo .txt { font-family: var(--display); color: var(--brand-hi); font-size: 18px; margin-top: 16px; font-weight: 800; }

/* ---------- Bandas de sección ---------- */
.band {
  background: var(--band-bg); color: #fff;
  font-family: var(--band-font); font-weight: 900; text-transform: uppercase;
  letter-spacing: .18em; text-align: center; font-size: clamp(15px, 4.3vw, 24px); line-height: 1.25;
  padding: 14px 16px; margin: 0;
  text-shadow: 0 2px 3px rgba(0,0,0,.35);
}
.band.dark {
  background: #000; color: #fff;
  border-top: 2px solid var(--band-bg); border-bottom: 2px solid var(--band-bg);
  font-size: clamp(16px, 4.8vw, 24px); letter-spacing: .1em; padding: 16px;
}
.band.dark b { color: var(--brand-hi); font-weight: 900; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 18px;
  font: 800 15px var(--display); text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; text-align: center;
  background: var(--grad); color: var(--ink);
  box-shadow: 0 4px 0 var(--brand-dk), 0 8px 20px rgba(0,0,0,.35);
  transition: transform .08s, filter .15s, box-shadow .08s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--brand-dk); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.outline { background: rgba(0,0,0,.75); color: var(--brand-hi); border: 2px solid var(--brand); box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.btn.dark { background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn.wa { background: #25d366; color: #052e15; box-shadow: 0 4px 0 #139243; }
.btn.sm { padding: 8px 12px; font-size: 12px; border-radius: 10px; box-shadow: none; letter-spacing: .4px; }
.btn.block { width: 100%; }

/* ---------- Tarjetas y formularios ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; padding: 13px 14px;
  background: #000; color: var(--text);
  border: 1.5px solid var(--line); border-radius: 12px;
  font: 16px var(--font);   /* 16px evita zoom en iPhone */
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,196,31,.2); }
textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 12px; }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; max-width: var(--col); margin: 0 auto;
  min-height: 520px; height: 78vh; max-height: 760px;
  background: radial-gradient(circle at 50% 40%, #1f3a0b 0%, #050805 70%);
  overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .logo-big { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 64%; max-width: 300px; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.1) 55%, rgba(0,0,0,.9) 100%); }
.hero .hero-top { position: absolute; z-index: 2; left: 16px; right: 16px; top: 44px; display: grid; gap: 12px; }
.hero .hero-bottom { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 18px; text-align: center; }
.hero h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1.1; margin: 0 0 4px; text-shadow: 0 2px 10px rgba(0,0,0,.8); }
.hero .date { color: var(--brand-hi); font-family: var(--display); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; font-weight: 800; }

/* ---------- Página del sorteo ---------- */
.r-head { text-align: center; padding: 50px 16px 14px; }
.r-head h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(22px, 6.4vw, 32px); line-height: 1.12; margin: 0; }
.r-head .date { color: var(--brand-hi); font-family: var(--display); font-size: 17px; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; font-weight: 800; }
.r-head .down { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }

.carousel { position: relative; }
.carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .track > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; background: var(--surface); }
.carousel .track img { width: 100%; height: 100%; object-fit: cover; }
.carousel .track .ph { display: grid; place-items: center; background: radial-gradient(circle, #1f3a0b 0%, #050805 70%); }
.carousel .track .ph img { width: 62%; height: auto; object-fit: contain; }
.carousel .dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.carousel .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.carousel .dots i.on { background: var(--brand-hi); width: 20px; border-radius: 4px; }
.carousel .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; cursor: pointer; }
.carousel .nav.p { left: 8px; } .carousel .nav.n { right: 8px; }

.stats-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.countdown { display: flex; gap: 6px; justify-content: center; margin: 14px 0 4px; }
.countdown div { background: #000; border: 1.5px solid var(--brand-dk); border-radius: 12px; padding: 6px 4px; min-width: 66px; text-align: center; }
.countdown b { display: block; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--brand-hi); line-height: 1.2; }
.countdown span { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.progress { height: 24px; background: #000; border: 2px solid var(--brand-dk); border-radius: 999px; overflow: hidden; box-shadow: 0 0 14px rgba(124,196,31,.25); }
.progress > div { height: 100%; background: var(--grad); width: 0; transition: width .6s; border-radius: 999px; box-shadow: 0 0 12px rgba(200,240,30,.6); }
.progress-label { display: flex; justify-content: space-between; font-size: 14px; color: var(--text); margin-top: 7px; font-weight: 700; }
.progress-label span:first-child { color: var(--brand-hi); }

.packages { background: #000; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.packages .ph { background: var(--band-bg); color: #fff; font-family: var(--band-font); font-weight: 900; text-transform: uppercase; text-align: center; padding: 9px; letter-spacing: .15em; font-size: 13px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.packages button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: none; border: 0; border-top: 1px solid var(--line); color: var(--text);
  padding: 12px 16px; font: 700 16px var(--font); cursor: pointer; text-transform: uppercase;
}
.packages button:first-of-type { border-top: 0; }
.packages button b { color: var(--brand-hi); font-family: var(--display); font-weight: 800; font-size: 17px; }
.packages button:active { background: var(--surface); }
.packages .hint { text-align: center; font-size: 12px; color: var(--muted); padding: 8px; border-top: 1px solid var(--line); }

.notes { text-align: center; font-weight: 700; text-transform: uppercase; font-size: 15px; line-height: 1.45; white-space: pre-line; margin: 20px 0; }
.notes .hl { color: var(--brand-hi); }
.alert { text-align: center; white-space: pre-line; font-weight: 600; font-size: 14px; margin: 20px 0; padding: 16px; border: 1.5px dashed var(--pending); border-radius: var(--radius); }
.alert h4 { margin: 0 0 6px; color: var(--pending); font-family: var(--display); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }

/* Selector de boletos */
.picker { padding: 16px 16px 8px; }
.picker .lucky .btn { font-size: 13px; letter-spacing: .5px; padding: 12px 10px; }
.picker .search { display: flex; gap: 8px; }
.picker .search input { text-align: center; font-weight: 700; font-size: 18px; letter-spacing: 2px; border-color: var(--brand-dk); }
.picker .lucky { display: flex; gap: 8px; margin-top: 10px; }
.picker .lucky select { width: 118px; flex: 0 0 auto; }
.picker .lucky .btn { flex: 1; }
.legend { display: flex; gap: 10px 14px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--muted); margin: 14px 0 10px; align-items: center; font-weight: 600; }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 5px; }
.legend .l-free { background: #000; border: 1.5px solid var(--brand); }
.legend .l-sel { background: var(--grad); }
.legend .l-pen { background: var(--pending); }
.legend .l-paid { background: var(--paid); }
.legend label { margin: 0; display: flex; gap: 6px; align-items: center; cursor: pointer; font-size: 12px; font-weight: 600; }
.legend input { width: 18px; height: 18px; accent-color: var(--brand); }

.pages { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 6px; scrollbar-width: none; }
.pages::-webkit-scrollbar { display: none; }
.pages button { flex: 0 0 auto; background: #000; color: var(--muted); border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; font: 700 12px var(--font); cursor: pointer; }
.pages button.on { background: var(--grad); color: var(--ink); border-color: var(--brand); }

.grid-box { max-height: 62vh; overflow-y: auto; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 8px; background: var(--surface); overscroll-behavior: contain; }
.grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(6, 1fr); } }
.grid button {
  background: #000; color: var(--text);
  border: 1.5px solid var(--brand-dk); border-radius: 8px;
  padding: 10px 0; font: 700 14px var(--font); cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.grid button.sel { background: var(--grad); color: var(--ink); border-color: var(--brand-hi); }
.grid button.pen { background: var(--pending); color: #2b1a00; border-color: var(--pending); opacity: .45; cursor: not-allowed; }
.grid button.paid { background: var(--paid); color: #9aa89a; border-color: var(--paid); opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.grid.hide-taken button.pen, .grid.hide-taken button.paid { display: none; }

/* Barra inferior de selección */
.cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #000; border-top: 3px solid var(--brand);
  box-shadow: 0 -10px 30px rgba(0,0,0,.6);
  transform: translateY(110%); transition: transform .25s;
  padding-bottom: env(safe-area-inset-bottom);
}
.cart.show { transform: none; }
.cart .inner { max-width: var(--col); margin: 0 auto; padding: 10px 14px; }
.cart .chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
.cart .chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--grad); color: var(--ink); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 13px; cursor: pointer; }
.cart .line { display: flex; align-items: center; gap: 12px; }
.cart .sum { flex: 1; }
.cart .sum b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--brand-hi); line-height: 1.1; }
.cart .sum span { font-size: 12px; color: var(--muted); }
.cart .btn { padding: 13px 22px; }
body.has-cart { padding-bottom: 130px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.75); display: flex; align-items: flex-end; justify-content: center; }
.modal > .card { width: 100%; max-width: var(--col); max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@media (min-width: 700px) { .modal { align-items: center; } .modal > .card { border-radius: 20px; border-bottom: 1px solid var(--line); max-width: 460px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.modal h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }

/* Folio / pagos */
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.st-pending { background: rgba(245,165,36,.15); color: var(--pending); }
.st-paid, .st-available { background: rgba(124,196,31,.18); color: var(--brand-hi); }
.st-expired, .st-cancelled { background: rgba(239,68,68,.15); color: var(--danger); }
.nums { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.nums span { background: #000; border: 1.5px solid var(--brand-dk); border-radius: 8px; padding: 4px 10px; font-weight: 800; font-variant-numeric: tabular-nums; }
.arrow-down { width: 0; height: 0; margin: 14px auto; border-left: 22px solid transparent; border-right: 22px solid transparent; border-top: 22px solid var(--brand); }

.acct { background: #000; border: 2px solid var(--brand-dk); border-radius: var(--radius); overflow: hidden; }
.acct + .acct { margin-top: 14px; }
.acct .t { background: var(--band-bg); color: #fff; font-family: var(--band-font); font-weight: 900; text-transform: uppercase; text-align: center; padding: 9px; letter-spacing: .15em; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.acct .note { text-align: center; color: var(--pending); font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 8px 12px 0; }
.acct dl { margin: 0; padding: 6px 12px 12px; }
.acct .f { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.acct .f:last-child { border-bottom: 0; }
.acct dt { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.acct dd { margin: 0; font-weight: 700; font-size: 16px; word-break: break-all; font-variant-numeric: tabular-nums; }
.acct .cp { flex: 0 0 auto; font-size: 11px; font-weight: 700; color: var(--brand-hi); border: 1px solid var(--brand-dk); border-radius: 8px; padding: 3px 8px; text-transform: uppercase; }
.acct .f.copied .cp { background: var(--brand); color: var(--ink); }

/* Inicio: lista y FAQ */
.raffles { display: grid; gap: 14px; padding: 18px 0; }
.raffle-card { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 10px; color: var(--text); }
.raffle-card .img { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface); }
.raffle-card .img img { width: 100%; height: 100%; object-fit: cover; }
.raffle-card h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 16px; margin: 0 0 4px; line-height: 1.2; }

.faq { padding: 8px 16px 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 30px 16px 0; position: relative; font-family: var(--display); text-transform: uppercase; color: var(--brand-hi); font-size: 16px; line-height: 1.25; letter-spacing: .3px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--text); }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; color: var(--text); white-space: pre-line; }

.about { position: relative; text-align: center; padding: 40px 20px; min-height: 340px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 50%, #1f3a0b 0%, #050805 75%); }
.about .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.about::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); z-index: 1; }
@media (min-width: 700px) { .about { min-height: 460px; } }
.about p { position: relative; z-index: 2; font-family: var(--display); text-transform: uppercase; font-size: 18px; letter-spacing: 1px; line-height: 1.4; margin: 0; white-space: pre-line; text-shadow: 0 2px 8px #000; font-weight: 800; }

.contact { text-align: center; padding: 26px 16px 30px; }
.contact .phone { font-family: var(--display); font-size: 24px; color: var(--text); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 5px; font-weight: 800; }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.socials a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--brand-dk); }
.socials svg { width: 26px; height: 26px; fill: var(--brand-hi); }

/* Footer */
.site-footer { margin-top: 36px; }
.site-footer .wa-band { display: block; background: var(--band-bg); color: #fff; text-align: center; padding: 16px; font-family: var(--band-font); font-weight: 900; text-transform: uppercase; font-size: 16px; letter-spacing: .12em; line-height: 1.4; text-shadow: 0 2px 3px rgba(0,0,0,.35); }
.site-footer .wa-band u { text-underline-offset: 4px; }
.site-footer .bottom { background: #000; text-align: center; padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.site-footer .bottom a { color: var(--text); text-decoration: underline; font-weight: 600; margin: 0 8px; }
.site-footer .bottom .links { margin-bottom: 10px; }

/* Toast */
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 70; background: #000; border: 1.5px solid var(--brand); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.6); width: max-content; max-width: 92vw; font-weight: 600; font-size: 14px; }
.toast.err { border-color: var(--danger); }

.floating-wa { position: fixed; right: 14px; bottom: 16px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
body.has-cart .floating-wa { display: none; }
.floating-wa svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Admin (escritorio y celular) ---------- */
body.admin { --col: 1100px; }
.admin .site-header .bar { grid-template-columns: 1fr auto; height: 58px; }
.tabs { display: flex; gap: 6px; margin: 16px 0; flex-wrap: wrap; }
.tabs button { background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: 600 14px var(--font); cursor: pointer; }
.tabs button.on { background: var(--grad); color: var(--ink); border-color: var(--brand); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat span { font-size: 12px; color: var(--muted); }
.stat b { display: block; font-size: 22px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface); color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
tr:nth-child(even) td { background: rgba(255,255,255,.015); }
td .nums span { font-size: 12px; padding: 2px 6px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto auto; gap: 8px; margin-bottom: 12px; }
@media (max-width: 800px) { .filters { grid-template-columns: 1fr 1fr; } }
.admin input, .admin select, .admin textarea { font-size: 15px; padding: 11px 12px; }
.acct-edit { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; background: var(--surface); }
.upl { display: flex; gap: 8px; }
.upl input[type=text], .upl textarea { flex: 1; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Carrusel (2 filas en movimiento constante, se arrastra con el dedo) ---------- */
.marquee { padding: 16px 0 18px; background: var(--bg); overflow: hidden; }
.mrow { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.mrow:active { cursor: grabbing; }
.mrow + .mrow { margin-top: 10px; }
.mtrack { display: flex; width: max-content; will-change: transform; }
.mtrack img {
  flex: 0 0 auto; width: 140px; aspect-ratio: 3 / 4; height: auto; margin-right: 10px;
  object-fit: cover; border-radius: 14px; border: 2px solid var(--brand-dk); background: var(--surface);
  cursor: pointer; -webkit-user-drag: none; pointer-events: auto;
}
@media (min-width: 700px) { .mtrack img { width: 200px; } }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 12px; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 22px; cursor: pointer; }
.cthumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 10px; }
.cthumbs .it { position: relative; }
.cthumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.cthumbs .ctl { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; justify-content: space-between; }
.cthumbs .ctl button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0,0,0,.8); color: #fff; cursor: pointer; font-size: 14px; }
.cthumbs .ctl button.x { background: var(--danger); }

/* ---------- Barras de scroll con el estilo del sitio ---------- */
html { scrollbar-color: var(--brand-dk) #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-hi), var(--brand-dk)); border-radius: 10px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
.grid-box { scrollbar-width: thin; scrollbar-color: var(--brand) var(--surface); }
.grid-box::-webkit-scrollbar { width: 8px; }
.grid-box::-webkit-scrollbar-track { background: var(--surface); border-radius: 10px; margin: 8px 0; }
.grid-box::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--brand-hi), var(--brand-dk)); border-radius: 10px; border: 0; }
/* Casilla "Solo disponibles" con el estilo del sitio (sin cuadro blanco) */
.legend input[type=checkbox] {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; margin: 0;
  background: #000; border: 1.5px solid var(--brand); border-radius: 5px; cursor: pointer;
  display: inline-grid; place-content: center;
}
.legend input[type=checkbox]:checked { background: var(--grad); border-color: var(--brand-hi); }
.legend input[type=checkbox]:checked::after { content: '✓'; color: var(--ink); font-size: 13px; font-weight: 900; line-height: 1; }

/* ---------- Contacto ---------- */
.contact-list { display: grid; gap: 12px; max-width: 360px; margin: 0 auto; }
.ci { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-align: left; }
.ci .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.ci .ic svg { width: 26px; height: 26px; fill: #fff; }
.ci.wa .ic { background: #25d366; }
.ci.fb .ic { background: #1877f2; }
.ci small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ci b { font-family: var(--display); font-weight: 800; font-size: 19px; }
.ci:active { transform: scale(.98); }

/* ---------- Máquina de la suerte ---------- */
.machine { position: relative; margin-top: 14px; padding: 18px 14px 16px; border-radius: 18px; text-align: center;
  background: radial-gradient(120% 80% at 50% 0%, #1b3309 0%, #070b07 70%); border: 2px solid var(--brand-dk);
  box-shadow: 0 0 24px rgba(124,196,31,.18); overflow: hidden; }
.machine h3 { margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: clamp(14px, 4.2vw, 19px); letter-spacing: .05em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; }
.machine h3 span { font-size: 24px; }
.machine p { margin: 4px 0 14px; color: var(--muted); font-size: 13px; }
.machine .qty { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.machine .qty button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); font: 900 15px var(--font); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.machine .qty button.on { border-color: var(--brand-hi); background: var(--grad); color: var(--ink); transform: scale(1.12); box-shadow: 0 0 16px rgba(200,240,30,.45); }
.machine .reel { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; min-height: 0; margin: 0 0 12px; }
.machine .reel:empty { display: none; }
.machine .reel span { min-width: 64px; padding: 8px 6px; border-radius: 10px; background: #000; border: 2px solid var(--brand); font: 900 17px var(--font); color: var(--brand-hi); font-variant-numeric: tabular-nums; }
.machine .reel.spin span { color: #fff; border-color: #ffd700; animation: blink .12s linear infinite; }
@keyframes blink { 50% { opacity: .55; } }
.spin-wrap { position: relative; border-radius: 14px; padding: 3px; animation: rainbow 1.6s linear infinite; }
.spin-btn { position: relative; width: 100%; border: 0; border-radius: 12px; padding: 15px 12px; cursor: pointer;
  font: 900 15px var(--font); letter-spacing: .05em; text-transform: uppercase; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #2f7d06, #7cc41f 55%, #b6e61a); text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow: 0 4px 16px rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; gap: 8px; }
.spin-btn:active { transform: scale(.98); }
.spin-btn span { font-size: 20px; }
@keyframes rainbow { 0% { background: #ffd700; } 16% { background: #ff1493; } 33% { background: #00bfff; } 50% { background: #7cc41f; } 66% { background: #bf00ff; } 83% { background: #ff4500; } 100% { background: #ffd700; } }
@media (prefers-reduced-motion: reduce) { .spin-wrap { animation: none; background: var(--brand-hi); } }
.or-sep { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; margin: 16px 0 10px; }

.band { text-wrap: balance; }

/* ---------- Video de inicio ---------- */
.video-wrap { position: relative; max-width: 440px; margin: 16px auto; padding: 0 16px; }
.video-wrap video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: cover; border-radius: 18px; border: 2px solid var(--brand-dk); background: #000; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.video-wrap .sound { position: absolute; right: 28px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 20px; cursor: pointer; }

/* ---------- Premios por lugar ---------- */
.prizes { display: grid; gap: 10px; margin: 16px 0 6px; }
.pz { position: relative; padding: 14px 16px 14px 18px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); overflow: hidden; }
.pz::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.pz1 { border-color: #d4af37; background: linear-gradient(135deg, rgba(212,175,55,.16), var(--card) 60%); }
.pz1::before { background: #d4af37; }
.pz2::before { background: #c0c0c0; }
.pz3::before { background: #cd7f32; }
.pz .pl { display: block; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pz1 .pl { color: #f3d36b; }
.pz b { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.25; margin-top: 3px; }
.pz1 b { font-size: 20px; }
.pz .win { display: block; margin-top: 6px; font-weight: 700; color: var(--brand-hi); }
.pz .win em { font-style: normal; font-family: var(--display); font-size: 20px; }
.lotref { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 4px; }

/* Título de portada */
.hero .kicker { display: inline-block; margin-bottom: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid #d4af37; color: #f3d36b; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.cd-title { text-align: center; margin-top: 16px; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Galería "Conoce el premio" (video + fotos, se desliza) ---------- */
.gallery { position: relative; max-width: 440px; margin: 16px auto; }
.gtrack { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gtrack::-webkit-scrollbar { display: none; }
.gslide { position: relative; flex: 0 0 100%; scroll-snap-align: center; padding: 0 16px; }
.gslide video, .gslide img { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 72vh; object-fit: cover; border-radius: 18px; border: 2px solid var(--brand-dk); background: #000; }
.gslide .sound { position: absolute; right: 28px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 19px; cursor: pointer; }
.gnav { position: absolute; top: calc(50% - 18px); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 22px; cursor: pointer; }
.gnav.p { left: 22px; } .gnav.n { right: 22px; }
.gdots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.gdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: width .2s; }
.gdots i.on { width: 22px; border-radius: 4px; background: var(--brand-hi); }

.hero-btns { display: grid; gap: 10px; padding-top: 16px; }

.pnote { margin: 4px 0 6px; padding: 10px 14px; border-radius: 12px; text-align: center; background: rgba(245,165,36,.12); border: 1.5px dashed var(--pending); color: #ffc65c; font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
