/* ==========================================================================
   TEMA OSCURO (negro + rojo) — SOLO PARTE PUBLICA
   --------------------------------------------------------------------------
   Replica el "look" de la web de referencia: fondo negro, tarjetas gris
   oscuro, textos blancos y botones/acentos en rojo.

   IMPORTANTE (no toca logica):
   - Todo este archivo esta limitado a  body.tema-oscuro .  Esa clase SOLO se
     agrega en las paginas publicas (ver head.ejs). El panel de administracion
     NUNCA recibe esa clase, asi que el admin queda EXACTAMENTE igual que antes.
   - Es puro maquillaje visual. No cambia formularios, rutas ni datos.
   ========================================================================== */

/* Acento rojo para todo lo que use var(--brand) (barras de progreso,
   numeros elegidos, etc.). Se define en el body publico para que "gane"
   sobre el color morado por defecto. */
body.tema-oscuro{
  --brand:#e3122b;
  --brand-dark:#b70f22;
  background:#0a0a0a !important;
  color:#f2f2f2;
}
body.tema-oscuro main{color:#e9e9e9}

/* ---- Textos ---- */
.tema-oscuro .text-gray-900,
.tema-oscuro .text-gray-800,
.tema-oscuro .text-gray-700{color:#f5f5f5 !important}
.tema-oscuro .text-gray-600,
.tema-oscuro .text-gray-500{color:#b7b7b7 !important}
.tema-oscuro .text-gray-400{color:#8c8c8c !important}
.tema-oscuro .text-indigo-600,
.tema-oscuro .text-indigo-700{color:#ff4040 !important}

/* ---- Fondos claros -> oscuros ---- */
.tema-oscuro .bg-white{background:#171717 !important}
.tema-oscuro .bg-gray-50{background:#111111 !important}
.tema-oscuro .bg-gray-100{background:#242424 !important}
.tema-oscuro .bg-indigo-50{background:rgba(227,18,43,.14) !important}
/* recuadro degradado (cuando una rifa no tiene imagen) */
.tema-oscuro .bg-gradient-to-br{background-image:none !important;background:#1c1c1c !important}

/* ---- Tarjetas y paneles ---- */
.tema-oscuro .card{background:#171717 !important;border-color:#2a2a2a !important}
.tema-oscuro .text-panel{
  background:rgba(23,23,23,.88) !important;
  border-color:#2a2a2a !important;
  color:#e9e9e9 !important;
  box-shadow:0 2px 12px rgba(0,0,0,.45) !important;
}

/* ---- Bordes ---- */
.tema-oscuro .border,
.tema-oscuro .border-gray-100,
.tema-oscuro .border-gray-200{border-color:#2a2a2a !important}

/* ---- Campos de formulario ---- */
.tema-oscuro .input{
  background:#1e1e1e !important;
  border-color:#363636 !important;
  color:#f5f5f5 !important;
}
.tema-oscuro .input::placeholder{color:#7d7d7d}
.tema-oscuro .input:focus{
  border-color:#e3122b !important;
  box-shadow:0 0 0 3px rgba(227,18,43,.25) !important;
}
.tema-oscuro .label{color:#d2d2d2 !important}
.tema-oscuro select.input option{background:#1e1e1e;color:#f5f5f5}

/* Selector de pais (codigo telefonico) */
.tema-oscuro .ccpais .ccsummary{background:#1e1e1e;border-color:#363636;color:#f5f5f5}
.tema-oscuro .ccpais .ccopts{background:#1e1e1e;border-color:#2a2a2a}
.tema-oscuro .ccpais .ccopts label{color:#e9e9e9}
.tema-oscuro .ccpais .ccopts label:hover{background:#2b2b2b}
.tema-oscuro .ccpais .ccarrow{color:#9a9a9a}

/* ---- Botones ---- */
.tema-oscuro .btn-primary{background:#e3122b !important;color:#fff !important}
.tema-oscuro .btn-primary:hover{background:#b70f22 !important}
.tema-oscuro .btn-ghost{background:#242424 !important;color:#e8e8e8 !important}
.tema-oscuro .btn-ghost:hover{background:#303030 !important}

/* ---- Barra superior (logo + navegacion) ---- */
.tema-oscuro .site-bar{
  background:rgba(14,14,14,.85) !important;
  border-bottom:1px solid #262626 !important;
}
.tema-oscuro .site-bar a[href="/"]{color:#f5f5f5 !important}
.tema-oscuro .site-bar .truncate{color:#f5f5f5 !important}

/* ---- Banner / hero del inicio ---- */
.tema-oscuro .hero-sec{
  background:#0a0a0a !important;
  background-image:none !important;
  color:#ffffff !important;
}
.tema-oscuro .hero-sec h1{color:#ffffff !important}
.tema-oscuro .hero-sec p{color:rgba(255,255,255,.82) !important}

/* ---- Pie de pagina (solo publico; el admin no lleva esta clase) ---- */
.tema-oscuro footer{
  background:#0d0d0d !important;
  background-image:none !important;
  border-top:1px solid #222222 !important;
}
.tema-oscuro footer a{color:#e7e7e7 !important}
.tema-oscuro footer div{color:#9a9a9a !important}
.tema-oscuro footer span{color:#5a5a5a !important}

/* ---- Cuadricula para elegir numeros ---- */
.tema-oscuro .num-cell{
  background:#242424 !important;
  border-color:#363636 !important;
  color:#eeeeee !important;
}
.tema-oscuro .num-cell:hover{border-color:#e3122b !important}
.tema-oscuro .num-cell.sel{background:#e3122b !important;border-color:#e3122b !important;color:#fff !important}
.tema-oscuro .num-cell.taken{background:#141414 !important;color:#565656 !important;border-color:#1f1f1f !important}
.tema-oscuro .num-cell.flash{outline:2px solid #e3122b !important}

/* Botones de modo (Al azar / Elegir mis numeros) */
.tema-oscuro .modo-btn{background:#1e1e1e !important;color:#dddddd !important;border-color:#363636 !important}
.tema-oscuro .modo-btn.active{background:#e3122b !important;color:#fff !important;border-color:#e3122b !important}

/* Contenedor del selector de numeros */
.tema-oscuro #pickerWrap{background:#141414 !important;border-color:#2a2a2a !important}

/* ---- Metodos de pago (tarjeta por metodo) ---- */
.tema-oscuro label.block.border{background:#1b1b1b !important;border-color:#333333 !important}
.tema-oscuro label.block.border:hover{border-color:#e3122b !important}
.tema-oscuro .hover\:border-indigo-400:hover{border-color:#e3122b !important}

/* ---- Cajas de aviso (alertas) sobre fondo oscuro ---- */
.tema-oscuro .bg-red-50{background:rgba(220,38,38,.16) !important;border-color:rgba(220,38,38,.4) !important}
.tema-oscuro .text-red-700,.tema-oscuro .text-red-600{color:#ff8a8a !important}
.tema-oscuro .bg-amber-50{background:rgba(245,158,11,.14) !important;border-color:rgba(245,158,11,.38) !important}
.tema-oscuro .text-amber-800{color:#ffd48a !important}
.tema-oscuro .border-red-200{border-color:rgba(220,38,38,.4) !important}
.tema-oscuro .border-amber-200{border-color:rgba(245,158,11,.38) !important}

/* Chips de numeros ya aprobados (pantalla "Consultar mis numeros") */
.tema-oscuro .bg-indigo-50.text-indigo-700{background:rgba(227,18,43,.16) !important;color:#ff6a6a !important}

/* ---- Compra en pasos (wizard) ---- */
.tema-oscuro .paso-ind{color:#7a7a7a !important}
.tema-oscuro .paso-ind.activo{color:#e3122b !important}
.tema-oscuro #pasosInd{color:#5a5a5a !important}
.tema-oscuro .paso-barra .btn-ghost{background:#1e1e1e !important;color:#dddddd !important;border:1px solid #363636 !important}
.tema-oscuro .paso-barra .btn-ghost:hover{border-color:#e3122b !important;color:#fff !important}
.tema-oscuro #wizardCard{background:#161616 !important;border:1px solid #262626 !important}
