/* ============================================================================
   QUECHIMBAPARCE by LevelBarber — sistema de diseño (vanilla, sin frameworks)
   Negro · Amarillo · Blanco — urbano, directo, premium. Un solo archivo,
   compartido por el sitio público y el panel admin.
   ============================================================================ */

:root {
  --black:      #0B0B0D;
  --surface:    #18181B;
  --surface-2:  #202024;
  --surface-3:  #29292E;
  --border:     #2C2C31;
  --border-2:   #3A3A40;
  --white:      #FFFFFF;
  --text:       #FFFFFF;
  --text-2:     #A1A1AA;
  --text-3:     #6F6F76;

  --yellow:     #FFD21F;
  --yellow-2:   #FFDF5C;
  --yellow-dk:  #E0B300;
  --on-yellow:  #14140F;

  --success:    #22C55E; --success-soft: rgba(34,197,94,.14);
  --danger:     #EF4444; --danger-soft:  rgba(239,68,68,.14);
  --warning:    #F59E0B; --warning-soft: rgba(245,158,11,.14);
  --info:       #38BDF8; --info-soft:    rgba(56,189,248,.14);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 24px; --r-pill: 999px;
  --sh-sm: 0 1px 3px rgba(0,0,0,.4);
  --sh-md: 0 6px 20px rgba(0,0,0,.35);
  --sh-lg: 0 16px 40px rgba(0,0,0,.45);
  --sh-yellow: 0 8px 24px rgba(255,210,31,.22);
  --ease: cubic-bezier(.4,0,.2,1);
  --topbar-h: 66px;
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--yellow); color: var(--on-yellow); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 34px 0; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.06; }
.h2 { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; }
.sub { color: var(--text-2); font-size: 16px; margin-top: 10px; }
.muted { color: var(--text-2); }
.tiny { font-size: 12.5px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 800; font-size: 14.5px; letter-spacing: .01em; transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), opacity .15s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--yellow); color: var(--on-yellow); box-shadow: var(--sh-yellow); }
.btn--primary:hover { background: var(--yellow-2); }
.btn--dark { background: var(--white); color: var(--black); }
.btn--dark:hover { background: var(--text-2); }
.btn--ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn--lg { height: 54px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-pill); }

