/* =========================================================================
   Radio Alma Digital — sistema visual
   Monocromo estricto (blanco y negro), geometría ortogonal (radio 0),
   tipografía del sistema (SF en Apple, Inter en el resto) y movimiento
   con resortes (curvas linear() generadas del modelo físico de Apple).
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Tipografía: SF en dispositivos Apple; Inter (autoalojada) en el resto. */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Escala tipográfica (rem sobre 17 px, como Body de Apple) */
  --t-display: clamp(3rem, 1.6rem + 6.2vw, 7.4rem);
  --t-hero: clamp(2.7rem, 1.5rem + 5vw, 6.2rem);
  --t-h2: clamp(1.95rem, 1.35rem + 2.3vw, 3.4rem);
  --t-h3: 1.1765rem;
  --t-lead: clamp(1.0588rem, .95rem + .45vw, 1.4118rem);
  --t-body: 1rem;
  --t-callout: .9412rem;
  --t-sub: .8824rem;
  --t-foot: .7647rem;
  --t-cap: .7059rem;
  --t-cap2: .6471rem;

  /* Espaciado (base 4 px) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px;
  --gutter: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --section: clamp(72px, 3rem + 7vw, 152px);

  /* Alturas de la interfaz fija */
  --header-h: 56px;
  --player-h: 64px;
  --tab-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --dock-h: calc(var(--player-h) + var(--tab-h) + var(--safe-b));

  /* Superficies */
  --raised: #121212;            /* dock: negro elevado, se separa del negro puro sin bordes */

  /* motor:tokens · Movimiento. Se regeneran al construir desde js/motor/reglas.js (nodo central). */
  --ease-smooth: linear(0, 0.0229, 0.0789, 0.1533, 0.2362, 0.3209, 0.4031, 0.4803, 0.5511, 0.6147, 0.6712, 0.7208, 0.7639, 0.8011, 0.833, 0.8602, 0.8833, 0.9028, 0.9192, 0.933, 0.9445, 0.9542, 0.9622, 0.9688, 0.9744, 0.9789, 0.9827, 0.9858, 0.9884, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  --dur-smooth: 735ms;
  --ease-snappy: linear(0, 0.0212, 0.0748, 0.1486, 0.2335, 0.3225, 0.4109, 0.4953, 0.5736, 0.6446, 0.7076, 0.7628, 0.8102, 0.8505, 0.8842, 0.9121, 0.9348, 0.953, 0.9675, 0.9787, 0.9873, 0.9938, 0.9984, 1.0017, 1.0039, 1.0053, 1.006, 1.0063, 1.0062, 1.0059, 1.0055, 1.0049, 1.0044, 1.0038, 1.0033, 1.0028, 1.0023, 1.0019, 1.0016, 1.0013, 1);
  --dur-snappy: 697ms;
  --ease-bouncy: linear(0, 0.0293, 0.1034, 0.2047, 0.3193, 0.4368, 0.55, 0.6538, 0.7453, 0.8232, 0.8874, 0.9383, 0.9773, 1.0057, 1.0252, 1.0375, 1.0439, 1.046, 1.0449, 1.0416, 1.0371, 1.0318, 1.0264, 1.0212, 1.0164, 1.0121, 1.0084, 1.0054, 1.003, 1.0012, 0.9998, 0.9989, 0.9983, 0.998, 0.9979, 0.9979, 0.9981, 0.9983, 0.9985, 0.9988, 1);
  --dur-bouncy: 819ms;
  --ease-micro: linear(0, 0.0229, 0.0789, 0.1533, 0.2362, 0.3209, 0.4031, 0.4803, 0.5511, 0.6147, 0.6712, 0.7208, 0.7639, 0.8011, 0.833, 0.8602, 0.8833, 0.9028, 0.9192, 0.933, 0.9445, 0.9542, 0.9622, 0.9688, 0.9744, 0.9789, 0.9827, 0.9858, 0.9884, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  --dur-micro: 441ms;
  --ease-micro-snappy: linear(0, 0.0212, 0.075, 0.1491, 0.2342, 0.3234, 0.4119, 0.4964, 0.5747, 0.6457, 0.7088, 0.7638, 0.8112, 0.8514, 0.885, 0.9128, 0.9354, 0.9535, 0.9679, 0.9791, 0.9876, 0.994, 0.9986, 1.0019, 1.004, 1.0053, 1.006, 1.0063, 1.0062, 1.0059, 1.0054, 1.0049, 1.0044, 1.0038, 1.0033, 1.0028, 1.0023, 1.0019, 1.0015, 1.0012, 1);
  --dur-micro-snappy: 419ms;
  --ease-large: linear(0, 0.0229, 0.0789, 0.1533, 0.2362, 0.3209, 0.4031, 0.4803, 0.5511, 0.6147, 0.6712, 0.7208, 0.7639, 0.8011, 0.833, 0.8602, 0.8833, 0.9028, 0.9192, 0.933, 0.9445, 0.9542, 0.9622, 0.9688, 0.9744, 0.9789, 0.9827, 0.9858, 0.9884, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  --dur-large: 882ms;
  --ease-fast: linear(0, 0.0229, 0.0789, 0.1533, 0.2362, 0.3209, 0.4031, 0.4803, 0.5511, 0.6147, 0.6712, 0.7208, 0.7639, 0.8011, 0.833, 0.8602, 0.8833, 0.9028, 0.9192, 0.933, 0.9445, 0.9542, 0.9622, 0.9688, 0.9744, 0.9789, 0.9827, 0.9858, 0.9884, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  --dur-fast: 294ms;
  --dur-barrido: 1600ms;
  /* /motor:tokens */

  interpolate-size: allow-keywords;
}
@media (min-width: 720px) {
  :root { --header-h: 64px; --player-h: 76px; --dock-h: var(--player-h); }
}

/* Tonos: cada superficie define sus colores; los componentes los heredan. */
.dark, .site-header, .site-footer, .dock, .masthead {
  --bg: #000; --fg: #fff;
  --fg-2: rgb(255 255 255 / .72);
  --fg-3: rgb(255 255 255 / .6);
  --fill: rgb(255 255 255 / .1);
  --fill-2: rgb(255 255 255 / .16);
  --inv-bg: #fff; --inv-fg: #000;
  --rule: rgb(255 255 255 / .16);
  --placeholder: #161616;
  --skel-base: #161616; --skel-shine: rgb(255 255 255 / .07);
  --seg-bg: #1c1c1c;
  color-scheme: dark;
  background-color: var(--bg);
  color: var(--fg);
}
.light {
  --bg: #fff; --fg: #000;
  --fg-2: rgb(0 0 0 / .66);
  --fg-3: rgb(0 0 0 / .6);
  --fill: rgb(0 0 0 / .05);
  --fill-2: rgb(0 0 0 / .09);
  --inv-bg: #000; --inv-fg: #fff;
  --rule: rgb(0 0 0 / .12);
  --placeholder: #ececec;
  --skel-base: #ececec; --skel-shine: rgb(255 255 255 / .8);
  --seg-bg: #f0f0f0;
  color-scheme: light;
  background-color: var(--bg);
  color: var(--fg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html {
  font-size: 106.25%;                       /* 17 px */
  background: #000;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scroll-padding-bottom: var(--dock-h);
}
/* Safari en iOS: el texto sigue el tamaño de Dynamic Type elegido por la persona. */
@supports (font: -apple-system-body) and (-webkit-touch-callout: none) {
  html { font: -apple-system-body; }
}
body {
  margin: 0;
  min-height: 100svh;
  padding-bottom: var(--dock-h);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.47;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #fff;
  color: #000;
  font-variant-numeric: proportional-nums;
}
[hidden] { display: none !important; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--fg, currentColor); outline-offset: 3px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
::selection { background: #000; color: #fff; }
.dark ::selection, .masthead ::selection, .site-footer ::selection { background: #fff; color: #000; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: var(--s4); top: var(--s4); z-index: 100;
  padding: var(--s3) var(--s4); background: #fff; color: #000; font-weight: 600;
  transform: translateY(-200%);
}
.skip:focus { transform: none; outline-color: #000; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section.same-tone { padding-top: 0; }

/* ---------- Tipografía ---------- */
.kicker {
  display: flex; align-items: center; gap: var(--s2);
  font-size: var(--t-cap); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-2);
}
.display {
  font-size: var(--t-display); font-weight: 700; line-height: .95; letter-spacing: -.042em;
  text-wrap: balance;
}
.h2 { font-size: var(--t-h2); font-weight: 700; line-height: 1.04; letter-spacing: -.03em; text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.42; color: var(--fg-2); letter-spacing: -.008em; text-wrap: pretty; }
.fine { font-size: var(--t-foot); color: var(--fg-3); }

/* ---------- Botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 52px; padding: 0 var(--s6);
  border: 0; border-radius: 0;
  font-size: var(--t-callout); font-weight: 600; letter-spacing: -.005em; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition:
    background-color var(--dur-fast) var(--ease-smooth),
    color var(--dur-fast) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--inv-bg); color: var(--inv-fg); }
.btn-secondary { background: var(--fill); color: var(--fg); }
@media (hover: hover) {
  .btn-primary:hover { background: var(--fg-2); }
  .btn-secondary:hover { background: var(--fill-2); }
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { min-height: 44px; padding: 0 var(--s5); font-size: var(--t-sub); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px;
  font-size: var(--t-callout); font-weight: 600; text-decoration: none; color: var(--fg);
  white-space: nowrap;
}
.link-arrow svg {
  width: 18px; height: 18px;
  transition: transform var(--dur-micro-snappy) var(--ease-snappy);
}
@media (hover: hover) { .link-arrow:hover svg { transform: translateX(4px); } }
.link-arrow:hover span { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }

.icon-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0;
  background: var(--fill); color: var(--fg);
  transition: background-color var(--dur-fast) var(--ease-smooth);
}
.icon-btn svg { width: 20px; height: 20px; }
@media (hover: hover) { .icon-btn:hover { background: var(--fill-2); } }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* Íconos de línea: trazo cuadrado, coherente con la geometría ortogonal */
.i { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.i-fill { fill: currentColor; stroke: none; }

/* ---------- Indicadores en vivo ---------- */
.live-dot { width: 8px; height: 8px; background: currentColor; flex: none; }
.eq { display: none; align-items: flex-end; gap: 2px; height: 11px; }
.eq i { width: 2px; height: 100%; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.4); }
.is-playing .eq { display: inline-flex; }
.is-playing .eq i { animation: eq 900ms var(--ease-smooth) infinite alternate; }
.is-playing .eq i:nth-child(2) { animation-duration: 700ms; animation-delay: -300ms; }
.is-playing .eq i:nth-child(3) { animation-duration: 1100ms; animation-delay: -650ms; }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }

/* Reproducir ↔ pausa: morph de trazo con dos polígonos de 4 vértices */
.pp-icon { position: relative; display: block; width: 14px; height: 16px; flex: none;
  transform: translateX(1.5px); transition: transform var(--dur-micro-snappy) var(--ease-snappy); }
.pp-icon i { position: absolute; inset: 0; background: currentColor;
  transition: clip-path var(--dur-micro-snappy) var(--ease-snappy); }
.pp-icon i:first-child { clip-path: polygon(0 0, 50% 25%, 50% 75%, 0 100%); }
.pp-icon i:last-child { clip-path: polygon(50% 25%, 100% 50%, 100% 50%, 50% 75%); }
.is-on .pp-icon { transform: none; }
.is-on .pp-icon i:first-child { clip-path: polygon(0 0, 34% 0, 34% 100%, 0 100%); }
.is-on .pp-icon i:last-child { clip-path: polygon(66% 0, 100% 0, 100% 100%, 66% 100%); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 40; height: var(--header-h); view-transition-name: site-header; }
.header-bar { height: 100%; display: flex; align-items: center; gap: var(--s6); }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: auto; height: 20px; }
.nav, .header-cta { display: none; }
.nav ul { display: flex; align-items: center; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.nav a {
  position: relative; display: flex; align-items: center; height: 44px; padding: 0 var(--s4);
  font-size: var(--t-sub); font-weight: 500; letter-spacing: -.005em; text-decoration: none;
  color: var(--fg-2); transition: color var(--dur-fast) var(--ease-smooth);
}
.nav a:hover, .nav a[aria-current] { color: var(--fg); }
.nav-mark { position: absolute; left: var(--s4); right: var(--s4); bottom: 5px; height: 2px; background: currentColor; view-transition-name: nav-mark; }
@media (min-width: 720px) {
  .site-header { position: sticky; top: 0; }
  .brand img { height: 22px; }
  .nav { display: block; }
}
@media (min-width: 1100px) {
  .nav ul { gap: var(--s2); }
  .header-cta { display: inline-flex; }
}

/* ---------- Dock: reproductor estilo Apple Music + barra de secciones ---------- */
.dock { position: fixed; inset: auto 0 0 0; z-index: 50; view-transition-name: dock; background: transparent; }
.player { background: var(--raised); }
.player-in {
  height: var(--player-h);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: var(--s6);
}
.player-controls { display: flex; align-items: center; gap: var(--s3); min-width: 0; }
/* Botón como en Apple Music: el glifo, sin caja */
.pp {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--fg);
  transition: background-color var(--dur-fast) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
.pp .pp-icon { width: 18px; height: 21px; }
@media (hover: hover) { .pp:hover { background: var(--fill); } }
.player-live {
  display: flex; align-items: center; gap: 6px;
  font-size: var(--t-cap2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2);
}
.player-live .live-dot { width: 6px; height: 6px; background: var(--fg); }
/* Pantalla central (la «LCD» de Apple Music): carátula, canción, artista · programa y avance */
.lcd {
  position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center;
  width: 100%; height: 52px; padding: 0; border: 0; overflow: hidden;
  background: #232323; color: var(--fg); text-align: center; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .lcd:hover { background: #2c2c2c; } }
.lcd-art { display: block; width: 52px; height: 52px; }
.lcd-art img { width: 100%; height: 100%; object-fit: cover; }
.lcd-text { display: grid; gap: 1px; min-width: 0; padding: 0 var(--s3); }
.lcd-title, .lcd-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd-title { font-size: var(--t-sub); font-weight: 600; letter-spacing: -.01em; }
.lcd-sub { font-size: var(--t-foot); color: var(--fg-2); }
.lcd-bar { position: absolute; left: 52px; right: 0; bottom: 0; height: 2px; background: var(--fill); overflow: hidden; }
.lcd-bar i { position: absolute; inset: 0; background: var(--fg-2); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.player-extra { display: flex; justify-content: flex-end; align-items: center; min-width: 0; }
.vol { display: flex; align-items: center; gap: var(--s2); color: var(--fg-2); }
.vol .icon-btn { background: transparent; width: 40px; border-radius: 50%; }
.vol input {
  --vol: 80%;
  -webkit-appearance: none; appearance: none; width: 104px; height: 44px; margin: 0; background: transparent; cursor: pointer;
}
.vol input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--fg) var(--vol), var(--fill-2) var(--vol)); }
.vol input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--fg) var(--vol), var(--fill-2) var(--vol)); }
.vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; background: var(--fg); border: 0; border-radius: 50%; }
.vol input::-moz-range-thumb { width: 14px; height: 14px; background: var(--fg); border: 0; border-radius: 50%; }

