/* =================================================================
   RADAR CULTURAL · Landing
   El sistema visual sale de la app (v2.1.8): azul noche, acento cian,
   chips con punto de color por categoría, verde para «Hoy» y «en directo»,
   datos de distancia y rumbo en monoespaciada.

   Índice
   0. Tokens (variables)          7. Galería horizontal
   1. Base, grano y utilidades    8. Cómo funciona
   2. Intro (barrido del radar)   9. Eventos: filtros, tarjetas, radar
   3. Barra de progreso y menú   10. CTA y footer
   4. Botones y enlaces          11. WhatsApp y avisos
   5. Hero y móvil con la app    12. Movimiento reducido
   6. Scroll: reveal, split, banda, quiénes somos, expansión
   ================================================================= */

/* ---------- 0 · TOKENS ---------- */
:root {
  color-scheme: dark;
  --bg: #060B16;            /* fondo de la app */
  --bg-2: #0B1222;
  --surface: #111A2C;       /* tarjetas de la lista */
  --surface-2: #17223A;     /* chips sin seleccionar */
  --line: rgba(125, 211, 252, 0.14);
  --line-strong: rgba(125, 211, 252, 0.28);
  --text: #E8EFF8;
  --muted: #94A3BC;
  --faint: rgba(232, 239, 248, 0.14);

  --accent: #22D3EE;        /* cian radar */
  --accent-ink: #032029;    /* texto sobre cian */
  --accent-deep: #0A3442;   /* chip activo («Todos», «Modo ciudad») */
  --live: #34D399;          /* verde «Hoy» / en directo */
  --live-deep: #0C3527;

  /* Colores de categoría, los mismos que en el radar de la app */
  --c-musica: #38BDF8;
  --c-teatro: #FACC15;
  --c-arte: #F43F5E;
  --c-cine: #34D399;
  --c-danza: #F472B6;
  --c-festivales: #A78BFA;  /* violeta, como «Festivales» en la app */
  --c-talleres: #FB923C;
  --c-otros: #94A3BC;

  --glass: rgba(14, 22, 38, 0.6);
  --glass-line: rgba(125, 211, 252, 0.18);

  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Variables por elemento (se sobrescriben en línea o desde JS):
     --i      índice para escalonar entradas
     --speed  intensidad del parallax (data-speed → JS)
     --p      progreso 0→1 de una sección ligada al scroll
     --c      color de categoría de un chip o un punto */
  --i: 0;
  --speed: 0;
  --p: 0;
}

/* ---------- 1 · BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; overflow-x: clip; }
main, .footer { overflow-x: clip; }
html:not(.reduced-motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 50vw at 85% -10%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(50vw 40vw at -10% 35%, rgba(56, 189, 248, .08), transparent 60%),
    radial-gradient(60vw 50vw at 50% 115%, rgba(52, 211, 153, .07), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grano: ruido feTurbulence en multiply para que el fondo no sea plano */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 200;
  pointer-events: none;
  background-image: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.6' intercept='.5'/%3E%3CfeFuncG type='linear' slope='.6' intercept='.5'/%3E%3CfeFuncB type='linear' slope='.6' intercept='.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .5;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
b { font-weight: 700; }
/* hidden siempre oculta, aunque el componente declare su propio display */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-display); font-stretch: 112%;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 800; font-stretch: 100%;
  font-size: clamp(2.1rem, 4.6vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-top: .35em;
  max-width: 16ch;
  text-wrap: balance;
}

/* Logotipo: punto cian + RADAR CULTURAL en mayúsculas anchas, como en la app */
.brand {
  display: inline-flex; align-items: baseline; gap: .5em;
  font-family: var(--font-display); font-weight: 800; font-stretch: 112%;
  text-transform: uppercase; letter-spacing: .04em; text-decoration: none; white-space: nowrap;
}
.brand small { font-family: var(--font-body); font-weight: 500; font-size: .62em; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.brand__dot {
  width: .5em; height: .5em; border-radius: 50%; flex: none; align-self: center;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

/* Etiquetas compartidas: categoría, «HOY», distancia y rumbo */
.cat {
  font-family: var(--font-display); font-stretch: 110%;
  font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c, var(--accent));
}
.badge {
  display: inline-block; padding: 2px 7px; border-radius: 6px;
  font-family: var(--font-display); font-stretch: 110%; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--live); background: var(--live-deep); border: 1px solid rgba(52, 211, 153, .35);
}
.badge--soft { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.dist { font-family: var(--font-mono); font-weight: 600; font-size: .8rem; color: var(--accent); white-space: nowrap; }

/* Punto verde que late: hay eventos en directo */
.live-dot { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--live); flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--live);
  animation: live-ping 1.8s var(--ease) infinite;
}
@keyframes live-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- 2 · INTRO ---------- */
.intro { position: fixed; inset: 0; z-index: 500; pointer-events: none; }
.no-intro .intro { display: none; }
.intro-playing, .intro-playing body { overflow: hidden; }
.intro__half {
  position: absolute; left: 0; right: 0; height: 50.2%;
  background: #03060D; overflow: hidden;
  transition: transform 1s var(--ease-in-out);
}
.intro__half--top { top: 0; }
.intro__half--bottom { bottom: 0; }
.intro__logo {
  position: absolute; left: 50%;
  display: flex; align-items: center; gap: .35em;
  font-family: var(--font-display); font-weight: 900; font-stretch: 118%;
  font-size: clamp(1.1rem, 7vw, 7.4rem); letter-spacing: .02em; text-transform: uppercase;
  color: var(--text); white-space: nowrap; line-height: 1;
  transform: translate(-50%, -50%);
}
.intro__logo i { width: .32em; height: .32em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 30px var(--accent); }
/* Cada mitad enseña su mitad del logotipo: al separarse, el logo se "corta" */
.intro__half--top .intro__logo { top: 100%; }
.intro__half--bottom .intro__logo { top: 0; }
.intro__ping {
  position: absolute; left: 0; top: 50%;
  width: 100%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #fff 98%);
  box-shadow: 0 0 18px 2px rgba(34, 211, 238, .7);
  transform: scaleX(0); transform-origin: left;
  animation: intro-ping 1.25s .25s var(--ease-in-out) forwards;
}
.intro__beam {
  position: absolute; left: 0; top: 50%;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  overflow: visible;
  animation: intro-beam 1.25s .25s var(--ease-in-out) forwards;
}
.intro__beam path { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--accent)); }
.intro__beam circle { fill: #fff; }
.intro__beam .snipA, .intro__beam .snipB { transform-origin: 60px 60px; }
.intro__beam .snipA { animation: snipA .3s ease-in-out infinite alternate; }
.intro__beam .snipB { animation: snipB .3s ease-in-out infinite alternate; }
@keyframes snipA { from { transform: rotate(-24deg); } to { transform: rotate(10deg); } }
@keyframes snipB { from { transform: rotate(24deg); } to { transform: rotate(-10deg); } }
@keyframes intro-beam { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 84px)); } }
@keyframes intro-ping { to { transform: scaleX(1); } }
.intro.is-open .intro__half--top { transform: translateY(-100%); }
.intro.is-open .intro__half--bottom { transform: translateY(100%); }
.intro.is-open .intro__ping { opacity: 0; transition: opacity .3s; }

