/* ==========================================================================
   INTERFACES MODERNAS - BINGO EVENTOS, LOTERÍA MÓVIL Y SALA EN VIVO
   ========================================================================== */

:root {
  --be-emerald: #064e3b;
  --be-dark-emerald: #022c22;
  --be-neon-green: #10b981;
  --be-gold: #fbbf24;
  --be-amber: #f59e0b;
  --be-red: #dc2626;
  --be-dark-bg: #0b0f19;
  --be-card-bg: #111827;
  --be-light-gray: #f3f4f6;
  --be-border: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   1. VISTA MÓVIL DE LOTERÍA & BOLITA (IMAGEN 1)
   ========================================================================== */

.mobile-device-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  min-height: 100vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding-bottom: 90px;
}

.mobile-lottery-header {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  padding: 30px 20px 24px;
  border-radius: 0 0 32px 32px;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.mobile-lottery-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Horizontal Lottery Cards Ribbon */
.lottery-carousel-ribbon {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.lottery-carousel-ribbon::-webkit-scrollbar {
  display: none;
}

.lottery-tab-card {
  min-width: 145px;
  border-radius: 20px;
  padding: 14px 16px;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lottery-tab-card.active-red {
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
  transform: translateY(-2px);
}

.lottery-tab-card.inactive-white {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}

.lottery-tab-card .card-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.lottery-tab-card .card-time {
  font-size: 0.8rem;
  opacity: 0.85;
}

.lottery-tab-card .card-jackpot {
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 6px;
}

/* Controls: Modalidad & Monto */
.controls-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 20px 16px;
}

.control-box {
  display: flex;
  flex-direction: column;
}

.control-box label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  margin-bottom: 6px;
}

.control-input-wrapper {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: #111827;
}

.control-input-wrapper select,
.control-input-wrapper input {
  border: none;
  background: transparent;
  width: 100%;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
  outline: none;
}

/* 100 Ball Tokens Grid */
.ball-tokens-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding: 8px 18px 20px;
  max-height: 400px;
  overflow-y: auto;
}

.ball-token {
  aspect-ratio: 1;
  border-radius: 50%;
  background: #e5e7eb;
  color: #1f2937;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.ball-token:hover {
  transform: scale(1.1);
}

.ball-token.selected {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.5);
  transform: scale(1.08);
}

/* Sticky Bottom Action Button */
.sticky-buy-wrapper {
  position: fixed;
  bottom: 60px;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px;
  background: linear-gradient(to top, rgba(255,255,255,1) 80%, rgba(255,255,255,0));
  z-index: 40;
}

.btn-buy-ticket-mobile {
  width: 100%;
  background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 9999px;
  padding: 14px 20px;
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-buy-ticket-mobile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.6);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 50;
}

.mobile-bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mobile-bottom-nav .nav-item.active {
  color: #dc2626;
}

.mobile-bottom-nav .nav-item i {
  font-size: 1.2rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   2. SALA DE BINGO EN VIVO & ESTUDIO INTERACTIVO (IMAGEN 2)
   ========================================================================== */

.live-bingo-body {
  background: #022c22 !important;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.live-header-bar {
  background: #064e3b;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-pill-logo {
  background: #022c22;
  border: 2px solid #10b981;
  padding: 6px 18px;
  border-radius: 9999px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* Studio Video Box */
.studio-video-card {
  background: #011d16;
  border: 2px solid #10b981;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-video-card .badge-live-pulse {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #dc2626;
  color: white;
  padding: 6px 14px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.8);
  animation: pulse-live 1.5s infinite;
  z-index: 10;
}

@keyframes pulse-live {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Live Chat Widget */
.bingo-chat-widget {
  background: #064e3b;
  border: 1px solid #10b981;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  height: 230px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.bingo-chat-header {
  background: rgba(2, 44, 34, 0.8);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: #fbbf24;
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.bingo-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.chat-msg-row .user-tag {
  color: #fbbf24;
  font-weight: 700;
}

.bingo-chat-input-bar {
  display: flex;
  padding: 6px;
  background: rgba(2, 44, 34, 0.9);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
}

.bingo-chat-input-bar input {
  flex: 1;
  background: rgba(6, 78, 59, 0.6);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 8px;
  padding: 6px 10px;
  color: white;
  font-size: 0.8rem;
  outline: none;
}

/* Event Info Card */
.event-info-card {
  background: #064e3b;
  border: 1px solid #10b981;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.event-info-card .info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 3px;
}

/* Multi-Card Carousel (Cartón 1 to 5) */
.active-cards-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px;
  scrollbar-width: thin;
}

.mini-bingo-card {
  min-width: 175px;
  background: #ffffff;
  color: #111827;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid #10b981;
  flex-shrink: 0;
}

.mini-bingo-card.card-highlight {
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.6);
}

.mini-bingo-card .card-header-tag {
  background: #064e3b;
  color: #ffffff;
  text-align: center;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.mini-bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.mini-bingo-grid .cell {
  background: #f3f4f6;
  border-radius: 4px;
  padding: 4px 2px;
}

.mini-bingo-grid .cell.hit {
  background: #fbbf24 !important;
  color: #022c22 !important;
  font-weight: 800;
}

/* Pattern Winners & Jackpot Banner */
.patterns-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.pattern-box {
  background: rgba(6, 78, 59, 0.6);
  border: 1px solid #10b981;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
  font-size: 0.8rem;
}

.pattern-grid-preview {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  width: 55px;
  margin: 6px auto;
}

.pattern-grid-preview .p-cell {
  width: 9px;
  height: 9px;
  background: #e5e7eb;
  border-radius: 2px;
}

.pattern-grid-preview .p-cell.active {
  background: #fbbf24;
}

.jackpot-banner-center {
  background: linear-gradient(135deg, rgba(2, 44, 34, 0.95), rgba(6, 78, 59, 0.95));
  border: 3px solid #fbbf24;
  border-radius: 20px;
  padding: 16px 24px;
  text-align: center;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.4);
}

/* ==========================================================================
   3. PORTADA HUB PRINCIPAL & BANNER ESMERALDA (IMÁGENES 3 Y 4)
   ========================================================================== */

.hero-emerald-container {
  background: radial-gradient(circle at center, #065f46 0%, #022c22 70%, #011610 100%);
  border-radius: 28px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(16, 185, 129, 0.4);
}

.hero-neon-box {
  background: rgba(2, 44, 34, 0.85);
  border: 3px solid #10b981;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

/* Social Streaming Channels */
.social-stream-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.social-stream-btn {
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-stream-btn:hover {
  transform: translateY(-3px);
}

.btn-yt { background: #fee2e2; color: #dc2626 !important; border: 2px solid #ef4444; }
.btn-fb { background: #dbeafe; color: #1d4ed8 !important; border: 2px solid #3b82f6; }
.btn-tg { background: #cffafe; color: #0891b2 !important; border: 2px solid #06b6d4; }
.btn-tk { background: #fef3c7; color: #b45309 !important; border: 2px solid #f59e0b; }

/* 3 Core Game Cards */
.core-game-card {
  background: #111827;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px 18px;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.core-game-card:hover {
  border-color: #10b981;
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
}

.core-game-card img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 14px;
}

/* VIP Winner Card with 5 Stars */
.winner-card-vip {
  background: #111827;
  border: 2px solid rgba(251, 191, 36, 0.3);
  border-radius: 24px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.winner-card-vip:hover {
  border-color: #fbbf24;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(251, 191, 36, 0.25);
}

.winner-card-vip .winner-avatar-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fbbf24;
  margin: 0 auto 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.winner-card-vip .winner-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.winner-card-vip .stars-row {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
