/* ============================================================
   PROTOTIPO "Una noche en Parchaditos" (ver js/noche.js)
   ============================================================ */

/* ===== La escena ===== */
.night { position: relative; }
/* Degradado del fondo de la página sobre el borde de la persiana: entra suave en vez de con un corte. Se queda arriba de la sección, así que se va con el scroll cuando la escena se fija. */
.night::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: clamp(140px, 26vh, 280px); z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(10, 6, 6, 0.85) 30%, rgba(10, 6, 6, 0.4) 65%, transparent);
}
.night--static::before { display: none; }
.night__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.night__stage {
  position: relative; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; color: var(--text);
}
.night__sky { position: absolute; inset: 0; z-index: -3; background: #0d0306; }
/* Grano + viñeta para que el color se sienta como luz en un cuarto, no como un fondo plano */
.night__sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 80% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.7));
}

/* Haces de luz de discoteca que barren desde abajo */
/* Fotos del local: una por capítulo, oscurecidas para que el texto se lea. */
.night__photos { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.night__ph { position: absolute; inset: 0; margin: 0; overflow: hidden; visibility: hidden; will-change: transform; }
.night__ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1) contrast(1.1) brightness(0.5); will-change: transform; }
.night__ph::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 30%, rgba(8, 3, 3, 0.75) 100%),
    linear-gradient(to top, rgba(8, 3, 3, 0.92), rgba(8, 3, 3, 0.15) 45%, rgba(8, 3, 3, 0.55));
}
/* Punto de interés de cada foto vertical cuando la pantalla es horizontal. */
.night__ph:nth-child(2) img { object-position: 50% 78%; }
.night__ph:nth-child(3) img { object-position: 50% 42%; }
.night__ph:nth-child(4) img { object-position: 50% 38%; }
.night__ph:last-child img { filter: saturate(1.1) brightness(0.38) blur(2px); }
.night--static .night__photos, .night--static .night__haze, .night--static .night__led, .night--static .night__spot { display: none; }
/* Luces de discoteca: conos con borde suave hechos con conic-gradient (sin blur ni clip-path),
   así la tarjeta gráfica solo los gira. Colores de las LED reales del local: rojo, magenta y morado. */
.night__beams { position: absolute; inset: 0; z-index: -2; opacity: 0; mix-blend-mode: screen; pointer-events: none; }
/* El "rig" late con la música; más rápido cuando la fiesta sube */
.night__rig { position: absolute; inset: 0; opacity: 0.7; }
.night__beams i:nth-child(2), .night__beams i:nth-child(4) { display: none; } /* tres haces: menos es más */
.night__beams i {
  --c: var(--b1);
  position: absolute; bottom: -4%; left: 50%; width: 24vmax; height: 135vmax; margin-left: -12vmax;
  transform-origin: 50% 100%; will-change: transform;
  /* Cono angosto (~9°) con un núcleo más claro, como un haz real visto en humo */
  background: conic-gradient(from -4.5deg at 50% 100%, transparent 0deg, var(--c) 2.6deg, rgba(255, 255, 255, 0.4) 4.5deg, var(--c) 6.4deg, transparent 9deg, transparent);
  -webkit-mask-image: linear-gradient(to top, #000 5%, rgba(0, 0, 0, 0.45) 40%, transparent 80%);
  mask-image: linear-gradient(to top, #000 5%, rgba(0, 0, 0, 0.45) 40%, transparent 80%);
  animation: beam-sweep 12s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}
/* La cabeza del foco, encendida en la base del cono */
.night__beams i::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 5vmax; height: 5vmax; margin: 0 0 -2.5vmax -2.5vmax; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 9%, var(--c) 24%, transparent 66%);
}
.night__beams i::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 34vmax; height: 3px; margin: 0 0 -1.5px -17vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), var(--c) 35%, transparent);
}
.night__beams i:nth-child(1) { left: 14%; animation-duration: 13s; }
.night__beams i:nth-child(2) { left: 29%; --c: var(--b2); animation-duration: 8.4s; animation-delay: -2s; }
.night__beams i:nth-child(3) { left: 50%; --c: var(--b3); animation-duration: 10s; animation-delay: -4s; }
.night__beams i:nth-child(4) { left: 71%; --c: var(--b4); animation-duration: 7.6s; animation-delay: -1s; }
.night__beams i:nth-child(5) { left: 86%; --c: var(--b5); animation-duration: 14s; animation-delay: -7s; }
@keyframes beam-sweep { from { rotate: -22deg; } to { rotate: 22deg; } }