/* ---------- 3 · PROGRESO Y MENÚ ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress__bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--live), var(--accent));
  box-shadow: 0 0 12px rgba(34, 211, 238, .6);
  transform: scaleX(0); transform-origin: left;
}
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; gap: 18px;
  padding: 18px var(--gutter);
  transition: background-color .4s, backdrop-filter .4s, padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
/* Cristal esmerilado a partir de 30 px de scroll */
.nav.is-scrolled {
  padding-block: 10px;
  background: rgba(6, 11, 22, .62);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav__logo { font-size: 1.12rem; margin-right: auto; }

/* Pastilla deslizante (menú, categoría, cuándo y vista) */
.pill-group { position: relative; display: flex; align-items: center; gap: 4px; isolation: isolate; }
.pill {
  position: absolute; z-index: -1; left: 0; top: 50%;
  height: var(--pill-h, 36px); width: var(--pill-w, 0px);
  transform: translate(var(--pill-x, 0px), -50%);
  border-radius: 999px;
  background: rgba(34, 211, 238, .1);
  border: 1px solid var(--glass-line);
  transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s;
  opacity: 0;
}
.pill-group.has-pill .pill { opacity: 1; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: .92rem; font-weight: 500; text-decoration: none; color: var(--muted);
  transition: color .3s;
}
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--text); }
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; text-decoration: none;
  padding: 7px 12px; border-radius: 999px;
  background: var(--live-deep); color: #B6F2D6;
  border: 1px solid rgba(52, 211, 153, .35);
}
.burger { display: none; flex: none; width: 44px; height: 44px; border-radius: 50%; position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line-strong); }
.burger span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .45s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
/* Hamburguesa → X */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil: se abre en círculo desde el botón (--ox/--oy los pone JS) */
.mobile-menu {
  position: fixed; inset: 0; z-index: 105;
  background: radial-gradient(120% 80% at 100% 0%, rgba(34, 211, 238, .2), transparent 60%), var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px;
  clip-path: circle(0px at var(--ox, 90%) var(--oy, 40px));
  transition: clip-path .7s var(--ease-in-out);
}
.mobile-menu.is-open { clip-path: circle(150% at var(--ox, 90%) var(--oy, 40px)); }
.mobile-menu nav { display: grid; gap: 6px; }
.mobile-menu a, .mobile-menu__foot {
  font-family: var(--font-display); font-weight: 800; font-stretch: 105%;
  font-size: clamp(1.9rem, 8.4vw, 2.8rem); line-height: 1.15; text-transform: uppercase;
  text-decoration: none;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.mobile-menu__cta { color: var(--accent); }
.mobile-menu__foot { font-family: var(--font-body); font-weight: 400; text-transform: none; font-size: .95rem; margin-top: 40px; display: flex; gap: 10px; align-items: center; color: var(--muted); }
/* Idioma dentro del menú móvil: aparece con el resto */
.mobile-menu .lang { margin-top: 36px; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.mobile-menu .lang + .mobile-menu__foot { margin-top: 20px; }
.mobile-menu.is-open a, .mobile-menu.is-open .mobile-menu__foot, .mobile-menu.is-open .lang {
  opacity: 1; transform: none;
  transition-delay: calc(.25s + var(--i) * 70ms);
}

/* ---------- 4 · BOTONES Y ENLACES ---------- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-weight: 700; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .45s var(--ease), color .35s, box-shadow .35s;
}
.btn span { position: relative; z-index: 1; }
/* Relleno que sube desde abajo */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
/* Se encoge un poco al pulsar */
.btn:active { transform: translate(var(--mx), var(--my)) scale(.95); transition-duration: .12s; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 34px -10px rgba(34, 211, 238, .7); }
.btn--accent::before { background: var(--text); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-strong); background: rgba(17, 26, 44, .5); }
.btn--ghost::before { background: var(--live); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--accent-ink); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 1.08rem; }

/* Subrayado que crece (background-size) */
.link-u {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease), color .3s;
}
.link-u:hover, .link-u:focus-visible { background-size: 100% 1px; }

