/* ==================================================================
   Sitio público - estilos propios (complementan a Tailwind)
   Todos los colores salen de las variables del tema (temas.css).
   ================================================================== */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* El sitio ya es oscuro por diseño. Declararlo evita que Samsung Internet
   (y el "modo oscuro forzado" de Chrome Android) re-coloreen la página:
   eso oscurecía los degradados y dejaba casi invisible el "30 MILLONES". */
:root { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark; } }
html, body { max-width: 100%; overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

body {
  background-color: rgb(var(--b-950));
  background-image:
    radial-gradient(circle at 15% 50%, rgb(var(--b-500) / 0.15) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgb(var(--g-400) / 0.10) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgb(var(--b-900) / 0.80) 0%, transparent 80%);
  background-attachment: fixed;
}
/* iOS no soporta bien background-attachment: fixed */
@supports (-webkit-touch-callout: none) { body { background-attachment: scroll; } }

/* Contenedor con márgenes laterales fijos y seguros en móvil */
.wrap { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

/* Tréboles flotantes de fondo */
.clover-particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.clover {
  position: absolute; display: block; bottom: -50px;
  color: rgb(var(--b-500) / 0.15); font-size: 2rem;
  animation: floatUp linear infinite;
  text-shadow: 0 0 10px rgb(var(--b-500) / 0.2);
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(-120vh) rotate(360deg) scale(1.2); opacity: 0; }
}
.watermark {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: min(40vw, 40rem); color: rgb(var(--b-500)); opacity: .05;
  pointer-events: none; z-index: 0; line-height: 1;
}

/* Texto oro 3D */
.text-3d-gold {
  /* Color sólido de respaldo por si el navegador anula el degradado */
  color: rgb(var(--g-400));
  background: linear-gradient(to bottom, rgb(var(--g-claro)) 0%, rgb(var(--g-400)) 30%, rgb(var(--g-700)) 70%, rgb(var(--g-400)) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  forced-color-adjust: none;
  filter: drop-shadow(0 6px 15px rgb(var(--g-400) / 0.3)) drop-shadow(0 2px 2px rgba(0,0,0,.8));
  /* El degradado se recorta a la caja del texto: este margen interno evita que la
     última letra (ej. la "S" de MILLONES, más aún en cursiva) se vea cortada. */
  display: inline-block; padding: .04em .14em .06em .06em; max-width: 100%;
}
/* Monto gigante: escala fluida para que nunca se salga de la pantalla */
.premio-gigante { font-size: clamp(2.6rem, 13vw, 10rem); line-height: 1; overflow-wrap: anywhere; }
.premio-gigante.vt { font-size: clamp(2.5rem, 12.5vw, 5rem); }
@media (min-width: 1024px) { .premio-gigante.vt { font-size: clamp(3.2rem, 5.2vw, 5.4rem); } }

/* Panel cristalino */
.glass-card {
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgb(var(--g-400) / 0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), inset 0 0 20px rgb(var(--g-400) / 0.05);
}

/* Boleto VIP */
.vip-ticket {
  background: linear-gradient(135deg, rgba(20,20,20,.95) 0%, rgba(10,10,10,.95) 100%);
  border: 2px solid rgb(var(--g-400));
  position: relative;
  box-shadow: 0 10px 30px rgb(var(--g-400) / 0.2), inset 0 0 30px rgb(var(--g-400) / 0.05);
}
.vip-ticket::before, .vip-ticket::after {
  content: ''; position: absolute; top: 40%; width: 30px; height: 30px;
  background: rgb(var(--b-950)); border-radius: 50%;
  box-shadow: inset 0 5px 10px rgba(0,0,0,.8); z-index: 10;
}
.vip-ticket::before { left: -16px; border-right: 2px solid rgb(var(--g-400)); }
.vip-ticket::after  { right: -16px; border-left: 2px solid rgb(var(--g-400)); }

.hologram-line {
  background: linear-gradient(90deg, transparent, rgb(var(--g-400) / 0.3), transparent);
  height: 2px; width: 100%; position: absolute; left: 0;
  animation: scanline 3s linear infinite; pointer-events: none;
}
@keyframes scanline { 0% { top: 0; opacity: 0; } 50% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* Tragamonedas */
.slot-machine-box {
  background: linear-gradient(to bottom, #111 0%, #222 20%, #111 80%, #000 100%);
  box-shadow: inset 0 10px 20px rgba(0,0,0,.9), 0 0 15px rgb(var(--g-400) / 0.3);
}
.slot-reel { width: clamp(3.4rem, 17vw, 5rem); height: clamp(4.4rem, 22vw, 6.5rem); font-size: clamp(2.3rem, 11vw, 3.6rem); }
@keyframes rollSpin {
  0%   { transform: translateY(-40%); filter: blur(3px); }
  100% { transform: translateY(40%);  filter: blur(3px); }
}
.is-rolling { animation: rollSpin .1s linear infinite alternate; }

@keyframes shimmer { 100% { transform: translateX(100%); } }
.shimmer { animation: shimmer 2.5s infinite; }

/* Tablero de números: casillas cuadradas y grandes, letra monoespaciada legible.
   Columnas: 5 (celular) · 8 · 10 · 12 · 16 (pantalla grande). La cuadrícula tiene
   su propio desplazamiento para no alargar la página. */
.num-scroll {
  max-height: min(68vh, 34rem); overflow-y: auto; overscroll-behavior-y: auto;
  padding: .35rem .35rem .5rem .15rem; margin-inline: -.15rem;
  scrollbar-width: thin; scrollbar-color: rgb(var(--g-400) / .7) transparent;
  border-radius: 1rem;
}
.num-grid { display: grid; gap: .5rem; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (min-width: 640px)  { .num-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .6rem; } }
@media (min-width: 768px)  { .num-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .num-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: .65rem; } }
@media (min-width: 1280px) { .num-grid { grid-template-columns: repeat(16, minmax(0, 1fr)); } }
.num-btn {
  aspect-ratio: 1 / 1; width: 100%; padding: 0;
  font-family: "Space Mono", ui-monospace, Menlo, Consolas, monospace; font-weight: 700;
  font-size: clamp(1rem, 4.6vw, 1.2rem); letter-spacing: .02em; line-height: 1;
  border-radius: .8rem;
  border: 1px solid rgb(var(--b-500) / 0.55);
  background: linear-gradient(to bottom, rgb(var(--b-800) / 0.75), rgb(var(--b-900) / 0.85));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 6px rgba(0,0,0,.35);
  transition: transform .12s, background .12s, box-shadow .12s, border-color .12s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.num-grid.c4 .num-btn { font-size: clamp(.85rem, 3.7vw, 1.05rem); letter-spacing: 0; }
@media (hover: hover) {
  .num-btn:hover:not(:disabled) { background: rgb(var(--b-700)); border-color: rgb(var(--g-400) / .7); transform: translateY(-2px); }
}
.num-btn:active:not(:disabled) { transform: scale(.94); }
.num-btn:focus-visible { outline: 2px solid rgb(var(--g-300)); outline-offset: 2px; }
.num-btn.sel {
  background: linear-gradient(to bottom, rgb(var(--g-300)), rgb(var(--g-500)));
  color: #000; border-color: rgb(var(--g-200));
  box-shadow: 0 0 18px rgb(var(--g-400) / 0.6), inset 0 1px 0 rgba(255,255,255,.5);
}
.num-btn:disabled { cursor: not-allowed; box-shadow: none; }
.num-btn.vendido { background: rgba(0,0,0,.55); color: rgba(255,255,255,.28); border-color: rgba(255,255,255,.07); text-decoration: line-through; text-decoration-thickness: 2px; }
.num-btn.apartado { background: rgba(245, 158, 11, .07); color: rgba(253, 230, 138, .5); border: 1px dashed rgba(245, 158, 11, .5); }

/* Leyenda del tablero */
.ley { width: 1rem; height: 1rem; border-radius: .3rem; display: inline-block; }
.ley-libre { background: rgb(var(--b-900)); border: 1px solid rgb(var(--b-500)); }
.ley-tuyo { background: rgb(var(--g-400)); box-shadow: 0 0 8px rgb(var(--g-400) / .6); }
.ley-apartado { background: rgba(245, 158, 11, .1); border: 1px dashed rgba(245, 158, 11, .7); }
.ley-vendido { background: #000; border: 1px solid rgba(255,255,255,.15); }

/* Rangos (000-099, 100-199...): rejilla compacta sin scroll horizontal */
.rangos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .35rem; }
@media (min-width: 640px) { .rangos { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .45rem; } }
.rangos button { padding: .55rem .1rem !important; font-size: .75rem !important; font-family: "Space Mono", ui-monospace, monospace; }
.filtro-term summary { list-style: none; }
.filtro-term summary::-webkit-details-marker { display: none; }

/* Centenas: desplazamiento horizontal en móvil en lugar de desbordar */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroll-x::-webkit-scrollbar { height: 4px; }

/* Portada compacta en celular */
.cinta-roja { padding: .4rem 1rem; box-shadow: 0 0 20px rgba(220,38,38,.5); }
.cinta-roja span { font-size: .78rem; }
@media (min-width: 640px) { .cinta-roja { padding: .75rem 2.5rem; box-shadow: 0 0 30px rgba(220,38,38,.6); } .cinta-roja span { font-size: 1.5rem; } }
.info-dato { display: flex; align-items: center; gap: .6rem; background: rgba(0,0,0,.4); padding: .55rem .6rem; border-radius: 1rem; border: 1px solid rgba(255,255,255,.1); min-width: 0; }
.info-icono { flex-shrink: 0; width: 2.1rem; height: 2.1rem; border-radius: .7rem; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.info-etq { display: block; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.info-val { display: block; font-size: .82rem; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .info-dato { padding: 1rem; gap: 1rem; }
  .info-icono { width: 3rem; height: 3rem; font-size: 1.5rem; border-radius: .8rem; }
  .info-etq { font-size: .65rem; }
  .info-val { font-size: 1.15rem; }
}
.contador > div { background: #000; border-top: 1px solid rgba(255,255,255,.1); border-radius: .8rem; padding: .35rem 0; font-size: 1.3rem; line-height: 1.1; }
.contador > div.seg { border: 1px solid rgb(var(--g-400) / 0.5); }
.contador small { display: block; font-family: var(--f-sans); font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--b-400)); margin-top: .1rem; }
.contador > div.seg small { color: rgb(var(--g-300)); }
@media (min-width: 640px) { .contador > div { font-size: 1.9rem; padding: .75rem 0; border-radius: 1rem; } .contador small { font-size: .62rem; margin-top: .25rem; } }

/* Encabezado: el nombre completo siempre legible (sin "EL TREB...") */
/* En pantallas muy angostas (≤379px) la frase puede ocupar 2 líneas antes que cortarse */
.marca-sub { font-size: .55rem; letter-spacing: .04em; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.marca-nombre { font-size: 1.05rem; letter-spacing: .02em; margin-top: .2rem; white-space: nowrap; }
@media (min-width: 380px) { .marca-sub { font-size: .58rem; letter-spacing: .14em; white-space: nowrap; } .marca-nombre { font-size: 1.25rem; } }
@media (min-width: 640px) { .marca-sub { font-size: .65rem; letter-spacing: .25em; } .marca-nombre { font-size: 1.9rem; margin-top: .25rem; } }
@media (min-width: 1024px) { .marca-nombre { font-size: 2.25rem; } }

/* Imágenes completas (banners y foto del premio): se ven enteras, en su proporción
   real, sin recortes ni relleno difuminado. Nunca más altas que la pantalla. */
.foto-completa {
  display: block; width: auto; height: auto; max-width: 100%; margin-inline: auto;
  object-fit: contain; object-position: center;
  max-height: min(60vh, 32rem);
  border-radius: 1.25rem; border: 1px solid rgb(var(--g-400) / 0.25);
  box-shadow: 0 0 40px -12px rgb(var(--g-400) / 0.5), 0 18px 40px rgba(0,0,0,.45);
}
/* Banners: las diapositivas se apilan en la misma celda; el espacio toma el alto
   de la imagen más alta y cada una se centra (sin recortarse). */
.banner-slot { position: relative; display: grid; }
.banner-slot a { display: block; }
.banner-slide { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.banner-slide.on { opacity: 1; visibility: visible; z-index: 1; }
.banner-slide .foto-completa { max-height: min(55vh, 30rem); }
/* Tamaño elegido en Configuración › Apariencia (la imagen siempre completa) */
.bt-mediano .banner-slide .foto-completa { max-height: min(40vh, 18rem); }
.bt-pequeno .banner-slide .foto-completa { max-height: min(30vh, 12rem); }
@media (min-width: 1024px) {
  .bt-mediano .banner-slide .foto-completa { max-height: 20rem; }
  .bt-pequeno .banner-slide .foto-completa { max-height: 14rem; }
}
.banner-dots { display: flex; justify-content: center; gap: .35rem; margin-top: .6rem; grid-row: 2; }
.banner-dots button { width: .55rem; height: .55rem; border-radius: 9999px; background: rgba(255,255,255,.35); }
.banner-dots button.on { background: rgb(var(--g-400)); width: 1.3rem; }
/* En computador, varios banners del mismo espacio se muestran en columnas */
@media (min-width: 1024px) {
  .banner-cols { gap: 1rem; align-items: center; }
  .banner-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .banner-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .banner-cols .banner-slide { grid-area: auto; opacity: 1; visibility: visible; }
  .bt-grande.banner-cols .banner-slide .foto-completa { max-height: 26rem; }
  .banner-cols .banner-dots { display: none; }
}

/* Banner vertical dentro del widget de pago (diseño Vitrina): encima en celular, a la izquierda en computador */
.pago-con-banner { display: grid; gap: 1rem; }
.pago-banner .banner-slot { justify-items: center; }
@media (min-width: 1024px) {
  .pago-con-banner { grid-template-columns: fit-content(34%) minmax(0, 1fr); gap: 1.25rem; align-items: center; }
  #pago .pago-banner .banner-slide .foto-completa { max-height: 22rem; border-radius: 1.5rem; }
}

/* Menú de rifas (principal + "Hoy"): fichas deslizables en celular, en fila en computador */
.rifas-menu { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; align-items: stretch; }
/* Celular: en vez de todas las fichas, una sola línea con la rifa actual y "Otras rifas" (panel desde abajo) */
.rifa-actual { display: none; }
@media (max-width: 639.98px) {
  .rifas-menu { display: none; }
  .rifa-actual { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .5rem .55rem .5rem .6rem; border-radius: 1rem;
    background: rgba(0,0,0,.45); border: 1px solid rgb(var(--g-400) / .45); color: inherit; }
  .rifa-actual:active { transform: scale(.99); }
}
.rifa-actual-ico { flex: none; width: 2.1rem; height: 2.1rem; border-radius: .7rem; display: grid; place-items: center;
  background: rgb(var(--g-400) / .15); color: rgb(var(--g-300)); font-size: .95rem; }
.rifa-actual-btn { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .6rem; border-radius: .7rem;
  background: rgb(var(--g-400)); color: #000; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; }
.rifa-actual-btn b { background: rgba(0,0,0,.2); border-radius: .4rem; padding: 0 .3rem; }
.rifas-lista { display: grid; gap: .4rem; max-height: 65vh; overflow-y: auto; }
.rifas-lista-grupo { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: rgb(var(--g-300)); padding: .5rem .25rem .1rem; }
.rifa-fila { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 1rem; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); }
.rifa-fila.on { border-color: rgb(var(--g-400)); background: rgb(var(--g-400) / .12); }
.rifa-fila .rifa-tit { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rifa-fila .rifa-est { flex: none; }
.rifas-grupo { flex: none; align-self: center; font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: rgb(var(--g-300)); padding: 0 .25rem 0 .5rem; }
.rifa-chip { flex: none; display: grid; gap: .1rem; min-width: 9.5rem; max-width: 15rem; padding: .55rem .8rem; border-radius: 1rem; background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.1); transition: border-color .2s, background .2s; }
.rifa-chip:hover { border-color: rgb(var(--g-400) / .5); }
.rifa-chip.on { border-color: rgb(var(--g-400)); background: rgb(var(--g-400) / .12); box-shadow: 0 0 18px rgb(var(--g-400) / .25); }
.rifa-hora { font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--g-300)); }
.rifa-tit { font-weight: 800; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rifa-est { justify-self: start; font-size: .62rem; font-weight: 900; text-transform: uppercase; padding: .1rem .4rem; border-radius: .4rem; }
.est-abierta { background: rgb(var(--b-500) / .25); color: rgb(var(--b-200)); }
.est-proxima { background: rgb(var(--g-400) / .2); color: rgb(var(--g-200)); }
.est-cerrada { background: rgba(255,255,255,.08); color: #94a3b8; }

/* Carrito flotante y botón de WhatsApp: nunca se superponen */
#floatingCart { transition: transform .35s ease, opacity .35s ease; }
#floatingCart.oculto { transform: translateY(140%); opacity: 0; pointer-events: none; }
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 45; transition: bottom .35s ease;
}
body.cart-on .wa-float { bottom: calc(var(--cart-h, 9.6rem) + .6rem); }
@media (min-width: 640px) { body.cart-on .wa-float { bottom: calc(var(--cart-h, 6.6rem) + .6rem); } }
/* Con el carrito abierto el pie de página crece por dentro (su fondo llega hasta el borde),
   así el carrito no tapa los enlaces y no queda una franja vacía debajo del pie. */
body.cart-on > footer { padding-bottom: 10.5rem; }
@media (min-width: 640px) { body.cart-on > footer { padding-bottom: 8rem; } }

/* Modales */
.modal { position: fixed; inset: 0; z-index: 60; display: none; }
.modal.abierto { display: flex; }
.modal-panel { max-height: calc(100dvh - 1.5rem); overflow-y: auto; overscroll-behavior: contain; }
body.modal-open { overflow: hidden; }

/* Campos de formulario */
.campo {
  width: 100%; background: rgba(0,0,0,.5); color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: .9rem;
  padding: .8rem 1rem; font-size: 1rem; /* 16px evita zoom en iPhone */
  transition: border-color .15s, box-shadow .15s;
}
.campo:focus { outline: none; border-color: rgb(var(--g-400)); box-shadow: 0 0 0 3px rgb(var(--g-400) / 0.2); }
.campo::placeholder { color: rgba(255,255,255,.35); }

/* Zona de carga de comprobante */
.dropzone { border: 2px dashed rgb(var(--g-400) / 0.4); border-radius: 1rem; background: rgba(0,0,0,.35); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: rgb(var(--g-400)); background: rgb(var(--g-400) / 0.06); }

/* Barra de progreso OCR */
.progress { height: .4rem; border-radius: 9999px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, rgb(var(--b-400)), rgb(var(--g-400))); transition: width .2s; }

/* Toasts */
#toastContainer { position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 70; width: min(92vw, 24rem); display: flex; flex-direction: column; gap: .5rem; pointer-events: none; }
.toast { pointer-events: auto; animation: toastIn .3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Barra de desplazamiento */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.3); }
::-webkit-scrollbar-thumb { background: rgb(var(--g-400)); border-radius: 10px; }

/* Accesibilidad: respetar a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .clover-particles { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }


/* ==================================================================
   Ajustes propios del tema "Neón Carbono"
   (los colores ya cambian solos con las variables; aquí van los
   detalles de estilo: textura, cromo y tipografía deportiva)
   ================================================================== */
[data-tema="carbono"] body {
  background-color: #050505;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 136, 0.09) 0%, transparent 70%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.035) 0%, transparent 50%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 6px);
}
[data-tema="carbono"] .glass-card {
  background: rgba(15, 15, 15, 0.82);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(0, 255, 136, 0.03);
}
[data-tema="carbono"] .text-3d-gold {
  background: linear-gradient(to bottom, #ffffff 0%, #e0e0e0 35%, #9e9e9e 62%, #f5f5f5 100%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 28px rgba(0, 255, 136, 0.28)) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8));
}
[data-tema="carbono"] .font-marquee { font-weight: 900; font-style: italic; letter-spacing: -0.02em; text-transform: uppercase; }
[data-tema="carbono"] .premio-gigante { font-style: italic; }
[data-tema="carbono"] .vip-ticket {
  background: linear-gradient(135deg, #0f0f0f 0%, #050505 100%);
  border-color: rgba(0, 255, 136, 0.55);
}
[data-tema="carbono"] .clover { color: rgba(0, 255, 136, 0.06); text-shadow: none; filter: blur(1px); }
[data-tema="carbono"] .watermark { opacity: 0.03; }
[data-tema="carbono"] .num-btn:not(:disabled) { border-color: rgba(158, 158, 158, 0.45); background: #0f0f0f; }
[data-tema="carbono"] .num-btn:hover:not(:disabled) { background: #1a1a1a; border-color: rgb(var(--g-400)); }
[data-tema="carbono"] .num-btn.sel { background: #00ff88; border-color: #00ff88; box-shadow: 0 0 20px rgba(0, 255, 136, 0.6); }
[data-tema="carbono"] .slot-machine-box { box-shadow: inset 0 10px 20px rgba(0,0,0,.9), 0 0 18px rgba(0, 255, 136, 0.25); }

/* Logos de medios de pago */
.pago-logo { width: 2.75rem; height: 2.75rem; border-radius: .8rem; object-fit: cover; background: #fff; flex-shrink: 0; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.pago-logo.ancho { width: 4.1rem; object-fit: contain; background: #32005f; }
.pago-logo.sm { width: 2rem; height: 2rem; border-radius: .55rem; }
.pago-logo.ancho.sm { width: 3rem; }

/* Foto del premio (diseños Centrado y Dividido): completa, sin recorte */
.premio-foto { margin: 0; display: flex; justify-content: center; }
.premio-foto .foto-completa { max-height: min(62vh, 40rem); border-radius: 1.5rem; }
@media (min-width: 1024px) { .premio-foto.dividido .foto-completa { max-height: min(80vh, 44rem); } }

/* ==================================================================
   Diseño "Vitrina"
   Celular: texto → foto → estado → TABLERO → máquina y resumen
   Computador: a la izquierda foto completa y debajo valor/cuenta regresiva;
   a la derecha premio, máquina y "Tus números"; el tablero ocupa todo el ancho debajo.
   ================================================================== */
.vitrina {
  display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "texto" "foto" "estado" "tablero" "panel";
}
.vt-texto   { grid-area: texto; min-width: 0; }
.vt-foto    { grid-area: foto; margin: 0; min-width: 0; display: flex; justify-content: center; align-items: flex-start; }
.vt-estado  { grid-area: estado; min-width: 0; }
.vt-panel   { grid-area: panel; min-width: 0; }
.vt-tablero { grid-area: tablero; min-width: 0; }
/* En celular la portada se ve completa pero más pequeña, para llegar rápido al tablero */
.vt-foto .foto-completa { max-height: min(50vh, 26rem); }
@media (min-width: 640px) {
  .vitrina { gap: 1.25rem; }
  .vt-foto .foto-completa { max-height: min(45vh, 24rem); }
}
@media (min-width: 1024px) {
  .vitrina {
    column-gap: 2rem; row-gap: 1.25rem;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    /* Fila 1: foto | premio grande (el texto crece y se centra al alto de la foto).
       Fila 2: valor y cuenta regresiva | máquina y "Tus números" (mismo alto, sin huecos). */
    grid-template-rows: auto auto auto;
    grid-template-areas: "foto texto" "estado panel" "tablero tablero";
    align-items: stretch;
  }
  .vt-foto { align-items: center; }
  .vt-foto .foto-completa { max-height: min(calc(100vh - 8rem), 36rem); border-radius: 1.75rem; }
  /* El premio llena la columna derecha: título, monto y cinta más grandes en computador */
  .vitrina:not(.sin-foto) .vt-texto { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; container-type: inline-size; padding: .5rem 0; }
  .vitrina:not(.sin-foto) .vt-texto .hero-lema { font-size: clamp(1.6rem, 5.2cqi, 2.6rem); line-height: 1.15; margin-bottom: .25rem; }
  .vitrina:not(.sin-foto) .premio-gigante.vt { font-size: clamp(3.6rem, 13.5cqi, 7.5rem); line-height: .95; }
  .vitrina:not(.sin-foto) .vt-texto .cinta-roja { padding: 1rem 2.75rem; }
  .vitrina:not(.sin-foto) .vt-texto .cinta-roja span { font-size: clamp(1.4rem, 3.6cqi, 2rem); }
  .vt-panel { align-content: stretch; }
  .vt-panel > * { height: 100%; }
  .vitrina.sin-foto { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-template-areas: "texto texto" "estado panel" "tablero tablero"; }
  .vitrina.sin-foto.sin-panel { grid-template-areas: "texto texto" "estado estado" "tablero tablero"; }
  .vitrina:not(.sin-foto).sin-panel { grid-template-rows: auto auto; grid-template-areas: "foto texto" "estado estado" "tablero tablero"; }
}
.vitrina .vt-texto .cinta-roja { margin-top: .25rem; }
.vitrina .slot-reel { width: clamp(3.2rem, 15vw, 4.4rem); height: clamp(4rem, 19vw, 5.4rem); font-size: clamp(2.1rem, 10vw, 3rem); }

/* Barra de números ocupados */
.progreso { height: .6rem; border-radius: 9999px; background: rgba(255,255,255,.08); overflow: hidden; border: 1px solid rgba(255,255,255,.06); }
.progreso > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--b-400)), rgb(var(--g-400))); box-shadow: 0 0 12px rgb(var(--g-400) / .5); transition: width .6s ease; }


/* Aviso en "Consultar mi reserva" cuando hay una reserva guardada esperando confirmación */
[data-abrir="consultaModal"].con-reserva { position: relative; }
[data-abrir="consultaModal"].con-reserva::after {
  content: ''; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%;
  background: rgb(var(--g-400)); box-shadow: 0 0 0 2px #000; animation: pulsoReserva 1.6s ease-in-out infinite;
}
@keyframes pulsoReserva { 50% { transform: scale(1.35); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { [data-abrir="consultaModal"].con-reserva::after { animation: none; } }


/* Diseño Dividido: el monto ocupa todo el ancho; debajo, información a la izquierda
   y foto completa a la derecha. En celular conserva el mismo tamaño de foto que Vitrina. */
.dividido-layout {
  display: grid; gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "premio" "estado" "foto" "accion";
}
.dividido-contenido { display: contents; }
.dividido-layout .hero-badge,
.dividido-layout .hero-lema,
.dividido-layout .hero-subtitulo { display: none; }
.dividido-layout .hero-premio { grid-area: premio; display: block; width: 100%; margin: 0; text-align: center; }
.dividido-layout .hero-estado { grid-area: estado; width: 100%; max-width: none; margin: 0; }
.dividido-layout .dividido-foto { grid-area: foto; margin: 0; align-self: stretch; align-items: center; }
.dividido-layout .hero-accion { grid-area: accion; justify-self: center; margin-top: 0; }
.dividido-layout .foto-completa,
.premio-foto .foto-completa { max-height: min(50vh, 26rem); }
@media (min-width: 1024px) {
  .dividido-layout {
    column-gap: 2rem; row-gap: 1.25rem;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "premio premio" "estado foto" "accion foto";
    align-items: stretch;
  }
  .dividido-layout .hero-premio .premio-gigante { font-size: clamp(4.5rem, 10vw, 9rem); line-height: .95; }
  .dividido-layout .dividido-foto .foto-completa { max-height: min(72vh, 42rem); }
  .dividido-layout .hero-accion { justify-self: start; }
  .premio-foto:not(.dividido) .foto-completa { max-height: min(62vh, 40rem); }
}


/* Neón Carbono: adaptación profesional del prototipo tema2.txt sin datos fijos,
   dependencias externas ni cambios en la estructura segura del sitio. */
[data-tema="carbono"] body { color: #e5e7eb; }
[data-tema="carbono"] ::selection { background: #00ff88; color: #020202; }
[data-tema="carbono"] .glass-card {
  background:
    linear-gradient(145deg, rgba(18,18,18,.94), rgba(5,5,5,.96)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 2px, transparent 2px 6px);
  border-color: rgba(255,255,255,.09);
  box-shadow: 0 22px 55px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.035);
}
[data-tema="carbono"] .glass-card:hover { border-color: rgba(0,255,136,.22); }
[data-tema="carbono"] .info-dato {
  background: linear-gradient(145deg, rgba(5,5,5,.9), rgba(20,20,20,.88));
  border-color: rgba(255,255,255,.08);
}
[data-tema="carbono"] .info-icono { border: 1px solid rgba(0,255,136,.35); box-shadow: 0 0 18px rgba(0,255,136,.14); }
[data-tema="carbono"] .slot-machine-box {
  background: linear-gradient(180deg, #020202, #171717 48%, #020202);
  border-color: rgba(0,255,136,.42);
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(0,255,136,.45);
}
[data-tema="carbono"] .maquina-card { border-top-color: rgba(0,255,136,.55); }
[data-tema="carbono"] .vip-ticket { border-left: 4px solid #00ff88; overflow: hidden; }
[data-tema="carbono"] .vip-ticket::before,
[data-tema="carbono"] .vip-ticket::after { border-color: rgba(0,255,136,.55); }
[data-tema="carbono"] .cinta-roja { box-shadow: 0 0 24px rgba(0,255,136,.12), 0 12px 30px rgba(0,0,0,.5); }
[data-tema="carbono"] .rifa-chip,
[data-tema="carbono"] .rifa-actual,
[data-tema="carbono"] .rifa-fila { background: linear-gradient(145deg, rgba(18,18,18,.95), rgba(5,5,5,.95)); }
[data-tema="carbono"] .rifa-chip.on,
[data-tema="carbono"] .rifa-fila.on { box-shadow: 0 0 24px rgba(0,255,136,.16), inset 0 0 18px rgba(0,255,136,.035); }
[data-tema="carbono"] .foto-completa { border-color: rgba(0,255,136,.3); box-shadow: 0 0 45px -18px rgba(0,255,136,.65), 0 22px 50px rgba(0,0,0,.7); }
[data-tema="carbono"] .progreso > span { background: linear-gradient(90deg, #00c853, #00ff88, #e0e0e0); }
[data-tema="carbono"] .pago-con-banner > .glass-card { border-top: 1px solid rgba(0,255,136,.3); }
[data-tema="carbono"] .modal-panel { border-color: rgba(0,255,136,.25); }