/* Los haces llevan los colores de los granizados; el resto de la luz (foco, humo, LED, persiana) es rojo.
   Paleta de cada hora: frío azul/verde a las 4, verde/rosado al llegar el corillo,
   rojo/rosado en el parche y azul/rosado/rojo cuando sube la música. */
.night__stage { --b1: rgba(60, 140, 255, 0.5); --b2: rgba(40, 255, 150, 0.45); --b3: rgba(40, 255, 150, 0.45); --b4: rgba(60, 140, 255, 0.5); --b5: rgba(60, 140, 255, 0.5); --h1: rgba(255, 30, 60, 0.18); --h2: rgba(170, 0, 40, 0.16); --s: rgba(255, 40, 70, 0.6); }
.night__stage[data-mood="1"] { --b1: rgba(40, 255, 150, 0.5); --b2: rgba(255, 70, 180, 0.45); --b3: rgba(255, 70, 180, 0.45); --b4: rgba(40, 255, 150, 0.5); --b5: rgba(40, 255, 150, 0.5); --h1: rgba(255, 30, 60, 0.18); --h2: rgba(170, 0, 40, 0.16); --s: rgba(255, 60, 95, 0.55); }
.night__stage[data-mood="2"] { --b1: rgba(255, 40, 60, 0.5); --b2: rgba(255, 70, 180, 0.45); --b3: rgba(255, 70, 180, 0.45); --b4: rgba(255, 40, 60, 0.5); --b5: rgba(255, 40, 60, 0.5); --h1: rgba(255, 30, 60, 0.18); --h2: rgba(170, 0, 40, 0.16); --s: rgba(255, 25, 45, 0.65); }
.night__stage[data-mood="3"] { --b1: rgba(60, 140, 255, 0.5); --b2: rgba(255, 70, 180, 0.45); --b3: rgba(255, 70, 180, 0.45); --b4: rgba(255, 40, 60, 0.5); --b5: rgba(255, 40, 60, 0.5); --h1: rgba(255, 30, 60, 0.18); --h2: rgba(170, 0, 40, 0.16); --s: rgba(255, 45, 110, 0.6); }