/* ---------- 5 · HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) 60px;
  display: grid; align-content: start; gap: clamp(40px, 6vw, 72px);
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__grid {
  position: relative; z-index: 1;
  width: min(100%, var(--maxw)); margin-inline: auto;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero__eyebrow { color: var(--muted); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 900; font-stretch: 104%;
  font-size: clamp(2.6rem, 6.3vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.025em;
  text-transform: uppercase;
  margin: .3em 0 .4em;
}
.hero__title em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--accent); padding-left: .5em; text-shadow: 0 0 40px rgba(34, 211, 238, .25); }
/* Línea a línea: cada línea sube desde detrás de una máscara */
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(.15s + var(--i) * 120ms);
}
.is-ready .line > span { transform: none; }
.hero__lede { max-width: 46ch; color: var(--muted); font-size: 1.12rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__lede, .hero__ctas, .hero__eyebrow {
  opacity: 0; transform: translateY(16px);
  transition: opacity .9s var(--ease) .55s, transform .9s var(--ease) .55s;
}
.is-ready .hero__lede, .is-ready .hero__ctas, .is-ready .hero__eyebrow { opacity: 1; transform: none; }

/* Móvil con la vista Radar de la app */
.hero__visual { position: relative; justify-self: center; width: min(100%, 340px); }
.phone {
  position: relative;
  padding: 10px; border-radius: 46px;
  background: linear-gradient(160deg, #26324A, #0B1120 40%, #1A2438);
  box-shadow: 0 0 0 1px rgba(125, 211, 252, .2), 0 50px 100px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(34, 211, 238, .35);
}
/* La pantalla se destapa de abajo arriba y su contenido hace zoom 1,25 → 1 */
.phone__screen {
  position: relative; overflow: hidden;
  border-radius: 36px;
  background: var(--bg);
  aspect-ratio: 9 / 18.5;
  clip-path: inset(100% 0 0 0 round 36px);
  transition: clip-path 1.5s var(--ease-in-out) .2s;
}
.is-ready .phone__screen { clip-path: inset(0 0 0 0 round 36px); }
.app {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 9px;
  padding: 12px 14px 0;
  font-size: 11px; line-height: 1.3;
  transform: scale(1.25); transform-origin: 50% 60%;
  transition: transform 2s var(--ease) .2s;
}
.is-ready .app { transform: none; }
.app__status { display: flex; justify-content: space-between; font-size: 10px; font-weight: 500; color: var(--text); padding: 0 6px; }
.app__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.brand--app { font-size: 13.5px; gap: .4em; }
.brand--app small { font-size: 9px; }
.app__mode {
  padding: 4px 7px; border-radius: 6px; line-height: 1.5;
  font-family: var(--font-display); font-stretch: 112%; font-size: 7.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-deep); border: 1px solid var(--accent);
}
.app__loc { display: flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 700; font-size: 10.5px; letter-spacing: .02em; }
.app__loc svg, .app__lbl svg, .events__loc svg, .filters__lbl svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: none; }
.app__chips, .app__when { display: flex; gap: 5px; white-space: nowrap; overflow: hidden; }
.chip, .when {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.chip.is-on { background: var(--accent-deep); border-color: var(--accent); color: var(--text); font-weight: 700; }
.app__lbl { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.when b { font-family: var(--font-mono); font-size: 8.5px; padding: 1px 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); }
.when.is-on { color: var(--text); font-weight: 700; border-color: var(--live); background: var(--live-deep); }
.when.is-on b { color: var(--live); background: rgba(52, 211, 153, .15); }
.app__radar { position: relative; flex: none; width: 100%; aspect-ratio: 1; margin: 2px 0; }
.app__hint { padding: 7px 9px; border-radius: 8px; font-size: 9px; font-weight: 500; color: var(--muted); background: var(--bg-2); border: 1px solid var(--line); }
.app__radar canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.app__card { position: absolute; font-size: 9px; font-family: var(--font-mono); color: var(--muted); transform: translate(-50%, -50%); }
.app__card--n { left: 50%; top: 1.5%; color: var(--accent); font-weight: 600; }
.app__card--s { left: 50%; top: 98.5%; }
.app__card--e { left: 98.5%; top: 50%; }
.app__card--w { left: 1.5%; top: 50%; }
.app__label {
  position: absolute; left: 14%; top: 36%;
  padding: 1px 6px 1px 4px; border-radius: 4px; font-size: 8.5px; font-weight: 700;
  color: #1A1600; background: #EAE04A; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
}
.app__radius { display: flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.app__radius b { padding: 3px 6px; border-radius: 5px; font-size: 10px; color: var(--accent); background: var(--accent-deep); border: 1px solid var(--line-strong); letter-spacing: 0; }
.app__track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.app__track span { position: absolute; left: 0; top: 0; bottom: 0; width: 12%; background: var(--accent); border-radius: 3px; }
.app__track span::after { content: ""; position: absolute; right: -6px; top: -5px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.app__nav {
  display: flex; justify-content: space-around; align-items: center;
  margin: auto -14px 0; padding: 10px 6px 16px;
  background: var(--bg-2); border-top: 1px solid var(--line);
  font-size: 9.5px; color: var(--muted);
}
.app__nav span { position: relative; padding: 5px 14px; border-radius: 999px; }
.app__nav .is-on { color: var(--accent-ink); background: var(--accent); font-weight: 700; }
.app__nav i { position: absolute; top: -10px; right: -8px; font-style: normal; font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 2px var(--bg-2); }

/* Etiquetas de cristal flotantes */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: var(--x); top: var(--y);
  opacity: 0; transform: translateY(20px) scale(.9);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
  transition-delay: calc(1.2s + var(--i) * 150ms);
}
.is-ready .tag { opacity: 1; transform: none; }
.tag__in {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  font-size: .86rem; font-weight: 700; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
  animation: float 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.3s);
}
.tag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Sello circular: gira solo (.seal__spin) y un poco más con el scroll (--scroll-rot) */
.seal {
  position: absolute; right: -64px; bottom: 8%;
  width: clamp(110px, 10vw, 140px); aspect-ratio: 1;
  transform: rotate(var(--scroll-rot, 0deg));
  opacity: 0; transition: opacity 1s 1.4s;
}
.is-ready .seal { opacity: 1; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal__bg { fill: rgba(6, 11, 22, .82); stroke: var(--glass-line); }
.seal__spin { transform-origin: 100px 100px; animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.seal text { font-family: var(--font-display); font-stretch: 112%; font-size: 14.5px; font-weight: 800; fill: var(--text); }
.seal__core { fill: var(--accent-deep); stroke: var(--accent); stroke-width: 1.5; }
.seal__ring { fill: none; stroke: var(--accent); stroke-opacity: .5; stroke-dasharray: 3 4; }
.seal__hand { stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; transform-origin: 100px 100px; animation: spin 3s linear infinite; }
.seal__dot { fill: #fff; }

/* Tarjetas "lo esencial" con el formato de la lista de la app */
.essentials { position: relative; z-index: 1; width: min(100%, var(--maxw)); margin-inline: auto; }
.essentials__title { margin-bottom: 16px; font-size: 1rem; }
.essentials__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.essentials__list li {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: calc(1.3s + var(--i) * 110ms);
}
.is-ready .essentials__list li { opacity: 1; transform: none; }
.ess-card {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 4px 14px; align-content: start; height: 100%;
  padding: 16px 40px 16px 16px;
  border-radius: var(--radius); background: rgba(17, 26, 44, .78);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  text-decoration: none;
  transition: transform .5s var(--ease), border-color .4s, background-color .4s, box-shadow .5s var(--ease);
}
.ess-card img { grid-row: span 3; width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.ess-card:hover, .ess-card:focus-visible {
  transform: translateY(-8px);
  border-color: var(--line-strong); background: rgba(23, 34, 58, .9);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(34, 211, 238, .2);
}
.ess-card__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ess-card__row .dist { margin-left: auto; font-size: .72rem; }
.ess-card__name { font-weight: 700; font-size: 1rem; line-height: 1.25; min-width: 0; }
.ess-card__meta { font-size: .84rem; color: var(--muted); }
.ess-card__arrow { position: absolute; right: 16px; bottom: 14px; font-size: 1.15rem; color: var(--accent); transition: transform .5s var(--ease); }
.ess-card:hover .ess-card__arrow, .ess-card:focus-visible .ess-card__arrow { transform: translateX(8px); }

/* Indicador de scroll: línea que baja + micro-pulso */
.scroll-cue {
  position: absolute; z-index: 1; left: calc(var(--gutter) / 2 - 6px); top: 46%;
  display: none; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue__line { position: relative; width: 1px; height: 70px; background: var(--faint); overflow: hidden; }
.scroll-cue__line::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--accent); animation: cue 2s var(--ease-in-out) infinite;
}
.scroll-cue__line::after {
  content: ""; position: absolute; left: -3px; bottom: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); animation: cue-ping 2s ease-out infinite;
}
.scroll-cue__label { writing-mode: vertical-rl; }
@keyframes cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }
@keyframes cue-ping { 0%, 55% { transform: scale(0); opacity: 0; } 70% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
@media (min-width: 1100px) { .scroll-cue { display: flex; } }

/* ---------- 6 · EFECTOS DE SCROLL ---------- */
/* data-reveal: aparición escalonada (JS pone --d y la clase .is-in) */
.js [data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* data-split: cada palabra sube */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform .9s var(--ease);
  transition-delay: calc(var(--wi) * 55ms);
}
[data-split].is-in .split-w > span { transform: none; }

/* Parallax: JS escribe --py */
[data-speed] { transform: translate3d(0, var(--py, 0px), 0); }

/* Banda de palabras */
.marquee {
  position: relative; z-index: 2;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: rgba(11, 18, 34, .8);
  overflow: hidden;
  transform: rotate(-1.6deg) scale(1.03);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span {
  font-family: var(--font-display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(1.8rem, 4.6vw, 3.8rem); line-height: 1.1; text-transform: uppercase;
  white-space: nowrap; padding-right: .3em;
}
.marquee__track i {
  display: inline-block; width: .32em; height: .32em; margin: 0 .5em; border-radius: 50%; vertical-align: middle;
  background: var(--c); box-shadow: 0 0 18px var(--c);
}

/* Quiénes somos */
.about { padding: clamp(100px, 16vw, 200px) 0 clamp(60px, 10vw, 120px); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 100px); align-items: start; }
.about__aside { position: sticky; top: 120px; }
.about__text {
  font-family: var(--font-display); font-weight: 600; font-stretch: 96%;
  font-size: clamp(1.5rem, 2.9vw, 2.6rem);
  line-height: 1.26; letter-spacing: -.01em;
}
/* Se ilumina palabra a palabra (JS añade .is-lit) */
.illum-w { opacity: .16; transition: opacity .35s linear, color .35s; }
.illum-w.is-lit { opacity: 1; }
.illum-w.is-key.is-lit { color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stats div { border-top: 1px solid var(--line-strong); padding-top: 12px; }
.stats dt { font-size: .78rem; color: var(--muted); }
.stats dd { font-family: var(--font-mono); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.2; color: var(--accent); }

/* Líneas que se dibujan con el scroll */
[data-draw] { fill: none; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 1); }
.divider { width: 100%; height: clamp(60px, 9vw, 120px); }
.divider path { stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .7; }

/* Imagen que se expande a pantalla completa (sección de 240vh) */
.expand { position: relative; height: 240vh; }
.expand__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.expand__media {
  position: absolute; inset: 0;
  /* Tarjeta redondeada → pantalla entera */
  clip-path: inset(calc((1 - var(--p)) * 22vh) calc((1 - var(--p)) * 26vw) round calc((1 - var(--p)) * 32px));
}
.expand__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.22 - .22 * var(--p))); }
.expand__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 11, 22, .2) 30%, rgba(6, 11, 22, .9)); opacity: var(--p); }
/* Esquinas de visor que se abren con la imagen */
.expand__hud span {
  position: absolute; width: 34px; height: 34px; border: 2px solid var(--accent); z-index: 1;
  --o: calc((1 - var(--p)) * 22vh + 24px); --ox: calc((1 - var(--p)) * 26vw + 24px);
}
.expand__hud span:nth-child(1) { top: var(--o); left: var(--ox); border-right: 0; border-bottom: 0; }
.expand__hud span:nth-child(2) { top: var(--o); right: var(--ox); border-left: 0; border-bottom: 0; }
.expand__hud span:nth-child(3) { bottom: var(--o); left: var(--ox); border-right: 0; border-top: 0; }
.expand__hud span:nth-child(4) { bottom: var(--o); right: var(--ox); border-left: 0; border-top: 0; }
.expand__caption {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 8vh, 90px);
  max-width: var(--maxw); margin-inline: auto;
  /* El titular aparece al final */
  opacity: clamp(0, calc((var(--p) - .72) * 4), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .72) * 4), 1)) * 40px));
}
.expand__title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 108%; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 6.4rem); line-height: .95; letter-spacing: -.02em; margin: .2em 0 .3em;
}
.expand__title em { font-style: normal; color: var(--accent); }
.expand__info { color: var(--muted); max-width: 52ch; }
.expand__title--long { font-size: clamp(1.7rem, 4.4vw, 4rem); line-height: 1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.expand__title--long em { display: block; margin-top: .25em; font-size: .62em; }
.expand__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.expand__actions .abtn { flex: none; padding-inline: 18px; }
.expand__hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  opacity: calc(1 - var(--p) * 3);
}