.tabbar { display: none; }
.tabbar ul { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 100%; margin: 0; padding: 0; list-style: none; }
.tabbar a, .tab-opciones {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 100%; height: 100%; padding: 0; border: 0; background: none;
  font: inherit; font-size: var(--t-cap2); font-weight: 500; text-decoration: none; color: var(--fg-3);
  -webkit-tap-highlight-color: transparent; transition: color var(--dur-fast) var(--ease-smooth);
}
.tabbar [aria-current] { color: var(--fg); font-weight: 600; }
.tabbar svg { width: 24px; height: 24px; }
/* Pestaña activa: una cápsula detrás, que viaja de una a otra al navegar */
.tab-mark { position: absolute; inset: 6px 2px; z-index: -1; background: rgb(255 255 255 / .12); view-transition-name: tab-mark; }

/* Celular: como una app. Mini reproductor y dock flotantes, con los extremos redondos. */
@media (max-width: 719px) {
  :root { --player-h: 60px; --tab-h: 70px; --dock-gap: 10px; --dock-h: calc(var(--player-h) + var(--tab-h) + var(--dock-gap) + var(--safe-b) + 8px); }
  .dock { left: 10px; right: 10px; bottom: calc(var(--dock-gap) + var(--safe-b)); }
  .player { background: transparent; }
  .player-in.wrap {
    width: auto; margin: 0; height: var(--player-h); padding: 0 6px 0 8px;
    grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2);
    background: #1c1c1e;
  }
  .player-controls { order: 2; }
  .player-live, .player-extra, .lcd-bar { display: none; }
  .lcd { order: 1; grid-template-columns: 44px minmax(0, 1fr); height: var(--player-h); background: transparent; text-align: left; }
  .lcd:hover { background: transparent; }
  .lcd-art { width: 44px; height: 44px; overflow: hidden; }
  .tabbar {
    display: block; height: calc(var(--tab-h) - 8px); margin-top: 8px; padding: 0 6px;
    background: #1c1c1e;
    transition: opacity var(--dur-fast) var(--ease-smooth);
  }
  /* Al bajar, el dock se retira y el mini reproductor baja a su lugar (tabBarMinimizeBehavior) */
  .dock.is-compact .tabbar { opacity: 0; pointer-events: none; }
}
@media (min-width: 720px) and (max-width: 1023px) {
  .player-in { grid-template-columns: auto minmax(0, 1fr) auto; }
  .vol input { width: 80px; }
}

