/* Omega: "Todo en Omega" (#recorrido), recorrido horizontal con pin y luz de seguimiento por las fotos y los videos del festival, las clases y las competencias.
   Capas: fondo (lavados de color y línea de escenario, lentos), haces de luz fijos, la pista con las escenas, polvo de luz delante (rápido),
   tercio inferior con lo que está en foco y la regla de progreso. Sin movimiento queda una lista de bloques con su texto y su botón. */

/* ============== Base: sin movimiento ni JS, columna legible ============== */
.tour { position: relative; isolation: isolate; padding: 0; background: var(--ink); color: var(--white); }
.tour-stage { position: relative; }
.tour-back, .tour-lights, .tour-front, .tour-hud, .ts-glow, .ts-floor, .ts-cue { display: none; }
.tour-track { display: grid; gap: clamp(2.6rem, 6vw, 4.4rem); max-width: 1180px; margin: 0 auto; padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem) clamp(3rem, 6vw, 5rem); }
.ts { position: relative; display: grid; gap: 1.1rem; align-content: start; }
.ts[data-ac="cyan"] { --ar: 63, 225, 255; }
.ts[data-ac="magenta"] { --ar: 255, 59, 125; }
.ts-intro h2 { font-size: clamp(3rem, 12vw, 7rem); line-height: 0.92; text-transform: uppercase; margin: 0 0 1rem; }
.ti-lead { max-width: 44ch; color: var(--muted-strong); font-size: 1.08rem; }

/* texto de cada escena (en el recorrido lo muestra el tercio inferior) */
.ts-info { display: grid; gap: 0.45rem; align-content: center; }
.ts-info .k { margin: 0; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; color: rgb(var(--ar, 63, 225, 255)); }
.ts-info h3 { font-size: clamp(1.7rem, 4.6vw, 2.8rem); line-height: 1; margin: 0; }
.ts-info .d { margin: 0; max-width: 46ch; color: var(--muted-strong); }
.ts-info .btn { justify-self: start; margin-top: 0.5rem; }

