/* ==========================================================================
   THE TICKET — ESTACIONES: íconos animados, títulos animados, navegación,
   constelación del viaje y refinamiento tipográfico (inspirado en Dala:
   peso ligero, escala en vez de grosor, constelaciones sobre el vacío).
   ========================================================================== */

/* ---------- Refinamiento tipográfico: ligero, aireado, sobrio ---------- */
.station-message,
.auth-subtitle,
.reminder-sub,
.preamble-body p,
.progress-sub {
  font-weight: 300;
  letter-spacing: 0.005em;
}
.station-message {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(236, 236, 246, 0.86);
}
.station-date-title {
  font-weight: 500;
  font-size: 1.32rem;
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.reminder-title {
  font-weight: 500;
  letter-spacing: -0.015em;
}

/* ---------- Cabecera de estación: ícono + número grande + estado ---------- */
.station-hero {
  display: flex;
  align-items: center;
  gap: 12px;
}
.station-icon {
  position: relative;
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--lg-spec), radial-gradient(120% 120% at 30% 10%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 60%);
  box-shadow: var(--lg-rim), 0 10px 24px -10px rgba(0, 0, 0, 0.7);
  --lr: 60px;
}
.station-icon::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 143, 210, 0.5);
}
.sicon {
  width: 44px;
  height: 44px;
  overflow: visible;
}
.station-bignum {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, #fff, var(--iri-pearl) 40%, var(--iri-lilac) 70%, var(--iri-sky));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex: 1;
}
.station-item.is-locked .station-bignum {
  background: none;
  color: rgba(255, 255, 255, 0.22);
}
.station-item.is-today .station-bignum {
  animation: numShimmer 4s ease-in-out infinite;
}
@keyframes numShimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
.station-tag-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Etiqueta del día animada letra por letra */
.station-day-number .ch {
  display: inline-block;
  white-space: pre;
  opacity: 0;
  transform: translateY(9px);
  filter: blur(4px);
}
.station-item.in .station-day-number .ch,
html:not(.js-fx) .station-day-number .ch {
  animation: chIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--ci) * 22ms + 0.25s) both;
}
@keyframes chIn {
  to { opacity: 1; transform: none; filter: none; }
}
.station-item.is-today .station-day-number {
  color: var(--iri-rose);
  animation: labelGlow 2.8s ease-in-out infinite;
}
@keyframes labelGlow {
  0%, 100% { text-shadow: 0 0 0 rgba(255, 143, 210, 0); }
  50% { text-shadow: 0 0 12px rgba(255, 143, 210, 0.85); }
}

/* Título: palabras que suben */
.station-date-title .wd {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
}
.station-item.in .station-date-title .wd {
  animation: chIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--wi) * 70ms + 0.45s) both;
}

/* ---------- Íconos SVG: trazos base ---------- */
.si-stroke {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.si-num {
  font-family: var(--font-display), sans-serif;
  font-size: 15px;
  fill: #fff;
}
.si-gloss {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 2;
  stroke-linecap: round;
}
.si-spark {
  fill: #fff;
  transform-box: fill-box;
  transform-origin: center;
  animation: siTwinkle 2.4s ease-in-out infinite;
}
.si-spark.d2 {
  animation-delay: 1.1s;
  fill: #ffe1f1;
}
@keyframes siTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}
.sicon g,
.sicon path,
.sicon rect,
.sicon circle {
  transform-box: fill-box;
}

/* 1 · Calendario + candado que se cierra */
.si-page { transform-origin: center top; animation: siFlip 3.6s ease-in-out infinite; }
@keyframes siFlip {
  0%, 70%, 100% { transform: none; }
  78% { transform: scaleY(0.1); }
  86% { transform: none; }
}
.si-shackle { transform-origin: center bottom; animation: siShackle 3.6s cubic-bezier(0.3, 1.6, 0.4, 1) infinite; }
@keyframes siShackle {
  0%, 15% { transform: translateY(-4px); }
  30%, 100% { transform: translateY(0); }
}
.si-lock { transform-origin: center; animation: siLockPop 3.6s ease-in-out infinite; }
@keyframes siLockPop {
  0%, 26%, 40%, 100% { transform: scale(1); }
  31% { transform: scale(1.16); }
}

