/* =============================================================================
   RIFAS SMW — ganadores.css · GANADORES / WINNERS V2 «EL CASINO SIN VENTANAS»
   EL SALON DE LA FAMA: banner podio + PODIO tras cortinas de terciopelo con
   3 placas doradas vacias (sheen que las recorre) + neon "este podio espera
   su primer nombre" + cifras jackpot + MURO DE LA FAMA (marcos de marquesina
   vacios, encendido escalonado) + ruleta divisoria + mesa del anuncio con
   fichas + espejo draw-card "tu foto puede estar aqui" + CTA marquesina.
   Todo compositor-only (transform/opacity). Glows = sombras ESTATICAS.
   Presupuesto podio en viewport: 3 sheens + 2 neon breathe + 6 motas
   + 1 spot = 12 nodos (<= 14). Cortina/reveles/odometros son transitorios.
   ========================================================================== */

/* ---------- BANNER DEL PODIO (overscan 114% para el parallax GSAP) ---------- */
.page-banner {
  min-height: clamp(440px, 62vh, 680px);
  display: flex;
  align-items: flex-end;
}
.page-banner .banner-media img {
  position: relative;
  height: 114%;
  top: -7%;
  opacity: 0.85;
  object-position: center 42%;
  will-change: transform;
}
/* Scrim propio: deja RESPIRAR al podio dorado (la foto ya trae bordes #070304)
   y solo protege la zona del titular + fundido inferior a tinta (continuidad) */
.page-banner .banner-media::after {
  background:
    radial-gradient(ellipse 74% 62% at 22% 78%, rgba(7, 3, 4, 0.72), transparent 66%),
    linear-gradient(180deg, rgba(7, 3, 4, 0.6) 0%, rgba(7, 3, 4, 0.12) 40%, rgba(7, 3, 4, 0.32) 70%, var(--ink) 100%);
}
/* La luz del banner muere en hairline dorada: transicion por luz, jamas corte */
.page-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, var(--hairline-strong), transparent 96%);
}
.banner-content { position: relative; }
.banner-sub {
  margin-top: 1.1rem;
  max-width: 54ch;
  color: var(--cream-muted);
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.15rem);
}

/* ---------- EL PODIO DE HONOR (dentro de .curtain-stage) ---------- */
.podium-stage { text-align: center; }
.podium-stage .stage-inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-section);
}
.stage-lead {
  margin: 1.4rem auto 0;
  max-width: 58ch;
  color: var(--cream-muted);
}

/* Neon en dos lineas (h2 unico de la seccion) */
.neon-stack {
  display: grid;
  gap: 0.4em;
  justify-items: center;
  margin-top: 0.4rem;
}
.neon-stack .neon-sign {
  font-size: clamp(1.1rem, 0.6rem + 2.6vw, 2.5rem);
  line-height: 1.25;
}

/* El podio: 3 pedestales (centro mas alto), placas doradas vacias */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.55rem, 1.8vw, 1.5rem);
  max-width: 880px;
  margin: clamp(2.6rem, 5vw, 4rem) auto 0;
}
.pedestal {
  flex: 1 1 0;
  min-width: 0;
  max-width: 264px;
  display: flex;
  flex-direction: column;
  gap: clamp(0.7rem, 1.4vw, 1.1rem);
}
.pedestal--1 { order: 2; }
.pedestal--2 { order: 1; }
.pedestal--3 { order: 3; }