/* foto o clip */
.ts-ph { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: visible; border-radius: 18px; }
.ts-win { position: relative; display: block; overflow: hidden; border-radius: 18px; background: #0b0b10; aspect-ratio: 3 / 2; }
.ts-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ts-dim { position: absolute; inset: 0; z-index: 3; background: #050508; opacity: 0; pointer-events: none; }
.ts-win::after { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); pointer-events: none; }
.ts-title, .ts-vert { display: none; }
.ts-ph:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* sin movimiento: cada bloque es una fila de fotos o videos con su texto */
.tour.is-static .ts-solo { gap: 1.2rem; }
.tour.is-static .ts-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tour.is-static .ts-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tour.is-static .ts-pair .ts-info, .tour.is-static .ts-trio .ts-info { grid-column: 1 / -1; }
@media (min-width: 900px) {
  .tour.is-static .ts-solo { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; gap: 2.4rem; }
  .tour.is-static .ts-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.ts-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.8rem; background: radial-gradient(circle at 50% 42%, rgba(63, 225, 255, 0.14), rgba(255, 59, 125, 0.1) 55%, #0b0b10 80%); }
.ts-soon .ring-svg { position: static; inset: auto; width: clamp(56px, 7.5vw, 110px); height: auto; aspect-ratio: 1; overflow: visible; }
.ts-soon .ring-main, .ts-soon .ring-feet { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.ts-soon .ring-glow { fill: none; stroke-linecap: round; }
.ts-soon .ring-glow.g1 { stroke: var(--cyan); stroke-width: 12; opacity: 0.22; }
.ts-soon .ring-glow.g2 { stroke: var(--magenta); stroke-width: 7; opacity: 0.34; }
.ts-soon small { font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.7rem; color: var(--muted-strong); }
.ts-play { position: absolute; z-index: 3; right: 5%; bottom: 7%; width: clamp(34px, 11%, 56px); aspect-ratio: 1; border-radius: 50%; background: rgba(8, 8, 10, 0.55); border: 1px solid rgba(255, 255, 255, 0.5); pointer-events: none; }
.ts-play::after { content: ''; position: absolute; left: 53%; top: 50%; width: 34%; aspect-ratio: 0.9; transform: translate(-50%, -50%); background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ============== Recorrido horizontal ============== */
.tour.is-h .tour-stage {
  --top: clamp(70px, 10svh, 98px); --hud: clamp(128px, 19svh, 158px); --pad: clamp(1.2rem, 4.6vw, 4.6rem);
  --ph: min(60svh, calc(100svh - var(--top) - var(--hud) - 34px));
  height: 100svh; min-height: 540px; overflow: clip; background: var(--ink);
}
@media (max-width: 899px) { .tour.is-h .tour-stage { --hud: clamp(138px, 20svh, 164px); } }
@media (min-aspect-ratio: 5 / 4) { .tour.is-h .tour-stage { --ph: min(60svh, calc(100svh - var(--top) - var(--hud) - 34px), 41vw); } }

.tour.is-h .tour-back, .tour.is-h .tour-lights, .tour.is-h .tour-front { display: block; position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none; }
.tour.is-h .tour-back { z-index: 0; width: 300vw; }
.tour.is-h .tour-lights { z-index: 1; right: 0; overflow: hidden; }
.tour.is-h .tour-front { z-index: 4; width: 300vw; }
.tb-wash { position: absolute; inset: 0; background:
  radial-gradient(26% 54% at 7% 72%, rgba(31, 168, 196, 0.3), transparent 70%),
  radial-gradient(22% 50% at 25% 18%, rgba(255, 59, 125, 0.2), transparent 70%),
  radial-gradient(28% 56% at 45% 80%, rgba(124, 66, 224, 0.26), transparent 70%),
  radial-gradient(24% 52% at 64% 20%, rgba(63, 225, 255, 0.19), transparent 70%),
  radial-gradient(26% 54% at 82% 78%, rgba(255, 59, 125, 0.27), transparent 70%),
  radial-gradient(22% 48% at 97% 24%, rgba(63, 225, 255, 0.22), transparent 70%); }
.tb-line { position: absolute; left: 0; right: 0; bottom: calc(var(--hud) + 12px); height: 1px; background: linear-gradient(90deg, transparent, rgba(63, 225, 255, 0.7) 18%, rgba(255, 59, 125, 0.7) 82%, transparent); box-shadow: 0 0 22px rgba(63, 225, 255, 0.35); }

@media (max-width: 899px) { .tour.is-h .tb-line { display: none; } .tr-fill { box-shadow: 0 0 12px rgba(63, 225, 255, 0.55); } }

/* haces de luz fijos al escenario: lo que cruza el centro queda iluminado */
.tl-cone { position: absolute; top: -6%; left: 50%; width: min(78vw, 104svh); height: 112%; margin-left: calc(min(78vw, 104svh) / -2); transform-origin: 50% 0; clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%); }
.tl-cone.c { background: linear-gradient(180deg, rgba(63, 225, 255, 0.2), transparent 82%); transform: rotate(-4deg); animation: tourSwayA 9s ease-in-out infinite alternate; }
.tl-cone.m { background: linear-gradient(180deg, rgba(255, 59, 125, 0.19), transparent 82%); transform: rotate(4deg); animation: tourSwayB 11s ease-in-out infinite alternate; }
@keyframes tourSwayA { from { transform: rotate(-6deg); } to { transform: rotate(-1.5deg); } }
@keyframes tourSwayB { from { transform: rotate(6deg); } to { transform: rotate(1.5deg); } }

/* polvo de luz que cruza por delante, más rápido que las escenas */
.td { position: absolute; display: block; border-radius: 50%; background: #fff; opacity: 0.55; }
.td.c { background: var(--cyan); } .td.m { background: var(--magenta); }
.td.o { background: radial-gradient(closest-side, rgba(255, 255, 255, 0.2), transparent); opacity: 0.55; }
.td.o.c { background: radial-gradient(closest-side, rgba(63, 225, 255, 0.26), transparent); }
.td.o.m { background: radial-gradient(closest-side, rgba(255, 59, 125, 0.24), transparent); }

/* pista y escenas */
.tour.is-h .tour-track { position: relative; z-index: 2; display: flex; align-items: stretch; gap: 0; width: max-content; max-width: none; height: 100%; margin: 0; padding: 0; will-change: transform; }
.tour.is-h .ts { flex: none; display: flex; align-items: center; gap: 0; height: 100%; padding: var(--top) 0 var(--hud); }
.tour.is-h .ts-solo, .tour.is-h .ts-pair, .tour.is-h .ts-trio { padding-inline: var(--pad); }
.tour.is-h .ts-pair, .tour.is-h .ts-trio { align-items: stretch; }
/* el texto de cada escena queda para lectores de pantalla; el botón lo da el tercio inferior */
.tour.is-h .ts-info { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tour.is-h .ts-info a { display: none; }

.tour.is-h .ts-ph { z-index: 1; flex: none; width: auto; height: var(--h, var(--ph)); aspect-ratio: 3 / 2; transform: skewX(var(--sk, 0deg)); }
.tour.is-h .ts-win { position: absolute; inset: 0; aspect-ratio: auto; }
.tour.is-h .ts-img { position: absolute; top: 0; left: -4%; width: 108%; height: 100%; max-width: none; object-position: var(--fx, 50% 24%); will-change: transform; }
.tour.is-h .ts-dim { opacity: 0.68; transition: opacity 0.3s ease-out; }
.tour.is-h .ts-glow { display: block; position: absolute; z-index: -1; inset: -16% -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--ar), 0.34), transparent 74%); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out; }
.tour.is-h .ts-floor { display: block; position: absolute; z-index: -1; left: 4%; right: 4%; bottom: -7%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--ar), 0.6), transparent 90%); opacity: 0; pointer-events: none; transition: opacity 0.3s ease-out; }
/* con mouse: tocar con el puntero una foto apagada la enciende */
@media (hover: hover) and (pointer: fine) {
  .tour.is-h .ts-ph:hover .ts-dim { opacity: 0 !important; }
  .tour.is-h .ts-ph:hover .ts-glow, .tour.is-h .ts-ph:hover .ts-floor { opacity: 1 !important; }
}