/* ---------- Portada (inicio) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, calc(100svh - var(--header-h) - var(--dock-h)));
  display: flex; align-items: flex-end;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 50% 40%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(0deg, #000 0%, rgb(0 0 0 / .72) 30%, rgb(0 0 0 / .18) 62%, rgb(0 0 0 / .32) 100%);
}
.hero-in { padding-block: var(--s16) var(--s10); }
.hero-title { margin-top: var(--s5); font-size: var(--t-hero); font-weight: 700; line-height: .97; letter-spacing: -.042em; max-width: 9.5ch; text-wrap: balance; }
.hero-lead { margin-top: var(--s5); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s8); margin-top: var(--s8); }
.hero-actions .btn-primary { min-width: 220px; }
.hero-onair { display: grid; gap: var(--s6); margin-top: var(--s12); max-width: 760px; }
.onair-label { font-size: var(--t-cap); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.onair-title { margin-top: 6px; font-size: var(--t-h3); font-weight: 600; letter-spacing: -.012em; }
.onair-sub { margin-top: 2px; font-size: var(--t-sub); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.onair-bar { position: relative; height: 2px; margin-top: var(--s4); background: var(--fill-2); overflow: hidden; }
.onair-bar i { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.hero-onair .onair:last-child { display: none; }
@media (max-width: 719px) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; height: auto; aspect-ratio: 1; }
  .hero-media img { object-position: 50% 30%; }
  .hero-shade { bottom: auto; height: 100vw; background: linear-gradient(0deg, #000 0%, rgb(0 0 0 / .5) 22%, rgb(0 0 0 / 0) 46%); }
  .hero-in { position: relative; margin-top: -72px; padding-block: 0 var(--s10); }
  .hero-title { margin-top: var(--s3); }
}
@media (min-width: 720px) {
  .hero-shade {
    background:
      linear-gradient(90deg, rgb(0 0 0 / .9) 0%, rgb(0 0 0 / .62) 38%, rgb(0 0 0 / .08) 72%),
      linear-gradient(0deg, rgb(0 0 0 / .85) 0%, rgb(0 0 0 / 0) 42%);
  }
  .hero-in { padding-block: var(--s20) var(--s12); }
  .hero-onair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s12); }
  .hero-onair .onair:last-child { display: block; }
}

/* ---------- Encabezado de sección ---------- */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4) var(--s6); margin-bottom: clamp(28px, 1rem + 2vw, 56px); }
.sec-sub { margin-top: var(--s3); max-width: 52ch; color: var(--fg-2); font-size: var(--t-callout); }
.sec-actions { display: flex; align-items: center; gap: var(--s2); flex: none; }
.sec-actions .icon-btn { display: none; }
@media (min-width: 1024px) { .sec-actions .icon-btn { display: grid; } }

/* ---------- Hoy en Radio Alma ---------- */
/* Móvil y tablet: carrusel con enfoque (las tarjetas de los lados se reducen al deslizar).
   Escritorio: paneles dentro del contenedor centrado; el activo se expande con un resorte,
   el resto queda como franja con el título en vertical. Avance automático pausable. */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: var(--s4);
  margin: 0; padding: 0 var(--gutter) var(--s2); list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .rail { grid-auto-columns: 300px; gap: var(--s5); } }
