/* Capa de lujo del lobby: fondo, barra, menu, portada, categorias, tarjetas, botones y paneles.
   Se carga despues de styles.css y solo cambia la estetica; la estructura sigue siendo la misma. */

:root {
  --vidrio: rgba(28, 12, 34, .62);
  --vidrio-fuerte: rgba(20, 8, 26, .85);
  --linea-oro: linear-gradient(90deg, transparent, rgba(255, 224, 140, .9), transparent);
  --borde-oro: linear-gradient(135deg, #fff1b0, #c9902a 30%, #6b3f08 50%, #f3c75a 70%, #fff1b0);
  --sombra-lujo: 0 18px 50px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 220, 130, .08);
}

/* ---------- Fondo: terciopelo oscuro con luz de salon y un dibujo art deco muy sutil ---------- */
body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(150, 30, 70, .35), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 30%, rgba(90, 30, 140, .22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(120, 20, 60, .2), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 215, 120, .018) 0 2px, transparent 2px 28px),
    repeating-linear-gradient(-45deg, rgba(255, 215, 120, .018) 0 2px, transparent 2px 28px),
    #0a0510;
  background-attachment: fixed;
}
#vista-casino { position: relative; }
.brillos-lobby { height: 100vh; inset: 0; pointer-events: none; position: fixed; width: 100vw; z-index: 0; }
.estructura { position: relative; z-index: 1; }
/* La barra de arriba (fichas y tiempo) siempre queda por encima de las maquinas al bajar. */
.barra { position: sticky; top: 0; z-index: 40; }