/* nombre de la oferta grande sobre la foto, abajo a la izquierda (se corre para quedar siempre a la vista) */
.tour.is-h .ts-ph.has-title .ts-win::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(5, 5, 8, 0.8), rgba(5, 5, 8, 0) 54%); pointer-events: none; }
.tour.is-h .ts-title { display: block; position: absolute; z-index: 2; left: 5%; bottom: 7%; margin: 0; max-width: 92%; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: calc(var(--h, var(--ph)) * 0.19); line-height: 0.9; letter-spacing: -0.015em; color: #fff; white-space: nowrap; text-shadow: 0 2px 26px rgba(0, 0, 0, 0.5); pointer-events: none; will-change: transform; }

/* pareja: una foto grande arriba a la izquierda y otra más chica abajo a la derecha que se le monta encima */
.tour.is-h .ts-pair .is-a { --h: calc(var(--ph) * 0.88); align-self: flex-start; margin-top: 1.4svh; }
.tour.is-h .ts-pair .is-b { --h: calc(var(--ph) * 0.6); align-self: flex-end; margin-left: calc(var(--ph) * -0.46); margin-bottom: 0.8svh; z-index: 2; }
/* en la pareja la foto B se monta sobre la esquina de abajo de la A: el nombre de la A va arriba y el de la B abajo, así nunca se tapan */
.tour.is-h .ts-pair .is-a .ts-win::before { background: linear-gradient(180deg, rgba(5, 5, 8, 0.8), rgba(5, 5, 8, 0) 54%); }
.tour.is-h .ts-pair .is-a .ts-title { top: 6%; bottom: auto; }
.tour.is-h .ts-solo[data-v="1"] .ts-ph { --h: calc(var(--ph) * 0.92); margin-top: 3svh; }
.tour.is-h .ts-solo[data-v="2"] .ts-ph { --h: calc(var(--ph) * 0.96); margin-bottom: 2svh; }

/* trío: una foto grande al centro, una chica arriba que se le monta y otra abajo a la derecha */
.tour.is-h .ts-trio { padding-inline: var(--pad); align-items: stretch; }
.tour.is-h .ts-trio .is-a { --h: calc(var(--ph) * 0.9); align-self: center; }
.tour.is-h .ts-trio .is-b { --h: calc(var(--ph) * 0.52); align-self: flex-start; margin-left: calc(var(--ph) * -0.34); margin-top: 1svh; z-index: 2; }
.tour.is-h .ts-trio .is-c { --h: calc(var(--ph) * 0.58); align-self: flex-end; margin-left: calc(var(--ph) * 0.1); margin-bottom: 0.6svh; }
.tour.is-h .ts-trio .is-a .ts-win::before { background: linear-gradient(180deg, rgba(5, 5, 8, 0.8), rgba(5, 5, 8, 0) 54%); }
.tour.is-h .ts-trio .is-a .ts-title { top: 6%; bottom: auto; }

/* presentación */
.tour.is-h .ts-intro { width: clamp(300px, 80vw, 1180px); padding-inline: var(--pad) 0; }
.tour.is-h .ti-in { position: relative; z-index: 2; max-width: 100%; }
.tour.is-h .ts-intro h2 { font-size: min(24vw, 16.5svh); line-height: 0.9; margin: 0 0 clamp(0.6rem, 2svh, 1.2rem); }
@media (min-aspect-ratio: 1 / 1) { .tour.is-h .ts-intro h2 { font-size: min(14vw, 19svh); } }
.tour.is-h .ts-intro h2 > div { display: block; white-space: nowrap; } /* cada palabra en su línea (SplitText las envuelve en div) */
.tour.is-h .ts-intro .kick { margin-bottom: clamp(0.5rem, 1.6svh, 1rem); }
.tour.is-h .ti-lead { margin: 0; font-size: clamp(0.94rem, 2.2svh, 1.12rem); }
.tour.is-h .ts-cue { display: block; position: relative; width: 132px; height: 2px; margin-top: clamp(0.8rem, 2.4svh, 1.6rem); background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.tour.is-h .ts-cue i { position: absolute; left: 0; top: 0; width: 38px; height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--magenta)); animation: tourCue 1.9s var(--ease-in-out) infinite; }
@keyframes tourCue { from { transform: translateX(-42px); } to { transform: translateX(136px); } }
/* tercio inferior: lo que ofrece la escena en foco, su botón y la regla de progreso.
   En celular y pantallas verticales la regla va arriba, de lado a lado (su ancho no depende del texto del botón, así las marcas y el punto no se corren y cada marca mide lo que un dedo);
   debajo el kicker, la descripción y el botón. En escritorio: texto a la izquierda y regla a la derecha. */