.show { position: relative; scroll-snap-align: start; }
.show-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--placeholder); }
.show-media img { width: 100%; height: 100%; object-fit: cover; }
.show-shade, .show-label, .show-hit, .show-timer, .show-more { display: none; }
.badge-live {
  position: absolute; left: 10px; top: 10px; z-index: 4; display: none; align-items: center; gap: 6px;
  padding: 8px 10px; background: #000; color: #fff; pointer-events: none;
  font-size: var(--t-cap2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.badge-live .live-dot { width: 6px; height: 6px; }
.show.is-live .badge-live { display: inline-flex; }
@media (max-width: 1023px) { .show.is-past .show-media { opacity: .45; } .show.is-past .show-body { opacity: .55; } }
.show-time { margin-top: var(--s4); font-size: var(--t-foot); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.show-title { margin-top: 4px; font-size: var(--t-h3); font-weight: 600; letter-spacing: -.014em; line-height: 1.22; }
.show-host { margin-top: 4px; font-size: var(--t-sub); color: var(--fg-2); }
.rail-auto { display: none !important; }

/* Enfoque al deslizar (ligado al scroll horizontal del carril) */
@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .show { animation: rail-focus linear both; animation-timeline: view(inline); }
    @keyframes rail-focus { 0% { transform: scale(.88); opacity: .55; } 32%, 68% { transform: none; opacity: 1; } 100% { transform: scale(.88); opacity: .55; } }
  }
}

@media (min-width: 1024px) {
  .rail {
    display: flex; gap: var(--s3);
    width: min(100% - 2 * var(--gutter), var(--max)); height: clamp(460px, 34vw, 600px);
    margin-inline: auto; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .show {
    --fg: #fff; --fg-2: rgb(255 255 255 / .74); --fg-3: rgb(255 255 255 / .6);
    --inv-bg: #fff; --inv-fg: #000; --fill: rgb(255 255 255 / .14); --fill-2: rgb(255 255 255 / .22);
    flex: 1 1 0; min-width: 0; overflow: hidden; isolation: isolate; color: #fff; background: #111;
  }
  .show.is-active { flex-grow: 4; }
  .show-media { position: absolute; inset: 0; z-index: -2; aspect-ratio: auto; background: #111; }
  .show-media img { transform: scale(1.1); transition: transform var(--dur-large) var(--ease-smooth); }
  .show.is-active .show-media img { transform: none; }
  .show.is-past .show-media { opacity: .5; }
  .show-shade {
    display: block; position: absolute; inset: 0; z-index: -1;
    background-color: rgb(0 0 0 / .3);
    background-image: linear-gradient(0deg, rgb(0 0 0 / .92) 0%, rgb(0 0 0 / .72) 30%, rgb(0 0 0 / .25) 58%, rgb(0 0 0 / 0) 80%);
    transition: background-color var(--dur-smooth) var(--ease-smooth);
  }
  .show.is-active .show-shade { background-color: rgb(0 0 0 / 0); }
  @media (hover: hover) {
    .show:not(.is-active):hover .show-media img { transform: scale(1.04); }
    .show:not(.is-active):hover .show-shade { background-color: rgb(0 0 0 / .08); }
  }
  /* Franja: título en vertical, de abajo hacia arriba */
  .show-label {
    display: block; position: absolute; left: var(--s5); bottom: var(--s6);
    writing-mode: vertical-rl; transform: rotate(180deg);
    font-size: var(--t-callout); font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
    transition: opacity 180ms var(--ease-smooth) 260ms;
  }
  .show-label span { margin-inline-end: .7em; font-weight: 500; color: var(--fg-2); font-variant-numeric: tabular-nums; }
  .show.is-active .show-label { opacity: 0; transition-delay: 0s; transition-duration: 120ms; }
  /* Contenido del panel abierto: ancho fijo (el del panel expandido) para que no se reacomode durante el resorte */
  .show-body {
    position: absolute; left: 0; bottom: 0; width: var(--active-w, 100%); padding: var(--s8);
    opacity: 0; transform: translateY(14px); pointer-events: none;
    transition: opacity 120ms var(--ease-smooth), transform var(--dur-smooth) var(--ease-smooth);
  }
  .show.is-active .show-body {
    opacity: 1; transform: none; pointer-events: auto;
    transition: opacity var(--dur-smooth) var(--ease-smooth) 200ms, transform var(--dur-smooth) var(--ease-smooth) 200ms;
  }
  .show-time { margin-top: 0; font-size: var(--t-sub); }
  .show-title { margin-top: var(--s2); font-size: clamp(1.5rem, 1rem + 1.1vw, 2.1rem); font-weight: 700; letter-spacing: -.026em; line-height: 1.08; text-wrap: balance; }
  .show-host { margin-top: var(--s2); font-size: var(--t-callout); }
  .show-more { display: block; }
  .show-desc { margin-top: var(--s4); max-width: 40ch; color: var(--fg-2); font-size: var(--t-callout); line-height: 1.45; }
  .show-onair { display: none; max-width: 320px; margin-top: var(--s5); }
  .show.is-live .show-onair { display: block; }
  .show-onair .onair-bar { margin-top: 0; }
  .show-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); margin-top: var(--s6); }
  .show-play { display: none; }
  .show.is-live .show-play { display: inline-flex; }
  /* Toda la franja es tocable; en el panel abierto deja pasar los clics a sus botones */
  .show-hit { display: block; position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
  .show.is-active .show-hit { pointer-events: none; }
  .show-hit:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
  .badge-live { top: var(--s4); left: var(--s4); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .rail-auto { display: grid !important; }
  .show-timer { display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 3px; background: rgb(255 255 255 / .22); opacity: 0; transition: opacity var(--dur-fast) var(--ease-smooth); }
  .show-timer i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
  .rail.is-auto .show.is-active .show-timer { opacity: 1; }
  /* Barra de tiempo: progreso ligado al reloj (curva lineal permitida para tiempo real) */
  .rail.is-auto .show.is-active .show-timer i { animation: rail-timer 6500ms linear forwards; }
  .rail:hover .show-timer i, .rail:focus-within .show-timer i, .rail.is-offscreen .show-timer i { animation-play-state: paused; }
  @keyframes rail-timer { to { transform: scaleX(1); } }
}

/* ---------- Top 10 ---------- */
.chart { display: grid; gap: var(--s12); }
.chart-top img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--placeholder); }
.chart-no { margin-top: var(--s6); }
.chart-top h3 { margin-top: var(--s2); font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); font-weight: 700; line-height: 1.02; letter-spacing: -.032em; }
.chart-top .artist { margin-top: var(--s2); font-size: var(--t-lead); color: var(--fg-2); }
.chart-top .trend { margin-top: var(--s4); justify-content: flex-start; }
.chart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); align-content: start; }
.chart-row { display: grid; grid-template-columns: 2.2ch 56px minmax(0, 1fr) auto; align-items: center; gap: var(--s4); min-height: 76px; }
.chart-pos { font-size: 1.4118rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.chart-row img { width: 56px; height: 56px; object-fit: cover; background: var(--placeholder); }
.chart-song { min-width: 0; }
.chart-song strong, .chart-song span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-song strong { font-weight: 600; letter-spacing: -.01em; }
.chart-song span { font-size: var(--t-sub); color: var(--fg-2); }
.trend { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 64px; font-size: var(--t-foot); font-weight: 600; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.trend svg { width: 9px; height: 9px; }
.trend.is-new { color: var(--fg); }
.trend.is-new svg { display: none; }
@media (min-width: 1024px) {
  .chart { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s16); }
  .chart-top { position: sticky; top: calc(var(--header-h) + var(--s8)); align-self: start; }
}

/* ---------- Noticias ---------- */
.story { position: relative; display: flex; flex-direction: column; }
.story-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--placeholder); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-kicker { margin-top: var(--s5); }
.story-title { margin-top: var(--s2); font-size: var(--t-h3); font-weight: 600; line-height: 1.24; letter-spacing: -.014em; text-wrap: balance; }
.story-title a { text-decoration: none; }
.story-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.story-title a:focus-visible { outline: none; }
.story-title a:focus-visible::after { outline: 2px solid var(--fg); outline-offset: 6px; }
.story-excerpt { margin-top: var(--s3); color: var(--fg-2); font-size: var(--t-callout); line-height: 1.45; text-wrap: pretty; }
.story-meta { margin-top: var(--s3); font-size: var(--t-foot); color: var(--fg-3); }
@media (hover: hover) {
  .story:hover .story-title a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .14em; }
}
.story--lead .story-title { font-size: clamp(1.65rem, 1.15rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.028em; }
.story--lead .story-excerpt { font-size: var(--t-body); max-width: 56ch; }
.story--row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s5); align-items: start; }
.story--row .story-kicker { margin-top: 0; }
.story--row .story-title { font-size: 1.0588rem; }
.news-home { display: grid; gap: var(--s12); }
.news-side { display: grid; gap: var(--s8); align-content: start; }
@media (min-width: 1024px) {
  .news-home { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s16); }
  .news-side { gap: var(--s10); }
}