/* ---------- 7 · GALERÍA HORIZONTAL ---------- */
.hgallery { position: relative; padding-top: clamp(60px, 10vw, 120px); }
.hgallery__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.hgallery__meter { display: grid; gap: 10px; min-width: 160px; }
.hgallery__count { font-family: var(--font-mono); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.hgallery__count b { font-weight: 600; color: var(--accent); }
.hgallery__bar { display: block; height: 2px; background: var(--faint); overflow: hidden; border-radius: 2px; }
.hgallery__bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(var(--hg-p, 0)); transform-origin: left; }
.hgallery__track { display: flex; gap: clamp(18px, 2.4vw, 36px); padding: 0 var(--gutter) 40px; }
.city-card { flex: 0 0 auto; width: clamp(260px, 30vw, 440px); }
/* Tarjetas alternas desplazadas en altura */
.city-card:nth-child(even) { margin-top: clamp(30px, 6vw, 90px); }
.city-card figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); border: 1px solid var(--line); }
.city-card figure::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 62%, transparent 30%, rgba(6, 11, 22, .55)); pointer-events: none; }
.city-card__img { height: 112%; margin-top: -6%; }
.city-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.city-card:hover .city-card__img img { transform: scale(1.06); }
.city-card__body { display: grid; gap: 2px; padding-top: 16px; }
.city-card__n { font-family: var(--font-mono); font-size: .76rem; color: var(--accent); }
.city-card h3 { font-family: var(--font-display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; letter-spacing: .01em; }
.city-card p { color: var(--muted); font-size: .92rem; }
.city-card p b { color: var(--live); font-family: var(--font-mono); }

/* Modo escritorio fijado (JS pone .is-pinned y la altura) */
.hgallery.is-pinned { padding-top: 0; }
.hgallery.is-pinned .hgallery__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding-top: 64px; }
.hgallery.is-pinned .hgallery__head { margin-bottom: clamp(16px, 3vh, 36px); }
.hgallery.is-pinned .h2 { font-size: clamp(2rem, 6vh, 3.8rem); }
.hgallery.is-pinned .city-card { width: clamp(200px, calc((100vh - 480px) * .8), 400px); }
.hgallery.is-pinned .city-card:nth-child(even) { margin-top: clamp(20px, 6vh, 70px); }
.hgallery.is-pinned .hgallery__track { will-change: transform; }
/* Modo táctil: carrusel con scroll-snap */
.hgallery:not(.is-pinned) .hgallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hgallery:not(.is-pinned) .hgallery__viewport::-webkit-scrollbar { display: none; }
.hgallery:not(.is-pinned) .city-card { scroll-snap-align: center; width: min(78vw, 380px); }
.hgallery:not(.is-pinned) .hgallery__track { padding-right: 24vw; }