/* Placa dorada: metal con luz, texto grabado, sheen que la recorre */
.plaque {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: clamp(0.9rem, 1.8vw, 1.5rem) clamp(0.6rem, 1.4vw, 1.1rem);
  background:
    linear-gradient(160deg, #F9DD84 0%, #E8B238 30%, #D99619 55%, #A87413 82%, #8C5E0F 100%);
  border: 1px solid rgba(252, 216, 89, 0.65);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.6),
    0 0 34px rgba(217, 150, 25, 0.22),
    inset 0 1px 0 rgba(255, 244, 205, 0.85),
    inset 0 -8px 22px rgba(90, 58, 8, 0.45);
  display: grid;
  gap: 0.5rem;
  justify-items: center;
}
.plaque-label {
  font-size: clamp(0.56rem, 0.5rem + 0.24vw, 0.72rem);
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(46, 26, 3, 0.85);
}
/* Linea de grabado vacia: canal hundido en el metal */
.plaque-line {
  width: 78%;
  height: 3px;
  border-radius: 2px;
  background: rgba(58, 33, 4, 0.5);
  box-shadow: 0 1px 0 rgba(255, 240, 190, 0.55);
}
.plaque-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.62rem, 0.52rem + 0.42vw, 0.92rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(38, 21, 2, 0.72);
  white-space: nowrap;
}
/* Sheen: recorre las 3 placas en secuencia (transform-only, loop lento) */
.plaque-sheen {
  position: absolute;
  top: -22%; bottom: -22%;
  left: 0;
  width: 36%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 250, 228, 0.65) 50%, transparent 100%);
  transform: translateX(-200%) skewX(-16deg);
  pointer-events: none;
  will-change: transform;
  animation: plaque-sweep 6.4s ease-in-out infinite;
}
.pedestal--2 .plaque-sheen { animation-delay: 0s; }
.pedestal--1 .plaque-sheen { animation-delay: 0.5s; }
.pedestal--3 .plaque-sheen { animation-delay: 1s; }
@keyframes plaque-sweep {
  0%        { transform: translateX(-200%) skewX(-16deg); }
  26%, 100% { transform: translateX(380%) skewX(-16deg); }
}

/* Base del pedestal: terciopelo oscuro, numeral Cinzel, fila de brasas */
.ped-base {
  position: relative;
  display: grid;
  place-content: center;
  gap: 0.25rem;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--hairline);
  border-bottom: 0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 0%, rgba(217, 150, 25, 0.12), transparent 60%),
    linear-gradient(180deg, #1D1010 0%, #0B0505 100%);
  box-shadow: inset 0 1px 0 rgba(252, 216, 89, 0.22);
}
/* Brasas del canto superior (estaticas: textura, no animacion) */
.ped-base::before {
  content: '';
  position: absolute;
  top: 4px; left: 6px; right: 6px;
  height: 8px;
  pointer-events: none;
  background-image: radial-gradient(circle closest-side, rgba(252, 216, 89, 0.5) 0%, rgba(217, 150, 25, 0.24) 44%, transparent 72%);
  background-size: 18px 8px;
  background-repeat: repeat-x;
}
.pedestal--1 .ped-base { height: clamp(120px, 15vw, 200px); }
.pedestal--2 .ped-base { height: clamp(86px, 10.5vw, 140px); }
.pedestal--3 .ped-base { height: clamp(64px, 8vw, 104px); }
.ped-base b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem);
  line-height: 1;
  color: var(--gold);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .ped-base b {
    background: var(--grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.ped-base span {
  font-size: clamp(0.52rem, 0.48rem + 0.2vw, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
/* Piso del podio: hairline dorada que remata los tres bloques */
.podium-floor {
  max-width: 980px;
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline-strong) 18%, var(--hairline-strong) 82%, transparent);
}
.podium-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}
.podium-note p {
  max-width: 52ch;
  font-size: 0.95rem;
  color: var(--cream-muted);
}

/* ---------- CIFRAS DE LA CASA (jackpot-row de base.css) ---------- */
.jackpot-section { text-align: center; }
.jackpot-section .jackpot-row { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- EL MURO DE LA FAMA (marcos de marquesina vacios) ---------- */
.wof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  margin-top: clamp(2.4rem, 4.5vw, 3.6rem);
}
.wof .marquee-frame {
  display: block;
  --mq-pad: clamp(20px, 2.2vw, 30px);
}
/* Muro: bombillas fijas (cero chase), encendido escalonado al entrar (IO) */
.wof .mq-lights {
  animation: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
  transition-delay: calc(var(--wf, 0) * 200ms);
}
.wof.is-on .mq-lights { opacity: 0.92; }
/* Hueco del retrato que espera su foto */
.wof-slot {
  aspect-ratio: 3 / 4;
  display: grid;
  place-content: center;
  gap: 0.7rem;
  text-align: center;
  padding: 1rem;
  border: 1px dashed rgba(217, 150, 25, 0.38);
  border-radius: 8px;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(217, 150, 25, 0.07), transparent 60%),
    linear-gradient(172deg, #140A0B 0%, #0A0405 100%);
}
.wof-cap {
  font-size: clamp(0.6rem, 0.55rem + 0.2vw, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.wof-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.82rem, 0.7rem + 0.5vw, 1.15rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.3;
  color: var(--cream);
}
.wof-note {
  font-size: clamp(0.62rem, 0.58rem + 0.16vw, 0.74rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-muted);
}
.wof-lead {
  margin-top: 1.2rem;
  max-width: 58ch;
  color: var(--cream-muted);
}

/* ---------- RULETA DIVISORIA ---------- */
.wheel-divider .wheel-bg { min-height: clamp(300px, 42vw, 470px); }
.wheel-divider .wheel-copy { display: grid; gap: 0.7rem; justify-items: center; }
.wheel-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1rem + 2.6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: 1.15;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(7, 3, 4, 0.9);
}

/* ---------- MESA DEL ANUNCIO (table-panel + fichas) ---------- */
.announce-wrap { max-width: 1080px; margin-inline: auto; }
.announce-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 3.4vw, 3rem);
  margin-top: clamp(2.4rem, 4vw, 3.2rem);
  position: relative;
  z-index: 2;
}
.announce-grid .chip-item h3 { margin-top: 0.2rem; }
.announce-foot {
  position: relative;
  z-index: 2;
  margin-top: clamp(2rem, 3.5vw, 2.8rem);
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(217, 150, 25, 0.3);
  font-size: 0.9rem;
  color: var(--cream-muted);
  max-width: 70ch;
}