.no-js .filters { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s10); }
.chip {
  min-height: 44px; padding: 0 var(--s5); border: 0; border-radius: 0;
  background: var(--fill); color: var(--fg); font-size: var(--t-sub); font-weight: 600;
  transition: background-color var(--dur-fast) var(--ease-smooth), color var(--dur-fast) var(--ease-smooth);
}
@media (hover: hover) { .chip:hover { background: var(--fill-2); } }
.chip[aria-pressed="true"] { background: var(--inv-bg); color: var(--inv-fg); }
.news-feature { display: grid; gap: var(--s6); margin-bottom: var(--s16); }
.news-feature .story-media { aspect-ratio: 16 / 10; }
@media (min-width: 1024px) {
  .news-feature { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s12); align-items: end; }
  .news-feature .story-kicker { margin-top: 0; }
}
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s12) var(--s8); }
@media (min-width: 720px) { .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.empty { padding-block: var(--s12); color: var(--fg-2); }

/* ---------- Teléfono (maqueta de la app) ---------- */
.phone {
  --pw: 260px;
  width: var(--pw); height: calc(var(--pw) * 2.08); flex: none;
  padding: calc(var(--pw) * .034);
  border-radius: calc(var(--pw) * .165);                  /* forma del hardware */
  background: linear-gradient(152deg, #5a5a5a 0%, #1c1c1c 18%, #070707 55%, #1a1a1a 88%, #3a3a3a 100%);
  box-shadow: 0 60px 120px -30px rgb(0 0 0 / .9), 0 30px 60px -20px rgb(0 0 0 / .6);
  font-size: calc(var(--pw) / 21);
  user-select: none;
}
.phone-screen {
  height: 100%; overflow: hidden; display: flex; flex-direction: column;
  border-radius: calc(var(--pw) * (.165 - .034));         /* concéntrico: radio exterior − bisel */
  background: #000; color: #fff; padding: 1em 1.1em 0;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; height: 1.6em; padding: 0 .5em; font-size: .78em; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-status span:last-child { display: flex; gap: .3em; align-items: center; }
.phone-status i { display: block; width: .32em; background: #fff; }
.phone-status i:nth-child(1) { height: .45em; } .phone-status i:nth-child(2) { height: .65em; } .phone-status i:nth-child(3) { height: .85em; }
.phone-status b { display: block; width: 1.9em; height: .9em; margin-left: .35em; background: #fff; }
.phone-brand { display: flex; justify-content: center; margin: 1.1em 0 1.2em; }
.phone-brand img { height: 1em; width: auto; }
.phone-cover { width: 100%; aspect-ratio: 1; object-fit: cover; background: #161616; border-radius: .7em; }
.phone-live { display: flex; align-items: center; gap: .5em; margin-top: 1.15em; font-size: .62em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .72); }
.phone-live .live-dot { width: .7em; height: .7em; background: #fff; }
.phone-title { margin-top: .35em; font-size: 1.3em; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.phone-sub { margin-top: .25em; font-size: .78em; color: rgb(255 255 255 / .7); }
.phone-bar { position: relative; height: 2px; margin-top: 1.1em; background: rgb(255 255 255 / .2); overflow: hidden; }
.phone-bar i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, .45)); }
.phone-times { display: flex; justify-content: space-between; margin-top: .5em; font-size: .62em; color: rgb(255 255 255 / .6); font-variant-numeric: tabular-nums; }
.phone-controls { display: flex; align-items: center; justify-content: space-between; margin: 1em .3em 0; }
.phone-controls svg { width: 1.25em; height: 1.25em; color: rgb(255 255 255 / .75); }
.phone-play { display: grid; place-items: center; width: 3.3em; height: 3.3em; background: #fff; color: #000; }
.phone-play .pp-icon { width: .95em; height: 1.1em; }
.phone-tabs { margin-top: auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: .9em 0 1.5em; }
.phone-tabs svg { justify-self: center; width: 1.2em; height: 1.2em; color: rgb(255 255 255 / .45); }
.phone-tabs svg:first-child { color: #fff; }

/* Bloque de app (inicio) y portada de la página App */
.promo { display: grid; gap: var(--s12); align-items: center; }
.promo-copy .h2, .promo-copy .display { margin-top: var(--s4); }
.promo-copy .lead { margin-top: var(--s5); max-width: 38ch; }
.promo-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s8); margin-top: var(--s8); }
.promo-copy .fine { margin-top: var(--s5); }
.promo-phone { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .promo { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s16); }
  .promo .phone { --pw: 290px; }
}

/* Pide tu canción (inicio) */
.ask-title { font-size: clamp(2.4rem, 1.3rem + 4.6vw, 5.6rem); font-weight: 700; line-height: .98; letter-spacing: -.042em; max-width: 13ch; text-wrap: balance; }
.ask .lead { margin-top: var(--s6); max-width: 40ch; }
.ask .btn { margin-top: var(--s8); }
@media (min-width: 1024px) {
  .ask-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s16); align-items: end; }
  .ask-in .lead { margin-top: 0; }
}

/* ---------- Cabecera de páginas internas ---------- */
.masthead { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 2rem + 6vw, 136px) clamp(48px, 1.5rem + 5vw, 104px); }
.masthead .display { margin-top: var(--s4); }
.masthead .lead { margin-top: var(--s6); max-width: 42ch; }
.masthead-live { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-top: var(--s8); font-size: var(--t-callout); color: var(--fg-2); }
.masthead-live strong { color: var(--fg); font-weight: 600; }
.masthead-live .live-dot { background: var(--fg); }
.masthead--photo { min-height: min(78svh, 720px); display: flex; align-items: flex-end; }
.masthead--photo > .wrap { position: relative; }
.masthead-media, .masthead-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.masthead-media { z-index: -2; }
.masthead-media img { object-fit: cover; }
.masthead-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #000 0%, rgb(0 0 0 / .7) 34%, rgb(0 0 0 / .2) 70%, rgb(0 0 0 / .35) 100%); }
@media (min-width: 720px) {
  .masthead-shade { background: linear-gradient(90deg, rgb(0 0 0 / .92) 0%, rgb(0 0 0 / .6) 42%, rgb(0 0 0 / 0) 75%), linear-gradient(0deg, rgb(0 0 0 / .7) 0%, rgb(0 0 0 / 0) 40%); }
}

/* ---------- Programación ---------- */
.days-bar { position: sticky; top: var(--header-h); z-index: 20; background: var(--bg); box-shadow: 0 1px 0 var(--rule); }
.days { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (min-width: 900px) { .days { grid-template-columns: repeat(7, minmax(0, 132px)); } }
.day-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 64px; padding: 0; border: 0; background: none;
  font-size: var(--t-callout); font-weight: 600; letter-spacing: -.01em; color: var(--fg-3);
  transition: color var(--dur-fast) var(--ease-smooth);
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) { .day-tab { align-items: flex-start; padding-left: 2px; } }
.day-tab[aria-selected="true"] { color: var(--fg); }
@media (hover: hover) { .day-tab:hover { color: var(--fg); } }
.day-tab .d-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 900px) { .day-tab .d-long { position: static; width: auto; height: auto; overflow: visible; clip: auto; } .day-tab .d-short { display: none; } }
.day-today { font-size: var(--t-cap2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); visibility: hidden; }
.day-tab.is-today .day-today { visibility: visible; }
.days-ink { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--fg); pointer-events: none; }
.is-instant .day-tab, .is-instant .seg-btn { transition: none !important; }

.schedule { padding-bottom: var(--section); }
.day-panel { padding-block: var(--s6) var(--s4); }
.day-panel:focus-visible { outline-offset: -2px; }
.js .day-panel:not(.is-active) { display: none; }
.slots { list-style: none; margin: 0; padding: 0; }
.slot {
  --slot-pad: 0px;
  position: relative;
  display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "img time" "img info" "img host";
  column-gap: var(--s4); row-gap: 2px; align-items: start;
  padding: var(--s5) var(--slot-pad);
  box-shadow: 0 -1px 0 var(--rule);
  transition: opacity var(--dur-fast) var(--ease-smooth);
}
.slot:first-child { box-shadow: none; }
.slot-time { grid-area: time; font-size: var(--t-foot); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.slot-time time { font-weight: 600; color: var(--fg); }
.slot-img { grid-area: img; width: 76px; height: 76px; object-fit: cover; background: var(--placeholder); }
.slot-info { grid-area: info; min-width: 0; }
.slot-info h3 { font-size: 1.1765rem; font-weight: 700; letter-spacing: -.018em; line-height: 1.2; }
.slot-desc { display: none; margin-top: 6px; font-size: var(--t-callout); color: var(--fg-2); max-width: 54ch; }
.slot-host { grid-area: host; display: flex; align-items: center; gap: var(--s2); margin-top: 6px; font-size: var(--t-sub); color: var(--fg-2); }
.slot-host img { width: 24px; height: 24px; object-fit: cover; background: var(--placeholder); }
.slot-live { display: none; align-items: center; gap: 6px; margin-bottom: 6px; font-size: var(--t-cap2); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.slot-live .live-dot { width: 6px; height: 6px; }
.slot-progress { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / .22); overflow: hidden; }
.slot-progress i { position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.slot.is-past { opacity: .5; }
.slot.is-live {
  --slot-pad: var(--s4);
  --fg: #fff; --fg-2: rgb(255 255 255 / .74); --placeholder: #1c1c1c;
  margin-inline: calc(var(--s4) * -1);
  background: #000; color: #fff; box-shadow: none;
}
.slot.is-live + .slot { box-shadow: none; }
.slot.is-live .slot-live { display: flex; }
.slot.is-live .slot-progress { display: block; }
@media (min-width: 900px) {
  .slot {
    grid-template-columns: 168px 112px minmax(0, 1fr) 240px; grid-template-areas: "time img info host";
    column-gap: var(--s8); align-items: center; padding-block: var(--s6);
  }
  .slot-time { font-size: var(--t-sub); }
  .slot-time time { display: block; font-size: 1.6471rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
  .slot-img { width: 112px; height: 112px; }
  .slot-info h3 { font-size: 1.4118rem; letter-spacing: -.022em; }
  .slot-desc { display: block; }
  .slot-host { margin-top: 0; }
  .slot-host img { width: 36px; height: 36px; }
  .slot.is-live { --slot-pad: var(--s6); margin-inline: calc(var(--s6) * -1); }
}

/* Locutores */
.hosts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s10) var(--s4); }
@media (min-width: 1024px) { .hosts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); } }
.host-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--placeholder); }
.host-media img { width: 100%; height: 100%; object-fit: cover; }
.host-name { margin-top: var(--s5); font-size: var(--t-h3); font-weight: 600; letter-spacing: -.014em; }
.host-show { margin-top: 4px; font-size: var(--t-callout); font-weight: 500; }
.host-time { margin-top: 2px; font-size: var(--t-sub); color: var(--fg-2); }
.host-bio { display: none; margin-top: var(--s3); font-size: var(--t-callout); line-height: 1.45; color: var(--fg-2); text-wrap: pretty; }
@media (min-width: 720px) { .host-bio { display: block; } }