/* 2 · Corazón que late con pausa + corazoncitos flotando */
.si-heart { transform-origin: center; animation: siBeat 1.5s ease-in-out infinite; }
@keyframes siBeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.07); }
}
.si-mh { fill: #ff8fd2; opacity: 0; transform-origin: center; animation: siFloat 3s ease-in-out infinite; }
.si-mh.m2 { animation-delay: 1s; fill: #c3a3ff; }
.si-mh.m3 { animation-delay: 2s; fill: #8fd8ff; }
@keyframes siFloat {
  0% { opacity: 0; transform: translateY(6px) scale(0.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-12px) scale(1.1); }
}

/* 3 · Lupa buscando sobre el sobre sellado */
.si-mag { animation: siScan 4s ease-in-out infinite; }
@keyframes siScan {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-22px, -6px); }
  50% { transform: translate(-12px, -14px); }
  75% { transform: translate(-26px, 2px); }
}
.si-lens { fill: rgba(143, 216, 255, 0.14); }
.si-seal { transform-origin: center; animation: siBeat 2s ease-in-out infinite; }

/* 4 · Lápiz que dibuja un corazón */
.si-draw-ghost { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2.6; }
.si-draw {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  animation: siDraw 3.4s ease-in-out infinite;
}
@keyframes siDraw {
  0% { stroke-dashoffset: 130; }
  70%, 88% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -130; }
}
.si-pencil {
  offset-path: path("M32 50C14 39 10 27 16 20C21 14 28 16 32 22C36 16 43 14 48 20C54 27 50 39 32 50Z");
  offset-rotate: 0deg;
  offset-anchor: 0 0;
  animation: siPencil 3.4s ease-in-out infinite;
}
@keyframes siPencil {
  0% { offset-distance: 0%; opacity: 1; }
  70% { offset-distance: 100%; opacity: 1; }
  88%, 100% { offset-distance: 100%; opacity: 0; }
}

/* 5 · Llave que entra, gira y abre */
.si-key { transform-origin: 10px 41px; animation: siKey 3.6s cubic-bezier(0.5, 0, 0.3, 1) infinite; }
@keyframes siKey {
  0% { transform: translateX(-6px); opacity: 0; }
  12% { opacity: 1; }
  38% { transform: translateX(6px); }
  48%, 70% { transform: translateX(6px) scaleY(0.25); }
  86%, 100% { transform: translateX(6px) scaleY(0.25); opacity: 0; }
}
.si-shackle5 { transform-origin: left bottom; animation: siOpen 3.6s cubic-bezier(0.3, 1.6, 0.4, 1) infinite; }
@keyframes siOpen {
  0%, 50% { transform: none; }
  62%, 88% { transform: translateY(-5px) rotate(-14deg); }
  100% { transform: none; }
}

/* 6 · Ticket que brilla + reloj a las 4:00 */
.si-ticket { transform-origin: center; animation: siTilt 4s ease-in-out infinite; }
@keyframes siTilt {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(2deg) translateY(-1.5px); }
}
.si-shine { transform: skewX(-20deg) translateX(-20px); animation: siShine 3s ease-in-out infinite; }
@keyframes siShine {
  0%, 55% { transform: skewX(-20deg) translateX(-20px); }
  100% { transform: skewX(-20deg) translateX(70px); }
}
.si-mh6 { transform-origin: 47px 45px; transform-box: view-box; animation: siSpin 4s linear infinite; }
@keyframes siSpin {
  to { transform: rotate(360deg); }
}

/* Estados del ícono */
.station-item.is-locked .station-icon {
  filter: grayscale(0.85) brightness(0.85);
  opacity: 0.7;
}
.station-item.is-completed .station-icon::before {
  content: "✓";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  color: #07060f;
  background: linear-gradient(135deg, var(--iri-mint), var(--iri-sky));
  box-shadow: 0 0 10px rgba(159, 245, 220, 0.6);
  z-index: 2;
}
.station-item.is-today .station-icon::after {
  animation: iconRing 2.2s ease-out infinite;
}
@keyframes iconRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 143, 210, 0.55); }
  100% { box-shadow: 0 0 0 16px rgba(255, 143, 210, 0); }
}