/* El foco que recorre el local. color-dodge ilumina la foto como luz real: saca el detalle de lo que toca. */
.night__spot {
  position: absolute; left: 50%; top: 50%; width: 90vmax; height: 90vmax; margin: -45vmax 0 0 -45vmax; z-index: -2;
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform;
  background: radial-gradient(circle, var(--s) 0%, rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: color-dodge;
}

/* Humo: niebla rojiza que se mueve despacio al pie de la escena y hace visibles los haces */
.night__haze {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 70%; z-index: -2; opacity: 0; pointer-events: none;
  background:
    radial-gradient(40% 60% at 30% 80%, var(--h1), transparent 70%),
    radial-gradient(45% 55% at 75% 85%, var(--h2), transparent 70%);
  mix-blend-mode: screen; will-change: transform;
  animation: haze-drift 16s ease-in-out infinite alternate;
}
@keyframes haze-drift { from { translate: -6% 0; } to { translate: 6% -4%; } }

/* La tira LED del techo del local, prendida de lado a lado */
.night__led {
  position: absolute; left: 0; right: 0; top: 9%; height: 2px; z-index: -1; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #9a0018 10%, #ff1a3c 35%, #ff6a86 50%, #ff1a3c 65%, #9a0018 90%, transparent);
  box-shadow: 0 0 14px 2px rgba(255, 26, 60, 0.7), 0 0 70px 12px rgba(255, 26, 60, 0.25);
  transform-origin: 50% 50%;
}
.night__led::after { content: ""; position: absolute; inset: 0; background: inherit; animation: led-breathe 2.4s ease-in-out infinite; }
@keyframes led-breathe { 50% { opacity: 0.35; } }

/* Capítulos: una frase gigante a la vez */
.night__chapters { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.night__ch {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  display: grid; align-content: center; justify-items: center; gap: 18px;
  padding: 0 var(--gutter); text-align: center;
}
.night__time {
  margin: 0; padding: 8px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 800; letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.night__line, .night__last {
  margin: 0; max-width: 15ch;
  font-size: clamp(44px, 8.4vw, 150px); font-weight: 900; font-stretch: 125%;
  line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; text-wrap: balance;
  text-shadow: 0 0.04em 0.4em rgba(0, 0, 0, 0.45);
}
.night__w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.night__w > span { display: inline-block; }

/* Entrada: la persiana metálica del local, cerrada. El scroll la sube.
   Luz roja: un farol rojo arriba y el resplandor del local que sube desde abajo. */
.night__shutter {
  position: absolute; inset: 0; z-index: 2; will-change: transform;
  display: grid; place-items: center; padding: 0 var(--gutter);
  background:
    radial-gradient(60% 46% at 50% -8%, rgba(255, 26, 60, 0.32), transparent 70%),
    radial-gradient(80% 45% at 50% 112%, rgba(255, 20, 50, 0.3), transparent 72%),
    radial-gradient(40% 30% at 50% 48%, rgba(255, 60, 90, 0.06), transparent 70%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.6), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.6)),
    repeating-linear-gradient(to bottom, #2b1d21 0, #1d1316 12px, #120a0d 26px, #050203 29px 32px, #5a2a33 33px, #3a2328 34px, #2b1d21 36px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
}
/* Textura: rieles con remaches, manchas de óxido y mugre, rayones y grano de metal. Todo fijo: se pinta una vez. */
.night__shutter::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle, #7a4c55 0 1.5px, #0c0607 2.5px, transparent 3.5px) left 9px top 14px / 8px 72px repeat-y,
    radial-gradient(circle, #7a4c55 0 1.5px, #0c0607 2.5px, transparent 3.5px) right 9px top 14px / 8px 72px repeat-y,
    linear-gradient(90deg, #0b0607 0 10px, #4a2c33 10px 12px, #1a0f12 12px 18px, transparent 18px calc(100% - 18px), #1a0f12 calc(100% - 18px) calc(100% - 12px), #4a2c33 calc(100% - 12px) calc(100% - 10px), #0b0607 calc(100% - 10px)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='460' height='330'%3E%3Cg fill='none' stroke='%23fff' stroke-linecap='round'%3E%3Cpath stroke-opacity='.07' d='M24 44l96 16M210 128l150-12M64 236l74 30M312 270l96-22M158 14l44 62M392 70l40 40'/%3E%3Cpath stroke-opacity='.04' stroke-width='2' d='M90 150l120 6M260 30l60 18M20 300l140-14'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.6 1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.55'/%3E%3C/svg%3E") center / 600px 600px,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .55 0 0 0 0 .6 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* El rojo de adentro se cuela por las rendijas y corre despacio, más fuerte abajo.
   El elemento mide el doble de ancho y solo se desplaza (compositor); la máscara es horizontal, así que no se descuadra. */
.night__shutter-glow {
  position: absolute; top: 0; bottom: 0; left: 0; width: 200%; pointer-events: none; mix-blend-mode: screen; opacity: 0.85;
  background: linear-gradient(90deg, #ff1a3c, #ff6a86 12.5%, #9a0018 25%, #ff2d55 37.5%, #ff1a3c 50%, #ff6a86 62.5%, #9a0018 75%, #ff2d55 87.5%, #ff1a3c);
  -webkit-mask-image: repeating-linear-gradient(to bottom, transparent 0 28px, #000 29px 32px, transparent 33px 36px), linear-gradient(to top, #000, rgba(0, 0, 0, 0.18) 60%, transparent 88%);
  -webkit-mask-composite: source-in;
  mask-image: repeating-linear-gradient(to bottom, transparent 0 28px, #000 29px 32px, transparent 33px 36px), linear-gradient(to top, #000, rgba(0, 0, 0, 0.18) 60%, transparent 88%);
  mask-composite: intersect;
  animation: glow-run 22s linear infinite;
}
@keyframes glow-run { to { translate: -50% 0; } }
/* Manija y candado al pie de la persiana */
.night__shutter-lock {
  position: absolute; left: 50%; bottom: 16px; width: 92px; height: 10px; margin-left: -46px; border-radius: 3px;
  background: linear-gradient(#5a5155, #2a2326 60%, #141012); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.night__shutter-lock::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 18px; height: 16px; margin-left: -9px; border-radius: 3px;
  background: linear-gradient(#8c7a5a, #4e432f); box-shadow: 0 -7px 0 -3px #2a2326, 0 2px 4px rgba(0, 0, 0, 0.6);
}
.night__shutter-face { position: relative; z-index: 1; }
/* Luz del local que se cuela por debajo mientras sube */
.night__shutter::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: linear-gradient(90deg, #2a1a1c, #4a3a3c 50%, #2a1a1c);
  box-shadow: -30vw 8px 60px 6px rgba(255, 20, 50, 0.45), 0 8px 70px 12px rgba(255, 45, 85, 0.6), 30vw 8px 60px 6px rgba(190, 0, 40, 0.5), 0 2px 0 rgba(255, 255, 255, 0.15);
}
.night__shutter-face { display: grid; justify-items: center; gap: 18px; text-align: center; }
.night__kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 228, 222, 0.55); }
.night__title {
  margin: 0; font-size: clamp(32px, 8.6vw, 128px); font-weight: 900; font-stretch: 125%; line-height: 0.88; letter-spacing: -0.04em; text-transform: uppercase;
  color: #efe6e3; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
}
.night__t1, .night__t2 { display: block; perspective: 600px; }
.night__c { display: inline-block; }
/* Reflejo de luz que cruza la palabra roja al entrar */
.night__t2 { --shine: -30%; position: relative; color: var(--red); white-space: nowrap; }
.night__t2::after {
  content: attr(data-text); position: absolute; inset: 0; pointer-events: none; color: transparent;
  background: linear-gradient(100deg, transparent calc(var(--shine) - 12%), rgba(255, 228, 222, 0.95) var(--shine), transparent calc(var(--shine) + 12%));
  -webkit-background-clip: text; background-clip: text;
}
/* Pista para bajar: dentro de la persiana, lejos del menú de abajo */
.night__cue {
  display: grid; justify-items: center; gap: 10px; margin: 18px 0 0;
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 228, 222, 0.6);
}
.night__cue i { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.night__cue i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--red); animation: cue-wheel 1.6s ease-in-out infinite; }
@keyframes cue-wheel { 0% { translate: 0 0; opacity: 1; } 70% { translate: 0 12px; opacity: 0; } 100% { translate: 0 0; opacity: 0; } }

/* Detrás de la persiana: "PARCHADITOS" recortado en negro, con el local y las luces viéndose por dentro de las letras.
   multiply: lo blanco deja ver lo de atrás, lo negro lo tapa. */
.night__mask {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  background: #070405; mix-blend-mode: multiply; will-change: transform; pointer-events: none;
}
.night__mask p {
  margin: 0; color: #fff; font-size: 8.4vw; font-weight: 900; font-stretch: 125%; line-height: 1; letter-spacing: -0.04em; white-space: nowrap;
}
.night__open { margin: 0; font-size: 15px; font-weight: 700; color: rgba(255, 228, 222, 0.7); }

/* Final */
.night__end {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  display: grid; align-content: center; justify-items: center; gap: 20px; text-align: center; padding: 0 var(--gutter);
}
.night__last { color: var(--red); text-shadow: 0 0 0.08em rgba(255, 59, 47, 0.8), 0 0 0.4em rgba(227, 18, 11, 0.6); }
.night__endtime { margin: 0; font-size: 18px; font-weight: 700; color: var(--muted); }

/* Barra de avance y pista */
.night__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.night__bar span { display: block; height: 100%; background: linear-gradient(90deg, #8a0015, #ff1a3c, #ff6a86); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--red); }
.night__hint {
  position: absolute; z-index: 3; bottom: calc(110px + env(safe-area-inset-bottom)); left: 50%; translate: -50% 0; margin: 0;
  font-size: 13px; font-weight: 700; color: var(--muted);
  animation: hint-bob 1.8s ease-in-out infinite;
}
.night__hint::after { content: ""; display: block; width: 1px; height: 28px; margin: 8px auto 0; background: currentColor; }
@keyframes hint-bob { 50% { translate: -50% 6px; } }

/* Sin animación: la noche como una lista, todo visible */
.night--static .night__stage { height: auto; padding: clamp(80px, 12vw, 160px) var(--gutter); display: grid; gap: 40px; }
.night--static .night__sky { background: linear-gradient(#0d0306, #100306 35%, #120208 70%, #0a0205); }
.night--static .night__beams, .night--static .night__bar, .night--static .night__hint, .night--static .night__mask, .night--static .night__cue { display: none; }
.night--static .night__shutter { position: static; background: none; box-shadow: none; }
.night--static .night__shutter::after, .night--static .night__shutter::before, .night--static .night__shutter-glow, .night--static .night__shutter-lock { display: none; }
.night--static .night__chapters, .night--static .night__ch, .night--static .night__end { position: static; opacity: 1; visibility: visible; }
.night--static .night__chapters { display: grid; gap: 56px; }

@media (max-width: 700px) {
  .night__beams i { width: 20vmax; margin-left: -10vmax; }
  .night__beams i:nth-child(2), .night__beams i:nth-child(5) { display: none; }
  .night__line, .night__last { font-size: clamp(38px, 11vw, 64px); }
}

/* ===== El "?" que te acompaña ===== */
.signo {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 45;
  width: 54px; height: 64px; padding: 0;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  opacity: 0; scale: 0.4; pointer-events: none;
  transition: opacity 0.5s, scale 0.8s var(--ease), translate 0.6s var(--ease);
}
.signo.is-out { opacity: 1; scale: 1; pointer-events: auto; }
.noche-end .signo { translate: 0 -78px; }
.signo__float { display: block; width: 100%; height: 100%; animation: signo-float 4.5s ease-in-out infinite; }
@keyframes signo-float { 50% { translate: 0 -7px; } }
.signo svg { width: 100%; height: 100%; overflow: visible; transition: scale 0.5s var(--ease), rotate 0.6s var(--ease), translate 0.6s var(--ease), opacity 0.4s; }
.signo__glow { fill: none; stroke: var(--red); stroke-width: 70; opacity: 0.55; filter: blur(14px); }
.signo__tube {
  fill: rgba(227, 18, 11, 0.55); stroke: #ff6a5c; stroke-width: 30; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(255, 59, 47, 0.9));
}
.signo.is-out .signo__tube { animation: signo-draw 1.1s 0.15s var(--ease) forwards; }
@keyframes signo-draw { to { stroke-dashoffset: 0; } }
@media (hover: hover) {
  .signo:hover svg { scale: 1.12; }
  .signo:hover .signo__glow { opacity: 0.8; }
}
.signo:active svg { scale: 0.92; transition-duration: 100ms; }
.signo:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 6px; border-radius: 12px; }
.signo[aria-expanded="true"] svg { scale: 1.08; }
.signo[data-pose="carta"] svg { rotate: -14deg; translate: -4px 0; }
.signo[data-pose="evento"] svg { animation: signo-blink 2.4s steps(1, end) infinite; }
.signo[data-pose="vip"] svg { scale: 1.15; }
.signo[data-pose="vip"]::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--red); animation: signo-ring 2s var(--ease) infinite; }
.signo[data-pose="foto"] svg { rotate: 8deg; }
.signo[data-pose="mapa"] svg { translate: 0 6px; }
.signo[data-pose="cierre"] svg { animation: signo-off 3.2s steps(1, end) infinite; }
@keyframes signo-blink { 0%, 100% { opacity: 1; } 8% { opacity: 0.35; } 12% { opacity: 1; } }
@keyframes signo-ring { from { opacity: 0.8; scale: 0.8; } to { opacity: 0; scale: 1.5; } }
@keyframes signo-off { 0% { opacity: 1; } 6% { opacity: 0.2; } 9% { opacity: 0.9; } 14% { opacity: 0.25; } 20%, 100% { opacity: 0.45; } }

.signo-pop {
  position: fixed; right: 16px; bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 46;
  width: min(320px, calc(100vw - 32px)); padding: 20px; border-radius: 20px; color: var(--text);
  background: rgba(20, 10, 9, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-origin: 100% 100%;
  opacity: 0; translate: 0 12px; scale: 0.92;
  transition: opacity 0.25s, translate 0.45s var(--ease), scale 0.45s var(--ease);
}
.signo-pop.is-on { opacity: 1; translate: 0 0; scale: 1; }
.signo-pop__q { margin: 0 0 8px; font-size: 22px; font-weight: 900; font-stretch: 125%; letter-spacing: -0.02em; line-height: 1.05; }
.signo-pop__status, .signo-pop__next { margin: 0 0 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.signo-pop__status b { color: var(--text); }
.signo-pop__status b.is-open { color: #4ade80; }
.signo-pop__next a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.signo-pop__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (max-width: 1100px) {
  .signo { bottom: calc(96px + env(safe-area-inset-bottom)); width: 50px; height: 60px; }
  .signo-pop { bottom: calc(160px + env(safe-area-inset-bottom)); }
}

/* ===== Accesibilidad ===== */
@media (prefers-reduced-motion: reduce) {
  .night__beams i, .night__rig, .night__spot, .night__haze, .night__shutter-glow, .night__led::after, .night__hint, .night__cue i::after, .night__last, .signo__float, .signo svg, .signo::after { animation: none !important; }
  .signo__tube { stroke-dashoffset: 0; animation: none !important; }
  .signo, .signo svg, .signo-pop { transition: opacity 0.2s; }
}
@media (prefers-reduced-transparency: reduce) {
  .signo-pop, .night__time { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .signo-pop { background: #000; border-color: #fff; }
}

/* ===== Rendimiento ===== */
/* Fuera de pantalla las luces se congelan: el equipo no gasta en lo que nadie ve. */
.night:not(.is-live) .night__stage *, .night:not(.is-live) .night__stage *::before, .night:not(.is-live) .night__stage *::after { animation-play-state: paused; }
/* Modo liviano (equipos modestos, ver common.js): sin mezclas de color ni desenfoques; dos haces y un brillo suave. */
.fx-lite .night__haze, .fx-lite .night__beams i:nth-child(5), .fx-lite .night__beams i::before { display: none; }
.fx-lite .night__beams, .fx-lite .night__shutter-glow { mix-blend-mode: normal; }
.fx-lite .night__spot { mix-blend-mode: normal; background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 50%); }
.fx-lite .night__shutter-glow { animation: none; }
.fx-lite .night__time, .fx-lite .signo-pop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 6, 6, 0.85); }