/* ---------- Nota (artículo) ---------- */
.article-head .display { font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1; letter-spacing: -.036em; }
.article-head .kicker a { color: inherit; text-decoration: none; }
.article-head .kicker a:hover { color: var(--fg); }
.article-meta { margin-top: var(--s8); font-size: var(--t-sub); color: var(--fg-3); }
.article-main { padding-block: clamp(32px, 1rem + 3vw, 64px) 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--placeholder); }
.article-figure figcaption { margin-top: var(--s3); font-size: var(--t-foot); color: var(--fg-3); }
.prose { margin-top: clamp(40px, 1rem + 4vw, 72px); font-size: 1.0588rem; line-height: 1.66; letter-spacing: -.003em; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -.022em; }
.prose blockquote { margin-block: 1.8em; font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.1rem); font-weight: 600; line-height: 1.22; letter-spacing: -.026em; text-wrap: balance; }
.prose blockquote footer { margin-top: .7em; font-size: var(--t-sub); font-weight: 500; letter-spacing: 0; color: var(--fg-2); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.share { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s12); padding-bottom: var(--s4); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: var(--s16); }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(64px, 8vw, 128px); } }
.seg { position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--seg-bg); max-width: 100%; }
.seg-btn {
  position: relative; min-height: 44px; padding: 0 var(--s5); border: 0; border-radius: 0; background: none;
  font-size: var(--t-sub); font-weight: 600; color: var(--fg); white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.seg-ink { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 2; }
.no-js .seg-ink { display: none; }
.form { display: grid; gap: var(--s6); margin-top: var(--s10); }
.js .form:not(.is-active) { display: none; }
.form-title { font-size: 1.6471rem; font-weight: 700; letter-spacing: -.024em; line-height: 1.15; }
.form-intro { margin-top: calc(var(--s6) * -1 + 8px); color: var(--fg-2); }
.field { display: grid; gap: var(--s2); }
.field-row { display: grid; gap: var(--s6); }
@media (min-width: 720px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field-label { font-size: var(--t-sub); font-weight: 600; }
.field-label small { font-weight: 400; color: var(--fg-3); font-size: inherit; }
.input {
  width: 100%; min-height: 54px; padding: 15px var(--s4); border: 0; border-radius: 0;
  background: var(--fill); color: var(--fg); font-size: var(--t-body); line-height: 1.4;
  box-shadow: inset 0 -2px 0 transparent; appearance: none; -webkit-appearance: none;
  transition: box-shadow var(--dur-fast) var(--ease-smooth), background-color var(--dur-fast) var(--ease-smooth);
}
.input::placeholder { color: var(--fg-3); opacity: 1; }
.input:hover { background: var(--fill-2); }
.input:focus, .input:focus-visible { outline: none; background: var(--fill-2); box-shadow: inset 0 -2px 0 var(--fg); }
.input[aria-invalid="true"] { box-shadow: inset 0 -3px 0 var(--fg); }
textarea.input { min-height: 136px; resize: vertical; }
select.input {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='square'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
.field-foot { display: flex; justify-content: space-between; gap: var(--s4); font-size: var(--t-foot); color: var(--fg-3); }
.field-error { display: none; align-items: center; gap: var(--s2); font-size: var(--t-sub); font-weight: 600; }
.field-error svg { width: 16px; height: 16px; flex: none; }
.input[aria-invalid="true"] ~ .field-error, .field.has-error .field-error { display: flex; }
.check { display: flex; align-items: flex-start; gap: var(--s3); font-size: var(--t-callout); cursor: pointer; min-height: 44px; padding-top: 10px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; background: var(--fill-2); border-radius: 0; display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-smooth); }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2px solid var(--inv-fg); border-bottom: 2px solid var(--inv-fg); transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform var(--dur-micro-snappy) var(--ease-snappy); }
.check input:checked { background: var(--fg); }
.check input:checked::after { transform: translateY(-2px) rotate(-45deg) scale(1); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); margin-top: var(--s2); }
.contact-list { display: grid; gap: var(--s8); align-content: start; }
.contact-list dt { font-size: var(--t-cap); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.contact-list dd { margin-top: var(--s2); font-size: 1.0588rem; }
.contact-list dd a { text-decoration: none; font-weight: 600; }
.contact-list dd a:hover { text-decoration: underline; text-underline-offset: .2em; }
.contact-list p + p { margin-top: 4px; color: var(--fg-2); font-size: var(--t-callout); }
.social { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; background: var(--fill); color: var(--fg); transition: background-color var(--dur-fast) var(--ease-smooth); }
.social a:hover { background: var(--fill-2); }
.social svg { width: 20px; height: 20px; }

.faq { display: grid; gap: var(--s2); max-width: 920px; }
.faq-item { background: var(--fill); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s6);
  min-height: 72px; padding: var(--s5) var(--s6); cursor: pointer; list-style: none;
  font-size: var(--t-h3); font-weight: 600; letter-spacing: -.014em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; transition: transform var(--dur-micro-snappy) var(--ease-snappy); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: currentColor; }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon, .faq-item.is-abierto .faq-icon { transform: rotate(45deg); }
.faq-item.is-cerrando .faq-icon { transform: none; }
.faq-body { padding: 0 var(--s6) var(--s6); max-width: 64ch; color: var(--fg-2); overflow: hidden; }

/* ---------- App ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s12) var(--s8); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s16) var(--s12); } }
.feature svg { width: 32px; height: 32px; }
.feature h3 { margin-top: var(--s5); font-size: var(--t-h3); font-weight: 600; letter-spacing: -.014em; }
.feature p { margin-top: var(--s2); color: var(--fg-2); max-width: 38ch; }
.install-tabs { margin-top: var(--s10); }
.steps { list-style: none; margin: var(--s10) 0 0; padding: 0; display: grid; gap: var(--s8); counter-reset: step; }
.js .steps-panel:not(.is-active) { display: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s10); } }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: clamp(2.6rem, 1.8rem + 2.4vw, 3.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.steps h3 { margin-top: var(--s5); font-size: var(--t-h3); font-weight: 600; letter-spacing: -.014em; }
.steps p { margin-top: var(--s2); color: var(--fg-2); max-width: 34ch; }
.steps-note { margin-top: var(--s10); }
.band { position: relative; isolation: isolate; overflow: hidden; min-height: min(84svh, 760px); display: flex; align-items: flex-end; padding-block: var(--section); }
.band .masthead-media img { object-position: 50% 60%; }
.band .h2 { max-width: 14ch; }
.band .lead { margin-top: var(--s5); max-width: 40ch; }

/* ---------- Servicios: mosaico de «productos» (bloques claros y oscuros) ---------- */
.masthead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s8); margin-top: var(--s8); }
.cta-lead { margin-top: var(--s6); max-width: 46ch; }
.tiles-section { background: #fff; padding: var(--s3); }
.tiles { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: var(--s3); max-width: 2400px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; text-align: center;
  min-height: clamp(560px, 44vw, 760px);
}
.tile.light { --tile-bg: #f2f2f2; background-color: var(--tile-bg); }
.tile.dark { --tile-bg: #000; }
.tile-copy { position: relative; z-index: 2; padding: clamp(44px, 1.6rem + 2.4vw, 76px) var(--s6) var(--s4); }
.tile-title { font-size: clamp(2rem, 1.45rem + 1.7vw, 3.15rem); font-weight: 700; line-height: 1.03; letter-spacing: -.034em; text-wrap: balance; }
.tile-tagline { margin-top: var(--s2); font-size: clamp(1.15rem, 1rem + .55vw, 1.6rem); font-weight: 500; line-height: 1.22; letter-spacing: -.014em; text-wrap: balance; }
.tile-detail { margin: var(--s3) auto 0; max-width: 36ch; font-size: var(--t-callout); color: var(--fg-2); }
.tile-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s3); margin-top: var(--s6); }
.tile-media { position: relative; flex: 1 1 auto; min-height: 280px; overflow: hidden; }
.tile-media::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--tile-bg), transparent);
}
.tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.detalles-grid { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .detalles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .detalles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.servicio { padding: var(--s8); background: var(--fill); }
.servicio-title { font-size: 1.4118rem; font-weight: 700; letter-spacing: -.022em; line-height: 1.15; }
.servicio-tagline { margin-top: var(--s2); color: var(--fg-2); }
.servicio-items { list-style: none; margin: var(--s5) 0 var(--s6); padding: 0; display: grid; gap: var(--s3); }
.servicio-items li { display: flex; gap: var(--s3); line-height: 1.4; }
.servicio-items li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .52em; background: currentColor; }
/* Con el motor activo, los detalles se ven en la ficha que nace de cada bloque */
.motor-activo .detalles { display: none; }