/* Aparición del ícono cuando entra la tarjeta */
.station-item[data-bloom] .station-icon {
  transform: scale(0.4) rotate(-20deg);
  opacity: 0;
}
.station-item.in .station-icon {
  animation:
    iconIn 0.9s cubic-bezier(0.2, 1.6, 0.4, 1) 0.15s both,
    iconBob 3.4s ease-in-out 1.2s infinite;
}
@keyframes iconBob {
  0%, 100% { transform: translate(calc(var(--gx, 0) * 7px), calc(var(--gy, 0) * 7px)) rotate(0deg); }
  50% { transform: translate(calc(var(--gx, 0) * 7px), calc(var(--gy, 0) * 7px - 4px)) rotate(-3deg); }
}
@keyframes iconIn {
  from { transform: scale(0.4) rotate(-20deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.station-item.is-locked.in .station-icon {
  opacity: 0.7;
}

/* Estación recién desbloqueada / destacada */
.station-item.just-unlocked .station-card {
  animation: unlockGlow 2.4s ease-out 1;
}
@keyframes unlockGlow {
  0% { box-shadow: var(--shadow-deep), 0 0 0 0 rgba(255, 225, 241, 0.9), 0 0 80px rgba(255, 143, 210, 0.9); }
  100% { box-shadow: var(--shadow-deep), var(--lg-rim), 0 0 40px -6px rgba(255, 143, 210, 0.35); }
}
.station-item.spotlight .station-card {
  animation: spotlight 1.4s ease-out 1;
}
@keyframes spotlight {
  0% { transform: scale(0.985); filter: brightness(1.35); }
  40% { transform: scale(1.01); }
  100% { transform: none; filter: none; }
}

/* ---------- Dock flotante de navegación ---------- */
.tl-dock {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  background: var(--lg-spec), rgba(22, 18, 34, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(2) brightness(1.1);
  backdrop-filter: blur(16px) saturate(2) brightness(1.1);
  box-shadow: var(--lg-rim), 0 22px 50px rgba(0, 0, 0, 0.6);
  --lr: 160px;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.7s var(--lg-spring), opacity 0.4s ease;
  max-width: calc(100vw - 20px);
}
.tl-dock.enabled.show {
  transform: translate(-50%, 0);
  opacity: 1;
}
.tl-blob {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(40px circle at 30% 0%, rgba(255, 255, 255, 0.35), transparent 70%), rgba(255, 255, 255, 0.14);
  box-shadow: inset 1.5px 1.5px 0 rgba(255, 255, 255, 0.5), inset -1px -1px 0 rgba(255, 255, 255, 0.12);
  transition: left 0.6s var(--lg-spring), width 0.6s var(--lg-spring), opacity 0.3s;
}
.tl-dock button {
  all: unset;
  position: relative;
  z-index: 1;
  cursor: pointer;
  min-width: 34px;
  height: 38px;
  padding: 0 6px;
  box-sizing: border-box;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.75);
  transition: transform 0.4s var(--lg-spring), color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.tl-dock button:active {
  transform: scale(0.88);
}
.tl-dock .tl-dot.locked {
  color: rgba(255, 255, 255, 0.28);
}
.tl-dock .tl-dot.done {
  color: var(--iri-mint);
}
.tl-dock .tl-dot.current::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--iri-rose);
  box-shadow: 0 0 8px var(--iri-rose);
}
.tl-dock .tl-today {
  padding: 0 14px;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #120d1f;
  background: radial-gradient(120% 120% at 50% 120%, #fff, #fbeff8 45%, #e2d6f1);
  box-shadow: inset 0 -4px 8px -4px rgba(60, 20, 80, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.9), 0 6px 16px -6px rgba(255, 143, 210, 0.6);
}
.tl-dock .tl-today.attention {
  animation: todayNudge 2.6s ease-in-out infinite;
}
@keyframes todayNudge {
  0%, 70%, 100% { transform: scale(1); }
  78% { transform: scale(1.08, 0.94); }
  86% { transform: scale(0.97, 1.04); }
}
.tl-sep {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: rgba(255, 255, 255, 0.18);
}
/* El toast sube para no tapar el dock */
html.tl-snap .toast-banner {
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px);
}
.app-shell {
  padding-bottom: 110px;
}

/* ---------- Constelación del viaje (reemplaza la barra de progreso) ---------- */
.constellation {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.cst-line {
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  fill: none;
}
.cst-line-lit {
  stroke: url(#cst-grad);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 3px rgba(255, 143, 210, 0.8));
}
.cst-line-lit.on {
  stroke-dashoffset: 0;
}
.cst-star {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.6s var(--lg-spring);
}
.cst-star .cst-core {
  fill: rgba(255, 255, 255, 0.25);
}
.cst-star .cst-halo {
  fill: rgba(255, 143, 210, 0);
}
.cst-star.lit .cst-core {
  fill: #fff;
}
.cst-star.lit .cst-halo {
  fill: rgba(255, 143, 210, 0.28);
  animation: cstGlow 3s ease-in-out infinite;
}
.cst-star.current .cst-core {
  fill: var(--iri-rose);
}
.cst-star.current .cst-halo {
  fill: rgba(255, 143, 210, 0.35);
  animation: cstPulse 1.6s ease-out infinite;
}
@keyframes cstGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes cstPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.cst-label {
  font-family: var(--font-display);
  font-size: 7px;
  fill: rgba(255, 255, 255, 0.4);
  text-anchor: middle;
}
.cst-star.lit + .cst-label,
.cst-label.lit {
  fill: rgba(255, 225, 241, 0.9);
}
.liquid-bar-track {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .sicon *,
  .station-day-number .ch,
  .station-date-title .wd,
  .station-icon,
  .tl-dock .tl-today.attention {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .si-draw {
    stroke-dashoffset: 0;
  }
}


/* ==========================================================================
   MODO "UN DÍA POR PANTALLA" + 3D
   Cada estación ocupa la pantalla. Al deslizar, avanza a la siguiente
   (una a la vez). Las tarjetas giran en 3D según su posición al desplazarse
   y se inclinan con el dedo o el giroscopio.
   ========================================================================== */
html.tl-snap {
  scroll-snap-type: y mandatory;
}
html.tl-snap #boarding-pass-card {
  scroll-snap-align: start;
  scroll-margin-top: 14px;
}
html.tl-snap #reminder-card,
html.tl-snap .progress-card {
  scroll-snap-align: center;
}
html.tl-snap .station-item {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px 0 96px;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
html.tl-snap .timeline-list {
  gap: 0;
}
html.tl-snap .station-node {
  top: 50%;
  transform: translateY(-50%) scale(calc(1 - var(--ap, 0) * 0.4));
}

/* Giro 3D al desplazarse (variables --p / --ap que pone timeline-nav.js) */
html.tl-snap .station-card,
html.tl-snap #reminder-card,
html.tl-snap .progress-card {
  transform:
    perspective(1100px)
    translateZ(calc(var(--ap, 0) * -180px))
    rotateX(calc(var(--p, 0) * 26deg + var(--gy, 0) * -7deg))
    rotateY(calc(var(--gx, 0) * 9deg));
  opacity: calc(1 - var(--ap, 0) * 0.55);
  transition: opacity 0.2s linear;
  will-change: transform;
}
html.tl-snap #boarding-pass-card {
  transform:
    perspective(1000px)
    translateZ(calc(var(--ap, 0) * -160px))
    rotateX(calc(var(--rx, 0deg) + var(--p, 0) * 24deg))
    rotateY(var(--ry, 0deg));
  opacity: calc(1 - var(--ap, 0) * 0.5);
  transition: none;
}
.station-bignum {
  display: inline-block;
  transform: translate(calc(var(--gx, 0) * -5px), calc(var(--gy, 0) * -4px));
}

/* Reflejo de luz que sigue la inclinación */
html.tl-snap .station-item.is-centered .station-card::after {
  background: linear-gradient(
    calc(115deg + var(--gx, 0) * 30deg),
    transparent 25%,
    rgba(255, 255, 255, calc(0.05 + var(--gx-abs, 0) * 0.08)) 45%,
    rgba(255, 143, 210, 0.06) 52%,
    transparent 75%
  );
}

/* Tocar el ícono: rebote + giro */
.station-icon {
  cursor: pointer;
}
.station-icon.boop {
  animation: iconBoop 0.8s cubic-bezier(0.2, 1.8, 0.4, 1) !important;
}
@keyframes iconBoop {
  0% { transform: scale(1); }
  30% { transform: scale(1.28, 0.82) rotate(-8deg); }
  55% { transform: scale(0.9, 1.12) rotate(6deg); }
  100% { transform: scale(1) rotate(0); }
}

/* Pista "desliza" en la estación centrada */
.swipe-hint {
  position: fixed;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 62px);
  z-index: 49;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-align: center;
}
.swipe-hint.show {
  opacity: 1;
}
.swipe-hint::before {
  content: "";
  display: block;
  width: 2px;
  height: 18px;
  margin: 0 auto 6px;
  border-radius: 2px;
  background: linear-gradient(var(--iri-rose), transparent);
  animation: hintDrop 1.6s ease-in-out infinite;
}
@keyframes hintDrop {
  0% { transform: translateY(-6px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* Sin la esfera en el pase: vuelve la ruta animada */
.route-arc-icon {
  display: inline-block !important;
  background: transparent;
}
.route-arc {
  min-height: 0;
}
.route-arc-line {
  position: relative;
  overflow: visible;
}
.route-arc-line::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px var(--iri-rose), 0 0 18px var(--iri-lilac);
  animation: routeTravel 3.2s ease-in-out infinite;
}
@keyframes routeTravel {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}
.preamble-title-wrap {
  padding-right: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.tl-snap .station-card,
  html.tl-snap #reminder-card,
  html.tl-snap .progress-card,
  html.tl-snap #boarding-pass-card {
    transform: none;
    opacity: 1;
  }
}

/* ---------- Estación confidencial (día bloqueado) ---------- */
.si-mystery {
  transform-origin: center;
  animation: siMystery 3.2s ease-in-out infinite;
}
@keyframes siMystery {
  0%, 100% { transform: rotate(0) translateY(0); }
  20% { transform: rotate(-4deg) translateY(-1px); }
  40% { transform: rotate(3deg) translateY(-2px); }
  60% { transform: rotate(0) translateY(0); }
}
.si-q {
  font-family: var(--font-display), sans-serif;
  font-size: 14px;
  fill: #ffe1f1;
  animation: siQ 2.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes siQ {
  0%, 100% { opacity: 0.2; transform: translateY(3px) rotate(-10deg); }
  50% { opacity: 1; transform: translateY(-3px) rotate(10deg); }
}
.station-item.is-locked .station-date-title {
  color: rgba(255, 255, 255, 0.55);
  font-style: normal;
}

/* Barra superior siempre accesible (SALIR / reinicio) en el modo por pantallas */
html.tl-snap .top-meta-bar {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: calc(min(100vw, var(--container-max)) - 24px);
  z-index: 45;
  padding: 0;
}
html.tl-snap #boarding-pass-card {
  scroll-margin-top: 64px;
}
html.tl-snap .main-experience {
  padding-top: 44px;
}

/* --- Ajustes para el nombre largo "PATROCLI AVENTURA" --- */
/* La esfera sube y se hace más pequeña para no tapar las letras */
.orb-anchor-login {
  right: -4%;
  top: 0;
  width: min(34vw, 150px);
  transform: translateY(-78%);
}
.monument-title-wrap {
  padding-top: 34px;
}
/* Nombre de ella completo en el pase */
.pass-guest-fancy {
  font-size: clamp(1.08rem, 5.4vw, 1.45rem);
}
.pass-passenger-row {
  grid-template-columns: 1.45fr 0.75fr;
}
.pass-passenger-row .meta-label {
  white-space: nowrap;
}
/* Barra superior: la etiqueta nunca se corta, el reloj cede espacio */
.top-meta-bar .status-pill {
  flex: 0 0 auto;
  max-width: none;
}
.top-meta-bar > div {
  flex: 1 1 auto;
  justify-content: flex-end;
  overflow: hidden;
}
@media (max-width: 380px) {
  .top-meta-bar #bogota-clock {
    display: none;
  }
}

/* Sin esfera: la entrada queda limpia, solo tipografía */
.orb-wrap,
.orb-anchor {
  display: none !important;
}
.monument-title-wrap {
  padding-top: 10px;
}

/* ---------- Modo inspector (solo lectura) ---------- */
html.inspector-mode .station-card .btn-liquid:not(.btn-liquid-secondary),
html.inspector-mode .code-form,
html.inspector-mode .upload-box,
html.inspector-mode #reminder-card,
html.inspector-mode #btn-emergency-reset,
html.inspector-mode #preamble-screen {
  display: none !important;
}
html.inspector-mode .status-pill {
  background: linear-gradient(120deg, rgba(143, 216, 255, 0.25), rgba(195, 163, 255, 0.25));
}
.inspector-note {
  align-self: flex-start;
  padding: 7px 13px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--iri-pearl);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
