/* ===== Fichaza · landing comercial. Mismo tema "negro y oro" que el lobby (zonacode.com/casino). ===== */
:root {
  --bg: #0d0f13; --s1: #0a0b0e; --s2: #15181e; --s3: #20242c; --s4: #2c313b;
  --borde: #23272f; --borde-2: #323844;
  --texto: #b9bfcb; --tenue: #7c8494; --fuerte: #ffffff;
  --oro: #f2c64a; --oro-2: #b8913b; --oro-claro: #ffe39a; --verde: #34c77b;
}
html { background: var(--bg); }
body { background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(242,198,74,.07), transparent 60%), var(--bg); color: var(--texto); font-family: Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: rgba(242,198,74,.35); color: #fff; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

/* Ruido sutil sobre todo el sitio (textura, no plano) */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---- Marca (idéntica al lobby) ---- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Barlow Condensed", Inter, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: var(--fuerte); line-height: 1; }
.ficha { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 16px; font-weight: 700; color: #2a1d05; flex: none;
  background: radial-gradient(circle at 35% 30%, var(--oro-claro), var(--oro) 50%, var(--oro-2)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 0 3px rgba(214,178,94,.18); }
.moneda { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--oro-claro), var(--oro) 50%, var(--oro-2)); flex: none; }

/* ---- Botones (los del casino) ---- */
.btn-oro { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(180deg, #ffe39a 0%, #f2c64a 45%, #c8962e 100%); color: #1c1405; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 10px;
  box-shadow: 0 6px 18px rgba(242,198,74,.18), inset 0 -3px 0 rgba(0,0,0,.18); transition: filter .15s, transform .05s; }
.btn-oro:hover { filter: brightness(1.07); }
.btn-oro:active { transform: translateY(1px); }
.btn-sec { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #1c2027; border: 1px solid #2c313b; color: #fff; font-weight: 600; border-radius: 10px; transition: background .15s, border-color .15s; }
.btn-sec:hover { background: #252a33; border-color: var(--oro-2); }

/* ---- Superficies ---- */
.panel { background: #111318; border: 1px solid #1f232a; border-radius: 14px; }
.panel-hover { transition: border-color .2s, background .2s; }
.panel-hover:hover { background: #151820; border-color: #4a3d1e; }
.titulo { font-family: Cinzel, serif; letter-spacing: .02em; color: #f4f1e8; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.oro-texto { background: linear-gradient(180deg, #ffe39a 10%, #f2c64a 55%, #c8962e); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Hero: el lobby con tu marca ---- */
.marco { position: relative; border-radius: 16px; background: #08090c; border: 1px solid #262a33; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(242,198,74,.06), 0 0 120px -30px rgba(242,198,74,.25); overflow: hidden; }
.marco-barra { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(13,15,19,.96); border-bottom: 1px solid #1a1d23; }
.marco-busca { flex: 1; max-width: 260px; height: 28px; border-radius: 999px; background: #0a0b0e; border: 1px solid #262a33; font-size: 11px; color: var(--tenue); display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.marco-cartera { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: #0a0b0e; border: 1px solid #262a33; color: #fff; font-weight: 700; font-size: 12px; }
.marco img { display: block; width: 100%; height: auto; }
.marca-nombre { max-width: 13ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.probador { background: #0a0b0e; border: 1px solid #2a2f38; border-radius: 12px; }
.probador:focus-within { border-color: var(--oro-2); }
.probador input { background: transparent; outline: none; color: #fff; }
.probador input::placeholder { color: #5d6472; }
.flotante { position: absolute; border-radius: 12px; background: rgba(17,19,24,.92); border: 1px solid #2c313b; backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(0,0,0,.55); }
.punto-vivo { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 0 rgba(52,199,123,.6); animation: latir 2s infinite; }
@keyframes latir { 70% { box-shadow: 0 0 0 8px rgba(52,199,123,0); } 100% { box-shadow: 0 0 0 0 rgba(52,199,123,0); } }

/* Halo detrás del mockup */
.halo { position: absolute; inset: -10% -10% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(242,198,74,.18), transparent 65%); filter: blur(20px); pointer-events: none; }

/* ---- Ticker (como la franja del lobby) ---- */
.franja { background: #111318; border-top: 1px solid #1f232a; border-bottom: 1px solid #1f232a; }
.ticker { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-pista { display: flex; width: max-content; gap: 40px; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-pista { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---- Categorías ---- */
.cat-card { background: #111318; border: 1px solid #1f232a; border-radius: 10px; transition: background .2s, border-color .2s; }
.cat-card:hover { background: #171a20; border-color: #4a3d1e; }

/* ===== Portadas: copia fiel de las del lobby ===== */
.tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: #0b0f15; isolation: isolate; container-type: inline-size;
  box-shadow: 0 0 0 1px #1f232a; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--oro-2), 0 10px 26px rgba(0,0,0,.55); }
.tile-fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(circle at 50% 32%, color-mix(in srgb, var(--c1) 28%, var(--c2)) 0%, color-mix(in srgb, var(--c2) 85%, #000) 55%, #050608 100%); }
.tile-fondo::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.02) 0 2px, transparent 2px 12px); }
.tile-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5,7,10,.92) 0%, rgba(5,7,10,.6) 26%, rgba(5,7,10,0) 58%); }
.tile img { position: absolute; pointer-events: none; user-select: none; height: auto; object-fit: contain; transition: scale .35s; }
.tile-3d { left: 50%; top: 30%; width: 60%; transform: translate(-50%, -50%); filter: drop-shadow(0 16px 18px rgba(0,0,0,.55)); }
.tile-3d-esq { right: -8%; bottom: 14%; width: 44%; opacity: .95; filter: drop-shadow(0 10px 12px rgba(0,0,0,.55)); rotate: 12deg; }
.tile:hover .tile-3d { scale: 1.08; }
.tile-logo { position: absolute; left: 4%; right: 4%; bottom: 19%; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; pointer-events: none;
  font-family: var(--f), 'Russo One', sans-serif; font-size: var(--fs, 16cqw); text-transform: uppercase; line-height: .84; letter-spacing: .01em;
  filter: drop-shadow(0 1px 0 var(--tr)) drop-shadow(0 1px 0 var(--tr)) drop-shadow(0 1px 0 var(--tr)) drop-shadow(0 2px 0 var(--tb)) drop-shadow(0 6px 7px rgba(0,0,0,.7)); }
.logo-linea { display: block; background: linear-gradient(180deg, var(--t1) 0%, var(--t2) 48%, var(--t3) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 1.6px var(--tb); padding: 0 2px; max-width: 100%; white-space: nowrap; }
.logo-chica { display: block; font-size: .42em; line-height: 1; letter-spacing: .12em; color: var(--t1); -webkit-text-stroke: .6px var(--tb); margin: 1px 0; }
.tile-cinta { position: absolute; left: 50%; bottom: 5%; transform: translateX(-50%); z-index: 2; white-space: nowrap; font-size: 5.2cqw; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(8,9,12,.85); color: var(--oro); border: 1px solid rgba(242,198,74,.45); padding: 3px 10px; border-radius: 3px; }
.tile-brillo { position: absolute; inset: -40%; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%); transform: translateX(-70%); transition: transform .8s; pointer-events: none; }
.tile:hover .tile-brillo { transform: translateX(70%); }
.tile-badge { position: absolute; top: 8%; left: 8%; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 7px; border-radius: 4px; background: #1f9d55; color: #fff; }
.tile-badge.hot { background: #c81e2e; }

/* Carrusel de portadas */
.swiper-juegos .swiper-slide { width: 184px; }
@media (min-width: 1024px) { .swiper-juegos .swiper-slide { width: 208px; } }
.flecha { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; background: #15181e; border: 1px solid #262a33; color: #fff; transition: border-color .15s; }
.flecha:hover { border-color: var(--oro-2); }
.flecha.swiper-button-disabled { opacity: .35; cursor: default; }

/* ---- Bento ---- */
.bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(180px, auto); } }
.b-grande { grid-column: span 4; grid-row: span 2; }
.b-alto { grid-column: span 2; grid-row: span 2; }
.b-medio { grid-column: span 3; }
.b-chico { grid-column: span 2; }
@media (max-width: 767px) { .b-grande, .b-alto, .b-medio, .b-chico { grid-column: auto; grid-row: auto; } }
.hash { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #5d6472; word-break: break-all; }
.mult { font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: 6px; background: #0a0b0e; border: 1px solid #262a33; }

/* ---- Planes (dos, distintos a propósito) ---- */
.plan-destacado { position: relative; background: linear-gradient(180deg, #17140c, #111318 40%); border: 1px solid #4a3d1e; }
.plan-destacado::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(180deg, rgba(242,198,74,.8), rgba(242,198,74,0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.check { width: 18px; height: 18px; flex: none; color: var(--oro); margin-top: 2px; }

/* ---- Pasos ---- */
.paso-num { font-family: Cinzel, serif; font-size: 56px; line-height: 1; font-weight: 800; }
.linea-progreso { position: absolute; left: 0; right: 0; top: 28px; height: 1px; background: #23272f; }
.linea-progreso span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--oro-2), var(--oro)); }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid #1f232a; }
.faq-item button[aria-expanded="true"] .faq-mas { transform: rotate(45deg); color: var(--oro); }
.faq-mas { transition: transform .2s; }

/* ---- Formulario ---- */
.campo { background: #0a0b0e; border: 1px solid #2a2f38; border-radius: 10px; color: #fff; width: 100%; padding: 12px 14px; font-size: 15px; transition: border-color .15s; }
.campo:focus { border-color: var(--oro-2); outline: none; }
.campo::placeholder { color: #5d6472; }
select.campo { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b8913b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.opcion-plan input { position: absolute; opacity: 0; pointer-events: none; }
.opcion-plan span { display: block; padding: 10px 12px; border-radius: 10px; border: 1px solid #2a2f38; background: #0a0b0e; font-size: 13px; font-weight: 600; color: var(--texto); text-align: center; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.opcion-plan input:checked + span { border-color: var(--oro); color: #fff; background: #17140c; }
.opcion-plan input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Barra fija del celular */
.barra-movil { background: rgba(13,15,19,.95); border-top: 1px solid #1f232a; backdrop-filter: blur(10px); }

/* Animación de entrada (la maneja GSAP; sin JS queda todo visible) */
.js .revela { opacity: 0; transform: translateY(24px); }

@media (prefers-reduced-motion: reduce) {
  .ticker-pista, .punto-vivo { animation: none; }
  .js .revela { opacity: 1; transform: none; }
  .tile, .tile-brillo, .tile img { transition: none; }
}
[x-cloak] { display: none !important; }

/* =====================================================================
   3D Y MOVIMIENTO (v2): fichas Three.js, mockup inclinado, portadas 3D,
   carrusel coverflow, títulos que se destapan, paralaje, botón imán.
   ===================================================================== */

/* Fichas 3D del hero: capa detrás del contenido */
.hero-3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 1.2s ease .2s; }
.con-3d .hero-3d { opacity: 1; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 1; }

/* Moneda del eyebrow que gira como ficha */
.moneda-gira { animation: girarMoneda 3.2s ease-in-out infinite; }
@keyframes girarMoneda { 0%, 60% { transform: rotateY(0); } 80%, 100% { transform: rotateY(360deg); } }

/* Título del hero: cada renglón sube desde su máscara */
.linea { display: block; overflow: hidden; padding-bottom: .08em; }
.linea > span { display: inline-block; }
.js .linea > span { transform: translateY(105%); }

/* Mockup en perspectiva */
.escena-3d { perspective: 1600px; }
.plano-3d { position: relative; transform-style: preserve-3d; transform: rotateY(var(--ry, -9deg)) rotateX(var(--rx, 5deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.plano-3d .flotante { transform: translateZ(var(--z, 60px)); }
.plano-3d .halo { transform: translateZ(-80px); }
.marco-reflejo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--bx, 30%) var(--by, 20%), rgba(255,255,255,.14), transparent 45%); mix-blend-mode: soft-light; }
@media (max-width: 1023px) { .plano-3d { --ry: 0deg; --rx: 8deg; } }

/* Flotar (carteles, badges) */
.flotar { animation: flotar 5s ease-in-out infinite; animation-delay: var(--retardo, 0s); }
@keyframes flotar { 50% { translate: 0 -10px; } }

/* Indicador "bajá" */
.deslizar { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 2; width: 24px; height: 38px; border-radius: 999px; border: 1.5px solid #3a3f4a; justify-content: center; padding-top: 7px; }
.deslizar span { width: 4px; height: 8px; border-radius: 4px; background: var(--oro); animation: deslizar 1.8s ease-in-out infinite; }
@keyframes deslizar { 0% { opacity: 0; translate: 0 -2px; } 40% { opacity: 1; } 100% { opacity: 0; translate: 0 12px; } }

/* Botón imán + flecha que se corre */
[data-iman] { will-change: transform; }
.btn-oro .flecha-btn { transition: translate .25s; }
.btn-oro:hover .flecha-btn { translate: 4px 0; }
.btn-oro { position: relative; overflow: hidden; isolation: isolate; }
.btn-oro::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s; }
.btn-oro:hover::after { transform: translateX(120%); }

/* Inclinación 3D con el mouse + brillo que sigue al puntero */
[data-inclinar] { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s, background .3s; }
[data-inclinar].inclinando { transition: transform .08s linear, box-shadow .3s, border-color .3s, background .3s; }
[data-inclinar]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%), rgba(255,227,154,.16), transparent 55%); }
[data-inclinar].inclinando::after { opacity: 1; }
article[data-inclinar] { position: relative; }
.tile[data-inclinar] { --ty: 0px; }
.tile[data-inclinar]:hover { --ty: -4px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty)); }
/* El arte de la portada se corre con el puntero (profundidad) */
.tile .tile-3d { translate: calc(var(--px, 0) * -9px) calc(var(--py, 0) * -9px); transition: scale .35s, translate .2s; }
.tile .tile-3d-esq { translate: calc(var(--px, 0) * 6px) calc(var(--py, 0) * 6px); transition: translate .2s; }
.tile .tile-logo { translate: calc(var(--px, 0) * -3px) calc(var(--py, 0) * -3px); transition: translate .2s; }

/* Carrusel coverflow */
.swiper-juegos { padding: 30px 0 40px; }
.swiper-juegos .swiper-slide { transition: filter .4s; }
.swiper-juegos .swiper-slide:not(.swiper-slide-active) { filter: brightness(.62) saturate(.85); }
.swiper-juegos .swiper-slide-active .tile { box-shadow: 0 0 0 1px var(--oro-2), 0 30px 60px -10px rgba(0,0,0,.8), 0 0 80px -20px rgba(242,198,74,.45); }

/* Títulos que se destapan (los maneja GSAP) */
.js h2.titulo.revela { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); }

/* Captura con paralaje dentro de su tarjeta */
[data-paralaje-local] { scale: 1.12; }

/* Pila de fichas 3D */
.pila-3d { position: relative; margin-top: 28px; height: 300px; max-width: 460px; border-radius: 18px;
  background: radial-gradient(ellipse 70% 60% at 50% 75%, rgba(242,198,74,.10), transparent 70%); }
.pila-3d canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.pila-3d canvas:active { cursor: grabbing; }
.pila-ayuda { position: absolute; left: 50%; top: 6px; translate: -50% 0; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #5d6472; pointer-events: none; }
.pila-3d:not(.con-3d) { display: none; }

@media (prefers-reduced-motion: reduce) {
  .moneda-gira, .flotar, .deslizar span { animation: none; }
  .js .linea > span { transform: none; }
  .js h2.titulo.revela { clip-path: none; }
  [data-inclinar], .plano-3d { transition: none; }
}
@media (hover: none) { [data-inclinar]::after { display: none; } }
.paso-num { display: inline-block; }
/* Coverflow: sin caras espejadas y sin portadas demasiado lejanas */
.swiper-juegos .swiper-slide { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.swiper-juegos .swiper-slide:not(.swiper-slide-visible) { opacity: 0; }
/* Oferta 2 sin completar: textos de ejemplo en gris, marco punteado */
.oferta-vacia { border-style: dashed; border-color: #3a3f4a; }
.oferta-vacia h3, .oferta-vacia p, .oferta-vacia li span, .oferta-vacia .btn-sec, .oferta-vacia .text-tenue { color: #5d6472 !important; }
.oferta-vacia .check { color: #3a3f4a; }
/* El campo "Escribí el nombre de tu casino" siempre por encima del mockup 3D y legible */
.probador { background: #0a0b0e; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