/* ---------- ESPEJO: TU FOTO PUEDE ESTAR AQUI (draw-card invertido) ---------- */
.mirror-grid {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2.2rem, 5vw, 5rem);
  align-items: center;
}
.mirror-copy p { color: var(--cream-muted); margin-top: 1.1rem; }
.mirror-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1rem, 2vw, 1.6rem);
  margin-top: 1.8rem;
}
/* Carta vacia: media sin foto, marco punteado que espera el retrato */
.dc-media-empty {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 14px 14px 0;
  border-radius: 10px;
  border: 1px dashed rgba(217, 150, 25, 0.42);
  display: grid;
  place-content: center;
  gap: 0.8rem;
  text-align: center;
  padding: 1.4rem;
  background:
    radial-gradient(ellipse 110% 55% at 50% 0%, rgba(217, 150, 25, 0.1), transparent 58%),
    linear-gradient(172deg, #170C0D 0%, #0A0405 100%);
}
.dc-soon {
  justify-self: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  padding: 0.5em 1.2em;
  background: rgba(217, 150, 25, 0.07);
}
.dc-empty-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  color: var(--cream);
}
.dc-empty-note {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

/* ---------- CTA FINAL ---------- */
.cta-final { text-align: center; overflow: clip; }   /* el halo del CTA jamas abre scroll lateral */
.cta-final .cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}
.cta-final p { max-width: 52ch; color: var(--cream-muted); }
.cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 2.2vw, 1.8rem);
  margin-top: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .mirror-grid { grid-template-columns: 1fr; }
  .mirror-grid .draw-card { max-width: 400px; margin-inline: auto; width: 100%; }
  .announce-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 680px) {
  .wof { grid-template-columns: repeat(2, 1fr); }
  .plaque-name {
    font-size: 0.52rem;
    letter-spacing: 0.04em;
    white-space: normal;
    line-height: 1.4;
    text-align: center;
  }
  .podium { gap: 0.5rem; }
}

/* ---------- REDUCED MOTION (extra a lo de base.css) ---------- */
@media (prefers-reduced-motion: reduce) {
  .wof .mq-lights { opacity: 0.92 !important; transition: none !important; }
  .plaque-sheen { display: none !important; }
  .page-banner .banner-media img { top: 0; height: 100%; }
}
