/* Radio Ruta · La Hora Pico */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/barlow-condensed-latin-800-italic.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }

:root {
  --noche: #000;
  --asfalto: #16171a;
  --asfalto-2: #222327;
  --ambar: #F5B400;
  --linea: #F4F4F0;
  --gris: #9a9ca3;
  --freno: #E5322D;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --texto: "Barlow", system-ui, sans-serif;
  --ancho: 1180px;
  --scroll: 0;          /* lo actualiza app.js */
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--noche); color: var(--linea); font-family: var(--texto); font-size: 1.125rem; line-height: 1.6; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 4px; }
.ancho { width: min(var(--ancho), 100% - 2.5rem); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 0; z-index: 99; background: var(--ambar); color: #000; padding: .6rem 1rem; }
.saltar:focus { left: 1rem; }

/* ---------- barra ---------- */
.barra { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: max(1rem, env(safe-area-inset-top)) clamp(1.25rem, 4vw, 3rem) 1rem; transition: background .3s, backdrop-filter .3s; }
.barra.solida { background: rgba(0,0,0,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.marca { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 1.6rem; letter-spacing: .01em; text-decoration: none; line-height: 1; }
.marca span { color: var(--ambar); }
.barra nav { display: flex; gap: clamp(1rem, 3vw, 2.2rem); }
.barra nav a { text-decoration: none; font-weight: 500; font-size: 1rem; color: var(--gris); transition: color .2s; }
.barra nav a:hover { color: var(--linea); }
@media (max-width: 640px) { .barra nav a:not(:first-child) { display: none; } }

/* ---------- portada ---------- */
.portada { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; display: grid; align-items: center; }
.escena, .escena > * { position: absolute; inset: 0; }
.cielo { background: radial-gradient(120% 70% at 50% 62%, #1d1a10 0%, #07070a 45%, #000 75%); }
.estrellas { background-image:
    radial-gradient(1px 1px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 27% 9%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 22%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 25%, #fff5 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 8%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 32%, #fff4 50%, transparent 51%), radial-gradient(1px 1px at 55% 4%, #fff6 50%, transparent 51%);
  transform: translateY(calc(var(--scroll) * .05px)); }
.ciudad { top: auto; bottom: 38%; height: 34%; width: 100%; transform: translateY(calc(var(--scroll) * .18px)); opacity: .95; }
.ciudad .edif { fill: #0c0c0f; }
.ciudad .ven { fill: var(--ambar); }
.horizonte { top: auto; bottom: 36%; height: 14%; background: radial-gradient(50% 100% at 50% 100%, rgba(245,180,0,.28), transparent 70%);
  transform: translateY(calc(var(--scroll) * .2px)); }
.camino { width: 100%; height: 100%; }
.faros { background: radial-gradient(60% 45% at 50% 105%, rgba(255,236,190,.20), transparent 70%); opacity: 0; animation: faros 1.6s .3s ease-out forwards; }
@keyframes faros { to { opacity: 1; } }

.portada-texto { position: relative; z-index: 2; padding: 0 clamp(1.25rem, 6vw, 6rem); max-width: 960px; transform: translateY(calc(var(--scroll) * -.25px)); opacity: calc(1 - var(--scroll) / 700); }
.frecuencia { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; color: var(--gris); font-size: 1rem; }
.punto { width: .6rem; height: .6rem; border-radius: 50%; background: var(--freno); box-shadow: 0 0 12px var(--freno); animation: latido 2s infinite; }
@keyframes latido { 50% { opacity: .35; } }
.rotulo { font-family: var(--cond); font-weight: 800; font-style: italic; line-height: .82; letter-spacing: -.01em; font-size: clamp(5.2rem, 17vw, 14rem);
  margin: .2em 0 .25em -.04em; display: flex; flex-wrap: wrap; column-gap: .18em; text-transform: uppercase; }
.rotulo span { display: inline-block; opacity: 0; transform: translateX(-.4em) skewX(-6deg); filter: blur(8px); animation: rotulo .9s cubic-bezier(.2,.8,.2,1) forwards; }
.rotulo .r1 { animation-delay: .5s; }
.rotulo .r2 { color: var(--ambar); animation-delay: .7s; text-shadow: 0 0 40px rgba(245,180,0,.35); }
@keyframes rotulo { to { opacity: 1; transform: none; filter: none; } }
.bajada { max-width: 34rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #d9dadd; opacity: 0; animation: aparece .8s 1.1s forwards; }
.acciones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; opacity: 0; animation: aparece .8s 1.3s forwards; }
@keyframes aparece { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bajar { position: absolute; z-index: 2; bottom: 1.6rem; left: 50%; width: 2px; height: 56px; margin-left: -1px; background: rgba(255,255,255,.15); overflow: hidden; }
.bajar span { position: absolute; inset: 0 0 auto; height: 40%; background: var(--ambar); animation: bajar 1.8s infinite cubic-bezier(.6,0,.4,1); }
@keyframes bajar { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: 0 1.5rem; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 1.05rem; text-decoration: none; transition: transform .15s, background .2s, color .2s; }
.boton:active { transform: scale(.97); }
.boton svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.boton-ambar { background: var(--ambar); color: #000; }
.boton-ambar:hover { background: #ffc61f; }
.boton-linea { background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--linea); box-shadow: inset 0 0 0 2px rgba(255,255,255,.28); }
.boton-linea:hover { box-shadow: inset 0 0 0 2px var(--linea); }

/* ---------- por qué ---------- */
.porque { padding: clamp(6rem, 14vw, 11rem) 0; background: linear-gradient(#000, var(--asfalto)); }
.grande { font-family: var(--cond); font-weight: 800; font-size: clamp(2.6rem, 6.2vw, 5.4rem); line-height: .98; max-width: 15ch; text-wrap: balance; }
.porque-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem 3rem; margin-top: 3rem; max-width: 900px; margin-left: auto; color: #c9cbd0; }
.porque-col strong { color: var(--linea); }
[data-revela] { --p: 0; background: linear-gradient(90deg, var(--linea) calc(var(--p) * 100%), #3a3b40 calc(var(--p) * 100%)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- títulos ---------- */
.titulo-seccion { font-family: var(--cond); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; margin-bottom: 2.5rem; text-wrap: balance; }

/* ---------- cabina ---------- */
.cabina { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--asfalto); }
.personajes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; }
.personaje { position: relative; padding: 2rem 1.75rem 2rem; border-radius: 28px; background: var(--asfalto-2); overflow: hidden;
  transform: translateY(calc(var(--py, 0) * 1px)); border-top: 6px solid var(--c); }
.disco { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #000;
  font-family: var(--cond); font-weight: 800; font-size: 2.4rem; margin-bottom: 1.4rem; box-shadow: 0 0 0 8px rgba(255,255,255,.04); }
.personaje h3 { font-family: var(--cond); font-weight: 800; font-size: 2rem; line-height: 1.05; }
.quien { color: var(--gris); margin-top: .4rem; }
.personaje blockquote { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: 1.15rem; font-weight: 500; color: var(--c); }
.aviso-ia { margin-top: 2rem; font-size: .98rem; color: var(--gris); max-width: 46rem; }

/* ---------- capítulos: dial ---------- */
.capitulos { position: relative; height: 340vh; background: linear-gradient(var(--asfalto), #000 30%); }
.dial-fijo { position: sticky; top: 0; height: 100svh; display: grid; align-items: center; padding-top: 4rem; }
.radio { position: relative; background: linear-gradient(180deg, #1b1c20, #0f1013); border-radius: 26px; padding: 1.6rem clamp(1rem, 3vw, 2rem) 1.2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 80px rgba(0,0,0,.6); }
.lectura { font-family: var(--cond); font-weight: 600; font-size: 1.2rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.lectura span { font-weight: 800; font-size: 2.6rem; color: var(--ambar); text-shadow: 0 0 18px rgba(245,180,0,.45); margin-right: .2rem; }
.banda { position: relative; height: 70px; margin-top: .6rem; border-radius: 10px; background: #08090b; overflow: hidden; }
.marcas { position: absolute; inset: 0; background:
  repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 1px, transparent 1px 10%) 0 100% / 100% 45% no-repeat,
  repeating-linear-gradient(90deg, rgba(255,255,255,.14) 0 1px, transparent 1px 2%) 0 100% / 100% 22% no-repeat; }
.aguja { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; margin-left: -1.5px; background: var(--freno); box-shadow: 0 0 14px var(--freno);
  transform: translateX(calc(var(--aguja, 0) * 1px)); }
.estaciones { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; margin-top: .8rem; }
.estaciones button { width: 100%; background: none; border: 0; color: var(--gris); padding: .5rem .2rem; border-radius: 10px; font-family: var(--cond); font-weight: 600; font-size: 1.05rem; line-height: 1.15; transition: color .25s, background .25s; }
.estaciones button b { display: block; font-weight: 800; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.estaciones button[aria-current="true"] { color: var(--linea); background: rgba(245,180,0,.1); }
.estaciones button[aria-current="true"] b { color: var(--ambar); }
.ficha { margin-top: 2rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: end; min-height: 11rem; }
.ficha h3 { font-family: var(--cond); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1; }
.ficha p { color: #c9cbd0; max-width: 40rem; margin-top: .6rem; }
.ficha .meta { color: var(--gris); font-size: .98rem; }
.ficha > * { animation: sintoniza .45s cubic-bezier(.2,.8,.2,1); }
@keyframes sintoniza { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
@media (max-width: 720px) {
  .ficha { grid-template-columns: 1fr; }
  .estaciones button span { display: none; }
}

/* ---------- secciones: letreros ---------- */
.secciones { padding: clamp(5rem, 10vw, 8rem) 0; background: #000; }
.letreros { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 3rem 1.5rem; }
.letreros li { transform: translateY(calc(var(--py, 0) * 1px)); }
.rombo { width: 112px; height: 112px; margin: 18px 0 2rem 18px; background: var(--ambar); transform: rotate(45deg); border-radius: 14px; display: grid; place-items: center;
  box-shadow: 0 0 0 5px #000, 0 0 0 8px var(--ambar); }
.rombo svg { width: 54px; height: 54px; fill: #000; transform: rotate(-45deg); }
.letreros h3 { font-family: var(--cond); font-weight: 800; font-size: 1.7rem; line-height: 1.05; }
.letreros p { color: var(--gris); margin-top: .4rem; font-size: 1.02rem; }

/* ---------- regla ---------- */
.regla { background: var(--ambar); color: #000; padding: 0 0 clamp(4rem, 8vw, 6rem); overflow: hidden; }
.regla-cinta { white-space: nowrap; font-family: var(--cond); font-weight: 800; font-style: italic; font-size: 1.3rem; padding: .7rem 0; border-bottom: 3px solid #000; margin-bottom: clamp(3rem, 7vw, 5rem); }
.regla-cinta span { display: inline-block; will-change: transform; }
.regla h2 { font-family: var(--cond); font-weight: 800; font-style: italic; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .95; text-transform: uppercase; padding-top: .08em; }
.regla p { margin-top: 1.5rem; font-size: 1.25rem; font-weight: 500; max-width: 36rem; }

/* ---------- historia ---------- */
.historia { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--asfalto); }
.historia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 2rem 4rem; align-items: end; }
.historia p { color: #c9cbd0; max-width: 34rem; }
.historia-acciones { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }

/* ---------- pie ---------- */
.pie { padding: 3rem 0 calc(7rem + env(safe-area-inset-bottom)); color: var(--gris); font-size: .95rem; }
.pie .ancho { display: grid; gap: .4rem; }
.pie .marca { font-size: 2.4rem; color: var(--linea); margin-bottom: .4rem; }

/* ---------- reproductor ---------- */
.reproductor { position: fixed; z-index: 50; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); width: min(640px, calc(100% - 1.5rem));
  display: flex; align-items: center; gap: .9rem; padding: .65rem .9rem .65rem .65rem; border-radius: 22px;
  background: rgba(22,23,26,.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.07);
  transform: translateX(-50%); animation: sube .4s cubic-bezier(.2,.8,.2,1); }
.reproductor[hidden] { display: none; }
@keyframes sube { from { transform: translate(-50%, 120%); } }
.rep-boton { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ambar); display: grid; place-items: center; }
.rep-boton svg { width: 24px; height: 24px; fill: #000; }
.reproductor .i-play, .reproductor.pausado .i-pausa { display: none; }
.reproductor.pausado .i-play { display: block; }
.rep-info { flex: 1; min-width: 0; }
.rep-titulo { font-weight: 600; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rep-barra { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.rep-barra input { flex: 1; accent-color: var(--ambar); height: 24px; }
.al-aire { flex: none; font-size: .72rem; font-weight: 600; color: #fff; background: var(--freno); padding: .2rem .55rem; border-radius: 99px; }
.reproductor.pausado .al-aire { background: #44454a; }
.rep-cerrar { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--gris); font-size: 1.5rem; line-height: 1; }
.rep-cerrar:hover { color: var(--linea); }
@media (max-width: 480px) { .al-aire { display: none; } }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .estrellas, .ciudad, .horizonte, .portada-texto, .personaje, .letreros li { transform: none !important; }
  .portada-texto { opacity: 1 !important; }
  .rotulo span, .bajada, .acciones { opacity: 1; filter: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- ajustes de legibilidad sobre la carretera ---------- */
.bajada, .frecuencia { text-shadow: 0 1px 2px #000, 0 2px 18px #000, 0 0 40px rgba(0,0,0,.9); }
@media (max-width: 640px) {
  .portada { align-items: start; }
  .portada-texto { padding-top: 6.5rem; }
  .rotulo { flex-direction: column; font-size: 31vw; margin-top: .15em; }
  .bajada { font-size: 1.05rem; }
  .acciones .boton { flex: 1 1 100%; justify-content: center; }
}

.p-chuy { --c: #F5B400; } .p-lupita { --c: #FB7185; } .p-chato { --c: #38BDF8; }
