/* css/fideliza-experiencias.css — ASC-FIDELIZA-03A · revelado del premio (js/fideliza-experiencias.js)
   Carbón #0D0C0A · Carbón-2 #1A1814 · Brasa #F56820 / #FF8A4D · Crema #F5F3EF. Sin azul, sin rojos/verdes saturados.
   Targets ≥ 44px. prefers-reduced-motion: revelado casi inmediato, sin giros largos ni sacudidas. */

.fx-exp { position: relative; text-align: center; padding: 0.5rem 0 1.5rem; color: #F5F3EF; }
.fx-marca { display: flex; justify-content: center; margin: 0.25rem 0 1.25rem; }
.fx-marca img { height: 20px; width: auto; }
.fx-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #F56820; margin: 0 0 8px; }
.fx-h { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; }
.fx-sub { font-size: 15px; line-height: 1.5; color: rgba(245,243,239,0.66); margin: 0 auto 1.25rem; max-width: 30ch; }
.fx-preview-chip {
  display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px;
  border: 1px dashed rgba(245,104,32,0.6); color: #F56820; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
}

.fx-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; min-height: 52px;
  margin: 1rem auto 0; padding: 14px 20px; border-radius: 14px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
}
.fx-btn--primario { background: #F56820; color: #0D0C0A; }
.fx-btn--primario:active { background: #FF8A4D; }
.fx-btn:disabled { opacity: 0.55; cursor: default; }
.fx-btn:focus-visible, .fx-brasa:focus-visible, .fx-sobre:focus-visible, .fx-ari:focus-visible { outline: 2px solid #F56820; outline-offset: 4px; }

/* Revelado común (brasas / ari / directo / tarjeta del sobre) */
.fx-revel, .fx-ari-bocadillo { min-height: 84px; opacity: 0; transform: translateY(8px); transition: opacity 260ms ease, transform 260ms ease; }
.fx-revel.fx-visible, .fx-ari-bocadillo.fx-visible, .fx-directo.fx-visible { opacity: 1; transform: none; }
.fx-revel-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #F56820; margin: 0 0 6px; }
.fx-revel-nombre { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }

/* 1 · Ruleta */
.fx-rueda { position: relative; width: min(310px, 82vw); aspect-ratio: 1; margin: 0 auto; }
.fx-rueda::before { content: ''; position: absolute; inset: -24px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245,104,32,0.22) 0%, rgba(245,104,32,0) 68%); }
.fx-rueda-svg { position: relative; width: 100%; height: 100%; cursor: pointer; z-index: 1; }
.fx-rueda-aguja { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 28px; height: 34px; z-index: 3; }
.fx-rueda-giro { transform-origin: 150px 150px; transform-box: view-box; }
.fx-rueda-txt { letter-spacing: 0.4px; }  /* ASC-RULETA-TV-V1: el giro va en el atributo transform (centro explícito) */
.fx-girando .fx-rueda-svg { cursor: default; }

/* 2 · Brasas */
.fx-brasas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 380px; margin: 0.5rem auto 1.25rem; }
.fx-brasa {
  min-height: 96px; padding: 10px 4px; border-radius: 18px; cursor: pointer;
  background: #1A1814; border: 1px solid rgba(245,243,239,0.10);
  transition: transform 240ms ease, opacity 300ms ease, border-color 240ms ease, box-shadow 400ms ease;
}
.fx-brasa-svg { width: 100%; height: auto; display: block; }
.fx-brasa-cuerpo { fill: #221F1A; stroke: #3A342A; stroke-width: 2; transition: fill 500ms ease; }
.fx-brasa-grieta { fill: none; stroke: #F56820; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.45;
  transition: opacity 400ms ease, stroke 400ms ease; }
.fx-brasa:not(:disabled):active { transform: scale(0.97); }
.fx-brasa.fx-encendida { border-color: rgba(245,104,32,0.7); box-shadow: 0 0 28px rgba(245,104,32,0.35); transform: translateY(-4px); }
.fx-brasa.fx-encendida .fx-brasa-cuerpo { fill: #F56820; stroke: #FF8A4D; }
.fx-brasa.fx-encendida .fx-brasa-grieta { stroke: #FFD9C2; opacity: 1; }
.fx-brasa.fx-apagada { opacity: 0.35; }
.fx-exp--brasas:not(.fx-reducido) .fx-brasa:not(:disabled) .fx-brasa-grieta { animation: fx-latido 2.4s ease-in-out infinite; }
@keyframes fx-latido { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.7; } }

/* 3 · Sobre — capas (atrás → delante): fondo 1 · tarjeta 2 · bolsillo frontal 3 · solapa 4 · sello 5.
   CERRADO: el bolsillo es opaco y cubre por completo a la tarjeta → no se ve nada del premio.
   ABIERTO: la solapa gira hacia arriba y pasa DETRÁS (z 0); la tarjeta sube por encima del borde del sobre
   (sigue en z 2, delante de la solapa abierta y detrás del bolsillo) y su contenido, arriba, queda a la vista. */
.fx-sobre {
  position: relative; display: block; width: min(300px, 80vw); height: 196px; margin: 7rem auto 0; padding: 0;
  background: transparent; border: 0; cursor: pointer; perspective: 800px; isolation: isolate;
}
.fx-sobre-fondo { position: absolute; inset: 0; z-index: 1; border-radius: 14px; background: #141210; border: 1px solid rgba(245,104,32,0.25); }
.fx-sobre-tarjeta {
  position: absolute; left: 14px; right: 14px; top: 14px; bottom: 14px; z-index: 2; padding: 16px 14px;
  border-radius: 10px; background: #F5F3EF; color: #0D0C0A; display: flex; flex-direction: column; justify-content: flex-start;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 300ms;
}
.fx-sobre-tarjeta .fx-revel-nombre { font-size: 20px; color: #0D0C0A; }
.fx-sobre-frente { position: absolute; inset: 0; z-index: 3; border-radius: 14px; background: #1A1814; border: 1px solid rgba(245,104,32,0.35);
  box-shadow: inset 0 -1px 0 rgba(245,104,32,0.12); }
.fx-sobre-frente::before, .fx-sobre-frente::after { content: ''; position: absolute; bottom: 0; width: 50%; height: 62%;
  border-top: 1px solid rgba(245,104,32,0.18); }
.fx-sobre-frente::before { left: 0; transform-origin: left bottom; transform: skewY(-24deg); }
.fx-sobre-frente::after { right: 0; transform-origin: right bottom; transform: skewY(24deg); }
.fx-sobre-solapa {
  position: absolute; left: 0; right: 0; top: 0; height: 110px; z-index: 4; transform-origin: top center;
  background: #232019; border: 1px solid rgba(245,104,32,0.35); border-radius: 14px 14px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%); transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), z-index 0s 300ms;
}
.fx-sobre-sello { position: absolute; left: 50%; top: 88px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%;
  background: #F56820; z-index: 5; transition: opacity 200ms ease; }
.fx-sobre.fx-abierto .fx-sobre-solapa { transform: rotateX(180deg); z-index: 0; }
.fx-sobre.fx-abierto .fx-sobre-sello { opacity: 0; }
.fx-sobre.fx-abierto .fx-sobre-tarjeta { transform: translateY(-72%); }
.fx-exp--sobre .fx-btn { margin-top: 1.5rem; }

/* 4 · Ari */
.fx-ari { position: relative; display: block; margin: 0.5rem auto 0; padding: 8px; background: transparent; border: 0; cursor: pointer;
  min-width: 44px; min-height: 44px; }
.fx-ari-img { position: relative; z-index: 1; display: block; width: 168px; height: auto; margin: 0 auto; transition: transform 300ms ease; }
.fx-ari-halo { position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,104,32,0.18) 0%, rgba(245,104,32,0) 70%); transition: background 400ms ease, transform 400ms ease; }
.fx-exp--ari:not(.fx-reducido) .fx-ari:not(:disabled) .fx-ari-img { animation: fx-flota 3.2s ease-in-out infinite; }
@keyframes fx-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.fx-ari.fx-ari-hablando .fx-ari-halo { background: radial-gradient(circle, rgba(245,104,32,0.42) 0%, rgba(245,104,32,0) 70%); transform: scale(1.15); }
.fx-ari-bocadillo { position: relative; max-width: 320px; margin: 1rem auto 0; padding: 16px 18px; border-radius: 18px;
  background: #1A1814; border: 1px solid rgba(245,104,32,0.35); }
.fx-ari-bocadillo:empty { border-color: transparent; background: transparent; }

/* 5 · Directo */
.fx-directo { opacity: 0; transform: scale(0.96); transition: opacity 320ms ease, transform 320ms ease; padding: 1rem 0; }
.fx-directo-ico { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(245,104,32,0.12); border: 1px solid rgba(245,104,32,0.3); color: #F56820; }
.fx-directo-ico svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  .fx-exp *, .fx-exp *::before { animation: none !important; }
  .fx-brasa, .fx-sobre-solapa, .fx-sobre-tarjeta, .fx-revel, .fx-ari-bocadillo, .fx-directo, .fx-ari-img, .fx-ari-halo { transition-duration: 120ms !important; transition-delay: 0s !important; }
  .fx-sobre.fx-abierto .fx-sobre-tarjeta { transition-delay: 60ms !important; }
}
.fx-reducido .fx-brasa, .fx-reducido .fx-sobre-solapa, .fx-reducido .fx-sobre-tarjeta, .fx-reducido .fx-revel,
.fx-reducido .fx-ari-bocadillo, .fx-reducido .fx-directo { transition-duration: 120ms; transition-delay: 0s; }
.fx-brasa, .fx-sobre, .fx-ari { font: inherit; color: inherit; }