.tour.is-h .tour-hud {
  display: grid; position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: var(--hud); align-content: end; align-items: start; justify-items: start;
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "k" "d" "cta"; gap: 0.26rem 0;
  padding: 0 var(--pad) max(12px, env(safe-area-inset-bottom));
}
.tour-k { grid-area: k; margin: 0; max-width: 100%; overflow: hidden; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.78rem; line-height: 1.4; color: var(--cyan); white-space: nowrap; text-overflow: ellipsis; transition: color 0.4s; }
.tour-d { grid-area: d; margin: 0; min-height: 2.8em; overflow: hidden; color: var(--muted-strong); font-size: 0.82rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tour-cta { grid-area: cta; padding: 0.5rem 1.05rem; font-size: 0.86rem; white-space: nowrap; }
.tour-hud[data-ac="magenta"] .tour-k { color: var(--magenta); }
.tour-cta[hidden] { display: none; } /* .btn declara display y le gana al atributo hidden */
/* regla: un solo control (slider) de 28 px de alto; la línea fina se dibuja dentro. Tocar salta al capítulo más cercano, arrastrar el punto recorre todo, flechas del teclado van capítulo a capítulo */
.tour-rail { grid-area: rail; justify-self: stretch; position: relative; height: 28px; margin: 0; cursor: pointer; touch-action: pan-y; user-select: none; -webkit-user-select: none; border-radius: 14px; }
.tour-rail:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tr-line, .tr-fill { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; }
.tr-line { background: var(--line); }
.tr-fill { background: linear-gradient(90deg, var(--cyan), var(--magenta)); transform-origin: 0 50%; transform: scaleX(0); }
.tr-dot { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 4px rgba(247, 247, 250, 0.14); will-change: transform; }
.tr-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: rgba(247, 247, 250, 0.16); transform: scale(0); transition: transform 0.25s var(--ease-out); }
.tour-rail.is-drag .tr-dot::after { transform: scale(1.5); }
.tr-mark { position: absolute; top: 50%; width: 2px; height: 10px; margin: -5px 0 0 -1px; border-radius: 2px; background: var(--line-strong); pointer-events: none; transition: background 0.3s, height 0.3s var(--ease-out), margin-top 0.3s var(--ease-out); }
.tr-mark.is-on { background: var(--white); height: 16px; margin-top: -8px; }
@media (hover: hover) and (pointer: fine) { .tour-rail:hover .tr-mark { background: rgba(247, 247, 250, 0.55); } .tour-rail:hover .tr-mark.is-on { background: var(--white); } }
@media (min-width: 900px) {
  .tour.is-h .tour-hud { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); grid-template-areas: "k rail" "d rail" "cta rail"; gap: 0.5rem clamp(2rem, 6vw, 5rem); padding-right: calc(var(--pad) + 70px); align-items: end; }
  .tour-d { font-size: 0.98rem; }
  .tour-cta { margin-top: 0.2rem; }
  .tour-rail { align-self: end; margin: 0 0 0.5rem; }
}

