/* ==========================================================================
   PREMIOS LA 99 — ESTILOS OFICIALES DE LA PLATAFORMA DE RIFAS Y LOTERÍA
   Diseño de Alta Gama: Entorno Blanco Puro con Paleta Oficial del Logo:
   Fucsia Neón, Azul Agua Marina y Toque de Rosa Pastel
   ========================================================================== */

:root {
  --bg-gradient: #ffffff;
  --fuchsia-primary: #db2777;
  --fuchsia-dark: #be185d;
  --fuchsia-light: #ec4899;
  --fuchsia-neon: #ff007f;
  --aqua-primary: #06b6d4;
  --aqua-dark: #0891b2;
  --aqua-light: #00d2ff;
  --aqua-mist: #ecfeff;
  --aqua-soft: #f0fdfa;
  --rose-primary: #f43f5e;
  --rose-soft: #fdf2f8;
  --rose-blush: #fff1f2;
  --rose-border: #fbcfe8;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --green-paid: #10b981;
  --amber-reserved: #f97316;
  --slot-paid-text-color: #cbd5e1;
  --card-bg: #ffffff;
  --card-border: rgba(6, 182, 212, 0.3);
  --card-shadow: 0 10px 30px -5px rgba(219, 39, 119, 0.08), 0 4px 14px -2px rgba(6, 182, 212, 0.08);
  --font-heading: 'Montserrat', 'Outfit', -apple-system, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.prize-cifras-desc {
  display: none !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: #ffffff;
  background-image: 
    radial-gradient(circle at 10% 15%, rgba(253, 242, 248, 0.75) 0%, transparent 35%),
    radial-gradient(circle at 90% 25%, rgba(236, 254, 255, 0.75) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(255, 241, 242, 0.6) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Efectos de fondo sutiles de aura luminosa */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(219, 39, 119, 0.035) 0%, transparent 30%),
    radial-gradient(circle at 85% 25%, rgba(6, 182, 212, 0.045) 0%, transparent 30%),
    radial-gradient(circle at 50% 70%, rgba(244, 63, 94, 0.025) 0%, transparent 35%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.2rem 1.2rem 7.5rem;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   TOP BAR DE NAVEGACIÓN RÁPIDA
   ========================================================================== */
.top-nav-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #db2777 0%, #ec4899 45%, #06b6d4 100%) 1;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem 1.2rem;
}

.top-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mini-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(219, 39, 119, 0.4));
}

.brand-mini-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.15rem;
  color: #0f172a;
  letter-spacing: 0.05em;
}

.brand-mini-name span {
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff007f, #db2777);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.35rem;
  box-shadow: 0 2px 6px rgba(255, 0, 127, 0.4);
}

/* Menú Central de Navegación Oficial (Boceto Cliente) */
.top-main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-nav-link {
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  position: relative;
}

.top-nav-link:hover {
  color: #db2777;
  background: #fdf2f8;
}

.top-nav-link.active {
  color: #be185d;
  background: linear-gradient(135deg, #fff5f7 0%, #fdf2f8 100%);
  border: 1.5px solid #db2777;
  box-shadow: 0 2px 10px rgba(219, 39, 119, 0.15);
}

body.theme-light .top-nav-link {
  color: #475569;
}

body.theme-light .top-nav-link:hover {
  color: #db2777;
  background: #fdf2f8;
}

body.theme-light .top-nav-link.active {
  color: #be185d;
  background: linear-gradient(135deg, #fff5f7 0%, #fdf2f8 100%);
  border-color: #db2777;
  box-shadow: 0 2px 10px rgba(219, 39, 119, 0.15);
}

/* Botón Directo de WhatsApp Oficial en Top Bar */
.top-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.55);
}

/* Atajos Rápidos de Redes Sociales en Barra Superior */
.top-social-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.top-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.top-social-btn.wa {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.5);
  color: #a7f3d0;
}
.top-social-btn.wa:hover {
  background: #25d366;
  color: #000;
  box-shadow: 0 0 12px rgba(37, 211, 102, 0.7);
  transform: translateY(-1px);
}

.top-social-btn.ig {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.5);
  color: #fbcfe8;
}
.top-social-btn.ig:hover {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #fff;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.7);
  transform: translateY(-1px);
}

.top-social-btn.fb {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  color: #bfdbfe;
}
.top-social-btn.fb:hover {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 0 12px rgba(24, 119, 242, 0.7);
  transform: translateY(-1px);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.top-btn:hover {
  background: rgba(255, 193, 7, 0.25);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

/* Botón de Alternancia de Tema (Modo Claro / Modo Oscuro) */
.top-btn.theme-btn {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.18), rgba(255, 0, 127, 0.18));
  border-color: #ffd700;
  color: #ffd700;
  padding: 0.32rem 0.65rem;
}

.top-btn.theme-btn:hover {
  background: linear-gradient(135deg, #ffd700, #ff007f);
  color: #000;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.6);
}

.theme-btn-label {
  font-size: 0.75rem;
  font-weight: 800;
}

.top-btn.admin-link {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border-color: #3b82f6;
  color: #93c5fd;
}

/* ==========================================================================
   BANNER PRINCIPAL: GRAN RIFA FESTIVA
   ========================================================================== */
.rifa-header-card {
  background: linear-gradient(180deg, rgba(16, 42, 88, 0.96) 0%, rgba(8, 22, 48, 0.98) 100%);
  border: 3px solid #ffc107;
  border-radius: 22px;
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(255, 193, 7, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
  padding: 1.8rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   LAYOUT SUPERIOR DE 3 COLUMNAS: REEL PROMO | MARCA Y TÍTULO | ÚLTIMO GANADOR
   Alineado armónicamente con el Título "LA 99"
   ========================================================================== */
.header-hero-layout {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
}

.header-center-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   CUADRO IZQUIERDO: REEL DE PUBLICIDAD DE LOS PRÓXIMOS EVENTOS (FORMATO REEL)
   ========================================================================== */
.hero-reel-box {
  background: rgba(8, 22, 48, 0.88);
  border: 1.5px solid rgba(0, 210, 255, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 210, 255, 0.3);
  backdrop-filter: blur(12px);
  padding: 0.65rem 0.65rem 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-reel-box:hover {
  transform: translateY(-3px);
  border-color: #00f0ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.5);
}

.reel-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(153, 27, 27, 0.95));
  border: 1px solid rgba(254, 202, 202, 0.6);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.45);
}

.live-dot-pulse {
  color: #ef4444;
  animation: pulseDotLive 1.3s infinite;
  font-size: 0.8rem;
}

@keyframes pulseDotLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(1.25); }
}

/* Contenedor Alargado Tipo Reel Smartphone */
.reel-box-preview {
  width: 100%;
  max-width: 146px;
  height: 215px; /* Alargado verticalmente para proporción auténtica de Reel */
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: #020712;
  border: 2px solid rgba(0, 210, 255, 0.55);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.9), 0 6px 18px rgba(0, 0, 0, 0.6);
}

.reel-box-preview::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  z-index: 4;
}

.reel-video-loop,
.reel-image-loop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.reel-box-preview:hover .reel-video-loop,
.reel-box-preview:hover .reel-image-loop {
  transform: scale(1.06);
}

.reel-play-overlay,
.reel-zoom-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  transition: background 0.2s ease;
}

.reel-zoom-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #db2777);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.7);
  transition: transform 0.2s ease;
}

.reel-box-preview:hover .reel-zoom-icon {
  transform: scale(1.18);
}

.reel-play-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f0ff, #0077b6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  padding-left: 2px;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.85);
  transition: transform 0.2s ease;
}

.reel-box-preview:hover .reel-play-icon {
  transform: scale(1.18);
}

.reel-box-info {
  width: 100%;
  max-width: 146px;
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.reel-box-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e2e8f0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.reel-action-btn {
  width: 100%;
  padding: 0.32rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #0077b6, #0096c7);
  border: 1px solid #48cae4;
  color: #fff;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.reel-action-btn:hover {
  background: linear-gradient(135deg, #0096c7, #00b4d8);
  box-shadow: 0 0 14px rgba(0, 180, 216, 0.7);
  transform: translateY(-1px);
}

/* ==========================================================================
   CARRUSEL INTERACTIVO DE REELS MULTI-EVENTO EN EL LOBBY
   ========================================================================== */
.reel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1.5px solid #06b6d4;
  color: #db2777;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  user-select: none;
}

.reel-nav-btn:hover,
.reel-nav-btn:active {
  background: #db2777;
  color: #ffffff;
  border-color: #db2777;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.55);
}

.reel-nav-prev {
  left: 6px;
  padding-right: 2px;
}

.reel-nav-next {
  right: 6px;
  padding-left: 2px;
}

.reel-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.4rem;
  width: 100%;
}

.reel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.reel-dot.active {
  width: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #db2777, #06b6d4);
  box-shadow: 0 0 8px rgba(219, 39, 119, 0.5);
}

body.theme-light .reel-dot {
  background: #e2e8f0;
}

body.theme-light .reel-dot.active {
  background: linear-gradient(135deg, #db2777, #06b6d4);
}

body.theme-light .reel-action-btn {
  background: linear-gradient(135deg, #06b6d4, #0284c7) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.22) !important;
}

body.theme-light .reel-action-btn:hover {
  background: linear-gradient(135deg, #db2777, #be185d) !important;
  border-color: #f472b6 !important;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.4) !important;
}

/* ==========================================================================
   CUADRO DERECHO: ÚLTIMO NÚMERO GANADOR DEL SORTEO ANTERIOR
   ========================================================================== */
.hero-winner-box {
  background: rgba(8, 22, 48, 0.88);
  border: 1.5px solid rgba(255, 215, 0, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.hero-winner-box:hover {
  transform: translateY(-3px);
  border-color: #ffd700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 28px rgba(255, 215, 0, 0.5);
}

.winner-box-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.95), rgba(180, 83, 9, 0.95));
  border: 1px solid rgba(254, 240, 138, 0.6);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.45);
}

.winner-box-ball-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 0.4rem;
  width: 100%;
}

.winner-balls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  flex-wrap: nowrap;
  position: relative;
  z-index: 2;
}

/* Balota 3D de Cada Dígito Ganador (Efecto Lotería de Lujo) */
.winner-digit-ball {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 26%, #ffffff 0%, #fffbe6 20%, #ffd700 55%, #d97706 82%, #78350f 100%);
  color: #0b0f19;
  border: 1.8px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(255, 215, 0, 0.7),
    inset -3px -3px 6px rgba(0, 0, 0, 0.5),
    inset 3px 3px 6px rgba(255, 255, 255, 0.95);
  cursor: default;
  user-select: none;
  position: relative;
  /* Animación rítmica escalonada de ampliación y brillo */
  animation: ballScaleExpand 2.2s infinite ease-in-out;
  animation-delay: calc(var(--ball-index, 0) * 0.25s);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Tamaños adaptativos según cantidad de dígitos */
.winner-digit-ball.digit-ball-large {
  width: 54px;
  height: 54px;
  font-size: 1.65rem;
}

.winner-digit-ball.digit-ball-medium {
  width: 48px;
  height: 48px;
  font-size: 1.45rem;
}

.winner-digit-ball.digit-ball-compact {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
}

.winner-digit-text {
  font-family: var(--font-heading);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

/* Animación de Ampliación y Pulso Rítmico */
@keyframes ballScaleExpand {
  0%, 100% {
    transform: scale(1) translateY(0);
    box-shadow: 
      0 6px 14px rgba(0, 0, 0, 0.4),
      0 0 14px rgba(255, 215, 0, 0.55),
      inset -3px -3px 6px rgba(0, 0, 0, 0.4),
      inset 3px 3px 6px rgba(255, 255, 255, 0.95);
  }
  38% {
    transform: scale(1.14) translateY(-3px);
    box-shadow: 
      0 10px 22px rgba(0, 0, 0, 0.5),
      0 0 24px rgba(255, 215, 0, 0.85),
      inset -4px -4px 7px rgba(0, 0, 0, 0.5),
      inset 4px 4px 7px rgba(255, 255, 255, 1);
  }
  65% {
    transform: scale(0.97) translateY(1px);
    box-shadow: 
      0 4px 10px rgba(0, 0, 0, 0.35),
      0 0 10px rgba(255, 215, 0, 0.4),
      inset -2px -2px 5px rgba(0, 0, 0, 0.3),
      inset 2px 2px 5px rgba(255, 255, 255, 0.9);
  }
}

/* Resplandor áureo de fondo */
.winner-sparkle-glow {
  position: absolute;
  width: 95%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.42) 0%, transparent 72%);
  pointer-events: none;
  animation: pulseDotLive 2s infinite;
  z-index: 1;
}

/* Efecto hover interactivo */
.hero-winner-box:hover .winner-digit-ball {
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.85),
    0 0 32px rgba(255, 215, 0, 0.95),
    inset -3px -3px 6px rgba(0, 0, 0, 0.5),
    inset 3px 3px 6px rgba(255, 255, 255, 0.95);
}

.winner-box-info {
  width: 100%;
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.winner-lottery-name {
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.winner-prize-name {
  font-size: 0.68rem;
  color: #ffd700;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.winner-congrats-chip {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #10b981;
  color: #6ee7b7;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  margin-top: 0.15rem;
  letter-spacing: 0.03em;
}

/* Modales y Contenedor para Reel Multi-Plataforma (Siempre Formato Vertical Reel 9:16) */
.reel-modal-card {
  max-width: 410px;
  width: 95%;
  max-height: 96vh;
  border-radius: 24px;
  background: #060e1e;
  border: 1.5px solid rgba(0, 210, 255, 0.5);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 210, 255, 0.35);
}

.reel-video-container {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.95);
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 68vh;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.reel-phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.reel-iframe-wrap {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  max-height: 68vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
}

.reel-embed-frame {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  border-radius: 18px;
}

.reel-embed-frame.instagram-frame {
  height: 68vh;
  max-height: 580px;
}

.reel-embed-frame.facebook-frame {
  height: 68vh;
  max-height: 580px;
}

.reel-embed-frame.youtube-frame {
  height: 68vh;
  max-height: 580px;
}

/* Poster dinámico en la previsualización del tablero (cuando es Instagram o Facebook) */
.reel-poster-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0.5rem;
  text-align: center;
}

.reel-poster-preview.ig-theme {
  background: radial-gradient(circle at 30% 30%, #f09433 0%, #dc2743 50%, #833ab4 100%);
}

.reel-poster-preview.fb-theme {
  background: radial-gradient(circle at 30% 30%, #1877f2 0%, #0d5ec4 55%, #082d62 100%);
}

.reel-poster-preview.yt-theme {
  background: radial-gradient(circle at 30% 30%, #ff4d4d 0%, #cc0000 60%, #660000 100%);
}

.reel-poster-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
  animation: pulseDotLive 2s infinite;
}

.reel-poster-tag {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.reel-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.btn-reel-external {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
  transition: all 0.2s ease;
}

.btn-reel-external:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.btn-reel-external.ig-btn {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.45);
}

.btn-reel-external.fb-btn {
  background: linear-gradient(135deg, #1877f2, #0d5ec4);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.45);
}

.btn-reel-external.yt-btn {
  background: linear-gradient(135deg, #ff0000, #cc0000);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.45);
}

.btn-reel-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 800;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  transition: all 0.2s ease;
}

.btn-reel-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Adaptación Responsive para pantallas medianas y móviles */
@media (max-width: 860px) {
  .header-hero-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "center center"
      "reel   winner";
    gap: 0.85rem;
  }
  
  .header-center-hero {
    grid-area: center;
  }
  
  .header-hero-layout .hero-reel-box {
    grid-area: reel;
    width: 100%;
  }
  
  .header-hero-layout .hero-winner-box {
    grid-area: winner;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .header-hero-layout {
    gap: 0.55rem;
  }

  .header-hero-layout .hero-reel-box,
  .header-hero-layout .hero-winner-box {
    padding: 0.5rem 0.35rem 0.5rem;
    border-radius: 14px;
    border-width: 1.5px;
  }

  .reel-box-badge,
  .winner-box-badge {
    font-size: 0.62rem;
    padding: 0.18rem 0.45rem;
    margin-bottom: 0.35rem;
    gap: 0.25rem;
  }

  .reel-box-preview {
    height: 145px;
    max-width: 110px;
    border-radius: 12px;
  }

  .reel-play-icon {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .reel-box-info {
    max-width: 110px;
    gap: 0.25rem;
    margin-top: 0.3rem;
  }

  .reel-box-title {
    font-size: 0.68rem;
  }

  .reel-action-btn {
    font-size: 0.65rem;
    padding: 0.26rem 0.4rem;
    border-radius: 6px;
  }

  .winner-box-ball-wrap {
    min-height: 48px;
    margin-bottom: 0.3rem;
  }

  .winner-balls-row {
    gap: 0.25rem;
  }

  .winner-digit-ball.digit-ball-large {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .winner-digit-ball.digit-ball-medium {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .winner-digit-ball.digit-ball-compact {
    width: 26px;
    height: 26px;
    font-size: 0.82rem;
  }

  .winner-box-info {
    gap: 0.15rem;
  }

  .winner-lottery-name {
    font-size: 0.68rem;
    line-height: 1.15;
  }

  .winner-prize-name {
    font-size: 0.65rem;
  }

  .winner-congrats-chip {
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
    border-radius: 50px;
  }
}

@media (max-width: 340px) {
  .header-hero-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "center"
      "reel"
      "winner";
    gap: 0.75rem;
  }

  .header-hero-layout .hero-reel-box,
  .header-hero-layout .hero-winner-box {
    max-width: 260px;
    margin: 0 auto;
  }
}

/* Balotas 3D Decorativas Flotantes (Ocultas definitivamente) */
.ball-deco {
  display: none !important;
}

/* Layout Centrado Limpio (Exclusivo para Sorteo Diario) */
.header-hero-layout.header-hero-clean-center {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0.5rem auto 1.1rem auto !important;
}

.header-hero-clean-center .hero-reel-box,
.header-hero-clean-center #heroReelBox,
.header-hero-clean-center .hero-winner-box,
.header-hero-clean-center #heroWinnerBox {
  display: none !important;
}

.header-hero-clean-center .header-center-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 700px !important;
  margin: 0 auto !important;
}

/* Ocultar definitivamente el cuadro de último ganador y reel lateral viejo en todos los tableros */
#mainHeader .hero-winner-box,
#mainHeader #heroWinnerBox,
#mainHeader .hero-reel-box,
#mainHeader #heroReelBox {
  display: none !important;
}

/* Marco Sencillo Centrado para la Imagen de Publicidad / Flyer (Eventos Semanal, Quincenal, Especial) */
.board-promo-flyer-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0.8rem auto 1.4rem auto;
  padding: 0 0.5rem;
  box-sizing: border-box;
  text-align: center;
}

.board-promo-flyer-frame {
  background: #ffffff;
  border: 2.5px solid var(--event-theme-color, #e2e8f0);
  border-radius: 18px;
  padding: 5px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.board-promo-flyer-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.board-promo-flyer-img {
  width: 100%;
  height: auto;
  max-height: 540px;
  object-fit: contain;
  display: block;
  border-radius: 13px;
  margin: 0 auto;
  background: #f8fafc;
}

body.theme-light .board-promo-flyer-frame {
  background: #ffffff !important;
}

body.theme-light .board-promo-flyer-img {
  background: #f8fafc !important;
}

@media (max-width: 640px) {
  .board-promo-flyer-wrap {
    max-width: 100%;
    margin: 0.5rem auto 1rem auto;
    padding: 0 0.25rem;
  }
  .board-promo-flyer-frame {
    border-radius: 15px;
    padding: 4px;
  }
  .board-promo-flyer-img {
    border-radius: 11px;
    max-height: 440px;
  }
}

.ball-blue {
  background: radial-gradient(circle at 35% 35%, #93c5fd, #2563eb);
  color: #fff;
  top: 15px;
  left: 20px;
}

.ball-red {
  background: radial-gradient(circle at 35% 35%, #fca5a5, #dc2626);
  color: #fff;
  bottom: 25px;
  left: 25px;
}

.ball-gold {
  background: radial-gradient(circle at 35% 35%, #fef08a, #eab308);
  color: #000;
  top: 25px;
  right: 25px;
}

.float-slow { animation: floatSlow 4s ease-in-out infinite alternate; }
.float-mid { animation: floatMid 3.2s ease-in-out infinite alternate; }
.float-fast { animation: floatFast 2.8s ease-in-out infinite alternate; }

@keyframes floatSlow { 0% { transform: translateY(0); } 100% { transform: translateY(-12px); } }
@keyframes floatMid { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }
@keyframes floatFast { 0% { transform: translateY(0); } 100% { transform: translateY(-18px); } }

/* Corona de Oro & Logo GIF Animado Hero */
.header-brand-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.crown-icon-wrap {
  margin-bottom: 0.1rem;
}

.crown-icon {
  font-size: 3rem;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.8));
  animation: crownBounce 2.5s infinite ease-in-out;
}

.animated-logo-badge {
  display: inline-block;
  position: relative;
}

.gif-logo-hero {
  width: 125px;
  height: 125px;
  object-fit: contain;
  border-radius: 50%;
  border: 3.5px solid #ffd700;
  background: #020712;
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.85), 0 8px 18px rgba(0, 0, 0, 0.75);
  animation: floatSlow 3.2s ease-in-out infinite alternate;
  padding: 3px;
  transition: all 0.35s ease;
}

/* Logo más grande y protagónico en el tablero diario limpio */
.gif-logo-hero.logo-prominent,
.header-hero-clean-center .gif-logo-hero {
  width: clamp(140px, 16vw, 175px) !important;
  height: clamp(140px, 16vw, 175px) !important;
  border: 4px solid var(--event-theme-color, #db2777) !important;
  box-shadow: 0 0 35px var(--event-theme-glow, rgba(219, 39, 119, 0.4)), 0 10px 25px rgba(0, 0, 0, 0.12) !important;
  padding: 4px !important;
}

body.theme-light .gif-logo-hero {
  border: 3.5px solid var(--event-theme-color, #db2777) !important;
  background: #ffffff !important;
  box-shadow: 0 0 28px var(--event-theme-glow, rgba(219, 39, 119, 0.35)), 0 6px 18px rgba(6, 182, 212, 0.25) !important;
}

/* Badge del Nombre del Evento Configurable desde Admin */
.event-name-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(2, 132, 199, 0.25);
  border: 1.5px solid #00f0ff;
  color: #00f0ff;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: clamp(0.78rem, 2.4vw, 0.98rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  animation: pulseNeonCyan 2.5s infinite alternate;
}

.event-fire {
  font-size: 1rem;
}

/* Título 3D Gran Rifa */
.rifa-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #fff3b0 30%, #ffd700 65%, #d48800 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9));
  margin: 0.1rem 0;
  line-height: 1.05;
}

.rifa-slogan {
  font-size: clamp(1rem, 3.8vw, 1.45rem);
  font-weight: 800;
  color: #00e5ff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.7);
  font-style: italic;
  margin-bottom: 0.9rem;
}

/* Ocultar elementos retirados según solicitud cliente (Cambio 1: Portadas de Eventos) */
#eventNameBadge,
.header-center-hero .event-name-pill,
#ribbonOpportunities,
.ribbon-opportunities,
.mini-balls {
  display: none !important;
}

/* Eslogan Oficial Debajo del Logo de LA 99 en Todos los Tableros y Eventos */
.rifa-slogan,
#rifaSloganDisplay {
  display: block !important;
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(1.2rem, 3.4vw, 1.65rem);
  font-weight: 800;
  color: var(--event-theme-color, #00e5ff);
  text-shadow: 0 0 16px var(--event-theme-glow, rgba(0, 229, 255, 0.6));
  font-style: italic;
  letter-spacing: 0.04em;
  margin: 0.2rem 0 0.9rem 0;
  line-height: 1.15;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

/* Fila Unificada: Valor de la Boleta y Aviso Crítico en la Misma Línea */
.board-action-pills-row,
.header-meta-pills-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 1.1rem !important;
  margin: 1.1rem auto 0.8rem auto !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 900px !important;
}

/* Badge de Precio de Boleta (Color del Tablero o del Día) */
.price-pill-banner {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--event-theme-gradient, linear-gradient(135deg, #0284c7, #0369a1)) !important;
  color: var(--event-theme-text, #ffffff) !important;
  font-weight: 900 !important;
  padding: 0.45rem 1.8rem !important;
  border-radius: 50px !important;
  border: 2px solid var(--event-theme-dark, #0369a1) !important;
  box-shadow: 0 4px 18px var(--event-theme-glow, rgba(2, 132, 199, 0.4)) !important;
  margin-bottom: 0 !important;
  text-align: center !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  transition: all 0.35s ease !important;
}

.price-pill-label {
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
  color: var(--event-theme-text, #ffffff) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.price-pill-amount {
  font-size: clamp(1.15rem, 4vw, 1.55rem) !important;
  line-height: 1.1 !important;
  color: var(--event-theme-text, #ffffff) !important;
  font-weight: 900 !important;
}

/* Aviso: BOLETA SIN CANCELAR NO JUEGA (Alineado en altura y estilo con Valor de Boleta) */
.warning-banner-unpaid {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  padding: 0.55rem 1.6rem !important;
  border-radius: 50px !important;
  font-size: clamp(0.82rem, 2.4vw, 1rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.35) !important;
  margin: 0 !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  animation: pulseAlert 2.2s infinite ease-in-out !important;
}

/* Cinta de Oportunidades Dinámicas */
.ribbon-opportunities {
  background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 30px;
  font-weight: 900;
  font-size: clamp(0.85rem, 2.8vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 0;
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ==========================================================================
   PÍLDORAS DE REDES SOCIALES OFICIALES Y WHATSAPP EN CABECERA
   ========================================================================== */
.header-social-pills-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0.4rem auto 1.2rem;
  width: 100%;
  max-width: 820px;
}

.social-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.social-pill-badge.pill-whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.92) 0%, rgba(18, 140, 126, 0.95) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45);
}

.social-pill-badge.pill-whatsapp:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7);
  color: #ffffff;
}

.social-pill-badge.pill-instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(253, 29, 29, 0.4);
}

.social-pill-badge.pill-instagram:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(253, 29, 29, 0.65);
  color: #ffffff;
}

.social-pill-badge.pill-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5cb6 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-pill-badge.pill-facebook:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.65);
  color: #ffffff;
}