/* ---------- 8 · CÓMO FUNCIONA ---------- */
.how { padding: clamp(100px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.how__steps { position: relative; margin-top: clamp(40px, 6vw, 80px); }
.how__track { position: relative; height: 100px; margin-bottom: 28px; }
.how__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.how__line path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .55)); }
.how__line .how__line-bg { stroke: var(--faint); stroke-dasharray: 2 6; filter: none; }
.how__node {
  position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--faint);
  transition: border-color .4s, background-color .4s, box-shadow .6s var(--ease), transform .6s var(--ease);
}
.how__node.is-on { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 8px rgba(34, 211, 238, .14), 0 0 24px rgba(34, 211, 238, .6); transform: scale(1.15); }
.how ol { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.step { padding: 28px; border-radius: var(--radius); background: rgba(17, 26, 44, .78); border: 1px solid var(--line); }
.step:nth-child(2) { margin-top: 30px; }
.step:nth-child(3) { margin-top: -10px; }
.step__n { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 1rem; color: var(--accent); }
.step__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 16px 0 14px; border-radius: 50%; background: var(--accent-deep); border: 1px solid var(--line-strong); }
.step__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.15; margin-bottom: 8px; }
.step p { color: var(--muted); }
.step p b { color: var(--text); font-weight: 600; }

/* ---------- 9 · EVENTOS ---------- */
.events { padding: clamp(20px, 3vw, 40px) 0 clamp(100px, 14vw, 160px); }
.events__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.events__loc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--accent); font-weight: 700; letter-spacing: .02em; }
.events__loc span { font-family: var(--font-mono); }

/* Panel de filtros, como la cabecera de la app */
.filters {
  display: grid; gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  border-radius: var(--radius); background: rgba(11, 18, 34, .8); border: 1px solid var(--line);
  margin-bottom: 28px;
}
.filters__row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; min-width: 0; }
.filters__lbl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.filters__lbl svg { color: var(--accent); }
.chips, .whens, .seg-view { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.chips::-webkit-scrollbar, .whens::-webkit-scrollbar { display: none; }
.chips { margin-right: auto; gap: 8px; }
.chips button, .whens button, .seg-view button {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line);
  transition: color .3s, background-color .3s, border-color .3s;
}
.chips button i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.chips button:hover, .whens button:hover, .seg-view button:hover { color: var(--text); }
/* La pastilla activa reproduce el chip activo de la app */
.chips button[aria-selected="true"], .seg-view button[aria-selected="true"] { color: var(--text); font-weight: 700; background: transparent; border-color: transparent; }
.chips .pill, .seg-view .pill { background: var(--accent-deep); border: 1.5px solid var(--accent); box-shadow: 0 0 20px -6px rgba(34, 211, 238, .6); }
.whens { gap: 8px; }
.whens b { font-family: var(--font-mono); font-size: .8rem; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); font-weight: 500; }
.whens button[aria-selected="true"] { color: var(--text); font-weight: 700; background: transparent; border-color: transparent; }
.whens button[aria-selected="true"] b { color: var(--live); background: rgba(52, 211, 153, .16); }
.whens .pill { background: var(--live-deep); border: 1.5px solid var(--live); }
.seg-view { background: var(--surface-2); border-radius: 999px; padding: 4px; border: 1px solid var(--line); gap: 2px; }
.seg-view button { background: transparent; border-color: transparent; padding: 8px 16px; }

/* Radio */
.radius { flex-wrap: nowrap; }
.radius__val {
  min-width: 64px; text-align: center; padding: 6px 10px; border-radius: 10px;
  font-family: var(--font-mono); font-weight: 600; color: var(--accent);
  background: var(--accent-deep); border: 1px solid var(--line-strong);
}
.radius__track { flex: 1; min-width: 0; display: grid; gap: 4px; }
.radius input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0;
  --fill: 100%;
}
.radius input::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--fill), rgba(255, 255, 255, .14) var(--fill)); }
.radius input::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.radius input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.radius input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--bg); border: 5px solid var(--accent); box-shadow: 0 0 16px rgba(34, 211, 238, .6); }
.radius input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 5px solid var(--accent); box-shadow: 0 0 16px rgba(34, 211, 238, .6); }
.radius__ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); padding: 0 4px; }

/* Tarjeta en directo con escáner */
.live-card {
  display: grid; grid-template-columns: 1.3fr 1fr;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, .15), 0 30px 60px -30px rgba(0, 0, 0, .8);
  margin-bottom: 28px;
}
.live-card__media { position: relative; overflow: hidden; min-height: 280px; }
.live-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* El contenedor mide lo mismo que la imagen y se desplaza -100% → 0;
   la línea va pegada a su borde inferior, así barre de arriba abajo. */