/* ---------- Tarjetas / superficies ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.card--pad { padding: 22px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); }

/* ---------- Campos de formulario ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.input, select.input, textarea.input {
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  border-radius: var(--r-md); height: 46px; padding: 0 14px; font-size: 14.5px; font-family: inherit;
  transition: border-color .15s var(--ease);
}
textarea.input { height: auto; padding: 12px 14px; resize: vertical; min-height: 96px; }
.input:focus { outline: none; border-color: var(--yellow); }
.input::placeholder { color: var(--text-3); }
.field__hint { font-size: 12px; color: var(--text-3); }
.field__err { font-size: 12.5px; color: var(--danger); display: none; }
.field.has-err .input { border-color: var(--danger); }
.field.has-err .field__err { display: block; }

/* ---------- Badges / estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.badge--activa { background: var(--success-soft); color: var(--success); }
.badge--agotada { background: var(--danger-soft); color: var(--danger); }
.badge--finalizada { background: rgba(255,255,255,.1); color: var(--text-2); }
.badge--cancelada { background: rgba(255,255,255,.06); color: var(--text-3); }
.badge--borrador { background: var(--warning-soft); color: var(--warning); }
.badge--pill-yellow { background: var(--yellow); color: var(--on-yellow); }

/* ---------- Barra de progreso (boletos vendidos) ---------- */
.prog { height: 10px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.prog__bar { height: 100%; background: linear-gradient(90deg, var(--yellow-dk), var(--yellow)); border-radius: var(--r-pill); transition: width .4s var(--ease); }

/* ---------- Tablas (admin) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
table.table th { text-align: left; padding: 12px 14px; background: var(--surface-2); color: var(--text-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table tr:last-child td { border-bottom: none; }
table.table tr:hover td { background: rgba(255,255,255,.02); }

/* ---------- Toasts ---------- */
#chp-toasts { position: fixed; top: 18px; right: 18px; z-index: 999; display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.toast { background: var(--surface-3); border: 1px solid var(--border-2); border-left: 4px solid var(--yellow); color: var(--text); padding: 13px 16px; border-radius: var(--r-md); box-shadow: var(--sh-lg); font-size: 13.5px; font-weight: 600; animation: chp-in .25s var(--ease); }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warning); }
@keyframes chp-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Sitio público: header / footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,11,13,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__row { height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-weight: 900; font-size: 15px; flex-shrink: 0; }
.brand small { display: block; font-size: 10px; font-weight: 700; color: var(--text-3); letter-spacing: .04em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { font-size: 14px; font-weight: 700; color: var(--text-2); transition: color .15s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--yellow); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-nav-toggle { display: none; }
@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-nav-toggle { display: inline-flex; }
}

.site-footer { border-top: 1px solid var(--border); padding: 40px 0 26px; margin-top: 60px; color: var(--text-2); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--yellow); }
.footer-cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-cols h4 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 50px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto -10%; height: 120%; background: radial-gradient(60% 60% at 50% 0%, rgba(255,210,31,.14), transparent 70%); pointer-events: none; }
.hero__content { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.hero__tag { margin-bottom: 16px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

/* ---------- Tarjeta de rifa ---------- */
.rifa-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .18s var(--ease), border-color .18s; }
.rifa-card:hover { transform: translateY(-3px); border-color: var(--border-2); }
.rifa-card__img { aspect-ratio: 16/10; background: var(--surface-2) center/cover no-repeat; position: relative; }
.rifa-card__badge { position: absolute; top: 12px; left: 12px; }
.rifa-card__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rifa-card__price { font-size: 22px; font-weight: 900; color: var(--yellow); }
.rifa-card__meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }

/* ---------- Stepper de compra ---------- */
.qty-stepper { display: flex; align-items: center; gap: 14px; }
.qty-stepper button { width: 42px; height: 42px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font-size: 20px; font-weight: 800; display: grid; place-items: center; }
.qty-stepper button:hover { border-color: var(--yellow); color: var(--yellow); }
.qty-stepper input { width: 70px; text-align: center; background: transparent; border: none; color: var(--text); font-size: 22px; font-weight: 900; }
.qty-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.qty-chip { padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface-2); font-weight: 800; font-size: 13.5px; }
.qty-chip.is-active { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }

/* ---------- Utilidades ---------- */
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: none; }
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: chp-skel 1.4s ease infinite; border-radius: var(--r-md); }
@keyframes chp-skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { text-align: center; padding: 50px 20px; color: var(--text-2); }

/* ---------- Panel admin: sidebar + topbar ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: var(--sidebar-w); flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .brand { padding: 6px 10px 20px; }
.admin-nav__link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-md); color: var(--text-2); font-weight: 700; font-size: 13.5px; }
.admin-nav__link:hover { background: var(--surface-2); color: var(--text); }
.admin-nav__link.is-active { background: var(--yellow); color: var(--on-yellow); }
.admin-nav__link svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-nav__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 800; padding: 16px 12px 6px; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { height: var(--topbar-h); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; background: rgba(11,11,13,.9); backdrop-filter: blur(8px); z-index: 20; }
.admin-content { padding: 28px 24px 60px; max-width: 1200px; }
.admin-page__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.kpi-card { padding: 18px; }
.kpi-card__label { font-size: 12px; color: var(--text-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.kpi-card__value { font-size: 28px; font-weight: 900; margin-top: 6px; }
.avatar { width: 34px; height: 34px; border-radius: var(--r-pill); background: var(--yellow); color: var(--on-yellow); display: grid; place-items: center; font-weight: 800; font-size: 13px; }

/* ---------- Modal / drawer sencillo ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-overlay.is-open { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-xl); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; padding: 26px; box-shadow: var(--sh-lg); }
.modal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal__close { background: var(--surface-2); border: none; color: var(--text-2); width: 32px; height: 32px; border-radius: var(--r-pill); font-size: 16px; }

@media (max-width: 760px) {
  .admin-sidebar { position: fixed; left: -260px; top: 0; z-index: 100; transition: left .2s var(--ease); box-shadow: var(--sh-lg); }
  .admin-sidebar.is-open { left: 0; }
  .admin-content { padding: 20px 16px 50px; }
}

/* ============================================================================
   ANIMACIONES, VIDEO, GALERÍA, CONTADOR, WHATSAPP Y COMPARTIR
   Agregado en la 3ª iteración (video + fotos + efectos).
   ============================================================================ */