/* ---------- Barra superior: vidrio oscuro con filo dorado que brilla ---------- */
.barra {
  backdrop-filter: blur(14px) saturate(1.3);
  background: linear-gradient(180deg, rgba(48, 10, 28, .92), rgba(22, 6, 18, .88));
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  position: sticky;
}
.barra::after {
  animation: filoBarra 7s linear infinite;
  background: linear-gradient(90deg, #6b3f08, #f6c744 20%, #fff3c0 30%, #f6c744 40%, #6b3f08 60%, #f6c744 80%, #6b3f08);
  background-size: 200% 100%;
  bottom: 0;
  content: '';
  height: 2px;
  left: 0;
  position: absolute;
  right: 0;
}
@keyframes filoBarra { to { background-position: -200% 0; } }
.marca-texto { filter: drop-shadow(0 0 12px rgba(246, 199, 68, .35)); letter-spacing: 2.5px; }
.logo-barra { filter: drop-shadow(0 0 8px rgba(246, 199, 68, .55)); }
.saldo {
  background: linear-gradient(180deg, #1b0d06, #0a0503);
  border: 1px solid #c9902a;
  box-shadow: inset 0 1px 0 rgba(255, 240, 180, .25), 0 0 16px rgba(246, 199, 68, .18);
  padding: 5px 16px 5px 6px;
}
.avatar { box-shadow: 0 0 0 2px #1b0d06, 0 0 0 3px #c9902a, 0 0 14px rgba(246, 199, 68, .35); }

/* ---------- Menu lateral ---------- */
.lateral { border-right: 0; }
.lateral::after { background: linear-gradient(180deg, transparent, rgba(201, 144, 42, .45), transparent); content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; }
.lateral button { border-radius: 12px; margin-bottom: 4px; position: relative; transition: background .2s, color .2s, transform .2s; }
.lateral button:hover { background: rgba(246, 199, 68, .07); color: var(--oro-claro); transform: translateX(3px); }
.lateral button[aria-current='page'] {
  background: linear-gradient(90deg, rgba(246, 199, 68, .2), rgba(246, 199, 68, .04));
  box-shadow: inset 0 0 0 1px rgba(246, 199, 68, .25);
  color: var(--oro);
}
.lateral button[aria-current='page']::before {
  background: var(--degradado-oro);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(246, 199, 68, .8);
  content: '';
  height: 60%;
  left: -12px;
  position: absolute;
  top: 20%;
  width: 4px;
}

/* ---------- Portada (carrusel) ---------- */
.hero {
  border: 0;
  border-radius: 22px;
  box-shadow: var(--sombra-lujo), 0 0 60px rgba(150, 30, 70, .25);
  isolation: isolate;
}
/* Marco dorado fino alrededor de la portada. */
.hero::before {
  background: var(--borde-oro);
  border-radius: 22px;
  content: '';
  inset: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}
.hero-lamina::after {
  background:
    linear-gradient(90deg, rgba(8, 2, 12, .94) 0%, rgba(8, 2, 12, .7) 34%, rgba(8, 2, 12, .1) 62%, transparent 75%),
    linear-gradient(0deg, rgba(8, 2, 12, .8), transparent 38%);
}
.hero-ante { color: #ffe6a0; letter-spacing: 4px; text-shadow: 0 0 12px rgba(246, 199, 68, .45); }
.hero-texto h2 {
  background: linear-gradient(100deg, #8a5a10 0%, #f6c744 18%, #fff6cf 30%, #f6c744 42%, #b97b14 60%, #fff0a8 78%, #f6c744 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 1px;
}
.hero-lamina.activa .hero-texto h2 { animation: subeTexto .7s .1s ease-out both, brilloTitulo 5s 1s linear infinite; }
@keyframes brilloTitulo { to { background-position: -220% 0; } }
.hero-boton {
  background: linear-gradient(180deg, #fff1b0, #f6c744 45%, #c4841a);
  border: 1px solid #fff3c4;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(246, 199, 68, .4), inset 0 -3px 0 rgba(120, 60, 0, .35);
  color: #3a1800;
  letter-spacing: .5px;
  overflow: hidden;
  padding: 12px 26px;
  position: relative;
  text-transform: uppercase;
}
/* Destello que cruza los botones dorados. */
.hero-boton::after, .principal::after, .falso-boton::after {
  animation: cruzaDestello 3.8s ease-in-out infinite;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-120%);
}
@keyframes cruzaDestello { 60%, 100% { transform: translateX(120%); } }
.hero-punto { background: rgba(255, 230, 170, .3); }
.hero-punto[aria-current='true'] { background: var(--degradado-oro); box-shadow: 0 0 10px rgba(246, 199, 68, .7); }
.hero-flecha { backdrop-filter: blur(6px); background: rgba(14, 4, 18, .6); border-color: rgba(246, 199, 68, .6); }

/* Lamina de bienvenida: emblema con halo, titulo enorme y linea "Casino" espaciada. */
.hero-marca .hero-fondo { object-position: 60% 50%; }
.hero-emblema {
  animation: emblemaFlota 5s ease-in-out infinite;
  filter: drop-shadow(0 0 22px rgba(246, 199, 68, .55)) drop-shadow(0 10px 24px rgba(0, 0, 0, .7));
  height: clamp(46px, 6.5vw, 96px);
  margin-bottom: 2px;
  object-fit: contain;
  width: clamp(46px, 6.5vw, 96px);
}
@keyframes emblemaFlota { 50% { transform: translateY(-6px) rotate(-2deg); } }
.hero-marca .hero-texto { gap: 6px; }
.hero-marca .hero-texto h2 { font-size: clamp(32px, 4.8vw, 72px); white-space: nowrap; }
.hero-casino {
  color: #ffe6a0;
  font-family: Cinzel, serif;
  font-size: clamp(13px, 1.5vw, 20px);
  font-weight: 700;
  letter-spacing: clamp(6px, 1.2vw, 14px);
  margin-top: -6px;
  text-shadow: 0 0 14px rgba(246, 199, 68, .5);
}
.hero-casino::before, .hero-casino::after { color: #c9902a; content: '◆'; font-size: .6em; letter-spacing: 0; margin: 0 10px; vertical-align: middle; }

/* ---------- Categorias ---------- */
.categoria {
  background: linear-gradient(160deg, rgba(60, 22, 70, .75), rgba(22, 8, 28, .9));
  border: 1px solid rgba(201, 144, 42, .45);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 230, 170, .12);
  overflow: hidden;
  position: relative;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.categoria::after {
  background: linear-gradient(100deg, transparent 35%, rgba(255, 240, 190, .22) 50%, transparent 65%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-120%);
  transition: transform .7s;
}
.categoria:hover { border-color: #f6c744; box-shadow: 0 16px 34px rgba(0, 0, 0, .5), 0 0 24px rgba(246, 199, 68, .25); transform: translateY(-5px); }
.categoria:hover::after { transform: translateX(120%); }
.categoria-icono { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); transition: transform .3s; }
.categoria:hover .categoria-icono { transform: scale(1.1) translateY(-3px); }
.categoria-nombre { letter-spacing: 1px; }
.categoria-cantidad { color: #e6c98a; }

/* ---------- Titulos de seccion: oro con rombo y filete ---------- */
.seccion-titulo h2 {
  align-items: center;
  background: var(--degradado-oro);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .6));
  gap: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.seccion-titulo h2::before { -webkit-text-fill-color: #c9902a; color: #c9902a; content: '◆'; font-size: .55em; }
.seccion-titulo { position: relative; }
.seccion-titulo::after { background: linear-gradient(90deg, rgba(201, 144, 42, .6), transparent); content: ''; flex: 1; height: 1px; margin-left: 14px; order: 1; }
.seccion-titulo .contador { order: 2; }

/* ---------- Destacados y tarjetas de juego ---------- */
.destacado {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
  transition: transform .3s, box-shadow .3s;
}
.destacado::before {
  background: var(--borde-oro);
  border-radius: 18px;
  content: '';
  inset: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 1.5px;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
.destacado .banner-propio { transition: transform .6s ease; }
.destacado:hover { box-shadow: 0 20px 40px rgba(0, 0, 0, .6), 0 0 30px rgba(246, 199, 68, .3); transform: translateY(-4px); }
.destacado:hover .banner-propio { transform: scale(1.05); }

.juego {
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .55);
  transition: transform .25s, box-shadow .25s;
}
.juego::before {
  background: linear-gradient(135deg, rgba(255, 241, 176, .9), rgba(201, 144, 42, .5) 40%, rgba(107, 63, 8, .4) 60%, rgba(243, 199, 90, .9));
  border-radius: 16px;
  content: '';
  inset: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .45;
  padding: 1.5px;
  pointer-events: none;
  position: absolute;
  transition: opacity .25s;
  z-index: 3;
}
.juego::after {
  background: linear-gradient(105deg, transparent 35%, rgba(255, 245, 210, .35) 50%, transparent 65%);
  content: '';
  inset: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-130%);
  transition: transform .8s;
  z-index: 2;
}
.juego:hover { box-shadow: 0 18px 34px rgba(0, 0, 0, .6), 0 0 26px rgba(246, 199, 68, .35); transform: translateY(-6px) scale(1.02); }
.juego:hover::before { opacity: 1; }
.juego:hover::after { transform: translateX(130%); }
.juego img, .juego svg { transition: transform .5s ease; }
.juego:hover img, .juego:hover svg { transform: scale(1.05); }
.insignia {
  background: linear-gradient(180deg, #e8203f, #9a0c24);
  border-radius: 0 0 10px 0;
  box-shadow: 0 3px 10px rgba(180, 18, 44, .6);
  letter-spacing: 1px;
  z-index: 4;
}

/* ---------- Filtros y buscador ---------- */
.chip {
  backdrop-filter: blur(6px);
  background: var(--vidrio);
  border: 1px solid rgba(201, 144, 42, .3);
  color: #e3d2e8;
  transition: border-color .2s, color .2s, transform .2s;
}
.chip:hover { border-color: #f6c744; color: var(--oro-claro); transform: translateY(-1px); }
.chip[aria-pressed='true'] { box-shadow: 0 4px 14px rgba(246, 199, 68, .35); }
.buscador input {
  background: var(--vidrio) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23c9902a' d='M10 2a8 8 0 0 1 6.3 12.9l5.4 5.4-1.4 1.4-5.4-5.4A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12z'/%3E%3C/svg%3E") no-repeat 14px 50% / 16px;
  border: 1px solid rgba(201, 144, 42, .35);
  padding-left: 38px;
}
.buscador input:focus { border-color: #f6c744; box-shadow: 0 0 0 3px rgba(246, 199, 68, .15); outline: 0; }

/* ---------- Paneles (top ganadores, juegos que mas pagaron, torneos) ---------- */
.tarjeta {
  backdrop-filter: blur(10px);
  background: linear-gradient(170deg, rgba(48, 18, 56, .78), rgba(16, 6, 22, .9));
  border: 1px solid rgba(201, 144, 42, .35);
  border-radius: 18px;
  box-shadow: var(--sombra-lujo);
  overflow: hidden;
  position: relative;
}
.tarjeta::before { background: var(--linea-oro); content: ''; height: 1px; left: 10%; position: absolute; right: 10%; top: 0; }
.tarjeta h2 { letter-spacing: 1.5px; text-transform: uppercase; }
.fila-lista { border-top-color: rgba(201, 144, 42, .15); border-radius: 10px; padding: 10px 8px; transition: background .2s; }
.fila-lista:hover { background: rgba(246, 199, 68, .06); }
.fila-lista strong { text-shadow: 0 0 10px rgba(246, 199, 68, .35); }
/* Puestos con medalla: oro, plata y bronce para los tres primeros. */
.tarjeta { counter-reset: puesto; }
.fila-lista { counter-increment: puesto; }
.fila-lista > span:first-child::before {
  align-items: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(201, 144, 42, .35);
  border-radius: 50%;
  color: #e3d2e8;
  content: counter(puesto);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 24px;
  justify-content: center;
  margin-right: 10px;
  width: 24px;
}
.fila-lista:nth-of-type(1) > span:first-child::before { background: radial-gradient(circle at 35% 30%, #fff6cf, #f6c744 45%, #a66b0d); border-color: #fff3c4; box-shadow: 0 0 12px rgba(246, 199, 68, .6); color: #3a1800; }
.fila-lista:nth-of-type(2) > span:first-child::before { background: radial-gradient(circle at 35% 30%, #ffffff, #c9ccd6 45%, #7c808c); border-color: #f2f4f8; color: #23252b; }
.fila-lista:nth-of-type(3) > span:first-child::before { background: radial-gradient(circle at 35% 30%, #ffd9b0, #c8783a 45%, #7a3e14); border-color: #ffd9b0; color: #2a1004; }

/* ---------- Botones generales ---------- */
.principal, .falso-boton { overflow: hidden; position: relative; }
.principal {
  background: linear-gradient(180deg, #fff1b0, #f6c744 45%, #c4841a);
  border: 1px solid #fff3c4;
  box-shadow: 0 8px 22px rgba(246, 199, 68, .3), inset 0 -3px 0 rgba(120, 60, 0, .35);
  color: #3a1800;
  font-weight: 800;
  letter-spacing: .5px;
}
.principal:hover { box-shadow: 0 10px 28px rgba(246, 199, 68, .5), inset 0 -3px 0 rgba(120, 60, 0, .35); filter: brightness(1.06); }

/* ---------- Ingreso (login) ---------- */
.acceso-arte {
  background:
    radial-gradient(circle at 50% 40%, rgba(246, 199, 68, .18), transparent 40%),
    radial-gradient(circle at 50% 42%, #7d1030, #2a0516 62%, #0a0510);
  border-right: 0;
  box-shadow: inset -1px 0 0 rgba(201, 144, 42, .5);
}
.acceso-panel { backdrop-filter: blur(10px); background: rgba(20, 8, 26, .55); border: 1px solid rgba(201, 144, 42, .3); border-radius: 22px; box-shadow: var(--sombra-lujo); }

/* ---------- Barra inferior del celular ---------- */
.nav-inferior { backdrop-filter: blur(14px); background: linear-gradient(180deg, rgba(36, 10, 26, .9), rgba(14, 4, 12, .96)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .5); }
.nav-inferior button[aria-current='page'], .nav-inferior a[aria-current='page'] { color: var(--oro); text-shadow: 0 0 10px rgba(246, 199, 68, .6); }

@media (prefers-reduced-motion: reduce) {
  .barra::after, .hero-lamina.activa .hero-texto h2, .hero-emblema, .hero-boton::after, .principal::after, .falso-boton::after { animation: none !important; }
}

/* Las categorias ocupan todo el ancho, sean 4 o 5. */
@media (min-width: 761px) {
  .categorias { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); }
}
.logo-barra .emblema-img { display: block; height: 40px; object-fit: contain; width: 36px; }
.logo-acceso .emblema-img { animation: emblemaFlota 5s ease-in-out infinite; display: block; filter: drop-shadow(0 0 30px rgba(246, 199, 68, .55)); height: 170px; margin: 0 auto; object-fit: contain; width: 150px; }

/* Celular: portada de bienvenida mas alta, titulo que entra en un renglon y categorias con el nombre completo. */
@media (max-width: 760px) {
  .hero:has(.hero-marca.activa) { height: 300px; }
  .hero-marca .hero-emblema { display: none; }
  .hero-marca .hero-texto { max-width: 78%; }
  .hero-marca .hero-texto h2 { font-size: clamp(26px, 8.4vw, 38px); }
  .hero-marca .hero-texto p { font-size: 13px; }
  .hero-texto h2 { font-size: clamp(24px, 7.5vw, 34px); }
  .categoria { flex: 0 0 116px; }
  .categoria-nombre { font-size: 11px; letter-spacing: .3px; }
  .categoria-cantidad { font-size: 11px; }
}

/* Cartel del bingo en el lobby */
.banner-bingo { align-items: center; background: linear-gradient(100deg, #4a0f2a, #2b1060 60%, #12285e); border: 1px solid var(--oro); border-radius: 16px; box-shadow: 0 0 24px rgba(246, 199, 68, .18); color: var(--texto); display: flex; gap: 14px; margin: 14px 0; padding: 12px 16px; text-decoration: none; }
.banner-bingo:hover { filter: brightness(1.12); }
.bb-bola { align-items: center; background: radial-gradient(circle at 35% 30%, #fff 0 15%, #ffe27a 45%, #c47a0a); border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.5); color: #2a0f2e; display: flex; flex: 0 0 auto; font-family: Cinzel, serif; font-size: 26px; font-weight: 900; height: 54px; justify-content: center; width: 54px; animation: bb-gira 6s linear infinite; }
@keyframes bb-gira { 50% { transform: rotate(14deg) scale(1.06); } }
.bb-texto { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.bb-texto strong { color: var(--oro); font-family: Cinzel, serif; font-size: 20px; }
.bb-texto small { color: var(--tenue); font-size: 13px; }
.bb-boton { background: var(--degradado-oro); border-radius: 999px; color: #2a0f2e; flex: 0 0 auto; font-weight: 800; padding: 9px 16px; }
@media (max-width: 600px) { .bb-boton { display: none; } .bb-texto strong { font-size: 17px; } }
