/* CONEXIONES 2026 · micrositio · COPIA LITERAL del tiquete de la app (assets/css/showcase.css, bloque
   «RONDA 156 / 166 · Tiquete digital»). No se edita acá: tests/show_s3_micrositio_logica.mjs exige que el
   bloque entre las marcas sea idéntico al de la app (V3 §5–§6: el tiquete que llega es el de la app). */
/* >>> TIQUETE DE LA APP >>> */
/* ── RONDA 156 / 166 · Tiquete digital «CONEXIONES» ───────────────────────
   Talón rojo «ADMIT ONE» con barras,
   dos muescas en la línea de corte y «ENTRADA #003». El brillo de neón va en
   un `filter: drop-shadow()` del contenedor —sigue la silueta YA recortada
   por la máscara, muescas incluidas— y es lo único que late: `filter`,
   `transform` y `opacity`, nunca layout (AGENTS §6.1).
   Tamaños en cqi: el tiquete escala con su ancho, de 300 a 560 px. */
.sc-modal-panel--tiquetes { max-width: 38rem; }
.sc-tiquetes { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sc-tiq {
  --tiq-a: 251, 191, 36; --tiq-b: 244, 63, 94;   /* VIP: oro / rojo */
  --corte: 24%;
  container-type: inline-size; position: relative; width: 100%; max-width: 560px; margin: 0 auto; min-width: 0;
  filter: drop-shadow(0 0 1px rgba(var(--tiq-a), 0.95)) drop-shadow(0 0 9px rgba(var(--tiq-a), 0.55));
  animation: scTiqEntra 240ms cubic-bezier(0.34, 1.56, 0.64, 1) both, scTiqLatido 2.6s cubic-bezier(0.16, 1, 0.3, 1) 240ms infinite alternate;
  transition: transform 140ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sc-tiq--general { --tiq-a: 34, 211, 238; --tiq-b: 244, 63, 94; }   /* General: cian / rojo */
.sc-tiq:hover { transform: translate3d(0, -2px, 0) scale(1.01); }
.sc-tiq:active { transform: scale(0.98); }
.sc-tiq-papel {
  position: relative; display: grid; grid-template-columns: var(--corte) minmax(0, 1fr); min-height: max(9.5rem, 34cqi);
  border-radius: 0.9rem; overflow: hidden;
  /* RONDA 167 · fuera el negro plano (#07070b): base de cristal en gradiente. */
  background: linear-gradient(150deg, #1b1e2e 0%, #0f111a 46%, #0b0911 100%);
  box-shadow: inset 0 0 0 1.5px rgba(var(--tiq-a), 0.9), inset 0 0 22px rgba(var(--tiq-b), 0.25);
  /* Muescas: medio círculo arriba y abajo justo en la línea de corte. */
  -webkit-mask: radial-gradient(circle at var(--corte) 0, #0000 0.8rem, #000 calc(0.8rem + 0.5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--corte) 100%, #0000 0.8rem, #000 calc(0.8rem + 0.5px)) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle at var(--corte) 0, #0000 0.8rem, #000 calc(0.8rem + 0.5px)) top / 100% 51% no-repeat,
                radial-gradient(circle at var(--corte) 100%, #0000 0.8rem, #000 calc(0.8rem + 0.5px)) bottom / 100% 51% no-repeat;
}
/* Talón: rojo Power, «ADMIT ONE» en vertical y el código de barras. */
.sc-tiq-talon {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4cqi; min-width: 0; padding: 0.6rem 0.4rem;
  background: linear-gradient(160deg, #f43f4e 0%, #c8102e 55%, #8f0b1f 100%); color: #14070a;
  border-right: 2px dashed rgba(10, 10, 14, 0.75);
}
.sc-tiq--vip .sc-tiq-talon { background: linear-gradient(160deg, #fbbf24 0%, #e11d48 48%, #8f0b1f 100%); }
.sc-tiq-admit { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 900 clamp(0.7rem, 4.2cqw, 1.45rem)/1 Rajdhani, 'Arial Narrow', system-ui, sans-serif; letter-spacing: 0.08em; }
.sc-tiq-barras { width: clamp(1rem, 4.4cqi, 1.6rem); height: 82%; fill: #0b0b0f; }
.sc-tiq-serie { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 clamp(0.42rem, 1.6cqw, 0.58rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; opacity: 0.85; }
/* RONDA 167 · CUERPO «CYBER GLASS».
   ANTES: un gradiente casi negro (#111118 → #08080c) con rayas de escáner: a
   la vista, un rectángulo negro plano.
   AHORA: cristal ahumado en capas, solo CSS —
     1. brillo de canto superior (la luz que pega en el bisel),
     2. reflejo diagonal del vidrio,
     3. dos focos emisivos con los colores del pase (oro/rojo o cian/rojo),
     4. base en gradiente azul-noche, nunca #000;
   encima, una cuadrícula fina que se apaga hacia los bordes (.sc-tiq-rejilla),
   grano de película (ruido SVG en data-URI: cero peticiones de red) y un
   marco interior de 1 px con luz propia (::before). El bisel va en
   box-shadow inset: canto claro arriba, sombra abajo. Nada de esto se anima. */
.sc-tiq-cuerpo {
  position: relative; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 2cqi;
  padding: 4.4cqi 5.4cqi 4cqi 6cqi; overflow: hidden; color: #f4f4f5; isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 14%, transparent 30%),
    linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, 0.07) 43%, rgba(255, 255, 255, 0.02) 50%, transparent 58%),
    radial-gradient(110% 95% at 92% 0%, rgba(var(--tiq-a), 0.30), transparent 58%),
    radial-gradient(95% 90% at 0% 100%, rgba(var(--tiq-b), 0.30), transparent 62%),
    linear-gradient(150deg, #1d2134 0%, #11131d 45%, #0c0a13 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 1px 0 0 rgba(255, 255, 255, 0.07),
              inset 0 -1px 0 rgba(0, 0, 0, 0.7), inset 0 0 34px rgba(var(--tiq-a), 0.10);
}
/* Marco interior emisivo: un filo de luz a 1 px del canto, como el bisel de
   una tarjeta de vidrio. */
.sc-tiq-cuerpo::before { content: ''; position: absolute; inset: 1.6cqi; z-index: -1; pointer-events: none; border-radius: 0.55rem;
  border: 1px solid rgba(var(--tiq-a), 0.34);
  box-shadow: 0 0 12px rgba(var(--tiq-a), 0.16), inset 0 0 14px rgba(var(--tiq-a), 0.07); }
/* Grano de película: quita lo «plástico» al gradiente. */
.sc-tiq-cuerpo::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"); }
.sc-tiq-rejilla { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background:
    linear-gradient(rgba(var(--tiq-a), 0.10) 1px, transparent 1px) 0 0 / 100% 3.4cqi,
    linear-gradient(90deg, rgba(var(--tiq-a), 0.10) 1px, transparent 1px) 0 0 / 3.4cqi 100%;
  -webkit-mask-image: radial-gradient(120% 110% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%);
          mask-image: radial-gradient(120% 110% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 78%); }
/* Brillo holográfico: una franja iridiscente que cruza (solo transform). */
.sc-tiq-holo { position: absolute; inset: -40% -60%; pointer-events: none; opacity: 0; mix-blend-mode: color-dodge;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 0, 128, 0.35) 44%, rgba(255, 220, 90, 0.45) 48%, rgba(0, 255, 210, 0.38) 52%, rgba(120, 90, 255, 0.35) 56%, transparent 62%);
  transform: translate3d(-45%, 0, 0); }
.sc-tiq--vip .sc-tiq-holo { opacity: 0.9; animation: scTiqHolo 3.4s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
.sc-tiq--general .sc-tiq-holo { opacity: 0.35; animation: scTiqHolo 5.2s cubic-bezier(0.16, 1, 0.3, 1) infinite; }
/* RONDA 166 · Cabecera: «CONEXIONES» es el texto principal (grande, glitch
   cian/rojo y halo del color del pase) y «Power Dance Studio» va debajo,
   pequeño. Columna: el nombre nunca comparte renglón con la firma.
   RONDA 167 · LETRA DEL AFICHE Y LOGO.
   ANTES: Rajdhani 900 — que además showcase.html NO cargaba, así que el
   título salía en la sans del sistema (Arial Narrow / system-ui).
   AHORA: Orbitron 900, la misma rotulación con la que show.html presenta
   «CONEXIONES» al público: geométrica, ancha, de trazo uniforme, con mucho
   aire entre letras. Relleno blanco frío, aberración cian/rojo fina (1 px,
   no los 2 px de antes, que la ensuciaban) y un halo del color del pase.
   Debajo, una línea de «conexión» —dos nodos unidos por un filo de luz— y la
   firma: el logo de la batería con el rayo + «Power Dance Studio» en versales
   chicas. Sin ningún otro rótulo. */
.sc-tiq-cab { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 1.6cqi; row-gap: 1.5cqi; min-width: 0; }
.sc-tiq-show { position: relative; grid-column: 1 / -1; margin: 0; padding-bottom: 1.9cqi; min-width: 0; max-width: 100%; font: 900 clamp(0.95rem, 6.1cqi, 2.4rem)/1 Orbitron, Rajdhani, 'Arial Narrow', system-ui, sans-serif; letter-spacing: 0.15em;
  color: #f8fbff; text-shadow: -1px 0 rgba(34, 211, 238, 0.9), 1px 0 rgba(244, 63, 94, 0.9), 0 0 14px rgba(var(--tiq-a), 0.6), 0 0 34px rgba(var(--tiq-a), 0.28); overflow-wrap: anywhere; }
/* Línea de conexión bajo el título: filo de luz con un nodo en cada punta. */
.sc-tiq-show::before { content: ''; position: absolute; left: 0; bottom: 0; width: min(100%, 62cqi); height: 0.9cqi; min-height: 4px; pointer-events: none;
  background:
    radial-gradient(circle at 0.45cqi 50%, rgb(var(--tiq-a)) 0 0.4cqi, transparent 0.5cqi),
    radial-gradient(circle at calc(100% - 0.45cqi) 50%, rgb(var(--tiq-b)) 0 0.4cqi, transparent 0.5cqi),
    linear-gradient(90deg, rgba(var(--tiq-a), 0.95), rgba(255, 255, 255, 0.5) 50%, rgba(var(--tiq-b), 0.95)) 50% 50% / calc(100% - 1cqi) 1px no-repeat;
  filter: drop-shadow(0 0 3px rgba(var(--tiq-a), 0.8)); }
.sc-tiq-estudio { grid-column: 2; grid-row: 2; margin: 0; min-width: 0; font: 700 clamp(0.5rem, 2.2cqi, 0.76rem)/1 Orbitron, Rajdhani, system-ui, sans-serif; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgb(var(--tiq-a)); opacity: 0.95; text-shadow: 0 0 8px rgba(var(--tiq-a), 0.55); }
/* Logo de Power Dance Studio (batería + rayo), SVG en línea: nítido a
   cualquier tamaño y sin pedir ninguna imagen. */
.sc-tiq-logo { grid-column: 1; grid-row: 2; display: block; width: clamp(0.62rem, 2.9cqi, 1rem); height: auto; aspect-ratio: 24 / 40; flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.35)); }
.sc-tiq-show::after { content: attr(data-texto); position: absolute; inset: 0; color: rgb(var(--tiq-b)); opacity: 0;
  clip-path: inset(40% 0 35% 0); animation: scTiqGlitch 4.2s steps(1) infinite; pointer-events: none; }
.sc-tiq-datos { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 1cqi 4cqi; min-width: 0;
  border-left: 2px solid rgba(var(--tiq-a), 0.8); padding-left: 2.4cqi; }
.sc-tiq-datos > div { min-width: 0; display: flex; flex-direction: column; }
.sc-tiq-datos b { font: 800 clamp(0.62rem, 2.9cqi, 0.95rem)/1.15 Rajdhani, system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.sc-tiq-datos small { font-size: clamp(0.5rem, 2.2cqi, 0.72rem); color: #a1a1aa; overflow-wrap: anywhere; }
.sc-tiq-pie { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 3cqi; min-width: 0; }
.sc-tiq-titular { min-width: 0; font-size: clamp(0.55rem, 2.5cqi, 0.82rem); color: #e4e4e7; overflow-wrap: anywhere; }
.sc-tiq-pase { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-align: right; }
.sc-tiq-pase b { font: 900 clamp(0.55rem, 2.6cqi, 0.85rem)/1 Rajdhani, system-ui, sans-serif; letter-spacing: 0.24em; color: rgb(var(--tiq-a)); }
.sc-tiq-num { font: 900 clamp(0.75rem, 3.8cqi, 1.3rem)/1.1 Rajdhani, system-ui, sans-serif; letter-spacing: 0.08em; color: #fff; font-variant-numeric: tabular-nums; }
.sc-tiq-izq { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2cqi; }
.sc-tiq-sello { display: inline-block; padding: 0.2em 0.6em; border-radius: 0.4rem; transform: rotate(-3deg);
  font: 900 clamp(0.5rem, 2.2cqi, 0.7rem)/1.2 Rajdhani, system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
  color: #fde68a; border: 1.5px solid rgba(245, 158, 11, 0.9); background: rgba(120, 53, 15, 0.55); }
/* Ojo: dentro de writing-mode vertical, cqi mide el eje VERTICAL (que no es
   contenedor de tamaño) y cae al alto del viewport: el talón usa cqw.
   Tiquete angosto (teléfono): talón más fino para que el cuerpo respire. */
@container (max-width: 420px) {
  .sc-tiq-papel { --corte: 21%; }
  .sc-tiq-talon { gap: 2.6cqi; }
  .sc-tiq-admit { font-size: 3.6cqw; }
  .sc-tiq-cuerpo { padding: 3.6cqi 4cqi 3.4cqi 5cqi; }
}
@keyframes scTiqEntra { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes scTiqLatido {
  from { filter: drop-shadow(0 0 1px rgba(var(--tiq-a), 0.95)) drop-shadow(0 0 7px rgba(var(--tiq-a), 0.5)); }
  to   { filter: drop-shadow(0 0 1px rgba(var(--tiq-b), 0.95)) drop-shadow(0 0 14px rgba(var(--tiq-b), 0.6)); }
}
@keyframes scTiqHolo { 0% { transform: translate3d(-45%, 0, 0); } 60%, 100% { transform: translate3d(45%, 0, 0); } }
@keyframes scTiqGlitch { 0%, 91%, 100% { opacity: 0; transform: none; } 92% { opacity: 0.85; transform: translate3d(-3px, 0, 0); } 95% { opacity: 0.85; transform: translate3d(3px, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .sc-tiq, .sc-tiq-holo, .sc-tiq-show::after { animation: none !important; transition: none !important; }
}
/* RONDA 167 · El tiquete es DOM (no hay canvas ni descarga): se comparte con
   captura de pantalla o imprimiendo la página. Al imprimir, el navegador
   descarta fondos por defecto y el cristal quedaría en blanco: se le pide
   que respete los colores y se apagan las animaciones. */
@media print {
  .sc-tiq, .sc-tiq * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sc-tiq, .sc-tiq-holo, .sc-tiq-show::after { animation: none !important; }
  .sc-tiq { break-inside: avoid; }
}
/* <<< TIQUETE DE LA APP <<< */