/* ---------- Reveal al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .08s; }
.reveal--d2 { transition-delay: .16s; }
.reveal--d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Brillo que recorre el botón principal */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); animation: chp-shine 3.6s ease-in-out infinite;
}
@keyframes chp-shine { 0%, 65% { left: -120%; } 100% { left: 140%; } }

/* Pulso suave para llamar la atención */
@keyframes chp-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.pulse { animation: chp-pulse 2.2s var(--ease) infinite; }

/* ---------- Video del premio ---------- */
.media-box { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: #000; }
.media-box video, .media-box iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; object-fit: cover; background: #000; }
.media-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.media-tab { padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.media-tab.is-active { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.media-tab svg { width: 15px; height: 15px; }

/* ---------- Galería / carrusel con miniaturas ---------- */
.gal-main { position: relative; aspect-ratio: 4/3; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface-2) center/cover no-repeat; cursor: zoom-in; overflow: hidden; }
.gal-main__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.gal-main__nav:hover { background: var(--yellow); color: var(--on-yellow); }
.gal-main__nav--prev { left: 12px; } .gal-main__nav--next { right: 12px; }
.gal-main__count { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.6); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; backdrop-filter: blur(4px); }
.gal-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumb { width: 74px; height: 74px; flex-shrink: 0; border-radius: 10px; background: var(--surface-2) center/cover no-repeat; border: 2px solid transparent; cursor: pointer; transition: border-color .18s, transform .18s var(--ease); }
.gal-thumb:hover { transform: translateY(-2px); }
.gal-thumb.is-active { border-color: var(--yellow); }

/* Lightbox a pantalla completa */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.93); z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open { display: flex; animation: chp-in .2s var(--ease); }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--r-md); }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); font-size: 18px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text); display: grid; place-items: center; }
.lightbox__nav:hover { background: var(--yellow); color: var(--on-yellow); }
.lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; }