.scanner { position: absolute; inset: 0; pointer-events: none; animation: scan 3.2s var(--ease-in-out) infinite alternate; }
.scanner::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(34, 211, 238, .75), 0 0 60px 20px rgba(34, 211, 238, .16);
}
.scanner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 90px; background: linear-gradient(0deg, rgba(34, 211, 238, .18), transparent); }
@keyframes scan { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.live-card__body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.live-card__status { display: flex; align-items: center; gap: 10px; color: #B6F2D6; font-weight: 700; font-size: .9rem; }
.live-card .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-card .row .dist { margin-left: auto; }
.live-card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.12; }
.live-card p { color: var(--muted); }
.live-card__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.live-card__actions .link-u { color: var(--accent); font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.card { perspective: 900px; }
.card[hidden] { display: none; }
/* Salida y entrada escalonada al filtrar */
.card.is-leaving { opacity: 0; transform: scale(.94) translateY(10px); transition: opacity .25s, transform .3s var(--ease); }
.card.is-entering { animation: card-in .7s var(--ease) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

.card__inner {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .5s, border-color .4s;
}
.card:hover .card__inner { box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .9); border-color: var(--line-strong); }
.card.is-tilting .card__inner { transition: transform .12s linear, box-shadow .5s, border-color .4s; }
.card__media { position: absolute; inset: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card__media img, .card.is-open .card__media img { transform: scale(1.08); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 11, 22, .55) 0%, transparent 30%, transparent 45%, rgba(6, 11, 22, .95) 100%); }
/* Brillo radial que sigue al cursor */
.card__inner::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(320px circle at var(--gx) var(--gy), rgba(34, 211, 238, .2), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.card:hover .card__inner::before { opacity: 1; }
/* Reflejo de luz que cruza la imagen */
.card__inner::after {
  content: ""; position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .14) 50%, transparent 60%);
  transform: translateX(-80%);
}
.card:hover .card__inner::after { transform: translateX(80%); transition: transform 1.1s var(--ease); }
.card__top { position: absolute; top: 16px; left: 16px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.card__top .cat { text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.fav {
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .3s, transform .3s var(--ease);
}
.fav svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linejoin: round; transition: fill .3s, stroke .3s; }
.fav:hover { transform: scale(1.08); }
.fav[aria-pressed="true"] svg { fill: var(--accent); stroke: var(--accent); }
.card__title {
  position: absolute; left: 20px; right: 72px; bottom: 20px; z-index: 3;
  display: grid; gap: 4px;
  transition: transform .6s var(--ease), opacity .4s;
}
.card__title h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; }
.card__plus {
  position: absolute; right: 16px; bottom: 16px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 24px -6px rgba(34, 211, 238, .6);
  transition: transform .5s var(--ease);
}
/* El "+" gira 45° */
.card:hover .card__plus, .card.is-open .card__plus { transform: rotate(45deg); }
/* Panel de cristal que sube con el detalle */
.card__panel {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4;
  padding: 18px 18px 72px;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(10, 17, 31, .7); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transform: translateY(calc(100% + 12px));
  transition: transform .6s var(--ease);
  visibility: hidden;
}
.card:hover .card__panel, .card.is-open .card__panel, .card:focus-within .card__panel { transform: none; visibility: visible; }
.card:hover .card__title, .card.is-open .card__title, .card:focus-within .card__title { transform: translateY(-190px); opacity: 0; }
.card__panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.card__panel dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.card__panel dd { font-weight: 700; }
.card__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
/* Botones de acción como en la lista de la app */
.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  flex: 1 1 auto; padding: 9px 12px; border-radius: 10px;
  font-size: .86rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: var(--text); background: rgba(23, 34, 58, .8); border: 1px solid var(--line-strong);
  transition: background-color .3s, border-color .3s;
}
.abtn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.abtn--nav { color: var(--live); border-color: rgba(52, 211, 153, .5); }
.abtn--nav svg { fill: currentColor; stroke: none; }
.abtn:hover { background: var(--surface-2); border-color: var(--accent); }
.cards__empty { color: var(--muted); padding: 40px 0; }

/* Vista radar */
.view[hidden] { display: none; }
.radar {
  position: relative; display: grid; place-items: center;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 5vw, 56px);
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0E1830, var(--bg) 75%);
  border: 1px solid var(--line);
}
.radar__disc { position: relative; width: min(100%, 560px); aspect-ratio: 1; border-radius: 50%; background: #08101F; }
.radar__grid { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.radar__grid circle, .radar__grid path { fill: none; stroke: rgba(125, 211, 252, .14); stroke-width: .5; stroke-dasharray: 2 2; }
.radar__grid .outer { stroke: var(--accent); stroke-opacity: .7; stroke-width: 1.4; stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(34, 211, 238, .6)); }
.radar__grid path { stroke-dasharray: none; stroke: rgba(125, 211, 252, .18); }
.radar__grid .diag { stroke: rgba(125, 211, 252, .07); }
.radar__km { position: absolute; left: 51%; top: calc(50% - var(--r) / 2); font-family: var(--font-mono); font-size: .7rem; color: var(--muted); transform: translateY(-50%); opacity: .8; pointer-events: none; }
.radar__card { position: absolute; font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.radar__card--n { top: 10px; left: 50%; transform: translateX(-50%); color: var(--accent); font-weight: 600; }
.radar__card--s { bottom: 10px; left: 50%; transform: translateX(-50%); }
.radar__card--e { right: 12px; top: 50%; transform: translateY(-50%); }
.radar__card--w { left: 12px; top: 50%; transform: translateY(-50%); }
.radar__sweep {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, .32), rgba(34, 211, 238, .06) 14%, transparent 20%);
  animation: spin 5s linear infinite;
}
.radar__sweep::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 50%; margin-left: -1px; background: linear-gradient(0deg, transparent, var(--accent)); box-shadow: 0 0 10px var(--accent); }
.radar__dots i { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--c); opacity: .35; }
.radar__me { position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(34, 211, 238, .5), 0 0 22px var(--accent); }
.radar__pins li {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease), left .6s var(--ease), top .6s var(--ease);
  transition-delay: calc(var(--i) * 70ms);
}
.radar.is-loaded .radar__pins li { opacity: 1; transform: translate(-50%, -50%); }
.radar__pins li[hidden] { display: none; }
.radar__pin { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; }
.radar__pin::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 14px var(--pin); }
/* Halo como el de los puntos destacados de la app */
.radar__pin::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; border: 2px solid var(--pin); opacity: .55; animation: pin-ring 2.4s ease-out infinite; animation-delay: calc(var(--i) * -.3s); }
@keyframes pin-ring { from { transform: scale(.6); opacity: .8; } to { transform: scale(1.5); opacity: 0; } }
.radar__pin span {
  position: absolute; left: 50%; bottom: calc(100% + 2px); transform: translate(-50%, 4px);
  padding: 2px 8px; border-radius: 6px; white-space: nowrap;
  font-size: .78rem; font-weight: 700; color: #111; background: var(--pin);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
}
.radar__pin:hover span, .radar__pin:focus-visible span { opacity: 1; transform: translate(-50%, 0); }
.radar__pin:hover, .radar__pin:focus-visible { z-index: 3; }
.radar__hint { margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm); background: rgba(11, 18, 34, .8); border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
/* Shimmer mientras carga */
.map__shimmer {
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(100deg, transparent 20%, rgba(232, 239, 248, .06) 40%, rgba(34, 211, 238, .14) 50%, rgba(232, 239, 248, .06) 60%, transparent 80%) #0B1222;
  background-size: 250% 100%;
  animation: shimmer 1.4s linear infinite;
  transition: opacity .6s;
}
.radar.is-loaded .map__shimmer { opacity: 0; pointer-events: none; }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.map__status { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); color: var(--muted); font-size: .9rem; }
.radar.is-loaded .map__status { width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- 10 · CTA Y FOOTER ---------- */
.cta { position: relative; padding: clamp(120px, 16vw, 220px) 0; text-align: center; overflow: hidden; }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 20px; }
.cta__rings { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: -1; }
.cta__rings span {
  position: absolute; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .4);
  animation: ring 6s linear infinite;
}
.cta__rings span:nth-child(2) { animation-delay: -2s; }
.cta__rings span:nth-child(3) { animation-delay: -4s; }
@keyframes ring { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.cta__title {
  font-family: var(--font-display); font-weight: 900; font-stretch: 104%; text-transform: uppercase;
  font-size: clamp(2.4rem, 7vw, 6.2rem); line-height: .96; letter-spacing: -.02em; max-width: 13ch; text-wrap: balance;
}
.cta__lede { color: var(--muted); max-width: 46ch; font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 16px; }

.footer { border-top: 1px solid var(--line); padding: 70px 0 110px; }
.footer__logo { font-size: clamp(1.1rem, 6.6vw, 6rem); line-height: 1; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px 0; }
.footer h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.footer li + li { margin-top: 6px; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); padding-top: 24px; }
.footer__base span:last-child { font-family: var(--font-mono); }