/* ==========================================================================
   GRILLA DINÁMICA DE PREMIOS (Centrada para 1, 2, 3 o 4 Oportunidades)
   ========================================================================== */
.prizes-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0.9rem;
  margin: 0 auto 1.3rem auto;
  width: 100%;
  flex-wrap: wrap;
}

/* CASO 1: UN SOLO PREMIO (Ej: Sorteo básico de 2 cifras / Premio Mayor Único) */
.prizes-grid.prizes-grid-single {
  display: flex;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto 1.4rem auto;
}

.prizes-grid.prizes-grid-single .prize-card {
  width: 100%;
  max-width: 500px;
  padding: 1.3rem 1.6rem 1.1rem;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, rgba(6, 16, 38, 0.98) 100%);
  border: 2.5px solid #ffd700;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 35px rgba(255, 215, 0, 0.45);
}

.prizes-grid.prizes-grid-single .prize-badge-jackpot {
  top: -12px;
  font-size: 0.85rem;
  padding: 0.35rem 1.2rem;
  letter-spacing: 1px;
}

.prizes-grid.prizes-grid-single .prize-card-header span {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  color: #ffd700;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
  margin-top: 4px;
}

.prizes-grid.prizes-grid-single .prize-card-header small {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.prizes-grid.prizes-grid-single .prize-card-amount {
  font-size: clamp(2.2rem, 6.5vw, 3.2rem);
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 12px rgba(255, 255, 255, 0.8);
  margin: 0.35rem 0 0.5rem;
}

.prizes-grid.prizes-grid-single .mini-balls .mini-ball {
  width: 28px;
  height: 28px;
  font-size: 0.95rem;
}

/* CASO 2: DOS PREMIOS */
.prizes-grid.prizes-grid-double {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 360px));
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 1.3rem auto;
  gap: 1.1rem;
}

/* CASO 3: TRES PREMIOS (Estándar LA 99) */
.prizes-grid.prizes-grid-triple {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  max-width: 100%;
  margin: 0 auto 1.3rem auto;
}

/* CASO 4: CUATRO PREMIOS (Con Seco Adicional) */
.prizes-grid.prizes-grid-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  max-width: 100%;
  margin: 0 auto 1.3rem auto;
}

.prize-card {
  background: rgba(4, 15, 34, 0.92);
  border: 2px solid #f59e0b;
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.prize-card:hover {
  transform: translateY(-4px);
  border-color: #fde047;
}

.prize-card.prize-jackpot {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.25) 0%, rgba(4, 15, 34, 0.96) 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.prize-badge-jackpot {
  position: absolute;
  top: -10px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.6);
}

.prize-card-header span {
  display: block;
  font-size: clamp(0.72rem, 2vw, 0.85rem);
  font-weight: 800;
  color: #93c5fd;
  text-transform: uppercase;
}

.prize-card-header small {
  font-size: 0.65rem;
  color: #cbd5e1;
}

.prize-card-amount {
  font-size: clamp(1.05rem, 3.4vw, 1.55rem);
  font-weight: 900;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  margin: 0.35rem 0;
}

.jackpot-glow {
  color: #fff3cd;
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.8);
}

/* Mini balotas ocultas para evitar confusiones (Cambio 1: Se retira 99) */
.mini-balls {
  display: none !important;
}

/* Letrero de Cifras ("2 CIFRAS" / "2 ÚLTIMAS CIFRAS") DEBAJO del Valor Principal */
.prize-cifras-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.2rem !important;
  margin-top: 0.25rem !important;
  text-align: center !important;
}

.prize-cifras-title {
  display: inline-block !important;
  font-family: var(--font-heading, sans-serif) !important;
  font-size: clamp(0.95rem, 2.8vw, 1.3rem) !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
}

body.theme-light .prize-cifras-title {
  color: #0f172a !important;
}

.prize-cifras-desc {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  line-height: 1.2 !important;
}

body.theme-light .prize-cifras-desc {
  color: #64748b !important;
}

.prize-badge-secondary {
  position: absolute !important;
  top: -10px !important;
  background: var(--event-theme-gradient, linear-gradient(135deg, #0284c7, #0369a1)) !important;
  color: var(--event-theme-text, #ffffff) !important;
  font-size: 0.65rem !important;
  font-weight: 900 !important;
  padding: 0.2rem 0.6rem !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  box-shadow: 0 2px 8px var(--event-theme-glow, rgba(2, 132, 199, 0.6)) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Banner de Lotería y Fecha (Más grande, espacioso y de alta visibilidad) */
.lottery-info-banner {
  background: rgba(0, 0, 0, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 0.95rem 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 1.2rem;
  margin: 1.1rem auto 1.2rem auto;
  width: 100%;
  max-width: 900px;
  box-sizing: border-box;
}

.lottery-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1rem, 2.7vw, 1.25rem);
  font-weight: 700;
  color: #f8fafc;
}

.lottery-pill .lottery-icon {
  font-size: 1.55rem;
  line-height: 1;
}

.lottery-pill strong {
  color: #fde047;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 3.1vw, 1.4rem);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.lottery-pill.date-pill {
  color: #38bdf8;
  font-size: clamp(1rem, 2.7vw, 1.25rem);
  font-weight: 800;
}

/* Aviso: BOLETA SIN CANCELAR NO JUEGA */
.warning-banner-unpaid {
  background: #dc2626;
  color: #fff;
  font-weight: 900;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  font-size: clamp(0.78rem, 2.5vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.7);
  animation: pulseAlert 2s infinite;
}

@keyframes pulseAlert {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.9; }
}

/* ==========================================================================
   BARRA DE HERRAMIENTAS: "¡DILE A LA SUERTE!" + BUSCADOR
   ========================================================================== */
.lucky-controls-card {
  background: rgba(13, 27, 54, 0.94);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 18px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
}

.controls-header {
  text-align: center;
  margin-bottom: 1rem;
}

.title-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.title-with-icon h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.04em;
}

.dice-bounce {
  font-size: 1.5rem;
  animation: diceRoll 3s infinite ease-in-out;
}

@keyframes diceRoll {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-15deg); }
  75% { transform: rotate(15deg); }
}

.controls-subtitle {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Botones de selección aleatoria */
.random-buttons-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-random-pick {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  border: 1px solid #3b82f6;
  color: #bfdbfe;
  padding: 0.45rem 0.9rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-random-pick:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.btn-random-pick:active {
  transform: scale(0.94);
}

.btn-lucky-max {
  background: linear-gradient(135deg, #b45309 0%, #78350f 100%);
  border-color: #f59e0b;
  color: #fef08a;
}

.btn-lucky-max:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.45);
}

.btn-clear-selection {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.btn-clear-selection:hover {
  background: rgba(220, 38, 38, 0.3);
  color: #fff;
}

/* Buscador de número exacto */
.search-lucky-wrap {
  max-width: 440px;
  margin: 0 auto 1.1rem;
}

.search-input-box {
  display: flex;
  align-items: center;
  background: #060e1e;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.search-icon {
  padding-left: 0.8rem;
  font-size: 1rem;
}

.search-input-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-add-search {
  background: var(--gold-primary);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-add-search:hover {
  background: #fde047;
}

.search-feedback {
  font-size: 0.78rem;
  text-align: center;
  margin-top: 0.4rem;
  min-height: 1.2rem;
  color: #38bdf8;
}

/* Fila de Estadísticas Tradicional (Legacy) */
.board-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.stat-box {
  background: rgba(6, 14, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem 0.5rem;
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 900;
}

.text-green { color: #10b981; }
.text-gold { color: #f59e0b; }
.text-cyan { color: #00e5ff; }

/* ==========================================================================
   NUEVA FILA DE ESTADÍSTICAS LIMPIA: DISPONIBLES (BLANCO) + NÚMEROS SELECCIONADOS
   ========================================================================== */
.board-stats-clean-row {
  display: grid;
  grid-template-columns: 195px 1fr;
  gap: 0.85rem;
  margin-top: 0.85rem;
  margin-bottom: 1.15rem;
  align-items: stretch;
}

.stat-box-clean {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  transition: all 0.25s ease;
  position: relative;
}

/* 1. Disponibles "Color Blanco" */
.stat-box-clean.stat-box-white {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-clean-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.stat-clean-value {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.05;
}

/* Color del texto del número de disponibles: Mismo color cyan vibrante de los números escogidos con rebote interactivo */
.stat-clean-value.text-selected-cyan,
.stat-clean-value.text-green,
#statAvailable {
  color: #00b4d8 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.35) !important;
  display: inline-block;
  animation: availableCounterBounce 2.4s infinite ease-in-out;
  transform-origin: center;
}

body.theme-light .stat-clean-value.text-selected-cyan,
body.theme-light .stat-clean-value.text-green,
body.theme-light #statAvailable {
  color: #00b4d8 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 2px rgba(0, 180, 216, 0.25) !important;
  display: inline-block;
  animation: availableCounterBounce 2.4s infinite ease-in-out;
  transform-origin: center;
}

@keyframes availableCounterBounce {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  38% {
    transform: scale(1.14) translateY(-3px);
    text-shadow: 0 0 16px rgba(0, 180, 216, 0.65), 0 0 24px rgba(0, 180, 216, 0.35) !important;
  }
  65% {
    transform: scale(0.97) translateY(0.5px);
  }
}

.stat-clean-hint {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 0.25rem;
}

/* 2. Cuadro donde salen los números seleccionados por el cliente */
.stat-box-clean.stat-box-selected-wrap {
  background: #ffffff !important;
  border: 1.5px solid rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.08) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 88px;
}

.stat-selected-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(6, 182, 212, 0.25);
}

.stat-selected-count-badge {
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0.15rem 0.65rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.35);
  min-width: 26px;
  text-align: center;
}

.inline-selected-chips-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  min-height: 38px;
}

.empty-selection-hint {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.inline-selected-chips-box .num-chip {
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
  color: #020b1c;
  font-weight: 900;
  font-size: 0.92rem;
  padding: 0.26rem 0.72rem;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
}

.inline-selected-chips-box .num-chip:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.75);
}

.inline-selected-chips-box .num-chip small {
  font-size: 0.75rem;
  opacity: 0.75;
  font-weight: 900;
  margin-left: 2px;
}

/* Barra de Progreso */
.progress-container {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  height: 18px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.progress-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #10b981);
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s ease;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Leyenda de Estados */
.legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
}

.dot-free {
  background: #ffffff !important;
  border: 1.5px solid #94a3b8 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dot-selected,
.dot-tornasol {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 30%, #ec4899 60%, #facc15 85%, #00f0ff 100%) !important;
  background-size: 200% 200% !important;
  animation: tornasolShimmer 3s ease infinite !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6), 0 0 6px rgba(0, 240, 255, 0.6) !important;
}

.dot-unavailable {
  background: #64748b !important;
  border: 1px solid #475569 !important;
}

.dot-reserved { background: #64748b !important; }
.dot-paid { background: #64748b !important; }

@keyframes tornasolShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================================================
   TABLERO OFICIAL 10x10 (00 a 99)
   ========================================================================== */
.board-wrapper {
  margin-bottom: 2rem;
}

/* Tira Superior del Tablero con Logo GIF Animado */
.board-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: linear-gradient(90deg, rgba(8, 22, 48, 0.98), rgba(16, 42, 88, 0.98), rgba(8, 22, 48, 0.98));
  border: 2px solid #ffd700;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px 20px 0 0;
  padding: 0.85rem 1.2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.board-gif-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #ffd700;
  background: #020712;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.75);
  animation: pulseNeonGold 3s infinite alternate;
}

.strip-center {
  text-align: center;
  flex: 1;
}

.strip-event-tag {
  display: none !important;
}

.strip-title {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 3.6vw, 1.65rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--event-theme-color, #0891b2) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  margin: 0;
  text-shadow: 0 0 16px var(--event-theme-glow, rgba(8, 145, 178, 0.45));
}

.strip-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  display: block;
  margin-top: 0.15rem;
}

.board-frame-glow {
  background: linear-gradient(180deg, rgba(10, 26, 56, 0.98) 0%, rgba(5, 14, 32, 0.98) 100%);
  border: 3px solid #f59e0b;
  border-top: none;
  border-radius: 0 0 22px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.28);
  padding: 1.2rem;
}

.numbers-grid-100 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  min-height: 380px;
  contain: layout style;
}

.grid-loading-msg {
  grid-column: span 10;
  text-align: center;
  padding: 2.5rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Casilla de Número Individual (Slot 3D) */
.board-slot {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2.4vw, 1.4rem);
  font-weight: 900;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
  position: relative;
  outline: none;
}

/* Animación Pro Rítmica de Casillas Libres (Ondas escalonadas fluidas a 60fps) */
@keyframes freeSlotBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.05), inset 0 -2px 0 #f1f5f9;
    border-color: #cbd5e1;
  }
  35% {
    transform: translateY(-3.5px) scale(1.09);
    box-shadow: 0 6px 14px rgba(0, 180, 216, 0.22), 0 0 8px rgba(0, 180, 216, 0.12), inset 0 -2px 0 #ffffff;
    border-color: var(--event-theme-color, #00b4d8) !important;
  }
  55% {
    transform: translateY(0.5px) scale(0.97);
  }
  75% {
    transform: translateY(-1px) scale(1.03);
  }
  90% {
    transform: translateY(0) scale(1);
  }
}

@keyframes freeSlotBounceMobile {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-2.5px) scale(1.07);
  }
  55% {
    transform: translateY(0.5px) scale(0.98);
  }
  75% {
    transform: translateY(-0.8px) scale(1.02);
  }
  90% {
    transform: translateY(0) scale(1);
  }
}

/* Estado 1: LIBRE (BLANCO LIMPIO, NÍTIDO, CON ANIMACIÓN RÍTMICA FLUIDA) */
.board-slot.slot-free,
body.theme-light .board-slot.slot-free {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.05), inset 0 -2px 0 #f1f5f9 !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
  animation: freeSlotBounce 4.5s infinite ease-in-out !important;
  animation-delay: var(--slot-delay, 0s) !important;
}

.board-slot.slot-free .slot-num,
body.theme-light .board-slot.slot-free .slot-num {
  color: #0f172a !important;
  font-weight: 900 !important;
  display: block !important;
  line-height: 1 !important;
}