/* ---------- Contador regresivo ---------- */
.countdown { display: flex; gap: 10px; }
.cd-cell { flex: 1; text-align: center; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 12px 4px; }
.cd-cell__n { font-size: 26px; font-weight: 900; line-height: 1; color: var(--yellow); font-variant-numeric: tabular-nums; }
.cd-cell__l { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); font-weight: 800; margin-top: 6px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 120; width: 56px; height: 56px; border-radius: 999px; background: #25D366; color: #fff; display: none; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(37,211,102,.4); transition: transform .18s var(--ease); }
.wa-fab.is-on { display: flex; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before { content: ''; position: absolute; inset: 0; border-radius: 999px; background: #25D366; opacity: .55; animation: chp-wa 2.4s ease-out infinite; z-index: -1; }
@keyframes chp-wa { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Compartir ---------- */
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; transition: all .18s var(--ease); }
.share-btn:hover { color: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }
.share-btn svg { width: 17px; height: 17px; }

/* ---------- Botón de silencio ---------- */
.sound-toggle { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--border-2); background: transparent; color: var(--text-3); display: grid; place-items: center; flex-shrink: 0; }
.sound-toggle:hover { color: var(--yellow); border-color: var(--yellow); }
.sound-toggle svg { width: 16px; height: 16px; }

/* ---------- Elegir el número del boleto ---------- */
.modo-tabs { display:flex; gap:8px; margin-bottom:16px; }
.modo-tab { flex:1; padding:10px 12px; border-radius:var(--r-md); border:1px solid var(--border-2); background:var(--surface-2); color:var(--text-2); font-weight:800; font-size:13px; text-align:center; }
.modo-tab.is-active { background:var(--yellow); color:var(--on-yellow); border-color:var(--yellow); }
.num-buscador { display:flex; gap:8px; }
.num-buscador .input { flex:1; }
.num-estado { font-size:13px; font-weight:700; margin-top:10px; min-height:20px; }
.num-estado--libre { color:var(--success); }
.num-estado--ocupado { color:var(--danger); }
.num-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.num-chip { display:inline-flex; align-items:center; gap:7px; background:var(--yellow); color:var(--on-yellow); border:none; padding:7px 12px; border-radius:var(--r-pill); font-weight:900; font-size:13px; font-variant-numeric:tabular-nums; }
.num-chip button { background:rgba(0,0,0,.22); color:inherit; border:none; width:17px; height:17px; border-radius:999px; font-size:11px; line-height:1; display:grid; place-items:center; }
.num-sug { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.num-sug button { background:var(--surface-2); border:1px solid var(--border-2); color:var(--text-2); padding:6px 12px; border-radius:var(--r-pill); font-weight:800; font-size:12.5px; font-variant-numeric:tabular-nums; }
.num-sug button:hover { border-color:var(--yellow); color:var(--yellow); }

/* ═══ BOLETAS 3D ═══════════════════════════════════════════════════════════ */
/* La boleta usa medidas relativas (clamp) porque se ve en celular, en
   escritorio y además se captura a 3x para el PNG/PDF. */
.boletas-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr)); gap:30px; justify-items:center; }
.bol-escena { width:100%; max-width:460px; perspective:900px; touch-action:pan-y; }
.bol-wrap { transform-style:preserve-3d; transition:transform .15s cubic-bezier(.2,.8,.2,1); will-change:transform; }
.bol-ticket {
  position:relative; width:100%; aspect-ratio:2.1/1; border-radius:18px; overflow:hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05) 0%, transparent 42%),
    repeating-linear-gradient(45deg, #131315 0 2px, #0d0d10 2px 6px),
    linear-gradient(180deg, #1a1a1e 0%, #0a0a0c 100%);
  border:1px solid rgba(255,210,31,.4);
  box-shadow: 0 0 0 2px #08080a, 0 0 0 3px rgba(255,210,31,.45), 0 0 20px rgba(255,210,31,.18),
              0 15px 30px rgba(0,0,0,.9), inset 0 1px 1px rgba(255,255,255,.16);
  transform-style:preserve-3d;
}
.bol-ticket::before, .bol-ticket::after {
  content:""; position:absolute; top:50%; width:14px; height:24px; transform:translateY(-50%);
  background:var(--bg,#0B0B0D); border:1.5px solid rgba(255,210,31,.5); z-index:10;
}
.bol-ticket::before { left:-8px; border-radius:0 12px 12px 0; }
.bol-ticket::after { right:-8px; border-radius:12px 0 0 12px; }
.bol-brillo { position:absolute; inset:0; z-index:8; pointer-events:none;
  background:radial-gradient(360px circle at var(--bx,50%) var(--by,50%), rgba(255,255,255,.14), transparent 52%); }
.bol-tornillo { position:absolute; width:9px; height:9px; border-radius:50%; z-index:9; transform:translateZ(10px);
  background:radial-gradient(circle at 30% 30%, #fff 0%, #78786f 52%, #1a1a18 92%); box-shadow:0 1px 3px rgba(0,0,0,.8); }
.bol-tornillo.tl{top:10px;left:10px} .bol-tornillo.tr{top:10px;right:10px}
.bol-tornillo.bl{bottom:10px;left:10px} .bol-tornillo.br{bottom:10px;right:10px}
.bol-header { height:27%; padding:0 6%; display:flex; align-items:center; justify-content:space-between;
  border-bottom:1px solid rgba(255,210,31,.22); transform:translateZ(12px); }
.bol-marca { font-size:clamp(14px,4vw,22px); font-weight:900; letter-spacing:.5px; color:#fff; text-shadow:0 0 10px rgba(255,255,255,.3); }
.bol-badge { font-size:clamp(9px,2.4vw,12px); font-weight:800; color:var(--yellow);
  background:rgba(255,210,31,.1); border:1px solid rgba(255,210,31,.4); padding:2px 8px; border-radius:4px; font-variant-numeric:tabular-nums; }
.bol-contenido { height:73%; display:grid; grid-template-columns:1.15fr .95fr .9fr; gap:6px; padding:8px 4%; align-items:center; }
.bol-col { display:flex; flex-direction:column; justify-content:center; border-right:1px solid rgba(255,255,255,.07); padding-right:5px; min-width:0; }
.bol-col:last-child { border-right:none; }
.bol-label { font-size:clamp(6.5px,1.7vw,9px); text-transform:uppercase; letter-spacing:.5px; color:#8b8b84; font-weight:700; margin-bottom:2px; }
.bol-premio { font-size:clamp(11px,3vw,17px); font-weight:800; color:#fff; line-height:1.05; margin-bottom:5px;
  transform:translateZ(10px); overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.bol-fecha { font-size:clamp(9px,2.4vw,12px); font-weight:700; color:#d4d4cd; }
.bol-col--num { transform:translateZ(18px); }
.bol-numero { font-size:clamp(17px,5vw,30px); font-weight:900; color:#fff; line-height:.95;
  font-variant-numeric:tabular-nums; text-shadow:0 0 12px rgba(255,210,31,.35); }
.bol-estado { display:inline-flex; align-items:center; gap:3px; margin-top:5px; align-self:flex-start;
  background:rgba(255,210,31,.12); border:1px solid var(--yellow); color:var(--yellow);
  font-size:clamp(6.5px,1.7vw,9px); font-weight:800; padding:2px 5px; border-radius:3px; }
.bol-estado--pend { background:var(--warning-soft); border-color:var(--warning); color:var(--warning); }
.bol-col--qr { align-items:center; transform:translateZ(14px); }
.bol-qr-caja { padding:4px; background:#fff; border-radius:4px; box-shadow:0 0 10px rgba(255,210,31,.28);
  width:clamp(44px,12vw,62px); height:clamp(44px,12vw,62px); display:grid; place-items:center; overflow:hidden; }
.bol-qr-caja img, .bol-qr-caja canvas { width:100% !important; height:100% !important; display:block; }
.bol-qr-fallback { font-size:5px; line-height:1.25; color:#000; text-align:center; font-weight:700; }
.bol-codigo { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:clamp(5.5px,1.5vw,8px);
  color:#a8a89f; margin-top:4px; text-align:center; word-break:break-all; }
.bol-verif { font-size:clamp(5px,1.3vw,7px); color:#75756e; text-align:center; margin-top:1px; }
.bol-btn-png { margin-top:12px; width:100%; }

/* ═══ MODO DEMO / COBRO REAL ═══════════════════════════════════════════════ */
.mp-banda { border-radius:var(--r-md); padding:14px 16px; font-size:14px; }
.mp-banda b { display:block; font-size:15px; }
.mp-banda--demo { background:var(--warning-soft); color:var(--warning); }
.mp-banda--real { background:var(--success-soft); color:var(--success); }
/* Banda fija arriba del panel: tiene que verse sin buscarla. */
.admin-banda { background:var(--warning-soft); color:var(--warning); border-bottom:1px solid var(--warning);
  padding:11px 22px; font-size:13.5px; font-weight:700; }
.admin-banda a { color:inherit; text-decoration:underline; }
/* Aviso al comprador cuando la plataforma está en demostración. */
.demo-aviso { background:var(--warning-soft); color:var(--warning); border:1px solid var(--warning);
  border-radius:var(--r-md); padding:13px 16px; font-size:13.5px; font-weight:700; text-align:center; }