/* Ficha (dialog): nace del bloque que la abre */
.hoja { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
.hoja[open] { display: grid; place-items: center; }
.hoja::backdrop { background: rgb(0 0 0 / .62); opacity: 0; transition: opacity var(--dur-fast) var(--ease-smooth); }
.hoja.is-open::backdrop { opacity: 1; }
.hoja-panel {
  position: relative; width: min(100% - 32px, 580px); max-height: min(88vh, 760px); overflow: auto;
  padding: clamp(32px, 2rem + 1.5vw, 56px); box-shadow: 0 40px 100px rgb(0 0 0 / .45);
}
.hoja-cerrar { position: absolute; top: var(--s3); right: var(--s3); z-index: 1; }
.hoja .servicio { padding: 0; background: none; }
.hoja .servicio-title { padding-right: var(--s12); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); letter-spacing: -.03em; }
.hoja .servicio-tagline { font-size: var(--t-lead); }
@media (max-width: 719px) {
  .hoja[open] { place-items: end stretch; }
  .hoja-panel { width: 100%; max-height: 90vh; padding-bottom: calc(var(--s8) + var(--safe-b)); }
}

/* Navegación con seis secciones */
@media (min-width: 720px) and (max-width: 1099px) { .nav a { padding: 0 var(--s3); } .nav-mark { left: var(--s3); right: var(--s3); } }
@media (max-width: 359px) { .tabbar a { font-size: 10px; } .tabbar svg { width: 22px; height: 22px; } }


