/* CONEXIONES 2026 · micrositio · la estética del show (V2 §1: vive acá, nunca en power-ui.css).
   Fuentes de verdad: tools/show_ref/v2/cx2.css (marca del afiche, tiquete vivo .tv-*) y tools/show_ref/v3/cx3.css
   (billetera .c3-*), puestos a pantalla real de teléfono. El tiquete de la billetera es el de la app tal cual
   (app/tiquete.css, copia literal). Láminas: conexiones-v3/03 y conexiones-v2/02, 03 y 05.
   Movimiento: solo transform / opacity / filter, curvas oficiales (AGENTS §6):
     pop    cubic-bezier(0.34, 1.56, 0.64, 1)
     deriva cubic-bezier(0.16, 1, 0.3, 1)
   Áreas táctiles de 44 px declaradas en la regla base de cada control. Hijos de flex/grid con min-width: 0. */
:root {
  --c2-negro: #050507; --c2-cian: 34, 211, 238; --c2-rojo: 244, 63, 94; --c2-oro: 251, 191, 36; --c2-pantalla: #d9ecff;
  --c2-titulo: Orbitron, "Inter Display", Inter, system-ui, sans-serif; --c2-texto: Rajdhani, Inter, system-ui, sans-serif;
  --c2-ui: Inter, system-ui, sans-serif;
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1); --deriva: cubic-bezier(0.16, 1, 0.3, 1);
  --borde: env(safe-area-inset-top, 0px); --pie: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--c2-negro); }