@media (max-width: 640px) {
  .tour.is-h .ts-pair .is-b { margin-left: calc(var(--ph) * -0.4); }
  .tour.is-h .ts-trio .is-b { margin-left: calc(var(--ph) * -0.4); }
  .ts[data-opt] { display: none !important; }
}

/* mientras el recorrido está fijado, el botón de WhatsApp se aparta */
body.tour-on .whatsapp-fab { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) { .tl-cone, .tour.is-h .ts-cue i { animation: none; } }

/* ============== Foto ampliada ============== */
.lightbox { border: 0; background: rgba(4, 4, 6, 0.94); padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; color: #fff; overflow: hidden; }
.lightbox::backdrop { background: rgba(4, 4, 6, 0.7); }
.lightbox img, .lightbox video { position: fixed; inset: 0; margin: auto; max-width: 94vw; max-height: 82dvh; width: auto; height: auto; border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); touch-action: pan-y; background: #000; }
.lightbox img[hidden], .lightbox video[hidden] { display: none; }
.lightbox video { width: min(94vw, calc(82dvh * 16 / 9)); }
.lb-x, .lb-nav { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(8, 8, 10, 0.8); color: #fff; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.25s, transform 0.2s; }
.lb-x { top: 14px; right: 14px; font-size: 1.7rem; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-nav svg { width: 22px; height: 22px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-x:active, .lb-nav:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .lb-x:hover, .lb-nav:hover { background: rgba(63, 225, 255, 0.22); } }
.lb-cap { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); margin: 0; padding: 0 4.6rem; text-align: center; font-weight: 700; font-size: 0.95rem; color: var(--muted-strong); text-wrap: balance; }
@media (max-width: 640px) { .lb-nav { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); margin-top: 0; } .lb-cap { padding: 0 4.4rem; } }