/* ---------- Fotos que flotan: sus esquinas las define el tipo de objeto (motor/tipos.js) ---------- */
:root { --r-s: 6px; --r-m: 10px; }
.show-media, .story-media, .host-media { isolation: isolate; }
@media (min-width: 1024px) { .show { --skel-base: #161616; --skel-shine: rgb(255 255 255 / .07); } }

/* ---------- Esqueletos: la forma de lo que va a aparecer, con un barrido de luz ---------- */
:root .skel {
  background-color: var(--skel-base, #ececec);
  background-image: linear-gradient(100deg, transparent 32%, var(--skel-shine, rgb(255 255 255 / .7)) 50%, transparent 68%);
  background-size: 260% 100%; background-repeat: no-repeat;
  animation: barrido var(--dur-barrido, 1600ms) linear infinite;
}
:root .skel.cargado, :root .skel.fallo { animation: none; }
:root .skel.cargado { background-image: none; }
.skel.fallo > img, img.skel.fallo, .skel.fallo picture img { visibility: hidden; }
@keyframes barrido { from { background-position: 135% 0; } to { background-position: -35% 0; } }
/* Página que aún no llega (navegación lenta) */
.cargando .skel { display: block; border-radius: var(--r-s); }
.skel-linea { height: 1rem; margin-top: var(--s4); }
.skel-titulo { height: clamp(48px, 6vw, 104px); margin-top: var(--s5); border-radius: var(--r-m); }
.skel-foto { aspect-ratio: 3 / 2; margin-bottom: var(--s2); }
.cargando .skel-foto { border-radius: var(--r-m); }
.w-15 { width: 15%; } .w-25 { width: 25%; } .w-30 { width: 30%; } .w-40 { width: 40%; } .w-55 { width: 55%; } .w-60 { width: 60%; } .w-85 { width: 85%; }
.skel-rejilla { display: grid; gap: var(--s10) var(--s8); }
@media (min-width: 720px) { .skel-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Hojas inferiores (Opciones y Ahora suena) ---------- */
.hoja-inferior { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
.hoja-inferior[open] { display: flex; align-items: flex-end; justify-content: center; }
.hoja-inferior::backdrop { background: rgb(0 0 0 / .55); opacity: 0; transition: opacity var(--dur-fast) var(--ease-smooth); }
.hoja-inferior.is-open::backdrop { opacity: 1; }
.sheet-panel {
  position: relative; width: 100%; max-height: calc(100svh - 16px); overflow: auto; overscroll-behavior: contain;
  padding: 8px var(--s5) calc(var(--s6) + var(--safe-b));
  background: #121212; color: #fff;
  box-shadow: 0 -10px 40px rgb(0 0 0 / .35);
}
.sheet-tirador { width: 40px; height: 5px; margin: 0 auto var(--s3); border-radius: 3px; background: rgb(255 255 255 / .3); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.sheet-head .icon-btn, .np-head .icon-btn { border-radius: 50%; }
.sheet-title { font-size: 1.4118rem; font-weight: 700; letter-spacing: -.022em; }
.opciones-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-radius: 16px; overflow: hidden; }
.opciones-lista a {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: var(--s3);
  min-height: 66px; padding: 10px var(--s4); background: #1c1c1e; color: #fff; text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-smooth);
}
.opciones-lista a:hover { background: #262628; }
.opciones-lista svg { width: 24px; height: 24px; justify-self: center; }
.opciones-lista svg:last-child { width: 18px; height: 18px; color: rgb(255 255 255 / .4); }
.opciones-lista strong { display: block; font-weight: 600; letter-spacing: -.01em; }
.opciones-lista small { display: block; margin-top: 1px; font-size: var(--t-sub); color: rgb(255 255 255 / .62); }
.opciones-pie { display: flex; align-items: center; justify-content: space-between; margin-top: var(--s6); }
.opciones-pie .social a { border-radius: 50%; }
/* Ahora suena */
.np-panel { display: flex; flex-direction: column; min-height: min(calc(100svh - 16px), 820px); background: linear-gradient(180deg, #1f1f21 0%, #0b0b0b 72%); }
.np-head { display: flex; align-items: center; justify-content: space-between; }
.np-art { width: min(100%, 46svh, 420px); aspect-ratio: 1; margin: var(--s5) auto 0; overflow: hidden; }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-meta { margin-top: var(--s8); }
.np-title { font-size: 1.5294rem; font-weight: 700; letter-spacing: -.024em; line-height: 1.15; }
.np-artist { margin-top: 2px; font-size: 1.0588rem; color: var(--fg-2); }
.np-progress { margin-top: var(--s5); }
.np-progress .onair-bar { height: 4px; border-radius: 2px; }
.np-times { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); margin-top: var(--s2); font-size: var(--t-foot); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.np-program { text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-controls { display: flex; align-items: center; justify-content: space-between; margin: var(--s5) var(--s6) 0; }
.np-sec { background: transparent; border-radius: 50%; width: 52px; height: 52px; }
.np-sec svg { width: 26px; height: 26px; }
.np-play { display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; -webkit-tap-highlight-color: transparent; }
.np-play .pp-icon { width: 32px; height: 36px; }
@media (hover: hover) { .np-play:hover, .np-sec:hover { background: rgb(255 255 255 / .08); } }
.np-vol { margin-top: auto; padding-top: var(--s5); }
.np-vol .vol { width: 100%; }
.np-vol input { flex: 1; width: auto; }
@media (min-width: 720px) {
  .hoja-inferior[open] { align-items: center; }
  .sheet-panel { width: min(100% - 48px, 460px); padding: var(--s5) var(--s6) var(--s8); box-shadow: 0 40px 100px rgb(0 0 0 / .5); }
  .sheet-tirador { display: none; }
  .np-panel { min-height: 0; }
  .np-art { width: min(100%, 44svh); }
  .np-vol { margin-top: var(--s6); }
}

/* ---------- Pie ---------- */
.site-footer { padding-block: clamp(64px, 2rem + 6vw, 120px) var(--s8); }
.footer-grid { display: grid; gap: var(--s12); }
.footer-brand { display: inline-block; }
.footer-brand img { width: clamp(180px, 20vw, 260px); }
.footer-tag { margin-top: var(--s5); max-width: 32ch; color: var(--fg-2); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s10) var(--s6); }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s16); } }
.footer-col h2 { font-size: var(--t-cap); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.footer-col ul { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: 2px; }
.footer-col ul a { display: inline-block; padding-block: 7px; color: var(--fg-2); text-decoration: none; transition: color var(--dur-fast) var(--ease-smooth); }
.footer-col ul a:hover { color: var(--fg); }
.footer-col .social { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.footer-col .social a { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--fg); background: var(--fill); }
.footer-col .social a:hover { background: var(--fill-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s6); margin-top: clamp(48px, 2rem + 4vw, 96px); font-size: var(--t-foot); color: var(--fg-3); }

/* ---------- Aviso (toast) ---------- */
.toast {
  position: fixed; left: 0; right: 0; bottom: calc(var(--dock-h) + var(--s4)); z-index: 70;
  width: max-content; max-width: min(100vw - 2 * var(--s4), 520px); margin-inline: auto;
  padding: var(--s4) var(--s5); background: #fff; color: #000;
  font-size: var(--t-callout); font-weight: 500; line-height: 1.4;
  box-shadow: 0 16px 40px rgb(0 0 0 / .32), 0 2px 8px rgb(0 0 0 / .12);
  opacity: 0; pointer-events: none;
}
.dock.is-compact ~ .toast { bottom: calc(var(--dock-h) - var(--tab-h) + var(--s4)); }

/* ---------- 404 y sin conexión ---------- */
.lost { min-height: calc(100svh - var(--header-h) - var(--dock-h)); display: flex; align-items: center; }
.lost .btn { margin-top: var(--s8); }

/* ---------- Motor de animaciones: antes de que arranque, lo que va a entrar espera oculto ---------- */
.js:not(.motor-listo) [data-nodo~="entrada"] > *,
.js:not(.motor-listo) [data-nodo~="revelar"],
.js:not(.motor-listo) [data-nodo~="revelar-grupo"] > * { opacity: 0; }
@media (min-width: 1024px) { .js:not(.motor-listo) [data-nodo~="carril"] > .show { opacity: 0; } }

/* ---------- Transiciones entre páginas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out var(--dur-fast) var(--ease-smooth) both; }
::view-transition-new(root) { animation: vt-in var(--dur-smooth) var(--ease-smooth) both; }
::view-transition-group(nav-mark), ::view-transition-group(tab-mark) { animation-duration: var(--dur-snappy); animation-timing-function: var(--ease-snappy); }
html.vt-local::view-transition-old(root), html.vt-local::view-transition-new(root) { animation: none; }
::view-transition-group(*.story) { animation-duration: var(--dur-snappy); animation-timing-function: var(--ease-snappy); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ---------- Diseño por tipo de objeto: generado desde js/motor/tipos.js al construir ---------- */
/* motor:tipos */
/* tipo: seccion */ main > section, main > article > header, .site-footer, .site-header, .article-main { border-radius: 0px; }
/* tipo: bloque */ .tile { border-radius: 0px; }
/* tipo: capsula */ @media (max-width: 719px) { .player-in, .tabbar { border-radius: 999px; box-shadow: 0 12px 32px rgb(0 0 0 / .28), 0 2px 8px rgb(0 0 0 / .2); } }
/* tipo: capsula */ @media (min-width: 720px) { .player-in, .tabbar { border-radius: 0px; } }
/* tipo: pantalla */ @media (min-width: 720px) { .lcd { border-radius: 8px; } }
/* tipo: pantalla */ @media (max-width: 719px) { .lcd { border-radius: 999px; } }
/* tipo: marca-pestana */ .tab-mark { border-radius: 999px; }
/* tipo: caratula */ .np-art { border-radius: 14px; box-shadow: 0 30px 60px rgb(0 0 0 / .55), 0 8px 20px rgb(0 0 0 / .35); }
/* tipo: caratula-mini */ @media (max-width: 719px) { .lcd-art { border-radius: 10px; } }
/* tipo: caratula-mini */ @media (min-width: 720px) { .lcd-art { border-radius: 0px; } }
/* tipo: hoja */ @media (max-width: 719px) { .sheet-panel { border-radius: 28px 28px 0 0; } }
/* tipo: hoja */ @media (min-width: 720px) { .sheet-panel { border-radius: 22px; } }
/* tipo: panel */ @media (min-width: 1024px) { .show { border-radius: 10px; } }
/* tipo: foto */ .show-media, .story-media, .host-media { border-radius: 10px; }
/* tipo: foto-grande */ .chart-top > img, .article-figure img { border-radius: 12px; }
/* tipo: miniatura */ .chart-row img, .slot-img { border-radius: 6px; }
/* tipo: miniatura */ @media (min-width: 900px) { .chart-row img, .slot-img { border-radius: 8px; } }
/* tipo: avatar */ .slot-host img { border-radius: 4px; }
/* tipo: boton */ .btn { border-radius: 0px; }

/* ---------- Preferencias de accesibilidad ---------- */
@media (prefers-reduced-motion: reduce) {
  /* Sin desplazamientos ni zoom: quedan fundidos breves (HIG, Reduce Motion). */
  .link-arrow svg, .faq-icon, .check input::after, .story-media img { transition-property: opacity, background-color, color; }
  .story:hover .story-media img { transform: none; }
  .pp-icon, .pp-icon i { transition: none; }
  .is-playing .eq i { animation: none; }
  :root .skel { animation: none; }
  .eq i:nth-child(1) { transform: scaleY(.55); } .eq i:nth-child(2) { transform: scaleY(1); } .eq i:nth-child(3) { transform: scaleY(.7); }
  .show, .show-media img, .show-label, .show-body, .show-shade { transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-contrast: more) {
  .dark, .site-header, .site-footer, .dock, .masthead { --fg-2: rgb(255 255 255 / .9); --fg-3: rgb(255 255 255 / .82); --fill: rgb(255 255 255 / .18); --fill-2: rgb(255 255 255 / .26); }
  .light { --fg-2: rgb(0 0 0 / .86); --fg-3: rgb(0 0 0 / .8); --fill: rgb(0 0 0 / .08); --fill-2: rgb(0 0 0 / .14); --rule: rgb(0 0 0 / .4); }
  .hero-shade, .masthead-shade { background: rgb(0 0 0 / .78); }
  .story-title a, .contact-list dd a { text-decoration: underline; }
}
@media (prefers-reduced-transparency: reduce) {
  .hero-shade, .masthead-shade { background: rgb(0 0 0 / .76); }
}
@media (forced-colors: active) {
  .btn, .pp, .chip, .icon-btn, .input, .seg, .faq-item { border: 1px solid ButtonText; }
  .pp-icon i, .live-dot, .eq i, .days-ink, .nav-mark, .onair-bar i, .slot-progress i { forced-color-adjust: none; background: CanvasText; }
  .seg-ink { display: none; }
  .seg-btn[aria-selected="true"] { text-decoration: underline; }
}