.board-slot.slot-free:hover,
body.theme-light .board-slot.slot-free:hover {
  transform: translateY(-2px) scale(1.08) !important;
  background: #ffffff !important;
  border-color: #00b4d8 !important;
  box-shadow: 0 6px 16px rgba(0, 180, 216, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
  z-index: 5;
}

.board-slot.slot-free:active {
  transform: scale(0.94) !important;
}

/* Estado 2: SELECCIONADO POR EL USUARIO (COLOR TORNASOL IRIDISCENTE CON SHIMMER) */
.board-slot.slot-selected {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 28%, #ec4899 55%, #facc15 80%, #00f0ff 100%) !important;
  background-size: 250% 250% !important;
  animation: tornasolShimmer 3s ease infinite !important;
  color: #090d16 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.7), 0 0 24px rgba(236, 72, 153, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-3px) scale(1.08) !important;
  z-index: 10 !important;
}

.board-slot.slot-selected .slot-num {
  color: #090d16 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.slot-sparkle {
  display: none !important;
}

/* Estado 3: RESERVADO (NO DISPONIBLE / PENDIENTE) */
.board-slot.slot-reserved {
  background: #64748b !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: 0.95;
  border: 1.5px solid #475569 !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3) !important;
}

.board-slot.slot-reserved .slot-num {
  color: #ffffff !important;
  font-weight: 900 !important;
}

.slot-clock {
  font-size: 0.75rem;
  line-height: 1;
}

/* Estado 4: PAGADO Y CONFIRMADO (RELLENO SEGÚN EL DÍA, SIN CARITAS FELICES, NÚMERO EN GRIS Y MIÉRCOLES EN BLANCO) */
.board-slot.slot-paid {
  background: var(--event-theme-gradient, linear-gradient(180deg, #64748b 0%, #475569 100%)) !important;
  color: var(--slot-paid-text-color, #cbd5e1) !important;
  cursor: not-allowed !important;
  box-shadow: 0 4px 8px var(--event-theme-glow, rgba(0, 0, 0, 0.4)), inset 0 2px 0 rgba(255, 255, 255, 0.25) !important;
  border: 1.5px solid var(--event-theme-dark, #334155) !important;
  transition: all 0.3s ease !important;
}

.board-slot.slot-paid .slot-num {
  color: var(--slot-paid-text-color, #cbd5e1) !important;
  font-weight: 900 !important;
  font-size: clamp(0.95rem, 2.4vw, 1.4rem) !important;
  display: block !important;
  line-height: 1 !important;
}

.emoji-smiley {
  display: none !important;
}

.slot-num-micro {
  font-size: clamp(0.95rem, 2.4vw, 1.4rem) !important;
  font-weight: 900 !important;
  color: var(--slot-paid-text-color, #cbd5e1) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Estado 5: EN ELECCIÓN / BLOQUEO CONCURRENTE EN VIVO (POR OTRO USUARIO) */
.board-slot.slot-locked-by-other {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%) !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  border: 1.5px dashed #fde047 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5) !important;
  animation: pulseSlotLock 2s infinite ease-in-out;
  position: relative;
  overflow: hidden;
}

@keyframes pulseSlotLock {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
  }
  50% {
    transform: scale(0.96);
    box-shadow: 0 0 16px rgba(253, 224, 71, 0.8);
  }
}

.slot-lock-icon {
  font-size: 0.75rem;
  line-height: 1;
}

.slot-num-locked {
  font-size: 0.58rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   FOOTER INFORMATIVO
   ========================================================================== */
.rifa-footer-info {
  text-align: center;
  padding-top: 1rem;
}

.footer-heart-msg {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde047;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.4);
}

.footer-payment-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-pill {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

.pill-title {
  color: #94a3b8;
  font-weight: 800;
  margin-right: 0.35rem;
}

.pill-detail {
  color: #fff;
  font-weight: 700;
}

/* ==========================================================================
   TARJETA DE COMUNIDAD Y REDES EN FOOTER
   ========================================================================== */
.footer-community-card {
  background: rgba(5, 14, 32, 0.85);
  border: 1.5px solid rgba(0, 240, 255, 0.35);
  border-radius: 16px;
  padding: 1.1rem 1rem 1rem;
  margin: 1.2rem auto 1.4rem auto;
  max-width: 820px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(0, 240, 255, 0.08);
}

.footer-community-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 900;
  color: #00f0ff;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-align: center;
  text-transform: uppercase;
}

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.82rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.22s ease;
  flex: 1 1 210px;
  max-width: 260px;
}

.footer-social-btn.wa {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.45);
}
.footer-social-btn.wa:hover {
  background: #25d366;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.55);
}

.footer-social-btn.ig {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.45);
}
.footer-social-btn.ig:hover {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.55);
}

.footer-social-btn.fb {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.45);
}
.footer-social-btn.fb:hover {
  background: #1877f2;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.55);
}

.btn-soc-ico {
  font-size: 1.35rem;
}

.btn-soc-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-soc-meta small {
  font-size: 0.65rem;
  opacity: 0.8;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-soc-meta strong {
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1.15;
}

/* ==========================================================================
   LETRERO OFICIAL DEL CREADOR (creado por: LURAMI : 3112091735)
   ========================================================================== */
.creator-credit-footer {
  margin-top: 1.4rem;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 14, 32, 0.7);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 50px;
  font-size: 0.78rem;
  color: #cbd5e1;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}

.creator-credit-footer strong {
  color: #ffd700;
  font-weight: 900;
  margin: 0 3px;
  letter-spacing: 0.06em;
}

.creator-phone-link {
  color: #00f0ff;
  font-weight: 900;
  text-decoration: none;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid rgba(0, 240, 255, 0.35);
  margin-left: 2px;
  transition: all 0.2s ease;
}

.creator-phone-link:hover {
  background: #00f0ff;
  color: #000;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

/* ==========================================================================
   BOTÓN FLOTANTE VIP DE WHATSAPP OFICIAL (ATENCIÓN PERSONALIZADA LA 99)
   ========================================================================== */
.floating-whatsapp-vip,
.floating-facebook-vip {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 95;
  transition: bottom 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s ease;
}

body.has-active-checkout .floating-whatsapp-vip,
body.has-active-checkout .floating-facebook-vip,
.floating-checkout-bar.active ~ .floating-whatsapp-vip,
.floating-checkout-bar.active ~ .floating-facebook-vip {
  bottom: calc(115px + env(safe-area-inset-bottom, 0px));
}

.whatsapp-vip-link,
.facebook-vip-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 0.52rem 1.05rem 0.52rem 0.65rem;
  border-radius: 50px;
  border: 2px solid #ffffff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55), 0 0 18px rgba(37, 211, 102, 0.35);
  position: relative;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.whatsapp-vip-link:hover,
.facebook-vip-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.75), 0 0 25px rgba(37, 211, 102, 0.55);
  color: #ffffff;
}

.whatsapp-vip-ripple,
.facebook-vip-ripple {
  position: absolute;
  inset: -6px;
  border-radius: 50px;
  border: 2px solid rgba(37, 211, 102, 0.7);
  animation: vipRipplePulseWa 2.4s infinite ease-out;
  pointer-events: none;
}

@keyframes vipRipplePulseWa {
  0% { transform: scale(0.96); opacity: 0.85; }
  100% { transform: scale(1.24); opacity: 0; }
}

.whatsapp-vip-icon,
.facebook-vip-icon {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden !important;
  box-sizing: border-box;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.whatsapp-vip-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.whatsapp-vip-meta,
.facebook-vip-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.whatsapp-vip-tag,
.facebook-vip-tag {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: #dcfce7;
}

.whatsapp-vip-tag .vip-online-dot,
.facebook-vip-tag .vip-online-dot {
  color: #86efac;
  font-size: 0.65rem;
  animation: pulseDotLive 1.2s infinite;
}

.whatsapp-vip-name,
.facebook-vip-name {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
}

/* ==========================================================================
   STICKY FLOATING CHECKOUT BAR (DRAWER FLOTANTE DE PAGO)
   ========================================================================== */
.floating-checkout-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 25, 54, 0.98);
  border-top: 2px solid #00f0ff;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(0, 240, 255, 0.25);
  padding: 0.85rem 1.2rem;
  z-index: 100;
  transform: translateY(120%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-checkout-bar.active {
  transform: translateY(0);
}

.checkout-bar-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.selected-summary {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.selected-chips-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.num-chip {
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
  color: #020b1c;
  font-weight: 900;
  font-size: 0.92rem;
  padding: 0.28rem 0.75rem;
  border-radius: 20px;
  border: 1px solid #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 240, 255, 0.5);
  transition: transform 0.15s ease;
}

.num-chip:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 240, 255, 0.8);
}

.num-chip small {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 900;
}

.checkout-price-info {
  display: flex;
  flex-direction: column;
}

.checkout-total-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
}

.checkout-total-amount {
  font-size: 1.5rem;
  font-weight: 900;
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.btn-checkout-cta {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  transition: all 0.2s ease;
}

.btn-checkout-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.7);
}