/* ---------- 11 · WHATSAPP Y AVISOS ---------- */
.wa { position: fixed; right: 20px; bottom: 20px; z-index: 130; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa__btn {
  position: relative; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #08140D;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .55);
  transition: transform .4s var(--ease);
}
.wa__btn:hover { transform: scale(1.08); }
.wa__btn svg { width: 30px; height: 30px; fill: currentColor; position: relative; }
.wa__wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: wa-wave 2.4s ease-out infinite; }
@keyframes wa-wave { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
/* Etiqueta al hover */
.wa__label {
  position: absolute; right: 72px; bottom: 16px;
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; white-space: nowrap;
  background: var(--text); color: var(--bg);
  opacity: 0; transform: translateX(10px); pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease);
}
.wa:hover .wa__label, .wa__btn:focus-visible + .wa__label { opacity: 1; transform: none; }
/* Bocadillo de aviso */
.wa__bubble {
  position: relative; max-width: 240px;
  padding: 14px 40px 14px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--text); color: var(--bg); font-weight: 700;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .6);
  animation: bubble-in .6s var(--ease) both;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(12px) scale(.9); } }
.wa__close { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 50%; font-size: 1.2rem; color: var(--bg); }
.wa__close:hover { background: rgba(0, 0, 0, .08); }

.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 140; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 999px;
  background: rgba(17, 26, 44, .95); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, .7);
  animation: toast-in .5s var(--ease) both;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.toast.is-out { animation: toast-out .4s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.95); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }


/* ---------- MODO CIUDAD (botón del menú + panel) ---------- */
.city { position: relative; }
.city__btn {
  display: inline-flex; align-items: center; gap: 7px; max-width: 15em;
  padding: 7px 12px 7px 10px; border-radius: 10px;
  font-family: var(--font-display); font-stretch: 110%; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-deep); border: 1px solid var(--accent);
  transition: background-color .3s, box-shadow .3s;
}
.city__btn:hover, .city__btn[aria-expanded="true"] { box-shadow: 0 0 22px -6px rgba(34, 211, 238, .7); }
.city__btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; }
.city__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.city__caret { font-size: .7em; transition: transform .3s var(--ease); }
.city__btn[aria-expanded="true"] .city__caret { transform: rotate(180deg); }
.city__pop {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 5;
  width: min(320px, calc(100vw - 32px));
  display: grid; gap: 10px;
  padding: 18px; border-radius: var(--radius-sm);
  background: rgba(11, 18, 34, .96); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9);
  animation: pop-in .35s var(--ease) both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } }
.city__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.city__status { font-size: .92rem; line-height: 1.45; }
.city__locate {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: .92rem;
  color: var(--live); border: 1px solid rgba(52, 211, 153, .5); background: var(--live-deep);
}
.city__locate:hover { border-color: var(--live); }
.city__locate:disabled { opacity: .6; cursor: progress; }
.city__locate svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.city__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.city__pop select {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
.city__note { font-size: .76rem; line-height: 1.45; color: var(--muted); }
.events__change { margin-left: 2px; font-size: .85rem; color: var(--muted); font-weight: 500; }
/* Tarjeta de la galería de la ciudad detectada */
.city-card.is-here figure { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px -10px rgba(34, 211, 238, .6); }
.city-card__here {
  position: absolute; z-index: 2; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--text); background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (max-width: 560px) {
  .live-badge { display: none; }
  .city__btn { max-width: 8.6em; padding: 7px 9px; font-size: .7rem; }
  .nav { gap: 10px; }
  .nav__logo { font-size: .98rem; min-width: 0; }
  .city__pop { right: -54px; }
}

/* ---------- AGENDA REAL ---------- */
/* Mientras llegan los eventos reales, las tarjetas de ejemplo se ven apagadas */
.cards.is-loading .card { opacity: .28; filter: saturate(.3) blur(2px); pointer-events: none; transition: opacity .4s, filter .4s; }
.events__src { margin-top: 18px; font-size: .84rem; color: var(--muted); max-width: 80ch; }
.card__venue { margin-top: 10px; font-size: .86rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__src { margin-top: 10px; font-size: .72rem; color: var(--muted); }
.card__title h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.abtn--info { color: var(--accent); border-color: rgba(34, 211, 238, .5); }
/* Gancho de descarga: lo que no cabe está en la app */
.cards__more {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 28px;
  margin-top: clamp(20px, 3vw, 32px); padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 0% 0%, rgba(34, 211, 238, .18), transparent 55%), var(--surface);
  border: 1px solid var(--line-strong);
}
.cards__more-num { font-family: var(--font-display); font-weight: 900; font-stretch: 112%; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.cards__more-num span { font-weight: 500; opacity: .7; }
.cards__more-text { font-size: 1.05rem; color: var(--muted); }
.cards__more-text strong { color: var(--text); }
@media (max-width: 760px) { .cards__more { grid-template-columns: auto 1fr; } .cards__more .btn { grid-column: 1 / -1; } }

/* ---------- INTERRUPTOR DE ANIMACIONES ---------- */
.motion-toggle { font-size: .88rem; color: var(--muted); padding: 2px 0; }

/* Selector de idioma: ES · GL · PT · CA · EU */
.lang { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.lang__btn {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  min-width: 34px; padding: 6px 7px; border-radius: 999px; line-height: 1;
  color: var(--muted); border: 1px solid var(--line); background: transparent;
  transition: color .2s, border-color .2s, background-color .2s;
}
.lang__btn:hover { color: var(--text); border-color: var(--accent); }
.lang__btn[aria-pressed="true"] { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.lang--nav { padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); gap: 2px; }
.lang--nav .lang__btn { border-color: transparent; min-width: 30px; padding: 6px 5px; }
.lang--nav .lang__btn[aria-pressed="true"] { border-color: var(--accent); }
.mobile-menu .lang__btn { font-size: .85rem; padding: 9px 11px; min-width: 44px; }
.motion-toggle b { color: var(--accent); font-weight: 700; }
.motion-toggle:hover b { text-decoration: underline; }
.motion-note {
  position: fixed; left: 20px; bottom: 20px; z-index: 135;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: min(520px, calc(100vw - 110px));
  padding: 14px 44px 14px 16px; border-radius: var(--radius-sm);
  background: rgba(11, 18, 34, .96); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
}
.motion-note p { flex: 1 1 220px; font-size: .9rem; line-height: 1.45; }
.motion-note__icon { width: 10px; height: 10px; border-radius: 50%; background: var(--c-teatro); flex: none; box-shadow: 0 0 10px var(--c-teatro); }
.motion-note__close { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border-radius: 50%; font-size: 1.2rem; color: var(--muted); }
.motion-note__close:hover { color: var(--text); background: rgba(255, 255, 255, .06); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav__links, .nav__cta, .lang--nav { display: none; }
  .burger { display: block; }
  .essentials__list { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .seal { right: -30px; }
}
@media (max-width: 860px) {
  .hero { padding-top: 100px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(76%, 320px); margin-top: 10px; }
  .tag__in { font-size: .76rem; padding: 7px 11px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__aside { position: static; }
  .how ol { grid-template-columns: 1fr; }
  .step:nth-child(n) { margin-top: 0; }
  .how__track { display: none; }
  .live-card { grid-template-columns: 1fr; }
  .live-card__media { min-height: 220px; aspect-ratio: 16 / 10; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .expand__media { clip-path: inset(calc((1 - var(--p)) * 24vh) calc((1 - var(--p)) * 10vw) round calc((1 - var(--p)) * 24px)); }
  .expand__hud span { --ox: calc((1 - var(--p)) * 10vw + 16px); --o: calc((1 - var(--p)) * 24vh + 16px); }
}
@media (max-width: 560px) {
  .nav__logo small, .live-badge span:last-child { display: none; }
  .essentials__list { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .stats { gap: 10px; }
  .wa { right: 14px; bottom: 14px; }
  .tag { --x: auto !important; }
  .tag:nth-child(1) { left: -12%; }
  .tag:nth-child(2) { left: 50%; }
  .tag:nth-child(3) { left: -14%; }
  .tag:nth-child(4) { left: 46%; }
  .radius { flex-wrap: wrap; }
  .radius__track { flex-basis: 100%; }
  .radar { padding-inline: 22px; }
}
/* En pantallas táctiles el panel de la tarjeta solo se abre con "+" */
@media (hover: none) {
  .card:hover .card__panel { transform: translateY(calc(100% + 12px)); visibility: hidden; }
  .card:hover .card__title { transform: none; opacity: 1; }
  .card:hover .card__plus { transform: none; }
  .card.is-open .card__panel { transform: none; visibility: visible; }
  .card.is-open .card__title { transform: translateY(-190px); opacity: 0; }
  .card.is-open .card__plus { transform: rotate(45deg); }
  .radar__pin span { opacity: 1; transform: translate(-50%, 0); font-size: .68rem; }
}

/* ---------- 12 · MOVIMIENTO REDUCIDO ----------
   Con prefers-reduced-motion (o ?motion=off) todo queda visible y quieto:
   sin intro, sin canvas, sin parallax, sin split y sin autoanimaciones. */
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
  transition-delay: 0ms !important;
  scroll-behavior: auto !important;
}
.reduced-motion .hero__canvas { display: none; }
.reduced-motion [data-reveal], .reduced-motion .line > span, .reduced-motion .split-w > span,
.reduced-motion .tag, .reduced-motion .essentials__list li, .reduced-motion .hero__lede,
.reduced-motion .hero__ctas, .reduced-motion .hero__eyebrow, .reduced-motion .seal { opacity: 1 !important; transform: none !important; }
.reduced-motion .phone__screen { clip-path: none; }
.reduced-motion .app { transform: none; }
.reduced-motion [data-speed] { transform: none !important; }
.reduced-motion .illum-w { opacity: 1; }
.reduced-motion [data-draw] { stroke-dashoffset: 0; }
.reduced-motion .how__node { border-color: var(--accent); background: var(--accent); }
.reduced-motion .expand { height: auto; --p: 1; }
.reduced-motion .expand__sticky { position: relative; height: 80vh; }
.reduced-motion .marquee__track { transform: none !important; flex-wrap: wrap; }
.reduced-motion .marquee__track span + span { display: none; }
.reduced-motion .scanner, .reduced-motion .live-dot::after, .reduced-motion .wa__wave, .reduced-motion .cta__rings,
.reduced-motion .radar__sweep, .reduced-motion .radar__pin::after, .reduced-motion .scroll-cue__line::before, .reduced-motion .scroll-cue__line::after { display: none; }
.reduced-motion .tag__in, .reduced-motion .seal__spin, .reduced-motion .seal__hand { animation: none; }
.reduced-motion .card__inner { transform: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