html { -webkit-text-size-adjust: 100%; }
body { font: 500 16px/1.4 var(--c2-ui); color: #e4e4e7; overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
/* Blindaje: nada transiciona color, sombra ni caja; solo lo que corre en el compositor (lección S2 interfaz). */
.cx *, .cx-esc * { transition-property: transform, opacity, filter; }
.cx-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cx { position: relative; min-width: 0; }
.cx-vista { position: relative; width: 100%; max-width: 30rem; min-width: 0; min-height: 100dvh; margin: 0 auto;
  padding: calc(var(--borde) + 20px) 16px calc(var(--pie) + 20px); display: flex; flex-direction: column; gap: 10px; }
.cx-vista > * { min-width: 0; }
.cx-centro { align-items: center; justify-content: center; text-align: center; gap: 14px; }
.cx-sub { margin: 0; font: 600 14px/1.45 var(--c2-ui); color: #a1a1aa; max-width: 30ch; }

/* ── MARCA DEL AFICHE: blanca, rayada por líneas horizontales, con cortes cian y rojo (cx2.css) ──
   Las rayas van con un linear-gradient en baldosa de 6 px (mismo dibujo que la referencia, sin repeating-*). */
.c2-marca { position: relative; display: inline-block; font: 900 clamp(24px, 8vw, 34px)/1 var(--c2-titulo); letter-spacing: .14em; color: transparent;
  background: linear-gradient(180deg, #fff 0 3px, rgba(255, 255, 255, .18) 3px 4px, #fff 4px 6px) 0 0 / 100% 6px;
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 10px rgba(255, 255, 255, .25)); }
.c2-marca::before, .c2-marca::after { content: attr(data-t); position: absolute; inset: 0; -webkit-background-clip: initial; background: none; }
.c2-marca::before { clip-path: inset(18% 0 70% 0); transform: translateX(-.06em); color: rgba(var(--c2-cian), .9); }
.c2-marca::after { clip-path: inset(62% 0 24% 0); transform: translateX(.05em); color: rgba(var(--c2-rojo), .9); }

/* ── 1 · Llega el tiquete de la app (lámina v3-03 · 1): el afiche, negro, y el mazo asomando ── */
.cx-hola { padding: 0; justify-content: flex-end; overflow: hidden; background: #000; }
.cx-hola-afiche { position: absolute; left: 0; top: 0; width: 100%; height: 76dvh; object-fit: cover; object-position: 50% 0; }
.cx-hola-velo { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .55) 40%, #000 66%); }
.cx-hola-pie { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 44dvh 16px calc(var(--pie) + 20px); }
.cx-hola-pie > * { min-width: 0; }
.cx-hola-de { margin: 0; text-align: center; font: 700 13px/1.3 var(--c2-ui); letter-spacing: .08em; color: #cfd8e8; overflow-wrap: anywhere; }
.c3-mazo { position: relative; min-width: 0; }
.cx-hola-mazo { height: 168px; }
.cx-mazo-tq { position: absolute; left: 4%; right: 4%; top: 0; transform-origin: 50% 100%; transform: rotate(3deg) scale(.94); opacity: .72; }
.cx-mazo-tq--arriba { top: 22px; transform: rotate(-2deg); opacity: 1; }
.c3-tq .sc-tiq { animation: none !important; }
.cx-hola-func { margin: 0; text-align: center; font: 600 13px/1.35 var(--c2-ui); color: #e4e4e7; overflow-wrap: anywhere; }
.cx-mapa { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border-radius: 16px;
  background: rgba(14, 16, 24, .72); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cx-mapa canvas { width: 100%; max-width: 320px; height: auto; aspect-ratio: 560 / 240; display: block; }
.cx-mapa figcaption { font: 700 11.5px var(--c2-ui); letter-spacing: .04em; color: #a1a1aa; text-align: center; overflow-wrap: anywhere; }

/* ── Botones (cx3.css) ── */
.c3-btn { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px;
  padding: 13px; font: 900 14px var(--c2-ui); letter-spacing: .04em; color: #03141a; cursor: pointer;
  background: linear-gradient(180deg, #5ff0ff, #13a9d1); box-shadow: 0 8px 22px rgba(var(--c2-cian), .3);
  transition: transform 120ms var(--pop); user-select: none; -webkit-user-select: none; }
.c3-btn:active { transform: scale(.96); }
.cx-btn-rojo { color: #fff; background: linear-gradient(180deg, #ff3b63, #c7123a); box-shadow: 0 8px 26px rgba(255, 31, 75, .38); }
.c3-btn:focus-visible, .cx-slide-perilla:focus-visible, .cx-tq:focus-visible, .cx-cerrar:focus-visible, .cx-activar:focus-visible, .cx-volver:focus-visible {
  outline: 2px solid rgb(var(--c2-cian)); outline-offset: 3px; }

/* ── 2 · ¿Quién las recibe? (lámina v3-03 · 2 + v2-05 · 2) ── */
.c3-app { color: #e4e4e7; background:
  radial-gradient(40rem 20rem at 20% -10%, rgba(var(--c2-cian), .13), transparent 60%),
  linear-gradient(90deg, transparent 0 16%, rgba(var(--c2-cian), .08) 16% calc(16% + 1px), transparent 0),
  linear-gradient(0deg, transparent 0 70%, rgba(168, 85, 247, .08) 70% calc(70% + 1px), transparent 0),
  linear-gradient(180deg, #07070b, #0b0b12); }
.cx-vista.c3-app { max-width: none; }
.cx-vista.c3-app > * { width: 100%; max-width: 28rem; margin-left: auto; margin-right: auto; }
.c3-k { margin: 0; font: 800 10px var(--c2-titulo); letter-spacing: .28em; color: #a1a1aa; text-transform: uppercase; }
.c3-t { margin: 0; font: 900 16px var(--c2-titulo); letter-spacing: .12em; color: #fff; }
.cx-form form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cx-form form > * { min-width: 0; }
.cx-etq { font: 700 11px var(--c2-ui); letter-spacing: .08em; color: #8a8aa0; text-transform: uppercase; margin-top: 4px; }
.c3-campo { min-height: 48px; width: 100%; min-width: 0; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .35); border-radius: 12px;
  padding: 10px 12px; font: 500 15px var(--c2-ui); color: #e7e5f2; outline: none; }
.c3-campo:focus { border-color: rgba(var(--c2-cian), .7); }
.c3-campo[aria-invalid="true"] { border-color: rgba(var(--c2-rojo), .8); }
.cx-tel { display: flex; gap: 8px; min-width: 0; }
.cx-tel > * { min-width: 0; }
.cx-tel .c3-campo { flex: 1; }
.cx-pais { flex: 0 0 auto; display: flex; }
.cx-pais select { min-height: 48px; min-width: 96px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .35); border-radius: 12px; padding: 0 8px; font: 700 15px var(--c2-ui); color: #e7e5f2; }
.cx-conf { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .35); font: 600 13.5px/1.4 var(--c2-ui); color: #e4e4e7; cursor: pointer; }
.cx-conf span { min-width: 0; }
.cx-conf input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: rgb(var(--c2-cian)); }
.cx-err { margin: 0; font: 700 12.5px/1.35 var(--c2-ui); color: #fda4af; }
.cx-err-gen { padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--c2-rojo), .45); background: rgba(80, 8, 24, .35); }
.cx-nota-chica { margin: 0; font: 500 12px/1.45 var(--c2-ui); color: #8a8aa0; }
.cx-volver { align-self: flex-start; min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 0 12px; border: 0; background: none;
  font: 700 13px var(--c2-ui); color: #a1a1aa; cursor: pointer; }
/* Deslizar para RECIBIR: píldora con borde cian y la perilla redonda con › */
.cx-slide { position: relative; min-height: 60px; margin-top: 6px; display: flex; align-items: center; padding: 4px; border-radius: 999px;
  border: 1px solid rgba(var(--c2-cian), .55); background: rgba(var(--c2-cian), .07); box-shadow: 0 0 14px rgba(var(--c2-cian), .18); overflow: hidden; touch-action: pan-y; }
.cx-slide-perilla { position: relative; z-index: 1; flex: 0 0 auto; width: 52px; height: 52px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; cursor: grab; touch-action: none; font: 900 22px var(--c2-ui); color: #03141a;
  background: radial-gradient(circle at 35% 30%, #a5f8ff, #22d3ee 55%, #0e8fb3); box-shadow: 0 0 18px rgba(var(--c2-cian), .6);
  transition: transform 240ms var(--pop); }
.cx-slide[data-estado="arrastra"] .cx-slide-perilla { transition: none; cursor: grabbing; }
.cx-slide[data-estado="pista"] .cx-slide-perilla { animation: cxEmpuja 700ms var(--pop); }
.cx-slide[data-estado="enviando"] .cx-slide-perilla { filter: brightness(1.25) saturate(1.2); }
.cx-slide-txt { position: absolute; left: 60px; right: 12px; text-align: center; font: 900 13.5px var(--c2-ui); letter-spacing: .1em; color: rgb(var(--c2-cian));
  pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity 160ms var(--deriva); }
@keyframes cxEmpuja {
  0% { transform: translate3d(0, 0, 0); }
  40% { transform: translate3d(26px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ── 3 · Billetera (lámina v3-03 · 3) ── */
.cx-bill { gap: 12px; }
.cx-bill-lista { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cx-bill-func { margin-top: 6px; }
.cx-tq { position: relative; min-height: 44px; cursor: pointer; border-radius: 1rem; outline: none; transform-origin: 50% 50%;
  transition: transform 600ms var(--pop), opacity 300ms var(--deriva); }
.cx-tq:active { transform: scale(.98); }
.cx-tq.cx-gira { z-index: 5; transform: rotate(-90deg) scale(1.6); }
.cx-cae { animation: cxCae 620ms var(--pop) both; animation-delay: calc(var(--i, 0) * 120ms); }
@keyframes cxCae {
  from { transform: translate3d(0, -48px, 0) scale(.92); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cx-tq--sala .sc-tiq { filter: saturate(.7) brightness(.85); }
.c3-sello { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-8deg); z-index: 3; padding: 5px 10px; border-radius: 8px;
  border: 2px solid currentColor; font: 900 12px var(--c2-titulo); letter-spacing: .12em; background: rgba(5, 5, 8, .75); text-align: center; line-height: 1.2; }
.c3-sello small { display: block; font: 700 9.5px var(--c2-ui); letter-spacing: 0; }
.cx-sello-sala { color: rgb(var(--c2-oro)); }
.c3-pista { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 12px var(--c2-ui); color: #a1a1aa; }
.c3-pista i { font-style: normal; color: rgb(var(--c2-cian)); font-size: 16px; animation: cxSube 1.4s var(--deriva) infinite; }
@keyframes cxSube {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}
.c3-nota { margin: auto 0 0; font: 500 12px/1.45 var(--c2-ui); color: #8a8aa0; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .14); }
.c3-nota b { color: #d4d4d8; }
.cx-mas { border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(14, 16, 24, .6); }
.cx-mas summary { min-height: 44px; display: flex; align-items: center; padding: 0 12px; font: 700 13px var(--c2-ui); color: #e4e4e7; cursor: pointer; }
.cx-mas p { margin: 0; padding: 0 12px 12px; font: 500 12.5px/1.45 var(--c2-ui); color: #a1a1aa; }
.cx-aviso-guardado { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--c2-oro), .5); background: rgba(70, 48, 6, .35);
  font: 700 12.5px/1.4 var(--c2-ui); color: #fde68a; }
.c3-toast { position: fixed; left: 12px; right: 12px; top: calc(var(--borde) + 12px); z-index: 20; max-width: 28rem; margin: 0 auto; border-radius: 16px; padding: 12px 14px;
  background: rgba(14, 30, 36, .96); border: 1px solid rgba(var(--c2-cian), .55); box-shadow: 0 0 30px rgba(var(--c2-cian), .25);
  font: 600 12.5px/1.4 var(--c2-ui); color: #e6fbff; animation: cxToast 240ms var(--pop) both; }
.c3-toast b { display: block; font-weight: 900; color: #36f29a; letter-spacing: .06em; }
@keyframes cxToast {
  from { transform: translate3d(0, -16px, 0); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ── Avisos ── */
.cx-aviso .c3-btn { max-width: 20rem; }
.cx-aviso-t { margin: 0; font: 900 17px/1.3 var(--c2-titulo); letter-spacing: .06em; color: #fff; max-width: 24ch; }

/* ── 4–5 · Modo escanear: el tiquete vivo a pantalla completa (cx2.css · .tv-*) ── */
.cx-esc { position: fixed; inset: 0; z-index: 50; background: #040406; opacity: 0; transform: scale(.96);
  transition: opacity 240ms var(--deriva), transform 240ms var(--pop); overscroll-behavior: contain; }
.cx-esc[data-abierto="1"] { opacity: 1; transform: none; }
.cx-esc-tiq { position: absolute; inset: 0; }
.tv { --a: var(--c2-cian); --b: var(--c2-rojo); position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: calc(var(--borde) + 16px) 12px calc(var(--pie) + 12px); background: #040406; overflow: hidden; }
.tv--vip { --a: var(--c2-oro); }
.tv::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(var(--a), .16), transparent 60%), radial-gradient(90% 50% at 0% 100%, rgba(var(--b), .14), transparent 60%); }
.tv-papel { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; width: 100%; max-width: 30rem; margin: 0 auto;
  filter: drop-shadow(0 0 1px rgba(var(--a), .95)) drop-shadow(0 0 12px rgba(var(--a), .45)); }
.tv-talon { position: relative; z-index: 2; height: 68px; flex: 0 0 auto; border-radius: 18px 18px 4px 4px; color: #0b0b0f;
  background: linear-gradient(100deg, #f43f5e, #e11d48 55%, #9f1239); display: flex; align-items: center; gap: 10px; padding: 0 14px; transform-origin: 8% 100%; }
.tv--vip .tv-talon { background: linear-gradient(100deg, #fbbf24, #e11d48 52%, #8f0b1f); }
.tv-admit { font: 900 19px/1 var(--c2-texto); letter-spacing: .08em; white-space: nowrap; }
.tv-barras { flex: 1; height: 38px; min-width: 0; }
.tv-barras rect { fill: #0b0b0f; }
.tv-serie { font: 700 8.5px/1.2 ui-monospace, "DejaVu Sans Mono", monospace; letter-spacing: .04em; opacity: .85; writing-mode: vertical-rl; transform: rotate(180deg); }
.tv-corte { position: relative; z-index: 3; height: 0; border-top: 2px dashed rgba(10, 10, 14, .9); margin: 0 14px; }
.tv-corte::before, .tv-corte::after { content: ""; position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: #040406; }
.tv-corte::before { left: -27px; }
.tv-corte::after { right: -27px; }
.tv-cuerpo { position: relative; flex: 1; min-height: 0; border-radius: 4px 4px 18px 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  background: radial-gradient(110% 70% at 92% 0%, rgba(var(--a), .28), transparent 58%), radial-gradient(95% 70% at 0% 100%, rgba(var(--b), .26), transparent 62%), linear-gradient(160deg, #141826, #0a0b12 70%);
  box-shadow: inset 0 0 0 1.5px rgba(var(--a), .85), inset 0 0 26px rgba(var(--b), .18), inset 0 1px 0 rgba(255, 255, 255, .22); }
.tv-cuerpo > * { min-width: 0; }
.tv-cuerpo::before { content: ""; position: absolute; inset: 8px; border-radius: 12px; border: 1px solid rgba(var(--a), .32); pointer-events: none; }
.tv-rejilla { position: absolute; inset: 0; opacity: .45; pointer-events: none;
  background: linear-gradient(rgba(var(--a), .09) 1px, transparent 1px) 0 0 / 100% 13px, linear-gradient(90deg, rgba(var(--a), .09) 1px, transparent 1px) 0 0 / 13px 100%;
  -webkit-mask: radial-gradient(80% 70% at 50% 40%, #000, transparent); mask: radial-gradient(80% 70% at 50% 40%, #000, transparent); }
.tv-holo { position: absolute; inset: -40% -60%; pointer-events: none; mix-blend-mode: color-dodge; opacity: .35;
  background: linear-gradient(105deg, transparent 40%, rgba(var(--a), .55) 48%, rgba(255, 255, 255, .4) 50%, rgba(var(--b), .5) 52%, transparent 60%);
  animation: tvHolo 5s var(--deriva) infinite; }
.tv--vip .tv-holo { opacity: .85; animation-duration: 3.4s; }
/* Holograma del giroscopio: una segunda franja que sigue la inclinación (solo transform, escrito por cuadro). */
.cx-holo-giro { animation: none; opacity: 0; transform: translate3d(0, 0, 0); transition: opacity 400ms var(--deriva); }
.cx-holo-giro[data-on="1"] { opacity: .5; }
@keyframes tvHolo {
  0% { transform: translateX(-45%); }
  60%, 100% { transform: translateX(45%); }
}
.tv-show { position: relative; font: 900 clamp(19px, 6vw, 24px)/1 var(--c2-titulo); letter-spacing: .15em; color: #f8fbff;
  text-shadow: -1px 0 rgba(var(--c2-cian), .9), 1px 0 rgba(var(--c2-rojo), .9), 0 0 14px rgba(var(--a), .6); padding-bottom: 9px; }
.tv-show::after { content: ""; position: absolute; left: 0; bottom: 0; width: 82%; height: 1px;
  background: linear-gradient(90deg, rgba(var(--a), .95), rgba(255, 255, 255, .5), rgba(var(--b), .95)); box-shadow: 0 0 6px rgba(var(--a), .8); }
.tv-show i { position: absolute; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; }
.tv-nodo-a { left: 0; background: rgb(var(--a)); }
.tv-nodo-b { left: 82%; background: rgb(var(--b)); }
.tv-firma { display: flex; align-items: center; gap: 8px; font: 700 9.5px var(--c2-titulo); letter-spacing: .3em; color: rgb(var(--a)); text-shadow: 0 0 8px rgba(var(--a), .55); }
.tv-firma svg { width: 12px; height: 20px; flex: 0 0 auto; }
.tv-datos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; border-left: 2px solid rgba(var(--a), .85); padding-left: 10px; }
.tv-datos > div { min-width: 0; }
.tv-datos b { font: 800 13px/1.15 var(--c2-texto); text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.tv-datos small { font: 500 12px var(--c2-texto); color: #a1a1aa; display: block; overflow-wrap: anywhere; }
.tv-qrzona { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.tv-qrcaja { position: relative; width: min(66vw, 46dvh, 280px); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.tv-qrcaja svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-qrcaja canvas { position: relative; border-radius: 10px; background: #fff; box-shadow: 0 0 0 6px #fff, 0 0 30px rgba(255, 255, 255, .35);
  image-rendering: pixelated; transition: opacity 300ms var(--deriva); }
.cx-qr-falla { position: absolute; inset: 14%; margin: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px; border-radius: 12px;
  background: rgba(10, 10, 16, .92); font: 700 12px/1.4 var(--c2-ui); color: #e4e4e7; }
.tv-nota { font: 600 11px/1.45 var(--c2-texto); color: #a1a1aa; text-align: center; letter-spacing: .04em; }
.tv-nota b { color: rgb(var(--a)); }
.cx-seg { display: inline-block; min-width: 1.2em; font-variant-numeric: tabular-nums; }
.cx-hora { display: block; font: 700 11px var(--c2-ui); letter-spacing: .08em; color: #d4d4d8; font-variant-numeric: tabular-nums; }
.tv-pie { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; min-width: 0; }
.tv-pie > * { min-width: 0; }
.tv-butaca { white-space: nowrap; font: 900 clamp(26px, 8vw, 32px)/1 var(--c2-titulo); letter-spacing: .06em; color: #fff; text-shadow: 0 0 18px rgba(var(--a), .6); }
.tv-butaca small { display: block; font: 700 9px var(--c2-titulo); letter-spacing: .24em; color: rgb(var(--a)); margin-bottom: 4px; }
.tv-pase { text-align: right; }
.tv-pase b { display: block; font: 900 11px var(--c2-texto); letter-spacing: .24em; color: rgb(var(--a)); }
.tv-pase span { white-space: nowrap; font: 900 15px var(--c2-texto); letter-spacing: .08em; color: #fff; }
.tv-titular { font: 600 11px var(--c2-texto); color: #a1a1aa; overflow-wrap: anywhere; }
/* La puerta: el talón se arranca (0 → 0,9 s) y ADMITIDO entra a los 0,6 s (V2 §3). */
.tv--arrancado .tv-talon { animation: tvArranca 900ms var(--deriva) forwards; }
@keyframes tvArranca {
  0% { transform: none; opacity: 1; }
  25% { transform: rotate(-4deg) translateY(-4px); opacity: 1; }
  100% { transform: rotate(-32deg) translate(-40px, -260px); opacity: 0; }
}
.tv-admitido { position: absolute; left: 50%; top: 50%; z-index: 6; opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); pointer-events: none;
  font: 900 30px var(--c2-titulo); letter-spacing: .12em; color: #36f29a; border: 3px solid #36f29a; border-radius: 12px; padding: 6px 14px;
  text-shadow: 0 0 18px rgba(54, 242, 154, .7); box-shadow: 0 0 24px rgba(54, 242, 154, .4); background: rgba(4, 20, 12, .6); }
.tv--arrancado .tv-admitido { animation: tvSello 300ms var(--pop) 600ms forwards; }
@keyframes tvSello {
  from { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.6); }
  to { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); }
}
.cx-esc-portal, .cx-esc-fondo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cx-esc-portal { opacity: 0; pointer-events: none; }
.cx-esc[data-fase="portal"] .cx-esc-portal { opacity: 1; }
.cx-esc[data-fase="portal"] .cx-esc-tiq, .cx-esc[data-fase="sala"] .cx-esc-tiq { opacity: 0; }
.cx-esc-sala { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity 300ms var(--deriva); }
.cx-esc-sala[data-on="1"] { opacity: 1; }
.cx-sala-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 16px; text-align: center; }
.cx-sala-txt > * { min-width: 0; }
.cx-sala-linea { margin: 0; font: 700 12px var(--c2-ui); letter-spacing: .1em; color: #e4e4e7; }
.cx-activar { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 70px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(var(--c2-cian), .9); background: rgba(var(--c2-cian), .12); box-shadow: 0 0 14px rgba(var(--c2-cian), .3);
  font: 900 12.5px var(--c2-ui); letter-spacing: .04em; color: #e6fbff; transition: transform 120ms var(--pop); }
.cx-activar:active { transform: scale(.96); }
.cx-sala-nota { margin: 0; max-width: 32ch; font: 600 11px/1.45 var(--c2-ui); color: #71717a; }
.cx-cerrar { position: absolute; top: calc(var(--borde) + 8px); right: 8px; z-index: 8; width: 44px; height: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; background: rgba(0, 0, 0, .55); font: 900 16px var(--c2-ui); color: #e4e4e7; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: transform 120ms var(--pop); }
.cx-cerrar:active { transform: scale(.92); }
.cx-esc[data-fase="portal"] .cx-cerrar, .cx-esc[data-fase="talon"] .cx-cerrar { opacity: 0; pointer-events: none; }

/* ── 6 · Show inmersivo (S5-C): hoja de preparación (lámina v3-09), HUD y grabar (lámina v3-08) ──
   Valores portados de tools/show_ref/v3/cx3.css (.c3-hud, .c3-hoja, .c3-toast, .c3-btn). El teléfono no narra: fondo negro, el HUD y nada más. */
.cx-vivo, .cx-vivo * { transition-property: transform, opacity, filter; }
.cx-vivo { position: fixed; inset: 0; z-index: 60; min-width: 0; overscroll-behavior: contain; }
.cx-vivo[data-fase="show"] { background: #000; }
.cx-vivo-prep { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; min-width: 0; background: rgba(0, 0, 0, .6); touch-action: pan-y; overflow-y: auto; }
.cx-vivo-show { position: absolute; inset: 0; min-width: 0; background: #000; overflow: hidden; touch-action: none; }
.cx-vivo-lienzo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; }
/* La hoja (cx3.css .c3-hoja): cristal oscuro, borde cian de 1 px arriba, asa de 40×4 y halo hacia arriba. */
.cx-hoja { position: relative; z-index: 11; width: 100%; max-width: 28rem; min-width: 0; display: flex; flex-direction: column; gap: 10px;
  margin: 0 auto; padding: 14px 14px calc(var(--pie) + 16px); border-radius: 24px 24px 0 0; background: rgba(12, 14, 22, .97);
  border-top: 1px solid rgba(var(--c2-cian), .45); box-shadow: 0 -14px 40px rgba(var(--c2-cian), .14); animation: cxHoja 320ms var(--deriva) both; }
.cx-hoja > * { min-width: 0; }
.cx-hoja::before { content: ""; width: 40px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); align-self: center; }
.cx-vivo-tuto { position: absolute; left: 0; right: 0; bottom: 0; }
.cx-vivo-velo { position: absolute; inset: 0; z-index: 10; background: rgba(0, 0, 0, .6); }
@keyframes cxHoja {
  from { transform: translate3d(0, 24px, 0); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cx-hoja .c3-t { font-size: 13px; }
/* Antes de entrar: renglones con el ▸ rojo de la lámina 09 */
.cx-prep-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cx-prep-fila { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font: 500 13.5px/1.4 var(--c2-ui); color: #e4e4e7; }
.cx-prep-fila > * { min-width: 0; }
.cx-prep-fila i { flex: 0 0 auto; font-style: normal; font-size: 11px; line-height: 1.9; color: rgb(var(--c2-rojo)); }
.cx-prep-fila b { font-weight: 800; color: #a1a1aa; }
.cx-prep-fila[data-estado="ok"] i, .cx-prep-fila[data-estado="ok"] b { color: #36f29a; }
.cx-prep-fila[data-estado="bajo"] i, .cx-prep-fila[data-estado="bajo"] b { color: rgb(var(--c2-oro)); }
.cx-prep-aviso { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(var(--c2-oro), .5); background: rgba(70, 48, 6, .35);
  font: 600 12.5px/1.45 var(--c2-ui); color: #fde68a; }
.cx-prep-aviso b { display: block; margin-bottom: 2px; font: 900 10px var(--c2-titulo); letter-spacing: .2em; color: rgb(var(--c2-oro)); }
/* Modo sensible (P2): la casilla dentro del aviso (44 px de alto en la regla base: toda la fila es la etiqueta) y el 🔅 del HUD encendido en oro. */
.cx-prep-aviso { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-prep-aviso > * { min-width: 0; }
.cx-prep-aviso-txt { margin: 0; }
.cx-prep-sens { display: flex; align-items: center; gap: 10px; min-height: 44px; min-width: 0; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(var(--c2-oro), .45);
  background: rgba(0, 0, 0, .28); font: 800 13px/1.3 var(--c2-ui); color: #fff7d6; cursor: pointer; touch-action: manipulation; }
.cx-prep-sens > * { min-width: 0; }
.cx-prep-sens-caja { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: rgb(var(--c2-oro)); cursor: pointer; }
.cx-prep-sens:focus-within { outline: 2px solid rgb(var(--c2-cian)); outline-offset: 2px; }
.cx-vivo-btn--sens[aria-pressed="true"] { background: rgba(var(--c2-oro), .38); }
.cx-prep-disc { margin: 0; font: 500 12px/1.45 var(--c2-ui); color: #8a8aa0; }
.cx-prep-atras { align-self: center; }
/* Grabar: tutorial de 3 pasos (lámina 08 · 2) */
.cx-tuto-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cx-tuto-paso { display: flex; align-items: flex-start; gap: 10px; min-width: 0; font: 500 12.5px/1.4 var(--c2-ui); color: #d4d4d8; }
.cx-tuto-paso > * { min-width: 0; }
.cx-tuto-paso b { flex: 0 0 auto; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(var(--c2-cian), .15); color: rgb(var(--c2-cian)); font: 900 12px var(--c2-ui); }
.cx-tuto-pie { margin: 0; text-align: center; font: 600 11px var(--c2-ui); color: #71717a; }
/* HUD fijo abajo (cx3.css .c3-hud): píldora, «EN VIVO · butaca», 🎥 Grabar y 🌙. El dibujo mide 42 px de alto y los botones 30 px, como la
   referencia; el área táctil de 44 px la ponen pseudo-elementos (la píldora ::before y cada botón ::after, -7 px arriba y abajo).
   Diferencia con .c3-hud, declarada: SIN backdrop-filter (el lienzo de atrás cambia hasta 25 veces por segundo y el desenfoque se recalcularía
   en cada cuadro), con el fondo más opaco (.72 en vez de .55) para que se lea igual. */
.cx-vivo-hud { position: absolute; left: 10px; right: 10px; bottom: calc(var(--pie) + 12px); z-index: 9; height: 42px; min-width: 0; display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .1); touch-action: manipulation; }
.cx-vivo-hud::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 44px; z-index: -1; }
.cx-vivo-hud > * { min-width: 0; }
.cx-vivo-en { flex: 1; align-self: stretch; display: block; line-height: 30px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 800 9.5px var(--c2-titulo); letter-spacing: .18em; color: rgba(255, 255, 255, .55); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; }
.cx-vivo-en::before { content: ""; display: inline-block; vertical-align: middle; margin: -2px 6px 0 0; width: 6px; height: 6px; border-radius: 50%; background: #ff1f4b; box-shadow: 0 0 8px #ff1f4b; }
.cx-vivo-en[data-canal="butaca"]::before { background: rgba(255, 255, 255, .35); box-shadow: none; }
.cx-vivo-btn { position: relative; flex: 0 0 auto; min-width: 38px; height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 0 11px; border: 0; border-radius: 999px; font: 800 11px var(--c2-ui); color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer;
  transition: transform 120ms var(--pop); user-select: none; -webkit-user-select: none; }
.cx-vivo-btn::after { content: ""; position: absolute; left: -3px; right: -3px; top: -7px; height: 44px; }
.cx-vivo-btn:active { transform: scale(.94); }
.cx-vivo-btn[data-activo="1"] { background: #ff1f4b; }
.cx-vivo-btn--disc[aria-pressed="true"] { background: rgba(var(--c2-cian), .35); }
.cx-vivo-btn:focus-visible, .cx-vivo .c3-btn:focus-visible { outline: 2px solid rgb(var(--c2-cian)); outline-offset: 2px; }
/* Al volver de la cámara (lámina 08 · 4): el aviso arriba y GUARDAR VIDEO sobre el HUD. El aviso se va solo a los 8 s; GUARDAR VIDEO se queda,
   discreto (más chico y apagado, a un costado), hasta la próxima grabación o hasta salir: en iOS hay un diálogo en el medio y no se puede perder el video. */
.cx-vivo-toast { display: flex; align-items: center; gap: 10px; top: calc(var(--borde) + 12px); }
.cx-vivo-toast > * { min-width: 0; }
.cx-vivo-toast-ico { flex: 0 0 auto; font-size: 20px; }
.cx-vivo-toast b { color: #e6fbff; letter-spacing: 0; }
.cx-vivo-guardar { position: absolute; left: 14px; right: 14px; bottom: calc(var(--pie) + 66px); z-index: 9; width: auto; max-width: 28rem; margin: 0 auto; text-decoration: none; }
.cx-vivo-guardar[data-modo="discreto"] { left: auto; right: 14px; padding: 0 16px; font-size: 11px; opacity: .72; box-shadow: none; }

/* Pantallas bajas (teléfono chico): el QR manda, la cabecera cede. */
@media (max-height: 700px) {
  .tv-talon { height: 56px; }
  .tv-firma { display: none; }
  .tv-cuerpo { gap: 6px; }
}
/* «Reducir movimiento»: sin giro, sin talón, sin portal; todo es un fundido de 300 ms. */
@media (prefers-reduced-motion: reduce) {
  .cx *, .cx-esc *, .cx-vivo * { animation: none !important; }
  .cx-tq, .cx-slide-perilla, .c3-btn, .cx-activar, .cx-cerrar, .cx-vivo-btn { transition: opacity 300ms var(--deriva) !important; }
  .cx-esc { transform: none; transition: opacity 300ms var(--deriva); }
  .tv-holo { opacity: .2; }
}