.btn-cta-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.btn-checkout-cta:hover .btn-cta-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   MODAL DE PAGO AUTOMÁTICO (QR BRE-B / NEQUI / BANCOLOMBIA)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 20, 0.88);
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  background: linear-gradient(180deg, #0d2248 0%, #071329 100%);
  border: 2px solid rgba(255, 193, 7, 0.4);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 193, 7, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-backdrop.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.modal-icon {
  font-size: 2rem;
}

.modal-header-title h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.modal-header-title p {
  font-size: 0.78rem;
  color: #94a3b8;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(220, 38, 38, 0.5);
}

.modal-body {
  padding: 1.4rem;
}

/* Resumen del Pedido en Modal */
.order-summary-box {
  background: rgba(4, 11, 24, 0.75);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.summary-row.total-highlight {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.95rem;
}

.highlight-gold {
  color: #ffd700;
  font-size: 1.05rem;
}

.total-big {
  color: #10b981;
  font-size: 1.4rem;
}

/* ==========================================================================
   RESUMEN VIP COMPACTO DEL MODAL DE PAGO (NÚMEROS + TOTAL + RESERVA 30 MIN)
   ========================================================================== */
.vip-checkout-summary {
  background: linear-gradient(145deg, rgba(8, 20, 44, 0.95) 0%, rgba(3, 10, 24, 0.98) 100%);
  border: 1.5px solid var(--event-theme-color, #00f0ff);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 16px var(--event-theme-glow, rgba(0, 240, 255, 0.2));
  transition: all 0.3s ease;
}

body.theme-light .vip-checkout-summary {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid var(--event-theme-color, #0284c7) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 0 14px var(--event-theme-glow, rgba(2, 132, 199, 0.12)) !important;
}

.summary-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
}

.summary-numbers-col {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 170px;
}

.summary-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.theme-light .summary-label {
  color: #64748b !important;
}

.summary-numbers-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-num-ball {
  background: var(--event-theme-gradient, linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%));
  color: var(--event-theme-text, #020b1c);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
  box-shadow: 0 3px 10px var(--event-theme-glow, rgba(0, 240, 255, 0.4));
  transition: transform 0.2s ease;
}

.hero-num-ball:hover {
  transform: translateY(-2px) scale(1.08);
}

.summary-total-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.summary-total-val {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--event-theme-color, #10b981);
  letter-spacing: 0.02em;
  text-shadow: 0 0 12px var(--event-theme-glow, rgba(16, 185, 129, 0.4));
}

body.theme-light .summary-total-val {
  color: var(--event-theme-dark, #0284c7) !important;
  text-shadow: none !important;
}

/* Tira Compacta de Reserva 30 Minutos */
.reservation-timer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  flex-wrap: wrap;
}

body.theme-light .reservation-timer-strip {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}

.timer-badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.timer-icon {
  font-size: 0.95rem;
}

.timer-title {
  font-size: 0.72rem;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.04em;
}

body.theme-light .timer-title {
  color: #b45309 !important;
}

.timer-clock {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffd700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

body.theme-light .timer-clock {
  color: #d97706 !important;
  text-shadow: none !important;
}

.timer-hint {
  font-size: 0.7rem;
  color: #fef3c7;
  font-weight: 500;
}

body.theme-light .timer-hint {
  color: #78350f !important;
  font-weight: 600 !important;
}

/* ==========================================================================
   BADGES DE TIEMPO DE RESERVA EN EL ADMIN (30 MINUTOS)
   ========================================================================== */
.cell-timer {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  margin-top: 2px;
  line-height: 1;
}

.cell-timer.timer-ok {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.cell-timer.timer-warn {
  background: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.cell-timer.timer-expired {
  background: rgba(239, 68, 68, 0.4);
  color: #f87171;
  animation: pulseAlert 1s infinite;
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
}

.timer-badge.timer-ok {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #34d399;
}

.timer-badge.timer-warn {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.timer-badge.timer-expired {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  color: #f87171;
  animation: pulseAlert 1.2s infinite;
}

/* Formulario del Comprador */
.customer-form {
  margin-bottom: 1.2rem;
}

.form-group {
  margin-bottom: 0.85rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-group input, .form-group select {
  width: 100%;
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  font-size: 0.9rem;
  outline: none;
}

.form-group input:focus, .form-group select:focus {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

/* Tabs de Métodos de Pago */
.payment-tabs-header {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.55rem 0.5rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border-color: #3b82f6;
  color: #fff;
}

.tab-logo {
  height: 18px;
  object-fit: contain;
}

.tab-contents {
  margin-bottom: 1.4rem;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Card QR Bre-B */
.qr-payment-card {
  background: rgba(4, 11, 24, 0.95);
  border: 1.5px solid var(--event-theme-color, rgba(255, 215, 0, 0.4));
  border-radius: 16px;
  padding: 1.1rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--event-theme-glow, rgba(0, 240, 255, 0.15));
  transition: all 0.3s ease;
}

.breb-qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0.35rem 0 0.85rem;
}

.qr-code-box {
  background: #ffffff;
  padding: 0.75rem;
  border-radius: 18px;
  border: 2px solid var(--event-theme-color, #00f0ff);
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 18px var(--event-theme-glow, rgba(0, 240, 255, 0.25));
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  max-width: 100%;
}

.qr-code-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px var(--event-theme-glow, rgba(2, 132, 199, 0.4)) !important;
}

/* Animación pulsante cuando se selecciona o toca la llave Bre-B */
.qr-pulse-highlight {
  animation: qrKeyPulse 1.4s ease infinite alternate;
  border-color: #ffd700 !important;
}

@keyframes qrKeyPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
  }
  100% {
    transform: scale(1.04);
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.85);
  }
}

.breb-qr-official-img {
  width: 235px !important;
  height: 235px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  display: block !important;
  margin: 0 auto !important;
  background: #ffffff !important;
  transition: transform 0.25s ease;
}

@media (max-width: 480px) {
  .breb-qr-official-img {
    width: 215px !important;
    height: 215px !important;
  }
}

.qr-zoom-pill {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--event-theme-light-bg, #f0f9ff);
  border: 1px solid var(--event-theme-color, #0284c7);
  color: var(--event-theme-color, #0284c7);
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.28rem 0.8rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qr-code-box:hover .qr-zoom-pill {
  transform: scale(1.05);
}

.qr-badge {
  display: inline-block;
  background: #10b981;
  color: #000;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.qr-instructions p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.6rem;
}

.copy-input-group {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.copy-input-group input {
  flex: 1;
  background: #020712;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #ffd700;
  font-weight: 800;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  text-align: center;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.copy-input-group input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  outline: none;
}

.btn-copy {
  background: var(--event-theme-gradient, linear-gradient(135deg, #1e3a8a, #0f172a));
  border: 1px solid var(--event-theme-color, #3b82f6);
  color: var(--event-theme-text, #fff);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--event-theme-glow, rgba(59, 130, 246, 0.25));
  transition: all 0.2s ease;
}

.btn-copy:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: #10b981 !important;
  border-color: #10b981 !important;
  color: #020b1c !important;
}

/* Tarjeta Verificada Bre-B */
.breb-verified-card {
  margin-top: 0.75rem;
  background: rgba(0, 240, 255, 0.07);
  border: 1.5px solid var(--event-theme-color, #00f0ff);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  text-align: center;
  transition: all 0.2s ease;
}

.verified-label {
  font-size: 0.73rem;
  color: #94a3b8;
  margin-bottom: 2px;
  font-weight: 600;
}

.verified-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--event-theme-color, #00f0ff);
  letter-spacing: 0.02em;
}

.verified-holder {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* ==========================================================================
   MODAL DE ZOOM QR HD (LIGHTBOX GIGANTE)
   ========================================================================== */
.qr-zoom-backdrop {
  z-index: 99999;
}

.qr-zoom-card {
  background: linear-gradient(160deg, #0d2248 0%, #061024 100%);
  border: 2.5px solid var(--event-theme-color, #00f0ff);
  border-radius: 24px;
  width: 95%;
  max-width: 440px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 45px var(--event-theme-glow, rgba(0, 240, 255, 0.35));
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qr-zoom-backdrop.active .qr-zoom-card {
  transform: translateY(0) scale(1);
}

.qr-zoom-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.qr-zoom-close-btn:hover {
  background: #ef4444 !important;
  color: #fff !important;
}

.qr-zoom-badge {
  display: inline-block;
  background: #10b981;
  color: #020b1c;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.qr-zoom-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2px;
}

.qr-zoom-header p {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.qr-zoom-frame {
  background: #ffffff;
  padding: 1rem;
  border-radius: 18px;
  display: inline-block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
  border: 2px solid var(--event-theme-color, #00f0ff);
}

.qr-zoom-img {
  width: 290px;
  height: 290px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (max-width: 400px) {
  .qr-zoom-img {
    width: 250px;
    height: 250px;
  }
}

.qr-zoom-key-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 0.5rem;
}

.key-lbl {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 700;
}

.key-val {
  font-family: monospace;
  font-size: 1.15rem;
  color: #ffd700;
  letter-spacing: 0.08em;
}

.btn-copy-zoom {
  background: var(--event-theme-gradient, #0284c7);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-copy-zoom:hover {
  opacity: 0.9;
}

.qr-zoom-verified-box {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.qr-zoom-verified-box strong {
  color: var(--event-theme-color, #00f0ff);
}

/* Nequi & Bancolombia Cards */
.nequi-card, .bancolombia-card {
  background: rgba(4, 11, 24, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
}

.account-badge {
  display: inline-block;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.25rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
}

.nequi-card .account-badge {
  background: #ff007f;
  color: #fff;
}

.bancolombia-card .account-badge {
  background: #fd0;
  color: #000;
}

.account-holder {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

/* Botones de Acción del Modal */
.modal-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-confirm-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.2s ease;
  text-align: left;
}

.btn-confirm-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.65);
}

.action-btn-icon {
  font-size: 1.8rem;
}

.action-btn-text strong {
  display: block;
  font-size: 0.95rem;
}

.action-btn-text small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.whatsapp-instruction-card {
  background: rgba(13, 37, 78, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-top: 1rem;
  text-align: left;
}

.instruction-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 0.45rem;
}

.instruction-icon {
  font-size: 1.3rem;
}

.instruction-body {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 0.65rem;
}

.instruction-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #34d399;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================= */
.toast-center {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg {
  background: rgba(8, 22, 48, 0.95);
  border: 1px solid #ffd700;
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.toast-msg.toast-success {
  border-color: #10b981;
}

.toast-msg.toast-info {
  border-color: #38bdf8;
}

.toast-msg.fade-out {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   ESTILOS ESPECÍFICOS DEL PANEL DE ADMINISTRADOR (admin.html)
   ========================================================================== */
.admin-body {
  background: #081630;
  color: #f1f5f9;
}

.admin-topbar {
  background: #040b18;
  border-bottom: 2px solid #ffd700;
  padding: 0.8rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid #ffd700;
  background: #020712;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.admin-brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
}

.admin-badge-live {
  font-size: 0.7rem;
  font-weight: 800;
  color: #10b981;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.admin-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-view-public {
  background: #0284c7;
  border-color: #38bdf8;
}

.btn-view-public:hover {
  background: #0369a1;
}

/* Banner de Alerta Dinámica en Vivo */
.live-alert-banner {
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 100%);
  border-bottom: 2px solid #ffd700;
  padding: 0.75rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.live-alert-banner.active {
  display: flex;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.alert-content {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.alert-bell-anim {
  font-size: 1.6rem;
  animation: bellRing 1.5s infinite;
}

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-20deg); }
  40% { transform: rotate(20deg); }
}

.alert-text-block strong {
  display: block;
  font-size: 0.95rem;
  color: #ffd700;
}

.alert-text-block p {
  font-size: 0.82rem;
  color: #e2e8f0;
}

.alert-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-alert-review {
  background: #ffd700;
  color: #000;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

.btn-alert-dismiss {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.4rem;
}

.admin-layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* Tabs de Navegación del Admin */
.admin-tabs-nav {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.admin-nav-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.admin-nav-tab.active {
  background: #1e293b;
  border-color: #ffd700;
  color: #ffd700;
}

.admin-view-section {
  display: none;
}

.admin-view-section.active {
  display: block;
}

/* Tarjetas KPI de Recaudo */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: #0f1f3d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kpi-card.kpi-paid { border-left: 4px solid #10b981; }
.kpi-card.kpi-pending { border-left: 4px solid #f59e0b; }
.kpi-card.kpi-free { border-left: 4px solid #00e5ff; }

.kpi-icon {
  font-size: 2.2rem;
}

.kpi-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #94a3b8;
}

.kpi-value {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
}

.kpi-info small {
  font-size: 0.78rem;
  color: #cbd5e1;
}

/* Barra de Filtros del Admin */
.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.admin-filter-btns {
  display: flex;
  gap: 0.4rem;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-pill.active {
  background: #ffd700;
  color: #000;
  border-color: #ffd700;
}

.admin-quick-search input {
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.82rem;
  width: 220px;
}

/* Grilla del Tablero en Admin */
.admin-board-card {
  background: #0f1f3d;
  border: 2px solid rgba(255, 193, 7, 0.35);
  border-radius: 18px;
  padding: 1.2rem;
}

.admin-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.admin-board-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #cbd5e1;
}

.admin-legend-mini {
  display: flex;
  gap: 0.4rem;
}

.badge-mini {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.bg-free { background: #334155; color: #fff; }
.bg-reserved { background: #ea580c; color: #fff; }
.bg-paid { background: #10b981; color: #fff; }

.admin-numbers-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.45rem;
}

.admin-cell {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem;
  transition: transform 0.15s ease;
  position: relative;
}

.admin-cell:hover {
  transform: scale(1.1);
  z-index: 5;
}

.admin-cell.cell-free {
  background: #1e293b;
  color: #94a3b8;
}

.admin-cell.cell-reserved {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border-color: #ffd700;
}

.admin-cell.cell-unpaid {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.45) 0%, rgba(180, 83, 9, 0.65) 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.45) !important;
  position: relative;
}

.admin-cell.cell-unpaid .cell-number {
  color: #fef08a !important;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.admin-cell.cell-unpaid .cell-buyer {
  color: #ffedd5 !important;
  font-weight: 800;
}

.badge-mini.bg-unpaid {
  background: #d97706;
  color: #ffffff;
}

.status-pill.pill-unpaid {
  background: rgba(245, 158, 11, 0.2);
  border: 1.5px solid #f59e0b;
  color: #fbbf24;
  font-weight: 800;
}

.admin-cell.cell-paid {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #34d399;
}

.cell-number {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 900;
}

.cell-buyer {
  font-size: 0.55rem;
  font-weight: 700;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell-free-tag {
  font-size: 0.55rem;
  opacity: 0.6;
}

.cell-emoji, .cell-clock {
  font-size: 0.8rem;
  line-height: 1;
}

/* Tabla de Participantes */
.admin-list-card {
  background: #0f1f3d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.4rem;
}

.list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.list-card-header h3 {
  font-size: 1.2rem;
  font-weight: 800;
}

.list-card-header p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.btn-export-csv {
  background: #10b981;
  color: #000;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  background: #060e1e;
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
}

.status-pill.pill-paid {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid #10b981;
}

.status-pill.pill-reserved {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid #f59e0b;
}

.table-actions-cell {
  display: flex;
  gap: 0.35rem;
}

.table-actions-cell button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Configurador del Sorteo */
.admin-config-card {
  background: #0f1f3d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.config-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.config-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.config-header p {
  font-size: 0.82rem;
  color: #94a3b8;
}

.config-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-section-title {
  grid-column: span 2;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffd700;
  margin-top: 0.6rem;
  border-left: 3px solid #ffd700;
  padding-left: 0.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field.full-width {
  grid-column: span 2;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.form-field input {
  background: #060e1e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.form-field input:focus {
  border-color: #ffd700;
}

.btn-save-config {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  border: none;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 0.8rem;
  transition: all 0.2s ease;
}

.btn-save-config:hover {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  transform: translateY(-2px);
}

/* ==========================================================================
   CARGADOR DE VIDEO A FIREBASE STORAGE (NUBE) EN PANEL ADMIN
   ========================================================================== */
.storage-uploader-box {
  background: radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.12), transparent 70%), #071226;
  border: 1.5px dashed rgba(56, 189, 248, 0.4);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.storage-uploader-box:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.uploader-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.uploader-title-block {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.uploader-icon-cloud {
  font-size: 2rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.uploader-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 0;
}

.uploader-subtitle {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0.2rem 0 0 0;
  max-width: 520px;
  line-height: 1.4;
}

.btn-trigger-upload {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border: 1px solid #38bdf8;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-trigger-upload:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.uploader-drop-area {
  background: rgba(6, 14, 30, 0.7);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1.4rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.uploader-drop-area:hover,
.uploader-drop-area.drag-over {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.06);
}

.drop-icon {
  font-size: 1.8rem;
}

.drop-main-text {
  font-size: 0.85rem;
  color: #e2e8f0;
}

.drop-sub-text {
  font-size: 0.72rem;
  color: #64748b;
}

/* Barra de progreso de subida */
.uploader-progress-wrap {
  margin-top: 1rem;
  background: #040b18;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.progress-file-name {
  color: #38bdf8;
  max-width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.progress-percentage {
  color: #ffd700;
  font-family: var(--font-heading);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.progress-bar-glow {
  height: 100%;
  background: linear-gradient(90deg, #00d2ff, #38bdf8, #ffd700);
  border-radius: 999px;
  transition: width 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.7);
}

.progress-status-msg {
  font-size: 0.73rem;
  color: #94a3b8;
  margin-top: 0.45rem;
}

/* Vista previa activa */
.uploader-preview-wrap {
  margin-top: 1rem;
  background: #040b18;
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 0.85rem;
}

.preview-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.badge-cloud-active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid #10b981;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.btn-clear-preview {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-clear-preview:hover {
  background: #ef4444;
  color: #fff;
}

/* Mockup de Celular Formato Reel 9:16 en Panel Admin */
.reel-phone-mockup {
  width: 170px;
  height: 302px; /* Proporción exacta 9:16 de Reel Vertical */
  margin: 0.9rem auto 0.4rem;
  background: #020712;
  border: 3px solid rgba(0, 210, 255, 0.65);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 210, 255, 0.3);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-speaker-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  z-index: 10;
}

.reel-phone-mockup-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 23px;
}

.preview-hint-text {
  text-align: center;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

/* Modal de Acción del Admin */
.admin-action-card {
  max-width: 440px;
}

.action-card-info {
  background: #060e1e;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.info-row span {
  color: #94a3b8;
}

.action-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn-action-primary {
  background: #10b981;
  color: #000;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-action-secondary {
  background: #f59e0b;
  color: #000;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-action-whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}

.btn-action-danger {
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid #dc2626;
  color: #fca5a5;
  padding: 0.65rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.manual-assign-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-notice {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   MODO CLARO (CLEAR / LIGHT LUXURY)
   Alto Contraste, Blancos Puros, Detalles Oro y Acentos Neón del Logo LA 99
   ========================================================================== */
body.theme-light {
  background: linear-gradient(180deg, #f0f4fa 0%, #e6eff8 50%, #d8e5f5 100%) !important;
  color: #0f172a !important;
}

body.theme-light::before {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 210, 255, 0.12) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 0, 127, 0.10) 0%, transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(255, 193, 7, 0.10) 0%, transparent 30%) !important;
}

body.theme-light .top-nav-bar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(0, 180, 216, 0.3) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .brand-mini-name {
  color: #0f172a !important;
}

body.theme-light .top-social-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .top-social-btn.wa {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

body.theme-light .top-social-btn.ig {
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
  color: #be185d !important;
}

body.theme-light .top-social-btn.fb {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

body.theme-light .top-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .top-btn:hover {
  background: #e2e8f0 !important;
  border-color: #0284c7 !important;
}

body.theme-light .top-btn.theme-btn {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(255, 0, 127, 0.12)) !important;
  border-color: #0284c7 !important;
  color: #0284c7 !important;
}

body.theme-light .top-btn.admin-link {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

/* Cabecera Principal */
body.theme-light .rifa-header-card {
  background: #ffffff !important;
  border: 2px solid rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.08), 0 0 25px rgba(219, 39, 119, 0.06) !important;
}

/* Cabecera / Píldora del Nombre del Evento en Modo Light: respeta el color dinámico del evento */
body.theme-light .event-name-pill {
  border: 1.5px solid rgba(0, 0, 0, 0.08);
}

body.theme-light .event-name-pill .event-card-title {
  color: inherit !important;
}

body.theme-light .rifa-main-title {
  background: linear-gradient(135deg, #db2777 0%, #06b6d4 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 2px 4px rgba(219, 39, 119, 0.12)) !important;
}

body.theme-light .rifa-slogan {
  color: #db2777 !important;
  font-weight: 800 !important;
}

/* Hero Reel Minimalista & Winner Box Dinámico */
body.theme-light .hero-reel-box.lobby-reel-minimal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.theme-light .hero-winner-box {
  background: #ffffff !important;
  border: 2px solid var(--winner-color, #fbcfe8) !important;
  box-shadow: 0 10px 28px var(--winner-glow, rgba(219, 39, 119, 0.15)) !important;
}

body.theme-light .hero-winner-box::after {
  display: none !important;
}

body.theme-light .winner-lottery-name {
  color: #0f172a !important;
}

body.theme-light .winner-prize-name {
  color: #64748b !important;
}

/* Plan de Premios: Todos los premios salen del mismo color del día/tablero */
body.theme-light .prize-card,
body.theme-light .prize-card.prize-jackpot,
body.theme-light .prize-card.prize-secondary,
body.theme-light .prize-card.prize-1,
body.theme-light .prize-card.prize-2,
body.theme-light .prize-card.prize-3 {
  background: #ffffff !important;
  border: 2.5px solid var(--event-theme-color, #db2777) !important;
  box-shadow: 0 10px 30px var(--event-theme-glow, rgba(219, 39, 119, 0.18)) !important;
}

body.theme-light .prize-card-header span {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.theme-light .prize-card-header small {
  color: #64748b !important;
}

body.theme-light .prize-card-amount {
  color: var(--event-theme-color, #0f172a) !important;
  font-weight: 900 !important;
  text-shadow: none !important;
}

body.theme-light .jackpot-glow {
  color: var(--event-theme-color, #9d174d) !important;
  text-shadow: 0 0 20px var(--event-theme-glow, rgba(219, 39, 119, 0.35)) !important;
}

body.theme-light .prize-badge-jackpot,
body.theme-light .prize-badge-secondary {
  background: var(--event-theme-gradient, linear-gradient(135deg, #0284c7, #0369a1)) !important;
  color: var(--event-theme-text, #ffffff) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 10px var(--event-theme-glow, rgba(2, 132, 199, 0.4)) !important;
}

/* Banner de Lotería y Fecha (Versión Clara Ampliada) */
body.theme-light .lottery-info-banner {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06) !important;
  border-radius: 16px !important;
  padding: 1rem 1.8rem !important;
  margin: 1.1rem auto 1.2rem auto !important;
}

body.theme-light .lottery-pill {
  color: #0f172a !important;
}

body.theme-light .lottery-pill strong {
  color: var(--event-theme-color, #db2777) !important;
}

body.theme-light .lottery-pill.date-pill {
  color: #0284c7 !important;
}

/* Herramientas de Azar */
body.theme-light .lucky-controls-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.06) !important;
}

body.theme-light .title-with-icon h2 {
  color: #be185d !important;
}

body.theme-light .controls-subtitle {
  color: #64748b !important;
}

body.theme-light .btn-random-pick {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .btn-random-pick:hover {
  background: #fdf2f8 !important;
  color: #db2777 !important;
  border-color: #db2777 !important;
}

body.theme-light .btn-lucky-max {
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
  color: #be185d !important;
}

body.theme-light .btn-lucky-max:hover {
  background: linear-gradient(135deg, #db2777 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  border-color: #db2777 !important;
}

body.theme-light .btn-clear-selection {
  background: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}

body.theme-light .search-input-box {
  background: #ffffff !important;
  border: 1.5px solid #06b6d4 !important;
}

body.theme-light .search-input-box input {
  color: #0f172a !important;
}

body.theme-light .search-input-box input::placeholder {
  color: #94a3b8 !important;
}

body.theme-light .btn-add-search {
  background: linear-gradient(135deg, #db2777 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
}

body.theme-light .stat-box {
  background: #ffffff !important;
  border: 1.5px solid rgba(6, 182, 212, 0.25) !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.05) !important;
}

body.theme-light .stat-label {
  color: #64748b !important;
}

body.theme-light .progress-container {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

body.theme-light .legend-item {
  color: #334155 !important;
}

/* Tablero 10x10 Oficial */
body.theme-light .board-top-strip {
  background: #ffffff !important;
  border-color: #06b6d4 !important;
}

body.theme-light .strip-title {
  color: var(--event-theme-color, #0891b2) !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  text-shadow: 0 0 16px var(--event-theme-glow, rgba(8, 145, 178, 0.45)) !important;
}

body.theme-light .strip-event-tag {
  display: none !important;
}

body.theme-light .strip-hint {
  color: #64748b !important;
}

body.theme-light .board-frame-glow {
  background: #ffffff !important;
  border: 2.5px solid #06b6d4 !important;
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.12), 0 0 20px rgba(219, 39, 119, 0.08) !important;
}

body.theme-light .board-slot.slot-free {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.05), inset 0 -2px 0 #f1f5f9 !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease !important;
  animation: freeSlotBounce 4.5s infinite ease-in-out !important;
  animation-delay: var(--slot-delay, 0s) !important;
}

body.theme-light .board-slot.slot-free:hover {
  transform: translateY(-2px) scale(1.08) !important;
  background: #ffffff !important;
  border-color: #00b4d8 !important;
  box-shadow: 0 6px 16px rgba(0, 180, 216, 0.25), inset 0 2px 4px rgba(255, 255, 255, 0.9) !important;
  color: #0f172a !important;
  z-index: 5;
}

body.theme-light .board-slot.slot-selected {
  background: linear-gradient(135deg, #00f0ff 0%, #a855f7 28%, #ec4899 55%, #facc15 80%, #00f0ff 100%) !important;
  background-size: 250% 250% !important;
  animation: tornasolShimmer 3s ease infinite !important;
  color: #090d16 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.7), 0 0 24px rgba(236, 72, 153, 0.6), inset 0 0 8px rgba(255, 255, 255, 0.8) !important;
}

/* Footer y Comunidad */
body.theme-light .footer-community-card {
  background: #ffffff !important;
  border-color: #0284c7 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
}

body.theme-light .footer-community-title {
  color: #0284c7 !important;
}

body.theme-light .footer-social-btn {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body.theme-light .footer-social-btn.wa {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #15803d !important;
}

body.theme-light .footer-social-btn.ig {
  background: #fdf2f8 !important;
  border-color: #fbcfe8 !important;
  color: #be185d !important;
}

body.theme-light .footer-social-btn.fb {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1d4ed8 !important;
}

body.theme-light .footer-pill {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .pill-title {
  color: #64748b !important;
}

body.theme-light .pill-detail {
  color: #0f172a !important;
}

body.theme-light .creator-credit-footer {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .creator-credit-footer strong {
  color: #0284c7 !important;
}

body.theme-light .creator-phone-link {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
}

body.theme-light .creator-phone-link:hover {
  background: #15803d !important;
  color: #ffffff !important;
}

/* Drawer Flotante en Modo Claro */
body.theme-light .floating-checkout-bar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top-color: #0284c7 !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12) !important;
}

body.theme-light .checkout-total-label {
  color: #64748b !important;
}

/* Modal de Pago en Modo Claro — Integrado con el Color del Día */
body.theme-light .modal-card {
  background: #ffffff !important;
  border: 2px solid var(--event-theme-color, #0284c7) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 25px var(--event-theme-glow, rgba(2, 132, 199, 0.2)) !important;
}

body.theme-light .modal-header {
  border-bottom: 2px solid #e2e8f0 !important;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

body.theme-light .modal-header-title h3 {
  color: #0f172a !important;
}

body.theme-light .modal-header-title p {
  color: #64748b !important;
}

body.theme-light .customer-form input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .customer-form input:focus {
  border-color: var(--event-theme-color, #0284c7) !important;
  box-shadow: 0 0 10px var(--event-theme-glow, rgba(2, 132, 199, 0.25)) !important;
  background: #ffffff !important;
}

body.theme-light .customer-form label {
  color: #334155 !important;
}

body.theme-light .tab-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

body.theme-light .tab-btn.active {
  background: var(--event-theme-gradient, linear-gradient(135deg, #0284c7, #0369a1)) !important;
  border-color: var(--event-theme-color, #0284c7) !important;
  color: var(--event-theme-text, #ffffff) !important;
  box-shadow: 0 4px 14px var(--event-theme-glow, rgba(2, 132, 199, 0.3)) !important;
}

body.theme-light .qr-payment-card,
body.theme-light .nequi-card,
body.theme-light .bancolombia-card {
  background: #ffffff !important;
  border: 1.5px solid var(--event-theme-color, #cbd5e1) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

body.theme-light .copy-input-group input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body.theme-light .btn-copy {
  background: var(--event-theme-gradient, linear-gradient(135deg, #0284c7, #0369a1)) !important;
  border: 1px solid var(--event-theme-color, #0284c7) !important;
  color: var(--event-theme-text, #ffffff) !important;
  box-shadow: 0 2px 8px var(--event-theme-glow, rgba(2, 132, 199, 0.25)) !important;
}

body.theme-light .breb-verified-card {
  background: #f0f9ff !important;
  border: 1.5px solid var(--event-theme-color, #0284c7) !important;
}

body.theme-light .verified-label {
  color: #64748b !important;
}

body.theme-light .verified-name {
  color: var(--event-theme-dark, #0284c7) !important;
}

body.theme-light .verified-holder {
  color: #0f172a !important; /* Total legibilidad sobre fondo claro */
}

body.theme-light .whatsapp-instruction-card {
  background: #f0f9ff !important;
  border-color: #bae6fd !important;
  color: #0369a1 !important;
}

body.theme-light .instruction-body {
  color: #334155 !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN COMPLETO PARA SMARTPHONES Y TABLETS (OFICIAL LA 99)
   Optimizado para iPhone, Android, pantallas de 360px a 768px+ sin desbordamiento
   ========================================================================== */

/* TABLETS Y PANTALLAS MEDIANAS (<= 768px) */
@media (max-width: 768px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .config-form-grid {
    grid-template-columns: 1fr;
  }

  .form-section-title, .form-field.full-width {
    grid-column: span 1;
  }

  .admin-board-card {
    padding: 0.85rem 0.65rem;
    border-radius: 14px;
  }

  .admin-numbers-grid {
    gap: 3px;
  }

  .admin-cell {
    border-radius: 5px;
    padding: 2px 1px;
  }

  .admin-cell .cell-number {
    font-size: 0.82rem;
  }

  .cell-timer {
    font-size: 0.52rem;
    padding: 0.08rem 0.2rem;
  }
}

/* SMARTPHONES GRANDES Y ESTÁNDAR (<= 680px) */
@media (max-width: 680px) {
  /* Contenedor Principal: máxima amplitud útil en pantalla */
  .container {
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    padding-bottom: 7rem;
  }

  /* Header Card */
  .rifa-header-card {
    padding: 1.1rem 0.65rem 0.9rem;
    border-radius: 18px;
    border-width: 2.5px;
    margin-bottom: 1.1rem;
  }

  .crown-icon {
    font-size: 2rem;
  }

  .gif-logo-hero {
    width: 68px;
    height: 68px;
  }

  .event-name-pill {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
    max-width: 96%;
    white-space: normal;
    line-height: 1.25;
  }

  .rifa-main-title {
    font-size: clamp(2.3rem, 9.5vw, 3.4rem);
    margin: 0.15rem 0 0.2rem;
  }

  .rifa-slogan {
    font-size: 0.82rem;
    margin-bottom: 0.65rem;
  }

  .ball-deco {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    opacity: 0.75;
  }

  /* Fila Centrada de Precio y Oportunidades: apilada armónicamente */
  .header-meta-pills-row {
    flex-direction: column;
    gap: 0.55rem;
    margin: 0.75rem auto 1.1rem auto;
    width: 100%;
    align-items: center;
  }

  .price-pill-banner {
    width: auto;
    max-width: 94%;
    padding: 0.45rem 1.4rem;
  }

  .price-pill-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: #000000 !important;
    font-weight: 900 !important;
  }

  .price-pill-amount {
    font-size: 1.35rem;
  }

  .ribbon-opportunities {
    width: auto;
    max-width: 94%;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
  }

  /* Plan de Premios: apilado en 1 columna centrada (anula grid múltiple) */
  .prizes-grid,
  .prizes-grid.prizes-grid-single,
  .prizes-grid.prizes-grid-double,
  .prizes-grid.prizes-grid-triple,
  .prizes-grid.prizes-grid-quad {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.85rem !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 0 auto 1.2rem auto !important;
  }

  .prizes-grid .prize-card,
  .prizes-grid.prizes-grid-single .prize-card,
  .prizes-grid.prizes-grid-double .prize-card,
  .prizes-grid.prizes-grid-triple .prize-card,
  .prizes-grid.prizes-grid-quad .prize-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.95rem 1rem 0.85rem !important;
    box-sizing: border-box !important;
  }

  .prize-card-header span {
    font-size: 1.1rem !important;
  }

  .prize-card-header small {
    font-size: 0.78rem !important;
  }

  .prize-card-amount {
    font-size: clamp(1.8rem, 6.5vw, 2.5rem) !important;
    margin: 0.25rem 0 0.45rem !important;
  }

  .prize-badge-jackpot {
    font-size: 0.75rem;
    padding: 0.25rem 0.9rem;
    top: -10px;
  }

  /* Banner de Lotería y Fecha */
  .lottery-info-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.45rem;
    padding: 0.65rem 0.8rem;
    margin-bottom: 0.85rem;
  }

  .lottery-pill {
    font-size: 0.82rem;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
  }

  .warning-banner-unpaid {
    font-size: clamp(0.75rem, 3.2vw, 0.92rem);
    padding: 0.45rem 0.75rem;
    letter-spacing: 0.05em;
    gap: 0.4rem;
    text-align: center;
  }

  /* Herramientas de Azar ("¡DILE A LA SUERTE!" + Buscador) */
  .lucky-controls-card {
    padding: 0.95rem 0.75rem;
    border-radius: 14px;
    margin-bottom: 1.1rem;
  }

  .title-with-icon h2 {
    font-size: 1.15rem;
  }

  .dice-bounce {
    font-size: 1.3rem;
  }

  .controls-subtitle {
    font-size: 0.72rem;
  }

  /* Botones de Azar en 2 Columnas Táctiles Grandes */
  .random-buttons-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }

  .btn-random-pick {
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.55rem 0.45rem;
    border-radius: 8px;
  }

  .btn-clear-selection {
    grid-column: span 2;
    width: 100%;
    justify-content: center;
    font-size: 0.78rem;
    padding: 0.52rem;
    border-radius: 8px;
  }

  .search-lucky-wrap {
    max-width: 100%;
    margin-bottom: 0.85rem;
  }

  .search-input-box {
    border-radius: 10px;
  }

  .search-input-box input {
    font-size: 16px !important; /* Previene auto-zoom molesto en Safari iOS */
    padding: 0.6rem 0.65rem;
  }

  .btn-add-search {
    padding: 0.6rem 0.95rem;
    font-size: 0.82rem;
  }

  .board-stats-row {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .board-stats-clean-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-top: 0.75rem;
    margin-bottom: 0.95rem;
  }

  .stat-box-clean.stat-box-white {
    padding: 0.65rem 0.85rem;
  }

  .stat-clean-value {
    font-size: 1.85rem;
  }

  .stat-box-clean.stat-box-selected-wrap {
    padding: 0.65rem 0.85rem;
    min-height: 75px;
  }

  .stat-box {
    padding: 0.45rem 0.2rem;
    border-radius: 8px;
  }

  .stat-label {
    font-size: 0.58rem;
    letter-spacing: 0;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .legend-bar {
    gap: 0.45rem 0.75rem;
    font-size: 0.72rem;
    justify-content: center;
  }

  /* Tira Superior del Tablero */
  .board-top-strip {
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
    border-radius: 16px 16px 0 0;
  }

  .board-top-strip .strip-right {
    display: none; /* Oculta GIF duplicado en móvil para liberar espacio al título */
  }

  .strip-left .board-gif-logo {
    width: 42px;
    height: 42px;
  }

  .strip-center {
    text-align: center;
    padding-right: 4px;
  }

  .strip-event-tag {
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
  }

  .strip-title {
    font-size: clamp(1rem, 3.8vw, 1.25rem);
    line-height: 1.15;
  }

  .strip-hint {
    font-size: 0.68rem;
    margin-top: 0.1rem;
  }

  /* Marco y Grilla Oficial 10x10 */
  .board-frame-glow {
    padding: 0.45rem 0.35rem 0.65rem;
    border-radius: 0 0 16px 16px;
    border-width: 2px;
  }

  .numbers-grid-100 {
    gap: 3.5px;
    padding: 2px 0;
    min-height: 290px;
    contain: layout style;
  }

  .board-slot {
    border-radius: 6px;
    font-size: clamp(0.72rem, 2.5vw, 0.95rem);
  }

  .board-slot.slot-free,
  body.theme-light .board-slot.slot-free {
    animation: freeSlotBounceMobile 4.5s infinite ease-in-out !important;
    animation-delay: var(--slot-delay, 0s) !important;
  }

  .board-slot.slot-selected {
    border-width: 2px;
    transform: translateY(-2px) scale(1.06);
  }

  .slot-sparkle {
    font-size: 0.55rem;
  }

  .slot-clock {
    font-size: 0.55rem;
  }

  .emoji-smiley {
    font-size: clamp(1rem, 3.5vw, 1.35rem);
  }

  /* Barra Flotante de Compra (Drawer) */
  .floating-checkout-bar {
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  }

  .checkout-bar-inner {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .selected-summary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .selected-chips-wrapper {
    max-height: 42px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    flex: 1;
  }

  .num-chip {
    font-size: 0.82rem;
    padding: 0.22rem 0.6rem;
    flex-shrink: 0;
  }

  .checkout-price-info {
    text-align: right;
    flex-shrink: 0;
  }

  .checkout-total-label {
    font-size: 0.6rem;
  }

  .checkout-total-amount {
    font-size: 1.25rem;
  }

  .btn-checkout-cta {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    border-radius: 10px;
  }

  /* Modal de Checkout / Pago */
  .modal-backdrop {
    display: none !important;
    padding: 0.5rem;
    align-items: flex-end;
  }

  .modal-backdrop.active {
    display: flex !important;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
    margin: 0;
  }

  .modal-header {
    padding: 0.85rem 1rem;
  }

  .modal-icon {
    font-size: 1.5rem;
  }

  .modal-header-title h3 {
    font-size: 1.05rem;
  }

  .modal-header-title p {
    font-size: 0.72rem;
  }

  .modal-body {
    padding: 0.85rem 0.75rem 1.5rem;
  }

  .big-reservation-hero {
    padding: 0.85rem 0.6rem;
    border-radius: 14px;
    margin-bottom: 1rem;
  }

  .hero-tagline {
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
  }

  .hero-numbers-grid {
    gap: 0.45rem;
    margin: 0.45rem 0 0.85rem;
  }

  .hero-num-ball {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    border-radius: 10px;
  }

  .hero-total-strip {
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-total-label {
    font-size: 0.72rem;
  }

  .hero-total-val {
    font-size: 1.25rem;
  }

  .hero-warning-banner {
    padding: 0.65rem 0.6rem;
    border-radius: 10px;
  }

  .warning-title {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .countdown-box {
    padding: 0.3rem 0.7rem;
    margin: 0.35rem auto;
  }

  .countdown-clock {
    font-size: 1.45rem;
  }

  .warning-subtext {
    font-size: 0.68rem;
  }

  .customer-form input {
    font-size: 16px !important;
    padding: 0.65rem 0.75rem;
  }

  .payment-tabs-header {
    gap: 0.3rem;
  }

  .tab-btn {
    padding: 0.5rem 0.35rem;
    font-size: 0.75rem;
    border-radius: 8px;
  }

  .tab-logo {
    height: 15px;
  }

  .qr-payment-card {
    padding: 0.9rem 0.65rem;
  }

  .qr-code-box {
    padding: 0.5rem;
  }

  .qr-code-box img, .qr-code-box canvas {
    max-width: 170px !important;
    height: auto !important;
  }

  .copy-input-group input {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .btn-copy {
    font-size: 0.75rem;
    padding: 0.5rem 0.7rem;
  }

  .account-holder {
    font-size: 0.72rem;
  }

  .nequi-card, .bancolombia-card {
    padding: 0.9rem 0.65rem;
  }

  .btn-confirm-whatsapp {
    padding: 0.8rem 0.85rem;
  }

  .action-btn-text strong {
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .action-btn-text small {
    font-size: 0.72rem;
  }

  .whatsapp-instruction-card {
    padding: 0.75rem 0.7rem;
  }

  .instruction-header strong {
    font-size: 0.8rem;
  }

  .instruction-body {
    font-size: 0.74rem;
  }

  .instruction-badge {
    font-size: 0.72rem;
    padding: 0.4rem 0.6rem;
  }

  /* Modal de Reel */
  .reel-modal-card {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }

  .reel-modal-body {
    padding: 0.75rem 0.6rem;
  }

  .reel-video-container {
    max-height: 60vh;
  }

  .btn-reel-external, .btn-reel-whatsapp {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.7rem 0.8rem;
  }

  /* Módulo de Tablero Cerrado / Próximo Evento */
  .closed-showcase-card {
    padding: 1.3rem 0.8rem;
    border-radius: 16px;
  }

  .closed-badge-pill {
    font-size: 0.7rem;
    padding: 0.35rem 0.8rem;
    white-space: normal;
    line-height: 1.3;
  }

  .closed-crown-icon {
    font-size: 2.2rem;
  }

  .closed-main-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .closed-subtitle {
    font-size: 0.82rem;
    margin-bottom: 1.2rem;
  }

  .closed-schedule-info-box {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.85rem 0.8rem;
    margin-bottom: 1.3rem;
  }

  .closed-schedule-divider {
    width: 80%;
    height: 1px;
  }

  .closed-schedule-item {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .closed-actions-grid {
    flex-direction: column;
    width: 100%;
    gap: 0.6rem;
  }

  .btn-closed-action {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
    text-align: center;
  }

  /* Footer */
  .rifa-footer-info {
    padding: 1.2rem 0.5rem;
  }

  .footer-payment-pills {
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
  }

  .footer-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
  }

  /* Atajos Top y Social en Móviles */
  .top-social-bar {
    gap: 0.25rem;
  }
  .top-social-btn {
    padding: 0.22rem 0.45rem;
    font-size: 0.7rem;
  }
  .top-social-btn .social-text {
    display: none;
  }
  .top-btn.theme-btn {
    padding: 0.25rem 0.45rem;
  }
  .theme-btn-label {
    display: none;
  }

  /* Píldoras de Redes en Cabecera Móvil */
  .header-social-pills-row {
    gap: 0.45rem;
    margin: 0.3rem auto 0.9rem;
  }
  .social-pill-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
  }

  /* Tarjeta de Redes y Comunidad en Footer */
  .footer-community-card {
    padding: 0.85rem 0.65rem;
    margin: 1rem auto;
  }
  .footer-social-row {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  .footer-social-btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 0.6rem 0.8rem;
  }

  /* Letrero Creador en Móviles */
  .creator-credit-footer {
    width: 100%;
    max-width: 96%;
    font-size: 0.72rem;
    padding: 0.5rem 0.75rem;
    box-sizing: border-box;
    text-align: center;
  }

  /* Botón Flotante VIP WhatsApp Oficial en Móviles */
  .floating-whatsapp-vip,
  .floating-facebook-vip {
    bottom: 18px;
    right: 14px;
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    z-index: 999;
  }
  .whatsapp-vip-meta,
  .facebook-vip-meta {
    display: none !important;
  }
  .whatsapp-vip-link,
  .facebook-vip-link {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  .whatsapp-vip-icon,
  .facebook-vip-icon {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .whatsapp-vip-img {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: contain !important;
    display: block !important;
  }
  body.has-active-checkout .floating-whatsapp-vip,
  body.has-active-checkout .floating-facebook-vip,
  .floating-checkout-bar.active ~ .floating-whatsapp-vip,
  .floating-checkout-bar.active ~ .floating-facebook-vip {
    bottom: calc(160px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* SMARTPHONES COMPACTOS (<= 380px, Ej: iPhone SE, Galaxy A series antiguos) */
@media (max-width: 380px) {
  .container {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .rifa-header-card {
    padding: 0.95rem 0.45rem 0.75rem;
    border-radius: 14px;
  }

  .board-frame-glow {
    padding: 0.35rem 0.25rem 0.5rem;
  }

  .numbers-grid-100 {
    gap: 2px;
    min-height: 250px;
    contain: layout style;
  }

  .board-slot {
    border-radius: 4px;
    font-size: 0.72rem;
  }

  .emoji-smiley {
    font-size: 0.95rem;
  }

  .hero-num-ball {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   ESTILOS ADICIONALES: VENTA MANUAL, NUEVO EVENTO Y CHIPS RÁPIDOS
   ========================================================================== */
.quick-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 90px;
  overflow-y: auto;
}

.chip-num-slot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 7px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-num-slot:hover {
  background: rgba(0, 210, 255, 0.25);
  border-color: #00d2ff;
  color: #fff;
  transform: translateY(-1px);
}

.chip-num-slot.active {
  background: #ffd700;
  border-color: #ffd700;
  color: #000;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.quick-sale-card input,
.quick-sale-card select,
.new-event-card input,
.new-event-card select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  background: #081630;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
}

.quick-sale-card input:focus,
.quick-sale-card select:focus,
.new-event-card input:focus,
.new-event-card select:focus {
  outline: none;
  border-color: #00d2ff;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.35);
}

.btn-action-sale {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  border: none !important;
}

.btn-action-reset {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #000000 !important;
  font-weight: 800;
  border: none !important;
}

/* ==========================================================================
   MÓDULO DE PRÓXIMO EVENTO EN ESPERA / TABLERO CERRADO (#boardClosedShowcase)
   ========================================================================== */
.board-closed-showcase {
  margin: 1.5rem 0 2.5rem 0;
  width: 100%;
}

.closed-showcase-card {
  background: linear-gradient(135deg, #091a38 0%, #030a1c 100%);
  border: 2px solid #ffd700;
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.25), inset 0 0 25px rgba(0, 210, 255, 0.1);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closed-badge-row {
  margin-bottom: 1.2rem;
}

.closed-badge-pill {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  letter-spacing: 1px;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  display: inline-block;
}

.closed-crown-icon {
  font-size: 2.8rem;
  display: inline-block;
  filter: drop-shadow(0 0 10px #ffd700);
  animation: floatBounceCrown 3s infinite ease-in-out;
}

@keyframes floatBounceCrown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.closed-main-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
  margin: 0.5rem 0 0.8rem 0;
  text-transform: uppercase;
}

.closed-subtitle {
  color: #cbd5e1;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  max-width: 680px;
  margin: 0 auto 1.8rem auto;
  line-height: 1.6;
}

.closed-schedule-info-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  max-width: 720px;
  margin: 0 auto 1.8rem auto;
  flex-wrap: wrap;
}

.closed-schedule-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.closed-schedule-item .schedule-icon {
  font-size: 1.8rem;
}

.closed-schedule-item small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.closed-schedule-item strong {
  display: block;
  font-size: 0.95rem;
  color: #00e5ff;
  font-weight: 800;
}

.closed-schedule-divider {
  width: 1px;
  height: 35px;
  background: rgba(255, 255, 255, 0.15);
}

.closed-actions-grid {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  max-width: 780px;
  margin: 0 auto;
}

.btn-closed-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-closed-reel {
  background: linear-gradient(135deg, #00d2ff 0%, #0077b6 100%);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.btn-closed-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}

.btn-closed-instagram {
  background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
  color: #fff;
}

.btn-closed-facebook {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
}

.btn-closed-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

/* ==========================================================================
   SELECCIÓN MÚLTIPLE DE CASILLAS EN EL ADMIN
   ========================================================================== */
.admin-cell.cell-multi-selected {
  background: linear-gradient(180deg, #ffd700 0%, #ca8a04 100%) !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.9), inset 0 0 6px #fff !important;
  transform: scale(1.08);
  z-index: 5;
  position: relative;
}

.admin-cell.cell-multi-selected .cell-number {
  color: #000 !important;
  font-weight: 900;
}

.admin-cell.cell-multi-selected::after {
  content: "✓";
  position: absolute;
  top: 2px;
  right: 5px;
  font-size: 0.75rem;
  font-weight: 900;
  color: #000;
}

.admin-btn-tool.active {
  background: #ffd700 !important;
  color: #000 !important;
  border-color: #fff !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

/* =============================================================================
   SISTEMA MULTI-EVENTO: LOBBY, CATÁLOGO DE SORTEOS Y ÚLTIMOS GANADORES
   ============================================================================= */

/* Vista Principal del Lobby */
.events-lobby-view {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeIn 0.4s ease-out;
}

/* Hero Principal del Lobby */
.lobby-hero-card {
  background: linear-gradient(180deg, rgba(16, 42, 88, 0.96) 0%, rgba(8, 22, 48, 0.98) 100%);
  border: 3px solid #ffc107;
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), inset 0 0 35px rgba(255, 215, 0, 0.15);
  padding: 1.8rem 1.4rem;
  position: relative;
  overflow: hidden;
}

body.theme-light .lobby-hero-card {
  background: #ffffff !important;
  border: 2px solid rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 12px 35px rgba(6, 182, 212, 0.08), 0 0 25px rgba(219, 39, 119, 0.06) !important;
}

.lobby-hero-layout {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 1.5rem;
  align-items: center;
}

/* 1. REEL PUBLICITARIO MINIMALISTA Y LIMPIO (Solo Contenedor de Video) */
.lobby-hero-layout .hero-reel-box.lobby-reel-minimal {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 auto !important;
  cursor: pointer;
  width: 100%;
  height: auto;
  min-height: unset;
}

.lobby-hero-layout .hero-reel-box.lobby-reel-minimal:hover {
  transform: none !important;
}

.reel-minimal-container {
  width: 100%;
  max-width: 195px;
  height: 285px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #020712;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.08);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  isolation: isolate;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.lobby-hero-layout .hero-reel-box.lobby-reel-minimal:hover .reel-minimal-container {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.reel-minimal-container::before {
  display: none !important; /* Sin muesca de celular */
}

.reel-minimal-container .reel-video-loop,
.reel-minimal-container .reel-image-loop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 20px;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reel-minimal-container .reel-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.lobby-hero-layout .hero-reel-box.lobby-reel-minimal:hover .reel-play-overlay {
  opacity: 1;
}

.reel-minimal-container .reel-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #db2777;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding-left: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.lobby-hero-layout .hero-reel-box.lobby-reel-minimal:hover .reel-play-icon {
  transform: scale(1.12);
}

/* 2. MARCA OFICIAL LA 99 (Logo más grande y Eslogan Oficial) */
.lobby-brand-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lobby-brand-hero .gif-logo-hero {
  width: clamp(145px, 16vw, 175px) !important;
  height: clamp(145px, 16vw, 175px) !important;
  border: 4px solid var(--event-theme-color, #db2777) !important;
  box-shadow: 0 0 35px var(--event-theme-glow, rgba(219, 39, 119, 0.35)), 0 10px 25px rgba(0, 0, 0, 0.1) !important;
  padding: 4px !important;
  background: #ffffff !important;
}

.lobby-brand-hero .rifa-main-title {
  margin: 0.2rem 0 0.1rem 0 !important;
}

.lobby-brand-hero .rifa-slogan {
  font-size: clamp(1.2rem, 3.4vw, 1.6rem) !important;
  font-weight: 800 !important;
  color: #db2777 !important;
  font-style: italic !important;
  margin: 0.1rem 0 0.85rem 0 !important;
  letter-spacing: 0.03em !important;
}

/* 3. WIDGET ÚLTIMO GANADOR (ÚNICO DE LA APP) CON COLOR DEL TABLERO GANADOR */
.lobby-hero-layout .hero-winner-box.lobby-winner-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  min-height: 285px;
  border-radius: 20px;
  padding: 0.95rem 0.8rem;
  box-sizing: border-box;
  margin: 0;
  width: 100%;
  background: #ffffff !important;
  border: 2px solid var(--winner-color, #ff007f) !important;
  box-shadow: 0 10px 28px var(--winner-glow, rgba(255, 0, 127, 0.25)) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  isolation: isolate;
}

.lobby-hero-layout .hero-winner-box.lobby-winner-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px var(--winner-glow, rgba(255, 0, 127, 0.35)) !important;
}

.lobby-winner-hero #lobbyWinnerBadge {
  background: var(--winner-gradient, linear-gradient(135deg, #ff007f 0%, #a00050 100%)) !important;
  box-shadow: 0 2px 8px var(--winner-glow, rgba(255, 0, 127, 0.45)) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  color: #ffffff !important;
}

/* Balotas 3D Interactivas Dinámicas con el Color del Tablero Ganador */
.lobby-winner-hero .winner-digit-ball,
body.theme-light .lobby-winner-hero .winner-digit-ball {
  background: radial-gradient(circle at 35% 26%, #ffffff 0%, var(--winner-secondary, #ff4da6) 28%, var(--winner-color, #ff007f) 65%, var(--winner-dark, #a00050) 100%) !important;
  color: var(--winner-text, #ffffff) !important;
  border: 2px solid #ffffff !important;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.35),
    0 0 20px var(--winner-glow, rgba(255, 0, 127, 0.5)),
    inset -3px -3px 6px rgba(0, 0, 0, 0.4),
    inset 3px 3px 6px rgba(255, 255, 255, 0.95) !important;
  animation: ballScaleExpand 2.2s infinite ease-in-out !important;
  animation-delay: calc(var(--ball-index, 0) * 0.22s) !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lobby-winner-hero .winner-digit-ball:hover,
body.theme-light .lobby-winner-hero .winner-digit-ball:hover {
  transform: translateY(-8px) scale(1.18) !important;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.45),
    0 0 32px var(--winner-glow, rgba(225, 29, 72, 0.8)),
    inset -3px -3px 6px rgba(0, 0, 0, 0.4),
    inset 3px 3px 6px rgba(255, 255, 255, 1) !important;
}

.lobby-winner-hero .winner-digit-ball .winner-digit-text,
body.theme-light .lobby-winner-hero .winner-digit-ball .winner-digit-text {
  color: var(--winner-text, #ffffff) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.lobby-trust-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.trust-badge {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #00e5ff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.theme-light .trust-badge {
  background: #ecfeff;
  border-color: #a5f3fc;
  color: #0891b2;
}

/* Encabezados de Sección del Lobby */
.lobby-section-header {
  text-align: center;
  margin-bottom: 1.2rem;
}

.title-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1.5px solid #ffd700;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
  margin-bottom: 0.4rem;
}

body.theme-light .title-with-badge {
  background: linear-gradient(135deg, #fff5f7 0%, #ecfeff 100%);
  border-color: #06b6d4;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.12);
}

body.theme-light .title-with-badge h2 {
  color: #be185d;
}

.title-with-badge h2 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #ffe853;
  margin: 0;
}

body.theme-light .title-with-badge h2 {
  color: #0f172a;
}

.title-with-badge .section-icon {
  font-size: 1.3rem;
}

.section-subtitle {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin: 0;
}

body.theme-light .section-subtitle {
  color: #64748b;
}

/* =============================================================================
   SECCIÓN: 🏆 ÚLTIMOS NÚMEROS GANADORES
   ============================================================================= */
.winners-showcase-section {
  background: rgba(16, 32, 64, 0.7);
  border: 2px solid rgba(255, 215, 0, 0.5);
  border-radius: 20px;
  padding: 1.5rem 1.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

body.theme-light .winners-showcase-section {
  background: #ffffff;
  border: 2px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.06);
}

.winners-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.winner-card-item {
  background: #ffffff;
  border: 2px solid #fbcfe8;
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.winner-card-item:hover {
  transform: translateY(-4px);
  border-color: #db2777;
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.16);
}

body.theme-light .winner-card-item {
  background: #ffffff;
  border-color: #fbcfe8;
  box-shadow: 0 8px 24px rgba(219, 39, 119, 0.06);
}

body.theme-light .winner-card-item:hover {
  border-color: #db2777;
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.16);
}

.winner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.winner-event-tag {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #be185d;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-light .winner-event-tag {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

.winner-status-chip {
  background: #10b981;
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Fila de Balotas 3D del Ganador */
.winner-balls-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
}

.winner-digit-ball {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f472b6 35%, #db2777 75%, #9d174d 100%);
  box-shadow: 0 6px 14px rgba(219, 39, 119, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(157, 23, 77, 0.5);
  border: 2px solid #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: ballBounceIn 0.5s ease-out backwards;
}

.winner-digit-ball .winner-digit-text {
  font-size: 1.45rem;
  font-weight: 900;
  color: #ffffff;
  font-family: 'Arial Black', Impact, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

body.theme-light .winner-digit-ball {
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f472b6 35%, #db2777 75%, #9d174d 100%) !important;
  box-shadow: 0 6px 14px rgba(219, 39, 119, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(157, 23, 77, 0.5) !important;
  border-color: #ffffff !important;
}

body.theme-light .winner-digit-ball .winner-digit-text {
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.winner-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.6rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

body.theme-light .winner-card-details {
  border-top-color: #e2e8f0;
  color: #475569;
}

.winner-card-details strong {
  color: #fff;
}

body.theme-light .winner-card-details strong {
  color: #0f172a;
}

/* =============================================================================
   SECCIÓN: 🎟️ EVENTOS ACTIVOS Y SORTEOS DISPONIBLES
   ============================================================================= */
.available-events-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.events-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  width: 100%;
}

@media (max-width: 1180px) {
  .events-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
  }
}

@media (max-width: 680px) {
  .events-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* =============================================================================
   TARJETA DE ESTADO VACÍO: NO HAY EVENTOS ACTIVOS (ESTILO OFICIAL LOGO LA 99)
   ============================================================================= */
.no-events-empty-card {
  position: relative;
  grid-column: 1 / -1;
  background: #ffffff;
  border: 2px solid rgba(6, 182, 212, 0.45);
  border-radius: 24px;
  padding: 2.8rem 1.8rem 2.4rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.12), 0 6px 22px rgba(219, 39, 119, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  max-width: 660px;
  margin: 0.5rem auto 1.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.no-events-empty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #00f0ff 0%, #ec4899 50%, #ffd700 100%);
  border-radius: 24px 24px 0 0;
}

.no-events-glow-halo {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(236, 72, 153, 0.18) 50%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
  z-index: 0;
}

.no-events-badge-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(219, 39, 119, 0.12) 100%);
  border: 1.5px solid #06b6d4;
  color: #0891b2;
  padding: 0.45rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: clamp(0.74rem, 2.4vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.no-events-sparkle {
  color: #f59e0b;
  font-size: 0.95rem;
  animation: pulseGlow 2s infinite ease-in-out;
}

.no-events-logo-wrap {
  position: relative;
  z-index: 1;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #00f0ff 0%, #ec4899 50%, #ffd700 100%);
  box-shadow: 0 0 28px rgba(6, 182, 212, 0.35), 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatSlow 3.2s ease-in-out infinite alternate;
  margin: 0.2rem 0;
}

.no-events-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
}

.no-events-title {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 4.2vw, 1.7rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin: 0;
}

.no-events-slogan {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(1.02rem, 3vw, 1.25rem);
  font-weight: 800;
  font-style: italic;
  background: linear-gradient(135deg, #0284c7 0%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: -0.45rem 0 0.15rem;
  letter-spacing: 0.02em;
}

.no-events-description {
  position: relative;
  z-index: 1;
  font-size: clamp(0.88rem, 2.6vw, 0.98rem);
  color: #334155;
  line-height: 1.55;
  max-width: 500px;
  margin: 0;
  font-weight: 500;
}

.no-events-cta-row {
  position: relative;
  z-index: 1;
  margin-top: 0.4rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.no-events-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: clamp(0.86rem, 2.6vw, 0.98rem);
  font-weight: 800;
  padding: 0.75rem 1.45rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.no-events-whatsapp-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
}

.no-events-whp-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.no-events-trust-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.no-events-trust-row .trust-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
}

/* Modo Claro Explícito */
body.theme-light .no-events-empty-card {
  background: #ffffff !important;
  border: 2px solid rgba(6, 182, 212, 0.45) !important;
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.12), 0 6px 22px rgba(219, 39, 119, 0.08) !important;
}

body.theme-light .no-events-title {
  color: #0f172a !important;
}

body.theme-light .no-events-description {
  color: #334155 !important;
}

/* Mensaje de carga para eventos */
.events-loading-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.2rem 1.2rem;
  background: #ffffff;
  border: 2px dashed #06b6d4;
  border-radius: 18px;
  color: #0284c7;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.08);
}
body.theme-light .events-loading-msg {
  background: #ffffff !important;
  color: #0284c7 !important;
}

.event-card-item {
  background: #ffffff;
  border: 2px solid rgba(6, 182, 212, 0.35);
  border-radius: 18px;
  padding: 1.15rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer !important;
  user-select: none;
}

.event-card-item:hover {
  transform: translateY(-4px);
  border-color: #db2777;
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.16), 0 0 16px rgba(6, 182, 212, 0.14);
}

.event-card-item:hover .btn-ver-numeros-sketch {
  transform: scale(1.02);
  filter: brightness(1.08);
}

body.theme-light .event-card-item {
  background: #ffffff !important;
  border: 2px solid rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05) !important;
  cursor: pointer !important;
}

body.theme-light .event-card-item:hover {
  border-color: #db2777 !important;
  box-shadow: 0 14px 32px rgba(219, 39, 119, 0.16), 0 0 16px rgba(6, 182, 212, 0.14) !important;
}

.event-card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.event-badge-tag {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 8px rgba(239, 68, 68, 0.4);
}

.event-duration-tag {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid #00e5ff;
  color: #00e5ff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

body.theme-light .event-duration-tag {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
}

.event-card-title {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
}

body.theme-light .event-card-title {
  color: #0f172a;
}

/* Caja de Premio Mayor del Card */
.event-jackpot-box {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 180, 0, 0.05) 100%);
  border: 1.5px solid #ffd700;
  border-radius: 14px;
  padding: 0.9rem;
  text-align: center;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.15);
}

body.theme-light .event-jackpot-box {
  background: linear-gradient(135deg, #fff5f7 0%, #fdf2f8 100%);
  border-color: #fbcfe8;
}

.event-jackpot-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #db2777;
  letter-spacing: 1px;
}

body.theme-light .event-jackpot-label {
  color: #be185d;
}

.event-jackpot-amount {
  font-size: 1.85rem;
  font-weight: 900;
  color: #9d174d;
  font-family: 'Arial Black', Impact, sans-serif;
  letter-spacing: 1px;
  margin: 0.15rem 0;
}

body.theme-light .event-jackpot-amount {
  color: #9d174d;
  text-shadow: none;
}

.event-jackpot-sub {
  font-size: 0.8rem;
  color: #e2e8f0;
}

body.theme-light .event-jackpot-sub {
  color: #475569;
}

/* Meta-datos de la Rifa en el Card */
.event-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  padding: 0.75rem;
}

body.theme-light .event-meta-grid {
  background: #f1f5f9;
}

.event-meta-item {
  display: flex;
  flex-direction: column;
}

.meta-item-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.meta-item-val {
  font-weight: 800;
  color: #ffffff;
}

body.theme-light .meta-item-val {
  color: #0f172a;
}

/* Barra de progreso de disponibilidad */
.event-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

body.theme-light .event-progress-track {
  background: #e2e8f0;
}

.event-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #00e5ff 60%, #ffd700 100%);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.event-progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: #cbd5e1;
}

body.theme-light .event-progress-stats {
  color: #64748b;
}

/* Botón Entrar al Tablero */
.btn-enter-event {
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  color: #000000;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-enter-event:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.6);
  filter: brightness(1.05);
}

/* Barra Superior de Navegación del Tablero */
.board-top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(16, 32, 64, 0.85);
  border: 1.5px solid rgba(0, 210, 255, 0.4);
  border-radius: 14px;
  padding: 0.75rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

body.theme-light .board-top-nav-bar {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.btn-back-to-lobby {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-back-to-lobby:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
  color: #ffd700;
  transform: translateX(-3px);
}

body.theme-light .btn-back-to-lobby {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.theme-light .btn-back-to-lobby:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

.active-event-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #cbd5e1;
}

body.theme-light .active-event-crumb {
  color: #475569;
}

.active-event-crumb strong {
  color: #ffe853;
}

body.theme-light .active-event-crumb strong {
  color: #0284c7;
}

.crumb-badge {
  background: #10b981;
  color: #000;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

/* =============================================================================
   ESTILOS DEL ADMINISTRADOR PARA GESTIÓN MULTI-EVENTO
   ============================================================================= */
.admin-event-bar-wrapper {
  background: rgba(16, 32, 64, 0.9);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-event-selector-box {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.selector-tag {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffd700;
  white-space: nowrap;
}

.admin-event-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1.5px solid #ffd700;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  flex: 1;
  max-width: 480px;
}

.admin-event-select option {
  background: #0f172a;
  color: #ffffff;
}

.btn-top-create-event {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary-create-event {
  background: linear-gradient(135deg, #ffd700 0%, #ca8a04 100%);
  color: #000;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}

.admin-events-manager-card {
  background: rgba(16, 32, 64, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.events-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.events-manager-header h3 {
  font-size: 1.3rem;
  color: #ffe853;
  margin: 0 0 0.3rem 0;
}

.events-manager-header p {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
}

.events-admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.4rem;
}

.admin-event-card {
  background: rgba(16, 36, 72, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  transition: all 0.25s ease;
}

.admin-event-card.event-is-active {
  border-color: #10b981;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2), inset 0 0 15px rgba(16, 185, 129, 0.05);
}

.admin-event-card.event-is-paused {
  border-color: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15);
  opacity: 0.88;
}

.admin-event-card.active-managing {
  border-color: #ffd700 !important;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.35) !important;
}

.event-card-admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.event-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid #ffd700;
  color: #ffd700;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.btn-toggle-event-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
  border: 1.5px solid;
  transition: all 0.2s ease;
}

.btn-toggle-event-status.status-active {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.btn-toggle-event-status.status-active:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.btn-toggle-event-status.status-paused {
  background: rgba(239, 68, 68, 0.22);
  border-color: #ef4444;
  color: #fca5a5;
}

.btn-toggle-event-status.status-paused:hover {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.event-admin-form-fields {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-admin-form-fields .field-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.event-admin-form-fields label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #cbd5e1;
}

.event-admin-form-fields input[type="text"],
.event-admin-form-fields input[type="number"] {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: #ffffff;
  font-size: 0.86rem;
  transition: border-color 0.2s ease;
}

.event-admin-form-fields input:focus {
  border-color: #ffd700;
  outline: none;
}

.field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.prize-sub-box-admin {
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prize-sub-header .check-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffe853;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.event-admin-stats-box {
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-mini-row {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.stats-money-row {
  color: #ffd700;
  font-weight: 800;
  font-size: 0.85rem;
}

.admin-event-actions-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.btn-event-action {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-event-action:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-event-action.btn-event-save {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  color: #081630;
  font-weight: 900;
  box-shadow: 0 3px 10px rgba(255, 215, 0, 0.35);
}

.btn-event-board {
  background: #0284c7;
  color: #ffffff;
}

.btn-event-edit {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-event-winner {
  background: #f59e0b;
  color: #000000;
  font-weight: 800;
}

.btn-event-delete {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

/* Tabla de Ganadores Históricos en Admin */
.admin-winners-manager-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.winners-manager-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.winners-manager-header h4 {
  font-size: 1.15rem;
  color: #ffd700;
  margin: 0 0 0.2rem 0;
}

.winners-manager-header p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.btn-add-winner-manual {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid #00d2ff;
  color: #00e5ff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  cursor: pointer;
}

.admin-winners-table-wrap {
  overflow-x: auto;
}

.admin-winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-winners-table th {
  background: rgba(0, 0, 0, 0.4);
  color: #ffd700;
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.3);
}

.admin-winners-table td {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

/* =========================================================================
   ESTILOS DE TARJETAS DE EVENTOS SEGÚN BOCETO DEL CLIENTE
   Entorno Blanco Puro, Paleta Logo LA 99: Fucsia, Agua Marina y Toque de Rosa
   ========================================================================= */
.event-card-header-sketch {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  width: 100%;
}

body.theme-light .event-card-header-sketch {
  border-color: #f1f5f9 !important;
}

/* Pastilla Oficial con Nombre del Evento y Relleno del Color del Día */
.event-name-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  max-width: 100%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-name-pill:hover {
  transform: translateY(-2px);
}

.event-name-pill .event-card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(0.92rem, 1.35vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.event-name-pill .event-pulse-dot {
  font-size: 0.85rem;
  line-height: 1;
}

/* Ocultar etiquetas/badges redundantes de la cabecera */
.event-badge-tag {
  display: none !important;
}

.event-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

/* Punto Animado Llamativo */
.event-pulse-dot {
  display: inline-block;
  font-size: 1.15rem;
  color: #06b6d4;
  text-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4;
  animation: pulseAquaDot 1.4s infinite ease-in-out;
  line-height: 1;
  flex-shrink: 0;
}

@keyframes pulseAquaDot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.65;
  }
}

/* Grilla de 2 Cajas Principales (Boceto Cliente: PREMIO | VALOR + BOTÓN) */
.event-card-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  min-width: 0;
  width: 100%;
}

.event-split-box {
  min-width: 0;
  padding: 0.75rem 0.6rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-light .event-split-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

/* Caja Izquierda: PREMIO (Adaptada dinámicamente al color del día en tono suave/pastel) */
.event-prize-box {
  border-radius: 14px;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.03);
}

body.theme-light .event-prize-box {
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.03) !important;
}

.split-box-label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.event-action-box .split-box-label {
  color: #000000 !important;
  font-weight: 900 !important;
}

body.theme-light .split-box-label {
  color: #000000;
}

body.theme-light .event-action-box .split-box-label {
  color: #000000 !important;
  font-weight: 900 !important;
}

.split-prize-val {
  font-size: clamp(1.08rem, 1.35vw, 1.35rem);
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.4px;
  margin: 0.15rem 0 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

body.theme-light .split-prize-val {
  text-shadow: none !important;
}

.split-prize-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.3;
}

body.theme-light .split-prize-breakdown {
  color: #475569 !important;
}

/* Caja Derecha: VALOR (Fondo Blanco y Texto Negro en todos los tableros) */
.event-action-box {
  text-align: center;
  align-items: center;
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

body.theme-light .event-action-box {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

.split-price-val {
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  font-weight: 900;
  color: #0f172a !important;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: -0.3px;
  margin: 0.15rem 0 0.45rem;
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1.2;
}

body.theme-light .split-price-val {
  color: #0f172a !important;
}

/* Botón Ver Números (Gradiente Fucsia a Agua Marina del Logo) */
.btn-ver-numeros-sketch {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #db2777 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.55rem 0.5rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-ver-numeros-sketch:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(6, 182, 212, 0.4);
  filter: brightness(1.08);
  color: #ffffff;
}

.event-card-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.65rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.theme-light .event-card-footer-meta {
  border-color: #f1f5f9 !important;
  color: #64748b !important;
}

/* =========================================================================
   SECCIÓN: ¿CÓMO PARTICIPO? (3 Pasos con Flechas)
   ========================================================================= */
/* =========================================================================
   SECCIÓN COMPACTA E INFORMATIVA: 🎯 ¿CÓMO PARTICIPO? (Boceto Cliente)
   ========================================================================= */
.how-it-works-section.compact-how-section {
  margin: 1.2rem 0 1.4rem !important;
  padding: 0.85rem 1.1rem 0.95rem !important;
  background: #ffffff !important;
  border: 1.5px solid rgba(6, 182, 212, 0.3) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.06) !important;
}

body.theme-light .how-it-works-section.compact-how-section {
  background: #ffffff !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.06) !important;
}

.how-compact-header {
  margin-bottom: 0.65rem;
}

.how-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.how-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 900;
  color: #0891b2;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  padding: 0.22rem 0.65rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.how-subtitle-text {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
}

.how-steps-container {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.6rem !important;
  margin-top: 0 !important;
}

.how-step-card {
  flex: 1 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.75rem 0.65rem !important;
  text-align: left !important;
  position: static !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.how-step-card:hover {
  background: #ffffff !important;
  border-color: #fbcfe8 !important;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.09) !important;
  transform: translateY(-1px) !important;
}

body.theme-light .how-step-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

body.theme-light .how-step-card:hover {
  background: #ffffff !important;
  border-color: #fbcfe8 !important;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.09) !important;
}

.step-card-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.step-mini-badge {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #db2777 0%, #06b6d4 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(219, 39, 119, 0.35);
}

.step-mini-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.step-title {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

body.theme-light .step-title {
  color: #0f172a !important;
}

.step-desc {
  font-size: 0.72rem !important;
  color: #64748b !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding-left: 1.6rem;
}

body.theme-light .step-desc {
  color: #64748b !important;
}

.how-step-arrow {
  font-size: 1.1rem !important;
  color: #06b6d4 !important;
  font-weight: 900 !important;
  flex-shrink: 0 !important;
  transform: none !important;
  opacity: 0.75;
}

body.theme-light .how-step-arrow {
  color: #06b6d4 !important;
  text-shadow: none !important;
}

@media (max-width: 680px) {
  .how-it-works-section.compact-how-section {
    padding: 0.65rem 0.75rem !important;
    margin: 0.85rem 0 !important;
  }

  .how-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .how-pill-badge {
    font-size: 0.72rem;
    padding: 0.18rem 0.55rem;
  }

  .how-subtitle-text {
    font-size: 0.7rem;
  }

  .how-steps-container {
    flex-direction: column !important;
    gap: 0.4rem !important;
  }

  .how-step-card {
    padding: 0.45rem 0.65rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .how-step-arrow {
    display: none !important;
  }

  .step-mini-badge {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  .step-mini-icon {
    font-size: 0.95rem;
  }

  .step-title {
    font-size: 0.76rem !important;
  }

  .step-desc {
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
    padding-left: 1.5rem;
  }
}

/* =========================================================================
   SECCIÓN: PREGUNTAS FRECUENTES (Acordeón Centrado y Limpio)
   ========================================================================= */
.faq-section,
.faq-contact-section {
  margin-top: 2.5rem;
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-header-center {
  justify-content: center;
  margin-bottom: 1.1rem;
}

.faq-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.col-section-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.col-section-header .col-icon {
  font-size: 1.4rem;
}

.col-section-header h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffd700;
  margin: 0;
}

body.theme-light .col-section-header h3 {
  color: #0284c7;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: rgba(16, 36, 72, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item.active {
  border-color: #00d2ff;
  background: rgba(16, 36, 72, 0.95);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.15);
}

body.theme-light .faq-item {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.theme-light .faq-item.active {
  border-color: #0284c7;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.12);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

body.theme-light .faq-question-btn {
  color: #0f172a;
}

.faq-arrow-icon {
  font-size: 0.8rem;
  color: #ffd700;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-arrow-icon {
  transform: rotate(180deg);
}

.faq-answer-content {
  display: none;
  padding: 0 1.2rem 1.1rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
}

.faq-item.active .faq-answer-content {
  display: block;
}

body.theme-light .faq-answer-content {
  color: #475569;
  border-color: #f1f5f9;
}

.contact-card-box {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.12) 0%, rgba(16, 36, 72, 0.8) 100%);
  border: 2px solid rgba(37, 211, 102, 0.4);
  border-radius: 18px;
  padding: 1.6rem;
  height: calc(100% - 2.8rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

body.theme-light .contact-card-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border-color: #86efac;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.contact-hero-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.contact-lead-text {
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.5rem;
}

body.theme-light .contact-lead-text {
  color: #0f172a;
}

.contact-sub-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 1rem;
}

body.theme-light .contact-sub-text {
  color: #475569;
}

.contact-badge-info {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(37, 211, 102, 0.2);
  border: 1px solid #25d366;
  color: #a7f3d0;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}

body.theme-light .contact-badge-info {
  background: #dcfce7;
  color: #166534;
}

.contact-dot-live {
  color: #25d366;
  animation: pulseDotLive 1.2s infinite;
}

.btn-direct-whatsapp-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-direct-whatsapp-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

/* =========================================================================
   SECCIÓN BANNER CTA: ¿Listo para elegir tu número?
   ========================================================================= */
.cta-banner-section {
  margin-top: 2.8rem;
}

.cta-banner-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 0, 127, 0.12) 50%, rgba(0, 210, 255, 0.15) 100%);
  border: 2px solid #ffd700;
  border-radius: 22px;
  padding: 2.4rem 1.6rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55), inset 0 0 35px rgba(255, 215, 0, 0.15);
}

body.theme-light .cta-banner-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 50%, #ecfeff 100%);
  border: 2px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.08);
}

.cta-fire-badge {
  display: inline-block;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

body.theme-light .cta-fire-badge {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

.cta-banner-title {
  font-size: 1.7rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 0.6rem;
  letter-spacing: 0.5px;
}

body.theme-light .cta-banner-title {
  color: #0f172a;
}

.cta-banner-desc {
  font-size: 0.94rem;
  color: #64748b;
  max-width: 620px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

body.theme-light .cta-banner-desc {
  color: #64748b;
}

.btn-cta-scroll-events {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #db2777 0%, #06b6d4 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 900;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 6px 25px rgba(219, 39, 119, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-cta-scroll-events:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
  filter: brightness(1.08);
}

/* =========================================================================
   PIE DE PÁGINA: 3 COLUMNAS (Boceto Cliente & Sin Pastillas de Pago)
   ========================================================================= */
/* =========================================================================
   PIE DE PÁGINA UNIFICADO: CONTÁCTANOS VIP + 3 COLUMNAS + CRÉDITOS
   ========================================================================= */
.rifa-footer-info {
  margin-top: 2rem !important;
  padding: 1.4rem 1.6rem 1rem !important;
  background: #ffffff !important;
  border: 2px solid #06b6d4 !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.08) !important;
  margin-bottom: 2rem !important;
}

body.theme-light .rifa-footer-info {
  background: #ffffff !important;
  border-color: #06b6d4 !important;
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.08) !important;
}

/* Fusión Banner de Contacto WhatsApp VIP dentro del Footer */
.footer-contact-hero {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1.4rem !important;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdfa 100%) !important;
  border: 1.5px solid #86efac !important;
  border-radius: 14px !important;
  padding: 1rem 1.4rem !important;
  margin-bottom: 1.2rem !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.06) !important;
}

.footer-contact-main {
  display: flex !important;
  align-items: center !important;
  gap: 0.9rem !important;
  text-align: left !important;
}

.footer-contact-hero-icon {
  font-size: 2.2rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.footer-contact-texts {
  text-align: left !important;
}

.footer-contact-title {
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 0 0.2rem !important;
}

body.theme-light .footer-contact-title {
  color: #0f172a !important;
}

.footer-contact-desc {
  font-size: 0.82rem !important;
  color: #475569 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  max-width: 520px !important;
}

body.theme-light .footer-contact-desc {
  color: #475569 !important;
}

.footer-contact-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.85rem !important;
  flex-shrink: 0 !important;
}

.footer-contact-actions .contact-badge-info {
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  background: #dcfce7 !important;
  border: 1px solid #22c55e !important;
  color: #15803d !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
}

.footer-contact-actions .btn-direct-whatsapp-contact {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  padding: 0.65rem 1.25rem !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  white-space: nowrap !important;
}

.footer-contact-actions .btn-direct-whatsapp-contact:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5) !important;
}

.footer-inner-divider {
  height: 1px !important;
  background: #e2e8f0 !important;
  margin: 1.2rem 0 !important;
}

.footer-3col-grid {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1.3fr !important;
  gap: 1.5rem !important;
  align-items: start !important;
  margin-bottom: 1.2rem !important;
}

.footer-brand-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
  margin-bottom: 0.45rem !important;
}

.footer-brand-logo {
  width: 38px !important;
  height: 38px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(219, 39, 119, 0.25)) !important;
}

.footer-brand-name {
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.1 !important;
}

body.theme-light .footer-brand-name {
  color: #0f172a !important;
}

.footer-brand-tagline {
  font-size: 0.76rem !important;
  color: #db2777 !important;
  margin: 0 !important;
  font-weight: 800 !important;
}

body.theme-light .footer-brand-tagline {
  color: #db2777 !important;
}

.footer-about-text {
  font-size: 0.76rem !important;
  color: #64748b !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  max-width: 320px !important;
}

body.theme-light .footer-about-text {
  color: #64748b !important;
}

.footer-col-title {
  font-size: 0.84rem !important;
  font-weight: 900 !important;
  color: #0891b2 !important;
  margin: 0 0 0.55rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

body.theme-light .footer-col-title {
  color: #0891b2 !important;
}

.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}

.footer-link {
  color: #475569 !important;
  text-decoration: none !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  line-height: 1.3 !important;
}

.footer-link:hover {
  color: #db2777 !important;
  transform: translateX(3px) !important;
}

body.theme-light .footer-link {
  color: #475569 !important;
}

body.theme-light .footer-link:hover {
  color: #db2777 !important;
}

.footer-social-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.35rem !important;
}

.footer-social-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 0.35rem 0.65rem !important;
  border-radius: 8px !important;
  width: 100% !important;
  max-width: 220px !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.footer-social-item:hover {
  background: #ffffff !important;
  border-color: #06b6d4 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.12) !important;
}

body.theme-light .footer-social-item {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.theme-light .footer-social-item:hover {
  border-color: #db2777 !important;
  background: #ffffff !important;
  box-shadow: 0 3px 10px rgba(219, 39, 119, 0.12) !important;
}

.footer-social-item .social-icon {
  font-size: 1.05rem !important;
  line-height: 1 !important;
}

.footer-social-item .social-meta strong {
  display: block !important;
  font-size: 0.78rem !important;
  color: #0f172a !important;
  line-height: 1.1 !important;
}

.footer-social-item .social-meta small {
  display: block !important;
  font-size: 0.68rem !important;
  color: #64748b !important;
  line-height: 1.1 !important;
}

body.theme-light .footer-social-item .social-meta small {
  color: #64748b !important;
}

.footer-bottom-bar {
  border-top: 1px solid #f1f5f9 !important;
  padding-top: 0.75rem !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 0.6rem !important;
  font-size: 0.74rem !important;
  color: #64748b !important;
}

body.theme-light .footer-bottom-bar {
  border-color: #f1f5f9 !important;
  color: #64748b !important;
}

.creator-credit-footer {
  font-size: 0.74rem !important;
}

.creator-phone-link {
  color: #10b981 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  display: inline-block;
  transition: all 0.2s ease;
}

.creator-phone-link:hover {
  background: #10b981;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Adaptación responsive para celulares */
@media (max-width: 860px) {
  .top-nav-bar {
    padding: 0.45rem 0.65rem;
  }

  .top-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
  }

  .brand-mini {
    gap: 0.35rem;
  }

  .brand-mini-logo {
    width: 28px;
    height: 28px;
  }

  .brand-mini-name {
    font-size: 1.05rem;
  }

  .brand-mini-name span {
    font-size: 0.65rem;
    padding: 0.12rem 0.4rem;
  }

  .top-wa-btn {
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  .top-actions {
    gap: 0.35rem;
  }

  .top-actions .top-btn {
    width: 32px;
    height: 32px;
  }

  .top-actions .top-btn.btn-top-mis-numeros {
    width: auto !important;
    height: 32px !important;
    padding: 0 0.65rem !important;
  }

  .top-main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0.25rem 0 0.2rem;
    gap: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .top-main-nav::-webkit-scrollbar {
    display: none;
  }

  .top-nav-link {
    font-size: 0.8rem;
    padding: 0.28rem 0.65rem;
    white-space: nowrap;
  }

  /* Hero del Lobby en Móviles y Tablets: Marca Arriba + 2 Tarjetas al 50%/50% Abajo */
  .lobby-hero-card {
    padding: 1.1rem 0.75rem;
    border-radius: 18px;
    margin-bottom: 1.2rem;
  }

  .lobby-hero-layout {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "brand  brand"
      "reel   winner" !important;
    gap: 0.65rem !important;
    align-items: stretch !important;
    width: 100% !important;
  }

  .lobby-brand-hero {
    grid-area: brand !important;
    width: 100% !important;
    margin-bottom: 0.35rem;
  }

  .lobby-brand-hero .gif-logo-hero {
    width: 95px !important;
    height: 95px !important;
    border-width: 3.5px !important;
  }

  .lobby-brand-hero .event-name-pill {
    display: none !important;
  }

  .lobby-brand-hero .rifa-main-title {
    font-size: 2.2rem !important;
    margin: 0.1rem 0 !important;
    line-height: 1.1 !important;
  }

  .lobby-brand-hero .rifa-slogan {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    color: #db2777 !important;
    font-style: italic !important;
    margin-bottom: 0.5rem !important;
  }

  .lobby-trust-badges {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    justify-content: center !important;
    margin-top: 0.4rem !important;
  }

  .lobby-trust-badges .trust-badge {
    font-size: 0.68rem !important;
    padding: 0.22rem 0.55rem !important;
  }

  /* Reel y Winner Boxes en móvil: perfectamente 50% / 50% al lado uno del otro */
  .lobby-hero-layout .hero-reel-box.lobby-reel-minimal {
    grid-area: reel !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: unset !important;
  }

  .lobby-hero-layout .hero-reel-box.lobby-reel-minimal .reel-minimal-container {
    width: 100% !important;
    max-width: 148px !important;
    height: 225px !important;
    border-radius: 16px !important;
    margin: 0 auto !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    isolation: isolate !important;
  }

  .lobby-hero-layout .hero-winner-box.lobby-winner-hero {
    grid-area: winner !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0.55rem 0.4rem !important;
    border-radius: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-sizing: border-box !important;
    min-height: 225px !important;
    background: #ffffff !important;
    border: 2px solid var(--winner-color, #ff007f) !important;
    box-shadow: 0 8px 20px var(--winner-glow, rgba(255, 0, 127, 0.2)) !important;
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    isolation: isolate !important;
  }

  .lobby-hero-layout .reel-box-preview {
    width: 100% !important;
    max-width: 95px !important;
    height: 125px !important;
    border-radius: 12px !important;
    margin: 0.3rem auto !important;
  }

  .lobby-hero-layout .reel-nav-btn {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.95rem !important;
  }

  .lobby-hero-layout .reel-nav-prev {
    left: 2px !important;
  }

  .lobby-hero-layout .reel-nav-next {
    right: 2px !important;
  }

  .lobby-hero-layout .reel-carousel-dots {
    gap: 4px !important;
    margin-top: 0.2rem !important;
  }

  .lobby-hero-layout .reel-dot {
    width: 5px !important;
    height: 5px !important;
  }

  .lobby-hero-layout .reel-dot.active {
    width: 14px !important;
  }

  .lobby-hero-layout .reel-box-title {
    font-size: 0.7rem !important;
    line-height: 1.2 !important;
  }

  .lobby-hero-layout .reel-action-btn {
    font-size: 0.68rem !important;
    padding: 0.32rem 0.55rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
  }

  .lobby-hero-layout .winner-box-ball-wrap {
    margin: 0.3rem 0 !important;
    min-height: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
  }

  .lobby-hero-layout .winner-balls-row {
    gap: 0.25rem !important;
    padding: 0.2rem 0 !important;
    flex-wrap: nowrap !important;
  }

  .lobby-hero-layout .winner-digit-ball.digit-ball-large {
    width: 27px !important;
    height: 27px !important;
  }

  .lobby-hero-layout .winner-digit-ball .winner-digit-text {
    font-size: 0.95rem !important;
  }

  .lobby-hero-layout .winner-box-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.15rem !important;
    width: 100% !important;
  }

  .lobby-hero-layout .winner-lottery-name {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    text-align: center !important;
  }

  .lobby-hero-layout .winner-prize-name {
    font-size: 0.66rem !important;
    color: #64748b !important;
    text-align: center !important;
  }

  .lobby-hero-layout .winner-congrats-chip {
    font-size: 0.62rem !important;
    padding: 0.15rem 0.45rem !important;
    margin-top: 0.15rem !important;
  }

  .events-cards-grid,
  .winners-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  /* Optimización Móvil para Tarjeta de Estado Vacío */
  .no-events-empty-card {
    padding: 2.1rem 1rem 1.7rem !important;
    gap: 0.85rem !important;
    border-radius: 20px !important;
    max-width: 100% !important;
    margin: 0.2rem 0 1rem !important;
  }

  .no-events-logo-wrap {
    width: 88px !important;
    height: 88px !important;
  }

  .no-events-whatsapp-btn {
    width: 100% !important;
    padding: 0.8rem 1rem !important;
  }

  /* Optimización Ergonómica de Tarjetas de Eventos en Móviles */
  .event-card-item {
    padding: 0.95rem 0.85rem !important;
    gap: 0.7rem !important;
    border-radius: 16px !important;
    border-width: 1.5px !important;
  }

  .event-card-header-sketch {
    padding-bottom: 0.55rem !important;
    gap: 0.5rem !important;
  }

  .event-title-wrap {
    gap: 0.45rem !important;
  }

  .event-name-pill {
    padding: 0.38rem 0.85rem !important;
  }

  .event-name-pill .event-card-title {
    font-size: 0.92rem !important;
    line-height: 1.2 !important;
  }

  .event-badge-tag {
    display: none !important;
  }

  .event-card-split-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .event-split-box {
    padding: 0.65rem 0.5rem !important;
    border-radius: 12px !important;
  }

  .split-box-label {
    font-size: 0.68rem !important;
  }

  .split-prize-val {
    font-size: 1.15rem !important;
    margin: 0.1rem 0 0.2rem !important;
    line-height: 1.15 !important;
  }

  .split-prize-breakdown {
    font-size: 0.68rem !important;
    gap: 0.1rem !important;
    line-height: 1.25 !important;
  }

  .split-price-val {
    font-size: 1.12rem !important;
    margin: 0.1rem 0 0.35rem !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
  }

  .btn-ver-numeros-sketch {
    font-size: 0.76rem !important;
    padding: 0.48rem 0.4rem !important;
    border-radius: 999px !important;
    gap: 0.25rem !important;
  }

  .event-progress-wrap {
    gap: 0.25rem !important;
  }

  .event-progress-track {
    height: 7px !important;
  }

  .event-progress-stats {
    font-size: 0.7rem !important;
  }

  .event-card-footer-meta {
    font-size: 0.72rem !important;
    padding-top: 0.5rem !important;
    gap: 0.35rem !important;
  }
}

@media (max-width: 340px) {
  .lobby-hero-layout {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "brand"
      "reel"
      "winner" !important;
    gap: 0.75rem !important;
  }

  .event-card-split-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }
}

  .faq-contact-grid {
    grid-template-columns: 1fr;
  }

  @media (max-width: 860px) {
    .footer-contact-hero {
      flex-direction: column !important;
      text-align: center !important;
      gap: 1rem !important;
      padding: 1.1rem 1rem !important;
    }

    .footer-contact-main {
      flex-direction: column !important;
      text-align: center !important;
      gap: 0.4rem !important;
    }

    .footer-contact-texts {
      text-align: center !important;
    }

    .footer-contact-actions {
      flex-direction: column !important;
      width: 100% !important;
      gap: 0.6rem !important;
    }

    .footer-contact-actions .contact-badge-info,
    .footer-contact-actions .btn-direct-whatsapp-contact {
      width: 100% !important;
      justify-content: center !important;
      box-sizing: border-box !important;
    }
  }

  @media (max-width: 680px) {
    .rifa-footer-info {
      margin-top: 1.2rem !important;
      padding: 1.1rem 0.85rem 0.8rem !important;
    }

    .footer-3col-grid {
      grid-template-columns: 1fr !important;
      gap: 1rem !important;
      text-align: center !important;
    }

    .footer-brand-wrap {
      justify-content: center !important;
    }

    .footer-about-text {
      margin: 0 auto !important;
    }

    .footer-nav-list {
      flex-direction: row !important;
      justify-content: center !important;
      flex-wrap: wrap !important;
      gap: 0.75rem !important;
    }

    .footer-social-list {
      flex-direction: row !important;
      justify-content: center !important;
      flex-wrap: wrap !important;
      gap: 0.45rem !important;
    }

    .footer-social-item {
      max-width: none !important;
      width: auto !important;
      padding: 0.3rem 0.6rem !important;
    }

    .footer-bottom-bar {
      flex-direction: column !important;
      text-align: center !important;
      gap: 0.4rem !important;
    }

    .admin-event-bar-wrapper {
      flex-direction: column;
      align-items: stretch;
    }

  .admin-event-selector-box {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-event-select {
    max-width: 100%;
  }

  .board-top-nav-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ==========================================================================
   SISTEMA DE AUTENTICACIÓN Y SEGURIDAD DEL ADMIN (PASSWORD Sami1998)
   ========================================================================== */
body.admin-locked > *:not(#adminAuthOverlay) {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.admin-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: radial-gradient(circle at center, rgba(13, 27, 54, 0.98) 0%, rgba(3, 8, 20, 0.99) 100%);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.admin-auth-overlay.auth-success-fade {
  opacity: 0;
  pointer-events: none;
}

.admin-auth-card {
  background: linear-gradient(165deg, rgba(16, 32, 64, 0.95) 0%, rgba(6, 14, 30, 0.98) 100%);
  border: 2px solid rgba(0, 229, 255, 0.45);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 229, 255, 0.25);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.auth-card-glow {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.auth-header {
  margin-bottom: 1.6rem;
  position: relative;
  z-index: 1;
}

.auth-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: 0 auto 0.8rem;
  display: block;
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.6));
}

.auth-header h2 {
  font-family: var(--font-heading, sans-serif);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}

.auth-header p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.auth-form {
  position: relative;
  z-index: 1;
  text-align: left;
}

.auth-field {
  margin-bottom: 1.2rem;
}

.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #00e5ff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  font-size: 1.1rem;
  pointer-events: none;
}

.password-input-wrap input {
  width: 100%;
  background: #040916;
  border: 1.5px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  padding: 0.8rem 2.8rem 0.8rem 2.5rem;
  color: #ffffff;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  outline: none;
  transition: all 0.2s ease;
}

.password-input-wrap input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.45);
}

.btn-toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 4px;
  transition: color 0.2s ease;
}

.btn-toggle-password:hover {
  color: #ffffff;
}

.auth-error-msg {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  color: #fca5a5;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  text-align: center;
}

.auth-input-shake {
  animation: authShake 0.45s ease-in-out;
  border-color: #ef4444 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.6) !important;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, #00e5ff 0%, #0284c7 100%);
  border: none;
  border-radius: 12px;
  padding: 0.85rem;
  color: #030a1c;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
  transition: all 0.25s ease;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 229, 255, 0.6);
  filter: brightness(1.1);
}

.auth-footer {
  margin-top: 1.5rem;
  color: #64748b;
  font-size: 0.72rem;
}

/* Botones de Barra Superior */
.btn-action-flyer {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
}

.btn-action-flyer:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-1px) !important;
}

.btn-action-logout {
  background: rgba(239, 68, 68, 0.15) !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  color: #fca5a5 !important;
}

.btn-action-logout:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Modal del Generador de Publicidad */
.flyer-format-btn.active {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4) !important;
}

@media (max-width: 768px) {
  .flyer-generator-grid {
    grid-template-columns: 1fr !important;
  }
}



/* =============================================================================
   MÓDULO LEGAL: CONSENTIMIENTO, HABEAS DATA Y TÉRMINOS Y CONDICIONES (LEY 1581)
   ============================================================================= */
.legal-consent-box {
  background: rgba(13, 34, 72, 0.45);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin: 0.8rem 0 1rem;
  transition: all 0.25s ease;
}

.legal-consent-box:hover {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(13, 34, 72, 0.65);
}

.legal-consent-box.legal-consent-pulse {
  border-color: #ef4444 !important;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.5) !important;
  animation: legalShake 0.4s ease-in-out;
}

@keyframes legalShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.legal-check-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.legal-checkbox-input {
  accent-color: #ffd700;
  width: 19px;
  height: 19px;
  min-width: 19px;
  margin-top: 2px;
  cursor: pointer;
}

.legal-check-text {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.legal-link-trigger {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  color: #ffd700;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.legal-link-trigger:hover {
  color: #00e5ff;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.legal-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.legal-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  cursor: help;
  transition: all 0.2s ease;
}

.legal-mini-pill:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.35);
  color: #fde047;
}

/* =============================================================================
   MODAL LEGAL: TÉRMINOS, CONDICIONES & TRATAMIENTO DE DATOS (ESTILO OFICIAL LA 99)
   Paleta Oficial: Fucsia Neón (#ff007f), Azul Neón / Cyan (#00e5ff), Oro (#ffd700),
   y Fondo Azul Noche Profundo (#070e20).
   ============================================================================= */
.legal-modal-card,
body.theme-light .legal-modal-card {
  max-width: 660px !important;
  width: 95% !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: linear-gradient(165deg, #091326 0%, #050a16 100%) !important;
  border: 2px solid #ff007f !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 0, 127, 0.45), 0 0 15px rgba(0, 229, 255, 0.3) !important;
  color: #f1f5f9 !important;
  overflow: hidden !important;
}

.legal-modal-header,
body.theme-light .legal-modal-header {
  padding: 1.1rem 1.4rem !important;
  background: linear-gradient(180deg, #0f1d38 0%, #091326 100%) !important;
  border-bottom: 2px solid rgba(255, 0, 127, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.legal-header-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #0f172a 60%, rgba(255, 0, 127, 0.4) 100%);
  border: 2px solid #ff007f;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
  flex-shrink: 0;
  overflow: hidden;
  margin-right: 12px;
}

.legal-header-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.legal-modal-header h3,
body.theme-light .legal-modal-header h3 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  text-shadow: 0 0 10px rgba(255, 0, 127, 0.4) !important;
}

.legal-header-sub,
body.theme-light .legal-header-sub {
  font-size: 0.78rem !important;
  color: #00e5ff !important;
  margin: 3px 0 0 !important;
  font-weight: 600 !important;
}

.legal-modal-tabs,
body.theme-light .legal-modal-tabs {
  display: flex !important;
  border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
  background: #060b18 !important;
  padding: 0.4rem 1.2rem 0 !important;
  gap: 0.5rem !important;
}

.legal-tab-btn,
body.theme-light .legal-tab-btn {
  background: transparent !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  color: #94a3b8 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  padding: 0.65rem 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
}

.legal-tab-btn:hover,
body.theme-light .legal-tab-btn:hover {
  color: #ffffff !important;
}

.legal-tab-btn.active,
body.theme-light .legal-tab-btn.active {
  color: #00e5ff !important;
  border-bottom-color: #ff007f !important;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6) !important;
}

.legal-modal-body,
body.theme-light .legal-modal-body {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 1.2rem 1.4rem !important;
  background: #070e20 !important;
}

.legal-tab-pane {
  display: none;
}

.legal-tab-pane.active {
  display: block;
  animation: legalFadeIn 0.25s ease;
}

@keyframes legalFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-content-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Banner de Alerta Warning: REGLA DE PARTICIPACIÓN (100% Legible y Alto Contraste) */
.legal-highlight-banner.warning,
body.theme-light .legal-highlight-banner.warning {
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.4) 0%, rgba(127, 29, 29, 0.6) 100%) !important;
  border: 2px solid #ff007f !important;
  border-radius: 12px !important;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.25) !important;
  padding: 1rem 1.2rem !important;
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

.legal-highlight-banner.warning .banner-icon {
  font-size: 1.6rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.legal-highlight-banner.warning strong,
body.theme-light .legal-highlight-banner.warning strong {
  color: #ffd700 !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.05em !important;
  display: block !important;
  margin-bottom: 6px !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4) !important;
}

.legal-highlight-banner.warning p,
body.theme-light .legal-highlight-banner.warning p {
  font-size: 0.85rem !important;
  margin: 0 !important;
  color: #ffffff !important;
  line-height: 1.5 !important;
}

.legal-highlight-banner.warning p strong,
body.theme-light .legal-highlight-banner.warning p strong {
  display: inline !important;
  color: #ffd700 !important;
  text-shadow: none !important;
}

/* Banner Info: PROTECCIÓN DE DATOS */
.legal-highlight-banner.info,
body.theme-light .legal-highlight-banner.info {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(3, 105, 161, 0.25) 100%) !important;
  border: 2px solid #00e5ff !important;
  border-radius: 12px !important;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2) !important;
  padding: 1rem 1.2rem !important;
  display: flex !important;
  gap: 12px !important;
  align-items: flex-start !important;
}

.legal-highlight-banner.info .banner-icon {
  font-size: 1.6rem !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.legal-highlight-banner.info strong,
body.theme-light .legal-highlight-banner.info strong {
  color: #00e5ff !important;
  font-size: 0.88rem !important;
  letter-spacing: 0.05em !important;
  display: block !important;
  margin-bottom: 6px !important;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4) !important;
}

.legal-highlight-banner.info p,
body.theme-light .legal-highlight-banner.info p {
  font-size: 0.85rem !important;
  margin: 0 !important;
  color: #f0fdfa !important;
  line-height: 1.5 !important;
}

/* Bloques de Artículos */
.legal-item-block,
body.theme-light .legal-item-block {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: 12px !important;
  padding: 1rem 1.2rem !important;
  transition: all 0.2s ease;
}

.legal-item-block:hover {
  border-color: rgba(255, 0, 127, 0.4) !important;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.15) !important;
}

.legal-item-block h4,
body.theme-light .legal-item-block h4 {
  font-size: 0.95rem !important;
  color: #ffd700 !important;
  margin: 0 0 0.5rem !important;
  font-weight: 800 !important;
}

.legal-item-block p,
body.theme-light .legal-item-block p {
  font-size: 0.84rem !important;
  color: #e2e8f0 !important;
  line-height: 1.55 !important;
  margin: 0 0 0.5rem !important;
}

.legal-item-block p strong,
body.theme-light .legal-item-block p strong {
  color: #ffffff !important;
}

.legal-item-block p:last-child {
  margin-bottom: 0 !important;
}

.legal-item-block ul,
body.theme-light .legal-item-block ul {
  margin: 0.4rem 0 0 !important;
  padding-left: 1.2rem !important;
}

.legal-item-block li,
body.theme-light .legal-item-block li {
  font-size: 0.82rem !important;
  color: #cbd5e1 !important;
  line-height: 1.5 !important;
  margin-bottom: 0.35rem !important;
}

.legal-item-block li strong,
body.theme-light .legal-item-block li strong {
  color: #ffffff !important;
}

.legal-modal-footer,
body.theme-light .legal-modal-footer {
  padding: 0.9rem 1.4rem !important;
  border-top: 1px solid rgba(255, 0, 127, 0.25) !important;
  display: flex !important;
  justify-content: flex-end !important;
  background: #060b18 !important;
}

.btn-legal-accept,
body.theme-light .btn-legal-accept {
  background: linear-gradient(135deg, #ff007f 0%, #d946ef 50%, #00e5ff 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 10px !important;
  padding: 0.75rem 1.6rem !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 20px rgba(255, 0, 127, 0.45) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  font-family: inherit !important;
}

.btn-legal-accept:hover,
body.theme-light .btn-legal-accept:hover {
  filter: brightness(1.15) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 25px rgba(255, 0, 127, 0.65) !important;
}

/* =============================================================================
   CASILLA MINIMALISTA EN EL MODAL DE PAGO / CHECKOUT
   "Acepto el tratamiento de datos personales" + Botón [VER TRATAMIENTO]
   ============================================================================= */
.checkout-legal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 16px;
  padding: 10px 14px;
  background: rgba(255, 0, 127, 0.08);
  border: 1.5px solid rgba(255, 0, 127, 0.35);
  border-radius: 12px;
  transition: all 0.2s ease;
}

body.theme-light .checkout-legal-row {
  background: #fff5f9;
  border-color: rgba(255, 0, 127, 0.35);
}

.checkout-legal-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  flex: 1;
  user-select: none;
}

.checkout-legal-checkbox {
  width: 20px;
  height: 20px;
  accent-color: #ff007f;
  cursor: pointer;
  flex-shrink: 0;
}

.checkout-legal-label-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.3;
}

body.theme-light .checkout-legal-label-text {
  color: #0f172a;
}

.btn-ver-tratamiento-mini {
  background: transparent;
  border: 1.5px solid #00e5ff;
  color: #00e5ff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: inherit;
}

.btn-ver-tratamiento-mini:hover {
  background: #00e5ff;
  color: #050a16;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
  transform: translateY(-1px);
}

body.theme-light .btn-ver-tratamiento-mini {
  border-color: #0284c7;
  color: #0284c7;
}

body.theme-light .btn-ver-tratamiento-mini:hover {
  background: #0284c7;
  color: #ffffff;
}


/* =============================================================================
   ACTUALIZACIÓN v1.2.0: BOTONES DE NAVEGACIÓN, MIS NÚMEROS Y COMBOS (+10 AL AZAR)
   ============================================================================= */

/* Botón "Mis Números" en el Header / Top Bar */
.btn-top-mis-numeros {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(245, 158, 11, 0.25) 100%);
  border: 1.5px solid #ffd700;
  color: #ffd700;
  padding: 0.42rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.btn-top-mis-numeros:hover {
  background: #ffd700;
  color: #050a16;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
  transform: translateY(-1px);
}

body.theme-light .btn-top-mis-numeros {
  background: #fffbeb;
  border-color: #d97706;
  color: #b45309;
}

body.theme-light .btn-top-mis-numeros:hover {
  background: #d97706;
  color: #ffffff;
}

.top-nav-link-mis-num {
  color: #fde047 !important;
  font-weight: 800 !important;
}

/* Botón "+10 al Azar / Combo" en lucky-controls */
.btn-lucky-combo {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%) !important;
  border-color: #a855f7 !important;
  color: #f3e8ff !important;
}

.btn-lucky-combo:hover {
  background: linear-gradient(135deg, #9333ea 0%, #6366f1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.5) !important;
}

/* =============================================================================
   MODAL DE SELECCIÓN MÚLTIPLE AL AZAR (BULK PICK MODAL)
   ============================================================================= */
.bulk-pick-card {
  max-width: 480px;
}

.bulk-stats-strip {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.1rem;
}

body.theme-light .bulk-stats-strip {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.bulk-stat-item {
  display: flex;
  flex-direction: column;
}

.bulk-stat-label {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.bulk-stat-val {
  font-size: 1.1rem;
  font-weight: 900;
}

.bulk-presets-header {
  font-size: 0.85rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
}

body.theme-light .bulk-presets-header {
  color: #334155;
}

.bulk-presets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}

.btn-bulk-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all 0.2s ease;
  color: inherit;
  font-family: inherit;
}

.btn-bulk-preset:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-bulk-preset.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
  border-color: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.4);
}

body.theme-light .btn-bulk-preset {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

body.theme-light .btn-bulk-preset:hover {
  background: #e0f2fe;
  border-color: #0284c7;
}

.preset-icon {
  font-size: 1.25rem;
}

.preset-qty {
  font-size: 0.95rem;
  font-weight: 900;
  color: #f8fafc;
}

body.theme-light .preset-qty {
  color: #0f172a;
}

.preset-cost {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 700;
}

body.theme-light .preset-cost {
  color: #0284c7;
}

.btn-bulk-preset.preset-all {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(202, 138, 4, 0.25) 100%);
  border-color: rgba(234, 179, 8, 0.5);
}

.btn-bulk-preset.preset-all .preset-qty {
  color: #fde047;
}

body.theme-light .btn-bulk-preset.preset-all {
  background: #fefce8;
  border-color: #eab308;
}

body.theme-light .btn-bulk-preset.preset-all .preset-qty {
  color: #854d0e;
}

.bulk-custom-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0.8rem 0;
}

.bulk-custom-divider::before,
.bulk-custom-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .bulk-custom-divider::before,
body.theme-light .bulk-custom-divider::after {
  border-bottom-color: #e2e8f0;
}

.bulk-custom-divider span {
  padding: 0 0.75rem;
}

.bulk-custom-stepper {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.9rem;
  margin-bottom: 1.1rem;
}

body.theme-light .bulk-custom-stepper {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.bulk-custom-stepper label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #94a3b8;
  margin-bottom: 0.5rem;
  text-align: center;
}

body.theme-light .bulk-custom-stepper label {
  color: #475569;
}

.stepper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.btn-stepper-step {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-stepper-step:hover {
  background: #3b82f6;
  border-color: #3b82f6;
  transform: scale(1.08);
}

body.theme-light .btn-stepper-step {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
}

body.theme-light .btn-stepper-step:hover {
  background: #0284c7;
  color: #fff;
}

.stepper-controls input {
  width: 90px;
  height: 44px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #3b82f6;
  color: #fff;
  font-family: var(--font-heading);
}

body.theme-light .stepper-controls input {
  background: #ffffff;
  border-color: #0284c7;
  color: #0f172a;
}

.bulk-live-total {
  text-align: center;
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

body.theme-light .bulk-live-total {
  color: #334155;
}

.bulk-live-amount {
  font-size: 1.25rem;
  font-weight: 900;
  color: #10b981;
}

.btn-confirm-bulk-pick {
  width: 100%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  padding: 0.9rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-confirm-bulk-pick:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.65);
}

/* =============================================================================
   PROTECCIÓN ESTÉTICA PARA MÁS DE 10 NÚMEROS (CHIPS Y GESTIÓN)
   ============================================================================= */
.bulk-chips-summary {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.bulk-count-pill {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  white-space: nowrap;
}

.bulk-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.btn-manage-selection {
  background: rgba(0, 229, 255, 0.15);
  border: 1px solid #00e5ff;
  color: #00e5ff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-manage-selection:hover {
  background: #00e5ff;
  color: #050a16;
}

body.theme-light .btn-manage-selection {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0284c7;
}

body.theme-light .btn-manage-selection:hover {
  background: #0284c7;
  color: #fff;
}

/* Modal de Lista Completa de Números Seleccionados */
.selected-numbers-card {
  max-width: 500px;
}

.selected-numbers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.45rem;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.5rem 0.2rem;
  margin-bottom: 1rem;
}

.selected-grid-chip {
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
  color: #020b1c;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.45rem 0.2rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.selected-grid-chip:hover {
  background: #ef4444;
  color: #ffffff;
  transform: scale(1.05);
}

.selected-grid-chip small {
  font-size: 0.75rem;
  opacity: 0.75;
}

.selected-numbers-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.theme-light .selected-numbers-footer {
  border-top-color: #e2e8f0;
}

.selected-numbers-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #cbd5e1;
}

body.theme-light .selected-numbers-total-box {
  color: #334155;
}

.selected-numbers-total-box strong {
  font-size: 1.25rem;
  color: #10b981;
}

.selected-numbers-actions {
  display: flex;
  gap: 0.6rem;
}

.btn-modal-clear-all {
  flex: 1;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 0.7rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-clear-all:hover {
  background: #ef4444;
  color: #fff;
}

.btn-modal-continue {
  flex: 2;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #fff;
  padding: 0.7rem;
  border-radius: 10px;
  font-weight: 900;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-continue:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

/* Balotas compactas cuando hay > 10 números en el checkout modal */
.summary-numbers-chips.compact-balls .hero-num-ball {
  width: 32px;
  height: 32px;
  font-size: 0.92rem;
  border-radius: 8px;
}

.summary-numbers-chips {
  max-height: 120px;
  overflow-y: auto;
  padding: 4px;
}

/* =============================================================================
   MODAL DE CONFIRMACIÓN DE RESERVA ACTIVA (30 MINUTOS) — PANTALLA EN PLATAFORMA
   ============================================================================= */
.reservation-success-card {
  max-width: 480px;
  text-align: center;
}

.res-success-header {
  padding: 1.5rem 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.res-success-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
  margin-bottom: 0.8rem;
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(255, 215, 0, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 215, 0, 0.75); }
}

.res-check-animated {
  font-size: 2.4rem;
  font-weight: 900;
  color: #050a16;
}

.res-success-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
}

body.theme-light .res-success-title {
  color: #0f172a;
}

.res-success-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

body.theme-light .res-success-sub {
  color: #64748b;
}

.res-timer-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(180, 83, 9, 0.2) 100%);
  border: 1.5px solid #f59e0b;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

body.theme-light .res-timer-card {
  background: #fefce8;
  border-color: #eab308;
}

.res-timer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.res-timer-label {
  font-size: 0.78rem;
  font-weight: 900;
  color: #fde047;
  letter-spacing: 0.05em;
}

body.theme-light .res-timer-label {
  color: #854d0e;
}

.res-timer-clock {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffd700;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

body.theme-light .res-timer-clock {
  color: #b45309;
}

.res-timer-hint {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin: 0;
}

body.theme-light .res-timer-hint {
  color: #475569;
}

.res-details-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

body.theme-light .res-details-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.res-event-heading {
  margin-bottom: 0.75rem;
}

.res-event-badge {
  font-size: 0.65rem;
  font-weight: 900;
  background: #3b82f6;
  color: #fff;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.res-event-name {
  font-size: 1.05rem;
  font-weight: 900;
  color: #fff;
  margin: 0.25rem 0 0.15rem;
}

body.theme-light .res-event-name {
  color: #0f172a;
}

.res-draw-info {
  font-size: 0.78rem;
  color: #94a3b8;
}

.res-numbers-block {
  margin: 0.8rem 0;
}

.res-block-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 0.4rem;
}

body.theme-light .res-block-label {
  color: #475569;
}

.res-numbers-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 90px;
  overflow-y: auto;
}

.res-num-tag {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #050a16;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(255, 215, 0, 0.35);
}

.res-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 0.65rem;
  margin-top: 0.65rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

body.theme-light .res-price-row {
  border-top-color: #e2e8f0;
  color: #64748b;
}

.res-total-val {
  font-size: 1.15rem;
  color: #10b981;
  font-weight: 900;
}

.res-info-notice-box {
  display: flex;
  gap: 0.75rem;
  background: rgba(30, 58, 138, 0.3);
  border: 1.5px solid rgba(59, 130, 246, 0.4);
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1.1rem;
  text-align: left;
}

body.theme-light .res-info-notice-box {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.notice-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.notice-text {
  font-size: 0.8rem;
  color: #cbd5e1;
  line-height: 1.4;
}

body.theme-light .notice-text {
  color: #1e293b;
}

.notice-text strong {
  color: #ffffff;
  display: block;
  margin-bottom: 0.25rem;
}

body.theme-light .notice-text strong {
  color: #0f172a;
}

.notice-text p {
  margin: 0 0 0.35rem;
}

.notice-wa-highlight {
  color: #38bdf8 !important;
  font-weight: 700;
}

body.theme-light .notice-wa-highlight {
  color: #0284c7 !important;
}

.res-success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-res-action-primary {
  width: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  border: none;
  color: #050a16;
  padding: 0.85rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.4);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-res-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

.btn-res-action-secondary {
  width: 100%;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 0.75rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-res-action-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

body.theme-light .btn-res-action-secondary {
  border-color: #cbd5e1;
  color: #475569;
}

body.theme-light .btn-res-action-secondary:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.res-optional-wa-row {
  margin-top: 0.85rem;
  font-size: 0.76rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.link-optional-wa {
  color: #25d366;
  font-weight: 800;
  text-decoration: underline;
}

/* =============================================================================
   MODAL "MIS NÚMEROS" (CONSULTA Y SEGUIMIENTO EN TIEMPO REAL)
   ============================================================================= */
.mis-numeros-card {
  max-width: 520px;
}

.mis-numeros-search-bar {
  margin-bottom: 1.1rem;
}

.mis-numeros-search-bar label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
}

body.theme-light .mis-numeros-search-bar label {
  color: #334155;
}

.mis-numeros-input-wrap {
  display: flex;
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mis-numeros-input-wrap:focus-within {
  border-color: #ffd700;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

body.theme-light .mis-numeros-input-wrap {
  background: #ffffff;
  border-color: #cbd5e1;
}

body.theme-light .mis-numeros-input-wrap:focus-within {
  border-color: #0284c7;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.25);
}

.input-country-prefix {
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-light .input-country-prefix {
  background: #f1f5f9;
  color: #475569;
  border-right-color: #e2e8f0;
}

.mis-numeros-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.75rem 0.85rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
  font-family: inherit;
}

body.theme-light .mis-numeros-input-wrap input {
  color: #0f172a;
}

.btn-consultar-tickets {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  border: none;
  color: #050a16;
  font-weight: 900;
  font-size: 0.88rem;
  padding: 0 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-consultar-tickets:hover {
  background: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
}

.mis-numeros-results-wrap {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.2rem;
}

.mis-numeros-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}

.mis-numeros-empty-state .empty-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.mis-numeros-empty-state h4 {
  font-size: 1.05rem;
  color: #f8fafc;
  margin: 0 0 0.35rem;
}

body.theme-light .mis-numeros-empty-state h4 {
  color: #0f172a;
}

.mis-numeros-empty-state p {
  font-size: 0.82rem;
  margin: 0;
  line-height: 1.4;
}

/* Tarjeta individual de ticket en Mis Números */
.my-ticket-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.my-ticket-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.4);
}

body.theme-light .my-ticket-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.my-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.my-ticket-event {
  font-size: 0.95rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.2rem;
}

body.theme-light .my-ticket-event {
  color: #0f172a;
}

.my-ticket-date {
  font-size: 0.74rem;
  color: #94a3b8;
}

.my-ticket-status-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
}

.my-ticket-status-badge.paid {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
}

.my-ticket-status-badge.reserved {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.my-ticket-status-badge.expired {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.my-ticket-numbers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.my-num-tag {
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%);
  color: #020b1c;
  font-weight: 900;
  font-size: 0.95rem;
  padding: 0.22rem 0.58rem;
  border-radius: 8px;
}

.my-ticket-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.55rem;
}

body.theme-light .my-ticket-meta {
  border-top-color: #e2e8f0;
}

.my-ticket-meta strong {
  color: #10b981;
  font-size: 0.95rem;
}

.btn-ticket-download-link {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.55rem;
  border-radius: 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.btn-ticket-download-link:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}

.my-ticket-reserved-note {
  font-size: 0.74rem;
  color: #fde047;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  line-height: 1.35;
}

body.theme-light .my-ticket-reserved-note {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}


/* =============================================================================
   COMPONENTE DE SUBIDA DE COMPROBANTE DE PAGO (JPG, PNG, WEBP)
   ============================================================================= */
.checkout-receipt-upload-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  padding: 1rem;
  margin: 1.1rem 0;
  transition: all 0.2s ease;
}

body.theme-light .checkout-receipt-upload-card {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.checkout-receipt-upload-card.pulse-error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.08) !important;
  animation: shakeBox 0.4s ease;
}

@keyframes shakeBox {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.receipt-card-header {
  margin-bottom: 0.75rem;
}

.upload-step-pill {
  font-size: 0.65rem;
  font-weight: 900;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}

.receipt-card-header h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.2rem;
}

body.theme-light .receipt-card-header h4 {
  color: #0f172a;
}

.receipt-card-header p {
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 0;
}

body.theme-light .receipt-card-header p {
  color: #64748b;
}

.receipt-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.receipt-empty-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.btn-select-receipt-file {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  color: #ffffff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-select-receipt-file:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
}

.receipt-empty-prompt small {
  font-size: 0.72rem;
  color: #64748b;
}

.receipt-selected-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid #10b981;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}

body.theme-light .receipt-selected-preview {
  background: #f0fdf4;
  border-color: #86efac;
}

.receipt-preview-img-box {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.receipt-preview-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.receipt-preview-meta {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.receipt-preview-meta strong {
  font-size: 0.82rem;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.theme-light .receipt-preview-meta strong {
  color: #0f172a;
}

.receipt-preview-meta span {
  font-size: 0.72rem;
  color: #10b981;
  font-weight: 700;
}

.btn-remove-selected-receipt {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-remove-selected-receipt:hover {
  background: #ef4444;
  color: #fff;
}

/* =============================================================================
   SISTEMA DE PROMOCIONES ESPECIALES (2x1, 5x3, 10x5, ETC.) & POP-UP CARÁTULA
   ============================================================================= */

/* Banner de Promoción Activa sobre el Tablero (Adaptado al Color del Día) */
.board-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, var(--event-theme-glow, rgba(255, 215, 0, 0.22)) 100%);
  border: 1.5px solid var(--event-theme-color, #ffd700);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  margin: 0.75rem auto;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 4px 18px var(--event-theme-glow, rgba(255, 215, 0, 0.22));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.board-promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--event-theme-glow, rgba(255, 215, 0, 0.4));
}

body.theme-light .board-promo-banner {
  background: var(--event-theme-light-bg, #fffbeb);
  border-color: var(--event-theme-color, #d97706);
  box-shadow: 0 4px 16px var(--event-theme-glow, rgba(217, 119, 6, 0.18));
}

.promo-banner-sparkle {
  font-size: 1.35rem;
}

.promo-banner-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  flex-wrap: wrap;
}

.promo-banner-pill {
  background: var(--event-theme-gradient, linear-gradient(135deg, #ffd700, #f59e0b));
  color: var(--event-theme-text, #ffffff);
  font-family: var(--font-heading, sans-serif);
  font-weight: 900;
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: 0 2px 8px var(--event-theme-glow, rgba(255, 215, 0, 0.3));
}

.promo-banner-text {
  font-weight: 800;
  font-size: 0.88rem;
  color: #ffffff;
}

body.theme-light .promo-banner-text {
  color: #0f172a;
}

.promo-banner-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid var(--event-theme-color, #ffd700);
  color: var(--event-theme-color, #ffd700);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.promo-banner-btn:hover {
  background: var(--event-theme-color, #ffd700);
  color: var(--event-theme-text, #ffffff);
}

/* Modal Carátula de la Promo (Pop-up Dinámico con el Color del Día) */
.promo-daily-backdrop {
  z-index: 100000;
}

.promo-daily-card {
  max-width: 440px;
  width: 100%;
  background: linear-gradient(160deg, #0e1e3e 0%, #060c1c 100%);
  border: 2px solid var(--event-theme-color, #ffd700);
  border-radius: 24px;
  padding: 1.6rem 1.4rem 1.1rem;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 35px var(--event-theme-glow, rgba(255, 215, 0, 0.4));
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.theme-light .promo-daily-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
  border-color: var(--event-theme-color, #d97706);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 30px var(--event-theme-glow, rgba(217, 119, 6, 0.25));
}

.promo-daily-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.promo-daily-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
  transform: rotate(90deg);
}

body.theme-light .promo-daily-close-btn {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.promo-daily-header {
  margin-bottom: 0.75rem;
}

.promo-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid var(--event-theme-color, #ffd700);
  color: var(--event-theme-color, #ffd700);
  font-family: var(--font-heading, sans-serif);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.95rem;
  border-radius: 50px;
  box-shadow: 0 0 12px var(--event-theme-glow, rgba(255, 215, 0, 0.25));
}

body.theme-light .promo-tag-pill {
  background: var(--event-theme-light-bg, #fffbeb);
  border-color: var(--event-theme-color, #d97706);
  color: var(--event-theme-color, #b45309);
}

.promo-brand-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.promo-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.promo-brand-title {
  font-family: var(--font-heading, sans-serif);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #ffffff;
}

body.theme-light .promo-brand-title {
  color: #0f172a;
}

.promo-offer-graphic {
  margin: 0.4rem 0 0.85rem;
}

.promo-huge-text {
  font-family: var(--font-heading, sans-serif);
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0.15rem auto 0.45rem;
  max-width: 100%;
  overflow: visible;
}

.promo-formula-num {
  font-size: clamp(3.2rem, 11vw, 4.4rem);
  line-height: 0.92;
  font-weight: 950;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 15%, var(--event-theme-color, #ffd700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

body.theme-light .promo-formula-num {
  background: linear-gradient(180deg, var(--event-theme-color, #7c3aed) 0%, var(--event-theme-dark, #5b21b6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px var(--event-theme-glow, rgba(124, 58, 237, 0.25)));
}

.promo-formula-label {
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 20%, var(--event-theme-color, #ffd700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 0.2rem;
}

body.theme-light .promo-formula-label {
  background: linear-gradient(180deg, var(--event-theme-color, #7c3aed) 0%, var(--event-theme-dark, #5b21b6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.promo-ribbon-banner {
  display: inline-block;
  background: var(--event-theme-gradient, linear-gradient(135deg, #ffd700 0%, #f59e0b 100%));
  color: var(--event-theme-text, #ffffff);
  font-family: var(--font-heading, sans-serif);
  font-weight: 900;
  font-size: clamp(0.85rem, 3.2vw, 1.05rem);
  letter-spacing: 0.05em;
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px var(--event-theme-glow, rgba(245, 158, 11, 0.45));
  margin-top: 0.35rem;
}

.promo-details-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
}

body.theme-light .promo-details-box {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.promo-headline {
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.35;
  margin: 0 0 0.5rem 0;
}

body.theme-light .promo-headline {
  color: #334155;
}

.promo-savings-badge {
  color: #34d399;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
}

body.theme-light .promo-savings-badge {
  color: #059669;
}

.btn-promo-action {
  width: 100%;
  background: var(--event-theme-gradient, linear-gradient(135deg, #10b981 0%, #059669 100%));
  color: var(--event-theme-text, #ffffff);
  font-family: var(--font-heading, sans-serif);
  font-size: 0.95rem;
  font-weight: 900;
  padding: 0.85rem 1.4rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--event-theme-glow, rgba(16, 185, 129, 0.45));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-promo-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--event-theme-glow, rgba(16, 185, 129, 0.6));
}

.promo-timer-footer {
  margin-top: 0.85rem;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

body.theme-light .promo-timer-footer {
  background: rgba(0, 0, 0, 0.08);
}

.promo-timer-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--event-theme-gradient, linear-gradient(90deg, #ffd700, #10b981));
}

/* ==========================================================================
   ADAPTACIÓN RESPONSIVE TOTAL PARA CELULARES: CARÁTULA Y BANNER DE PROMO
   ========================================================================== */
@media (max-width: 540px) {
  .promo-daily-backdrop {
    padding: 0.75rem !important;
  }
  .promo-daily-card {
    max-width: 95vw !important;
    border-radius: 20px !important;
    padding: 1.25rem 0.95rem 0.85rem !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  .promo-brand-hero {
    margin-bottom: 0.35rem !important;
  }
  .promo-brand-logo {
    width: 28px !important;
    height: 28px !important;
  }
  .promo-brand-title {
    font-size: 1rem !important;
  }
  .promo-formula-num {
    font-size: clamp(2.5rem, 9.5vw, 3.2rem) !important;
  }
  .promo-formula-label {
    font-size: clamp(0.92rem, 3.5vw, 1.15rem) !important;
    letter-spacing: 0.1em !important;
  }
  .promo-ribbon-banner {
    font-size: clamp(0.75rem, 3.5vw, 0.88rem) !important;
    padding: 0.35rem 0.85rem !important;
  }
  .promo-details-box {
    padding: 0.65rem 0.75rem !important;
    margin-bottom: 0.85rem !important;
  }
  .promo-headline {
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
  }
  .promo-savings-badge {
    font-size: 0.76rem !important;
  }
  .btn-promo-action {
    font-size: 0.85rem !important;
    padding: 0.75rem 1rem !important;
  }
  .board-promo-banner {
    padding: 0.5rem 0.75rem !important;
    gap: 0.4rem !important;
    flex-wrap: wrap !important;
  }
  .promo-banner-content {
    gap: 0.35rem !important;
  }
  .promo-banner-pill {
    font-size: 0.7rem !important;
    padding: 0.15rem 0.5rem !important;
  }
  .promo-banner-text {
    font-size: 0.78rem !important;
  }
  .promo-banner-btn {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.55rem !important;
  }
}
