/* ==========================================================================
   Enigma Stereo · Landing
   Paleta: negro cálido + dorado de marca, con acento tricolor venezolano.
   ========================================================================== */

:root {
  --bg: #070605;
  --bg-2: #0d0b08;
  --surface: #15120d;
  --surface-2: #1d1911;
  --surface-3: #282117;
  --line: rgba(255, 210, 110, 0.16);
  --line-2: rgba(255, 255, 255, 0.08);
  --text: #f7f2e8;
  --text-2: #d2c8b6;
  --text-3: #a79c88;
  --gold: #ffc53d;
  --gold-2: #f4a712;
  --gold-3: #ffe08a;
  --on-gold: #140f04;
  --red: #ff4136;
  --wa: #25d366;
  --vz-yellow: #ffcc00;
  --vz-blue: #0038a8;
  --vz-red: #ce1126;

  --radius: 20px;
  --radius-lg: 28px;
  --header-h: 72px;
  --pb-h: 72px;
  --gutter: 16px;
  --container: 1200px;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* Pantallas grandes / Smart TV: todo un poco más grande para leer a distancia */
@media (min-width: 1800px) {
  html { font-size: 118.75%; }
  :root { --container: 1440px; --header-h: 84px; }
}
/* Smart TV con resolución chica (720p, 540p): igual se lee desde el sillón */
@media (max-width: 1799px) {
  html.tv { font-size: 112.5%; }
}
@media (min-width: 2600px) {
  html { font-size: 150%; }
  :root { --container: 1900px; --header-h: 104px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }

/* Foco visible (también con el control remoto de la TV) */
a:focus, button:focus, [tabindex]:focus, summary:focus {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
[tabindex]:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 92%;
  max-width: var(--container);
  width: min(100% - 2 * var(--gutter) - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px), var(--container));
  margin-left: auto;
  margin-right: auto;
}

.skip-link {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top));
  left: 8px;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

/* ---------- Botones ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--btn-h);
  padding: 0 1.35em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1.1 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { --btn-h: 44px; padding: 0 1.05em; font-size: 0.9375rem; }
.btn-lg { --btn-h: 56px; padding: 0 1.6em; font-size: 1.0625rem; }

.btn-gold {
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 42%, var(--gold-2));
  color: var(--on-gold);
  box-shadow: 0 10px 30px -12px rgba(255, 190, 50, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px -10px rgba(255, 190, 50, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 214, 120, 0.38);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 197, 61, 0.12); border-color: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Estados de reproducción (todos los botones [data-play-toggle]) */
.icon-pause, .spinner { display: none; }
.is-playing > .icon-play { display: none; }
.is-playing > .icon-pause { display: block; }
.is-loading > .icon-play, .is-loading > .icon-pause { display: none; }
.is-loading > .spinner { display: block; }
.btn.is-loading > .icon-play { display: block; opacity: 0.45; }

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(20, 15, 4, 0.25);
  border-top-color: var(--on-gold);
  animation: spin 0.8s linear infinite;
}

/* Ecualizador animado */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { display: block; width: 3px; height: 35%; border-radius: 1px; background: currentColor; }
body.is-playing .eq i { animation: eq 0.9s ease-in-out infinite; }
body.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; }
body.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; }

.live-dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.8s infinite;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(7, 6, 5, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line-2);
}
body.menu-open .site-header {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  margin-right: auto;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.brand-text small { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }

.main-nav ul { display: flex; gap: 0.15rem; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="true"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.header-play { min-width: 128px; }

.menu-toggle { display: none; }

@media (max-width: 1079px) {
  .menu-toggle {
    display: inline-grid;
    place-content: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
  }
  .menu-toggle i {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.3s var(--ease);
  }
  .menu-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
    background: #070605;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0s linear 0.3s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 0.35rem; }
  .main-nav a {
    min-height: 60px;
    padding: 0 0.5rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7vw, 2.4rem);
    font-weight: 700;
  }
}
/* Menú en pantallas bajas (celular horizontal, Google TV 960×540): dos columnas para que quepa todo */
@media (max-width: 1079px) and (max-height: 600px) and (orientation: landscape) {
  .main-nav { padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 0.75rem); }
  .main-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 2rem; }
  .main-nav a { min-height: 52px; font-size: clamp(1.35rem, 3.6vw, 1.9rem); }
}

@media (max-width: 459px) {
  .brand-text small { display: none; }
  .header-play { min-width: 0; }
}
@media (max-width: 419px) {
  .brand-text { display: none; }
}

/* ---------- Hero con video por scroll ---------- */
.hero {
  position: relative;
  height: 400vh;
  background: #000;
}

.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: #000;
}

.hero-poster,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
/* En horizontal: mismo encuadre que el canvas (micrófono a la derecha del texto) */
@media (min-aspect-ratio: 1/1) {
  .hero-poster img { object-position: 5% 50%; transform: scale(1.18); transform-origin: 5% 50%; }
}
.hero-canvas { opacity: 0; transition: opacity 0.6s; }
.hero-stage.is-ready .hero-canvas { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.9) 0%, rgba(7, 6, 5, 0.6) 26%, rgba(7, 6, 5, 0) 56%),
    linear-gradient(0deg, rgba(7, 6, 5, 0.95) 0%, rgba(7, 6, 5, 0.4) 28%, rgba(7, 6, 5, 0) 52%),
    linear-gradient(180deg, rgba(7, 6, 5, 0.7) 0%, rgba(7, 6, 5, 0) 20%);
}

.hero-copy {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  height: 100svh;
  margin-inline: auto;
  display: grid;
  align-items: end;
  padding-bottom: clamp(5.5rem, 14vh, 9.5rem);
  pointer-events: none;
}

.chapter {
  grid-area: 1 / 1;
  max-width: 40rem;
  max-width: min(40rem, 40vw);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.55s var(--ease), transform 0.75s var(--ease), visibility 0s linear 0.55s;
}
.chapter.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font: 700 0.8125rem/1.2 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 6rem;
  font-size: clamp(3rem, min(11vw, 16vh), 9rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.hero-title span {
  display: block;
  background: linear-gradient(180deg, var(--gold-3) 8%, var(--gold) 45%, var(--gold-2) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-lead,
.chapter-text {
  max-width: 32ch;
  margin-top: 1.1rem;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  line-height: 1.45;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.75);
}
.chapter-text { color: var(--text-2); }
.now-line { display: flex; align-items: center; gap: 0.85rem; }
.now-line strong { color: var(--gold); font-weight: 600; }
.now-line-art {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.85);
}

.chapter[data-chapter="0"] { max-width: 46rem; }

.chapter-title {
  font-size: 3.5rem;
  font-size: clamp(2.3rem, min(5vw, 9.5vh), 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.5);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.hero-dots {
  position: absolute;
  z-index: 2;
  top: 50vh;
  top: 50svh;
  right: max(calc(var(--gutter) - 12px), env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  transform: translateY(-50%);
}
.hero-dots button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.hero-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  transition: height 0.3s var(--ease), background-color 0.3s;
}
.hero-dots button[aria-current="step"]::before { height: 28px; background: var(--gold); }

.scroll-cue {
  position: absolute;
  left: 50%;
  top: calc(100svh - 4.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 0.4s;
}
.scroll-cue i {
  display: block;
  width: 2px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
  transform-origin: top;
  animation: cue 1.8s ease-in-out infinite;
}
.scroll-cue.is-hidden { opacity: 0; }

.hero-progress {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.hero-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--vz-yellow), var(--gold-2));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}

@media (max-width: 767px), (max-aspect-ratio: 1/1) {
  .hero { height: 340vh; }
  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(7, 6, 5, 0.97) 0%, rgba(7, 6, 5, 0.82) 30%, rgba(7, 6, 5, 0.15) 58%, rgba(7, 6, 5, 0) 70%),
      linear-gradient(180deg, rgba(7, 6, 5, 0.7) 0%, rgba(7, 6, 5, 0) 22%);
  }
  .hero-copy { padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)); }
  .chapter, .chapter[data-chapter="0"] { max-width: 36rem; }
  .chapter-title { font-size: clamp(2.3rem, 10vw, 3.6rem); }
  .scroll-cue { display: none; }
}
@media (max-width: 479px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-dots { right: 0; }
  .chapter { padding-right: 28px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-copy { padding-bottom: 1.5rem; }
  .hero-lead, .chapter-text { font-size: 1rem; margin-top: 0.6rem; }
  .hero-ctas { margin-top: 1rem; }
  .eyebrow { margin-bottom: 0.5rem; }
  .scroll-cue { display: none; }
}

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-head { max-width: 48rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-title { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.section-lead { max-width: 60ch; margin-top: 1rem; color: var(--text-2); font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

/* ---------- En vivo ---------- */
.live {
  background:
    radial-gradient(60% 55% at 15% 0%, rgba(255, 190, 50, 0.11), transparent 70%),
    var(--bg);
}

/* Fondo: bandera de Venezuela de seda en penumbra (WebP de ~15 KB; versión vertical para celular).
   Se usa en "Sonando", "La radio" y "Hablemos" (clase .flag-bg). La imagen se descarga recién cuando
   la sección se acerca a la pantalla (main.js le pone .bg-ready); el navegador la descarga una sola vez. */
.flag-bg { isolation: isolate; overflow: hidden; }
.flag-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.flag-bg.bg-ready::before {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(7, 6, 5, 0.55) 16%, rgba(7, 6, 5, 0.62) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 6, 5, 0.25), rgba(7, 6, 5, 0.6)),
    url("../assets/img/bandera-nocturna.webp") center / cover no-repeat;
  opacity: 1;
}
/* "Hablemos": el texto va a la izquierda; en espejo, la luz de la bandera queda detrás del formulario */
.flag-bg--flip::before { transform: scaleX(-1); }
@media (max-aspect-ratio: 1/1) {
  .flag-bg.bg-ready::before {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(7, 6, 5, 0.6) 12%, rgba(7, 6, 5, 0.7) 60%, var(--bg) 100%),
      url("../assets/img/bandera-nocturna-movil.webp") center top / cover no-repeat;
  }
}

.live-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) {
  .live-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.5rem; }
}

.np-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
/* Resplandor con los colores de la portada que suena */
.np-backdrop {
  position: absolute;
  top: -30%;
  right: -30%;
  bottom: -30%;
  left: -30%;
  z-index: -1;
  background-position: center;
  background-size: cover;
  filter: blur(64px) saturate(1.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.np-backdrop.is-on { opacity: 0.4; }
@media (min-width: 640px) {
  .np-card { grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); align-items: center; }
}

@property --ang {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.np-art-wrap { position: relative; isolation: isolate; aspect-ratio: 1; max-width: 360px; }
.np-art-wrap::before {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: 26px;
  background: conic-gradient(from var(--ang), var(--gold), transparent 28%, var(--gold-2) 50%, transparent 76%, var(--gold));
  filter: blur(5px);
  opacity: 0.35;
}
body.is-playing .np-art-wrap::before { opacity: 0.8; animation: ang 5s linear infinite; }
.np-art {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  background: var(--surface-3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.np-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.np-badge.is-live-dj { color: var(--text); }
.np-title {
  margin-top: 0.6rem;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}
/* Títulos largos (con "feat. …"): un poco más chicos para no ocupar media pantalla */
.np-title.is-long { font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.18; }
.np-artist { margin-top: 0.35rem; color: var(--gold); font-size: 1.1rem; font-weight: 500; overflow-wrap: anywhere; }
.np-album {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.9rem;
  margin-top: 0.4rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.np-progress {
  height: 4px;
  margin-top: 1.1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.np-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-2), var(--gold-3));
  transition: width 1s linear;
}

.np-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1.25rem; }

.play-btn,
.pb-play {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  color: var(--on-gold);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.play-btn { width: 72px; height: 72px; box-shadow: 0 20px 50px -18px rgba(255, 180, 40, 0.6); }
.play-btn .icon { width: 30px; height: 30px; }
.play-btn:hover, .pb-play:hover { transform: scale(1.05); }
.play-btn:active, .pb-play:active { transform: scale(0.96); }
.play-btn.is-playing::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 197, 61, 0.55);
  animation: ring 1.8s var(--ease) infinite;
}

.volume { display: flex; flex: 1; align-items: center; gap: 0.35rem; max-width: 280px; }
.volume.is-hidden { display: none; }
.volume input[type="range"] { flex: 1; min-width: 0; height: 44px; accent-color: var(--gold); cursor: pointer; background: transparent; }
.icon-muted { display: none; }
[data-mute][aria-pressed="true"] .icon-vol { display: none; }
[data-mute][aria-pressed="true"] .icon-muted { display: block; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }

.np-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.np-meta .icon { color: var(--gold); }
.np-meta strong { color: var(--text); font-variant-numeric: tabular-nums; }
/* La calidad va como etiqueta aparte: si la línea se parte, no queda un "·" colgando */
.np-meta-sep { display: none; }
.np-bitrate { margin-left: 0.25rem; padding: 0.1rem 0.6rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; white-space: nowrap; }
.np-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.np-error { margin-top: 1rem; color: #ff9b91; font-size: 0.95rem; }

.history {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.history-title { margin-bottom: 0.9rem; font-size: 1.15rem; }
.history-list { display: grid; gap: 0.2rem; margin: 0; padding: 0; list-style: none; }
.history-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem;
  border-radius: 14px;
}
.history-item:hover { background: rgba(255, 255, 255, 0.04); }
.history-item img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.history-song { min-width: 0; }
.history-song strong,
.history-song span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-song strong { font-size: 0.98rem; font-weight: 600; }
.history-song span { color: var(--text-3); font-size: 0.875rem; }
.history-time { color: var(--text-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-empty { padding: 0.5rem; color: var(--text-3); }
.noscript-player { margin-top: 1rem; color: var(--text-2); }

/* ---------- Top 10 por género ---------- */
.top10 { background: radial-gradient(55% 60% at 100% 0%, rgba(255, 190, 50, 0.08), transparent 70%), var(--bg); }
.top-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 0.75rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.top-tabs::-webkit-scrollbar { display: none; }
.top-tab {
  flex: 0 0 auto; min-height: 44px; padding: 0.55rem 1.15rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); color: var(--text-2); font: 600 0.95rem/1 var(--font-body); cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.top-tab:hover { color: var(--text); border-color: rgba(255, 197, 61, 0.45); }
.top-tab[aria-selected="true"] { background: linear-gradient(180deg, var(--gold-3), var(--gold) 45%, var(--gold-2)); color: var(--on-gold); border-color: transparent; box-shadow: 0 10px 26px -14px rgba(255, 180, 40, 0.8); }
.top-panel { padding: clamp(0.75rem, 2vw, 1.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.top-note { margin: 0 0 0.5rem 0.25rem; color: var(--text-3); font-size: 0.9rem; }
.top-empty { padding: 1.5rem 0.5rem; color: var(--text-3); text-align: center; }
.top-list { display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1200px) { .top-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(5, auto); column-gap: 1.25rem; } }
.top-item {
  display: grid; grid-template-columns: 2.1rem 2.6rem 56px minmax(0, 1fr) auto; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.6rem; border-radius: 14px; transition: background-color 0.2s;
}
.top-item:hover { background: rgba(255, 255, 255, 0.04); }
.top-pos { font: 800 1.35rem/1 var(--font-display); color: var(--text-2); text-align: center; font-variant-numeric: tabular-nums; }
.top-item.is-podium .top-pos { color: var(--gold); font-size: 1.6rem; }
.top-move { justify-self: center; min-width: 2.2rem; padding: 0.2rem 0.35rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-align: center; }
.top-move.is-up { background: rgba(95, 211, 141, 0.14); color: #6fe09b; }
.top-move.is-down { background: rgba(255, 122, 107, 0.14); color: #ff8f82; }
.top-move.is-new { background: rgba(255, 197, 61, 0.16); color: var(--gold); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; }
.top-move.is-same { color: var(--text-3); }
.top-cover { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.top-text { display: grid; min-width: 0; line-height: 1.25; }
.top-title, .top-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-title { font-size: 1rem; color: var(--text); }
.top-artist { color: var(--gold); font-size: 0.9rem; }
.top-days { color: var(--text-3); font-size: 0.78rem; }
.top-ask { padding-inline: 0.85rem; }
.top-meta { margin-top: 0.9rem; color: var(--text-3); font-size: 0.85rem; }
@media (max-width: 559px) {
  .top-item { grid-template-columns: 1.6rem 2.3rem 48px minmax(0, 1fr); gap: 0.55rem; padding: 0.5rem 0.25rem; }
  .top-cover { width: 48px; height: 48px; }
  .top-ask { grid-column: 3 / -1; justify-self: start; min-height: 36px; padding: 0.35rem 0.9rem; font-size: 0.85rem; }
}

/* ---------- Programación ---------- */
.programs { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }

.prog-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 330px);
  gap: 1rem;
  margin-inline: calc(-1 * var(--gutter));
  padding: 0.25rem var(--gutter) 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 197, 61, 0.4) transparent;
}
.prog-grid:focus-visible { outline-offset: -3px; border-radius: 12px; }
@media (min-width: 900px) {
  .prog-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 1.5rem;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
}

.prog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.prog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 197, 61, 0.45);
  box-shadow: 0 24px 50px -30px rgba(255, 180, 40, 0.5);
}
.prog-card.is-live {
  border-color: rgba(255, 65, 54, 0.65);
  box-shadow: 0 0 0 1px rgba(255, 65, 54, 0.35), 0 24px 50px -30px rgba(255, 65, 54, 0.6);
}
.prog-media { position: relative; aspect-ratio: 640 / 906; overflow: hidden; background: var(--surface-3); }
.prog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.prog-card:hover .prog-media img { transform: scale(1.03); }

.prog-status {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(7, 6, 5, 0.88);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.prog-status.is-now { background: var(--red); color: #fff; }
.prog-status.is-now .live-dot { background: #fff; }
.prog-status.is-next { background: var(--gold); color: var(--on-gold); }

.prog-body { display: flex; flex: 1; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.2rem 1.3rem; }
.prog-tag { color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.prog-name { font-size: 1.3rem; line-height: 1.15; }
.prog-desc { color: var(--text-2); font-size: 0.98rem; }
.prog-time { display: flex; align-items: center; gap: 0.45rem; margin-top: auto; padding-top: 0.6rem; font-size: 0.95rem; }
.prog-time .icon { color: var(--gold); }
.prog-local { color: var(--text-3); font-size: 0.875rem; }

.prog-card-cta {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(255, 197, 61, 0.38);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255, 197, 61, 0.16), transparent 60%), var(--surface);
}
.prog-card-cta:hover { transform: none; }
.prog-cta-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; padding: 2rem 1.5rem; }
.icon-xl { width: 3rem; height: 3rem; color: var(--gold); stroke-width: 1.4; }

.clocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2.25rem; }
@media (min-width: 768px) { .clocks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.clock { padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: 16px; background: rgba(255, 255, 255, 0.02); }
.clock.is-you { border-color: rgba(255, 197, 61, 0.55); background: rgba(255, 197, 61, 0.06); }
.clock-city { display: block; color: var(--text-3); font-size: 0.8125rem; }
.clock.is-you .clock-city::after { content: " · tu hora"; color: var(--gold); }
.clock-time {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- La radio ---------- */
.about-grid { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.about-media { position: relative; isolation: isolate; margin: 0 14px 14px 0; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1.5px solid rgba(255, 197, 61, 0.45);
  border-radius: var(--radius-lg);
}
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about-text { margin-top: 1rem; color: var(--text-2); font-size: 1.08rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 197, 61, 0.3);
  border-radius: 999px;
  background: rgba(255, 197, 61, 0.06);
  font-size: 0.9rem;
  font-weight: 500;
}

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 0.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.stat dt { color: var(--text-3); font-size: 0.8125rem; }
.stat dd {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat dd small { margin-left: 0.2em; color: var(--text-2); font-size: 0.42em; font-weight: 600; }

/* ---------- Escúchanos ---------- */
.devices { background: radial-gradient(70% 60% at 85% 100%, rgba(0, 56, 168, 0.18), transparent 70%), var(--bg); }
.device-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.device-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.device-card h3 { font-size: 1.2rem; }
.device-card p { flex: 1; color: var(--text-2); font-size: 0.98rem; }
.device-card p strong { color: var(--text); }
.device-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 197, 61, 0.12);
  color: var(--gold);
}
.device-icon .icon { width: 26px; height: 26px; }

/* Códigos QR (útiles sobre todo en computador y TV: se escanean con el celular) */
.qr-block { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.qr-heading { margin-bottom: 1rem; font-size: 1.2rem; }
.qr-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.qr-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 197, 61, 0.1), transparent 60%), var(--surface);
}
.qr-img {
  width: 160px;
  height: 160px;
  flex: none;
  padding: 6px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, 0.9);
}
.qr-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-width: 0; }
.qr-body h4 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.qr-body p { color: var(--text-2); font-size: 0.95rem; }
.qr-body .btn { margin-top: 0.4rem; }
.qr-tag { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold) !important; font-size: 0.75rem !important; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
@media (min-width: 1800px) { .qr-img { width: 200px; height: 200px; } }
@media (max-width: 479px) {
  .qr-card { flex-direction: column; align-items: flex-start; }
  .qr-img { width: 140px; height: 140px; }
}

/* ---------- Servicios ---------- */
.services-intro { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
@media (min-width: 1000px) { .services-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.services-media { margin: 0; }
.services-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.services-copy .btn { margin-top: 1.6rem; }

.price-grid { display: grid; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) {
  .price-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem; }
  .price-card:first-child { grid-row: span 2; }
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
}
.price-card.is-featured {
  border-color: rgba(255, 197, 61, 0.55);
  background: radial-gradient(120% 70% at 100% 0%, rgba(255, 197, 61, 0.14), transparent 60%), var(--surface-2);
}
.price-media { position: relative; flex: 1; min-height: 240px; margin: 0; overflow: hidden; }
.price-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.price-body { display: flex; flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 1.5rem; }
.price-body h3 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; }
.price-card.is-featured h3 { padding-right: 5.5rem; }
.price-body h3 .icon { color: var(--gold); }
.price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1.1; }
.price small { display: block; color: var(--text-3); font-family: var(--font-body); font-size: 0.8125rem; font-weight: 500; }
.price-old { color: var(--text-3); font-size: 0.95rem; }
.price-old s { color: var(--text-2); }
.price-note { color: var(--text-2); font-size: 0.95rem; }
.price-body .btn { margin-top: 0.6rem; }
.ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fineprint { margin-top: 1rem; color: var(--text-3); font-size: 0.875rem; }

/* ---------- Contacto ---------- */
.contact { background: radial-gradient(60% 60% at 0% 100%, rgba(206, 17, 38, 0.13), transparent 70%), var(--bg); }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; } }

.contact-list { display: grid; gap: 0.75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.contact-list a:hover { border-color: rgba(255, 197, 61, 0.45); background: var(--surface-2); }
.contact-list a > span:last-child { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact-list small { display: block; color: var(--text-3); font-size: 0.8125rem; font-weight: 500; }
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 197, 61, 0.12);
  color: var(--gold);
}
.contact-icon.wa { background: rgba(37, 211, 102, 0.14); color: var(--wa); }

.socials { display: flex; gap: 0.6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.socials a:hover { border-color: var(--gold); background: var(--gold); color: var(--on-gold); }

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.form-title { font-size: 1.35rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.95rem; font-weight: 600; }
.optional { color: var(--text-3); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc53d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
}
.field select option { background: var(--surface); color: var(--text); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.2); }
.field [aria-invalid="true"] { border-color: #ff6b5e; }
.field-error { color: #ff9b91; font-size: 0.875rem; }
.field-hint { color: var(--text-3); font-size: 0.85rem; }
/* Elegir por dónde llega el mensaje: Correo o WhatsApp de la radio */
.channel-pick { margin: 0; padding: 0; border: 0; min-width: 0; }
.channel-pick legend { margin-bottom: 0.5rem; padding: 0; font-size: 0.95rem; font-weight: 600; }
.channel-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 4px; border: 1.5px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: var(--bg-2); }
.channel-opt { position: relative; display: block; cursor: pointer; }
.channel-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.channel-opt span { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 46px; padding: 0.5rem 0.75rem; border-radius: 12px; color: var(--text-2); font-weight: 600; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; }
.channel-opt .icon { width: 20px; height: 20px; }
.channel-opt input:checked + span { background: linear-gradient(180deg, var(--gold-3), var(--gold) 45%, var(--gold-2)); color: var(--on-gold); box-shadow: 0 8px 22px -12px rgba(255, 180, 40, 0.8); }
.channel-opt input[value="whatsapp"]:checked + span { background: var(--wa); color: #fff; box-shadow: 0 8px 22px -12px rgba(37, 211, 102, 0.8); }
.channel-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.channel-opt:hover input:not(:checked) + span { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.channel-note { padding: 0.75rem 0.9rem; border: 1px solid rgba(37, 211, 102, 0.35); border-radius: 12px; background: rgba(37, 211, 102, 0.08); color: var(--text-2); }
.btn-send { width: 100%; }
.btn-send:disabled { opacity: 0.65; cursor: not-allowed; }
.form-privacy { color: var(--text-3); font-size: 0.78rem; line-height: 1.45; }
.field-error button { padding: 0; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.25rem; }
.form-status { min-height: 1.5em; color: var(--text-2); font-size: 0.95rem; }
/* Campo trampa para robots (oculto para las personas y los lectores de pantalla) */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer {
  background: #040303;
  padding-bottom: calc(var(--pb-h) + 2.5rem + env(safe-area-inset-bottom));
}
.vz-stripe { display: flex; height: 4px; }
.vz-stripe i { flex: 1; }
.vz-stripe i:nth-child(1) { background: var(--vz-yellow); }
.vz-stripe i:nth-child(2) { background: var(--vz-blue); }
.vz-stripe i:nth-child(3) { background: var(--vz-red); }

.footer-grid { display: grid; gap: 2.25rem; padding-top: 3.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { width: 88px; height: 88px; border-radius: 18px; }
.tagline { margin-top: 1rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
.tagline b { color: var(--gold); }
.site-footer h3 {
  margin-bottom: 0.6rem;
  color: var(--text-3);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer ul { display: grid; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.site-footer ul a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-2);
  color: var(--text-3);
  font-size: 0.875rem;
}
.to-top { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; color: var(--text-2); text-decoration: none; }
.to-top:hover { color: var(--gold); }

/* ---------- Reproductor fijo ---------- */
.player-bar {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 0.85rem;
  width: min(100% - 24px, 640px);
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(22, 18, 12, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, calc(100% + 40px));
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.player-bar.is-visible { transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.pb-art { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--surface-3); }
.pb-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pb-live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--text-3); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.pb-live .live-dot { width: 0.45rem; height: 0.45rem; }
.pb-title, .pb-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-title { font-size: 0.95rem; }
.pb-artist { color: var(--gold); font-size: 0.8125rem; }
.pb-play { width: 52px; height: 52px; }
.pb-play .icon { width: 24px; height: 24px; }
.pb-play .spinner { width: 22px; height: 22px; }
/* Celular en horizontal (poca altura): barra más baja para no tapar la página */
@media (max-height: 520px) and (orientation: landscape) {
  :root { --pb-h: 56px; }
  .player-bar { grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 0.7rem; padding: 6px 8px 6px 10px; border-radius: 18px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .pb-art { width: 40px; height: 40px; border-radius: 10px; }
  .pb-live { display: none; }
  .pb-play { width: 44px; height: 44px; }
  .pb-play .icon { width: 20px; height: 20px; }
}

.wa-float {
  position: fixed;
  z-index: 44;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.3s var(--ease), bottom 0.45s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 30px; height: 30px; }
@media (max-width: 719px) {
  /* En el celular aparece después del hero, sobre el reproductor fijo */
  .wa-float { opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s; }
  body.has-player .wa-float {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  body.bar-shown .wa-float { bottom: calc(12px + var(--pb-h) + 14px + env(safe-area-inset-bottom)); }
}

/* ---------- Modal: Pide tu canción ---------- */
.modal {
  width: min(100% - 24px, 600px);
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.modal[open] { display: flex; flex-direction: column; }
.modal::backdrop { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-inner { display: flex; flex: 1; flex-direction: column; gap: 1rem; min-height: 0; padding: 1.25rem 1.25rem 1.5rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.modal-head h2 { font-size: 1.5rem; }
.modal-lead { color: var(--text-2); }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 50%; left: 1rem; color: var(--text-3); transform: translateY(-50%); }
.search-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem 0.8rem 2.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
}
.search-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.2); }
.req-status { color: var(--text-3); font-size: 0.9rem; }
.req-from { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 0.5rem; }
.req-from .req-wide { grid-column: 1 / -1; }
.req-from input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: var(--bg-2);
  color: var(--text);
  font-size: 1rem;
}
.req-from input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255, 197, 61, 0.2); }
@media (max-width: 479px) { .req-from { grid-template-columns: 1fr; } }
.req-results { display: grid; flex: 1; gap: 0.35rem; min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.req-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.req-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.req-song { min-width: 0; }
.req-song strong,
.req-song span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-song strong { font-size: 0.95rem; font-weight: 600; }
.req-song span { color: var(--text-3); font-size: 0.85rem; }

/* ---------- Pedido enviado ---------- */
.sent-modal { width: min(100% - 32px, 440px); text-align: center; }
.sent-inner { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 2rem 1.6rem 1.6rem; }
.sent-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  color: var(--on-gold);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 16px 40px -14px rgba(255, 180, 40, 0.7);
}
.sent-inner h2 { margin-top: 0.4rem; font-size: 1.6rem; }
.sent-inner p { color: var(--text-2); font-size: 1.05rem; line-height: 1.5; }
.sent-inner .sent-email { color: var(--gold); font-size: 0.95rem; }
.sent-bar { display: block; width: 100%; height: 4px; margin-top: 0.8rem; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.sent-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; }
.sent-modal[open] .sent-bar i { animation: sent-countdown 5s linear forwards; }
@keyframes sent-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Confirmación del formulario "Escríbenos" ---------- */
.mail-modal { width: min(100% - 32px, 480px); overflow: hidden; text-align: center; background: radial-gradient(120% 70% at 50% 0%, rgba(255, 197, 61, 0.14), transparent 60%), var(--surface); }
.mail-modal[open] { animation: mail-pop 0.45s var(--ease) both; }
.mail-modal::backdrop { background: rgba(0, 0, 0, 0.78); }
.mail-inner { display: flex; flex-direction: column; align-items: center; padding: 2rem 1.75rem 1.5rem; }
.mail-badge { position: relative; width: 96px; height: 96px; margin-bottom: 1.1rem; }
.mail-badge img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 0 3px rgba(255, 197, 61, 0.55), 0 22px 50px -18px rgba(255, 180, 40, 0.65); }
.mail-check {
  position: absolute; right: -10px; bottom: -10px;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-3), var(--gold) 45%, var(--gold-2));
  box-shadow: 0 0 0 4px var(--surface), 0 10px 24px -8px rgba(255, 180, 40, 0.8);
}
.mail-check svg { width: 24px; height: 24px; fill: none; stroke: var(--on-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; }
.mail-modal[open] .mail-check { animation: mail-pop 0.4s 0.25s var(--ease) both; }
.mail-modal[open] .mail-check svg { animation: mail-draw 0.45s 0.5s ease-out forwards; }
.mail-kicker { color: var(--gold); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.mail-inner h2 { margin-top: 0.45rem; font-size: clamp(1.5rem, 4.5vw, 1.85rem); line-height: 1.2; }
.mail-lead { margin-top: 0.7rem; color: var(--text-2); font-size: 1.05rem; line-height: 1.55; }
.mail-summary { width: 100%; margin: 1.3rem 0 0; padding: 0.35rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(0, 0, 0, 0.28); text-align: left; }
.mail-summary div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-2); }
.mail-summary div:last-child { border-bottom: 0; }
.mail-summary dt { color: var(--text-3); font-size: 0.9rem; white-space: nowrap; }
.mail-summary dd { margin: 0; color: var(--text); font-size: 0.95rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
@media (max-width: 479px) {
  .mail-inner { padding: 1.6rem 1.1rem 1.2rem; }
  .mail-summary div { flex-direction: column; gap: 0.15rem; }
  .mail-summary dd { text-align: left; overflow-wrap: anywhere; }
}
.mail-note { margin-top: 0.9rem; color: var(--text-3); font-size: 0.92rem; line-height: 1.5; }
.mail-actions { display: flex; justify-content: center; width: 100%; margin-top: 1.4rem; }
.mail-actions .btn { width: 100%; max-width: 320px; }
.mail-bar { display: block; width: 100%; height: 3px; margin-top: 1.25rem; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mail-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--vz-yellow), var(--gold)); transform-origin: left; }
.mail-modal[open] .mail-bar i { animation: sent-countdown 9s linear forwards; }
.mail-modal.is-paused .mail-bar i { animation-play-state: paused; }
@keyframes mail-pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes mail-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .mail-modal[open], .mail-modal[open] .mail-check { animation: none; }
  .mail-check svg { stroke-dashoffset: 0; }
  .mail-modal[open] .mail-check svg { animation: none; }
  .mail-bar { display: none; }
}
.btn-spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, 0.2); border-top-color: var(--gold); animation: spin 0.8s linear infinite; }
/* Mensaje de error del formulario */
.form-status.is-error { color: #ff9b91; }
.form-status.is-ok { color: var(--gold); }

/* ---------- Compartir ---------- */
.share-modal { width: min(100% - 24px, 460px); }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.share-opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: 600 0.95rem/1.2 var(--font-body);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.share-opt:hover { border-color: rgba(255, 197, 61, 0.5); background: rgba(255, 197, 61, 0.08); }
.share-opt:last-child { grid-column: 1 / -1; }
.share-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: rgba(255, 197, 61, 0.14);
  color: var(--gold);
}
.share-ico.is-wa { background: rgba(37, 211, 102, 0.16); color: var(--wa); }
.share-ico.is-fb { background: rgba(24, 119, 242, 0.18); color: #4f9bff; }
.share-ico.is-x { background: rgba(255, 255, 255, 0.1); color: var(--text); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--pb-h) + 28px + env(safe-area-inset-bottom));
  max-width: min(100% - 32px, 480px);
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  background: var(--text);
  color: #120e06;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animaciones ---------- */
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes ang { to { --ang: 360deg; } }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 65, 54, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 65, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 65, 54, 0); }
}
@keyframes ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes cue {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Tarjetas de programa clicables + ventana de detalle ---------- */
.prog-card[data-program] { cursor: pointer; }
.prog-card[data-program]:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.prog-card[data-program] .prog-media::after {
  content: "Ver más";
  position: absolute; left: 50%; bottom: 14px;
  padding: 0.45rem 1rem; border-radius: 999px;
  background: rgba(10, 8, 6, 0.78); border: 1px solid rgba(255, 197, 61, 0.5);
  color: var(--gold-3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translate(-50%, 8px); transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none;
}
.prog-card[data-program]:hover .prog-media::after,
.prog-card[data-program]:focus-visible .prog-media::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .prog-card[data-program] .prog-media::after { opacity: 1; transform: translate(-50%, 0); } }

.prog-modal {
  width: min(100% - 24px, 980px);
  max-height: min(92vh, 720px);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 197, 61, 0.12), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(0, 56, 168, 0.16), transparent 70%),
    var(--surface);
}
.prog-modal.is-live { border-color: rgba(255, 65, 54, 0.6); }
.prog-modal::backdrop { background: rgba(4, 3, 2, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.prog-modal[open] { animation: pm-in 0.5s var(--ease) both; }
.prog-modal[open]::backdrop { animation: pm-fade 0.4s ease both; }
.prog-modal.is-flying[open] { animation: pm-fade 0.3s ease both; } /* el afiche ya trae su propio vuelo */
.prog-modal.is-closing { animation: pm-out 0.26s ease-in both; }
.prog-modal.is-closing::backdrop { animation: pm-fade 0.26s ease-in reverse both; }
.pm-close { position: absolute; top: 14px; right: 14px; z-index: 3; background: rgba(10, 8, 6, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pm-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); min-height: 0; flex: 1; }
.pm-poster { position: relative; margin: 0; padding: 22px; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pm-poster img {
  width: 100%; height: auto; max-height: calc(min(92vh, 720px) - 50px); aspect-ratio: 640 / 906; object-fit: cover;
  border-radius: 16px; background: #0b0a14; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform-origin: top left; will-change: transform;
}
.pm-poster img.is-fit { object-fit: contain; }
.pm-poster .prog-status { top: 36px; left: 36px; }
.pm-body { display: flex; flex-direction: column; gap: 0.9rem; min-height: 0; overflow-y: auto; padding: 2.4rem 2.2rem 2rem 0.6rem; overscroll-behavior: contain; }
.pm-tag { color: var(--gold); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.pm-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; padding-right: 2.5rem; }
.pm-host { color: var(--gold-3); font-weight: 600; }
.pm-desc { display: flex; flex-direction: column; gap: 0.75rem; color: var(--text-2); font-size: 1.05rem; line-height: 1.6; }
.pm-when { display: grid; gap: 0.1rem; margin: 0.3rem 0 0; padding: 0.4rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.025); }
.pm-when > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.65rem 0; }
.pm-when > div + div { border-top: 1px solid var(--line-2); }
.pm-when dt { display: flex; align-items: center; gap: 0.45rem; color: var(--text-3); font-size: 0.9rem; }
.pm-when dt .icon { color: var(--gold); }
.pm-when dd { margin: 0; font-weight: 700; text-align: right; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: auto; padding-top: 0.4rem; }
.pm-actions .btn { flex: 1 1 200px; justify-content: center; }
.pm-actions .btn:disabled { opacity: 0.7; cursor: default; }
/* Entrada escalonada del contenido */
.prog-modal[open] .pm-body > * { animation: pm-rise 0.55s var(--ease) both; }
.prog-modal[open] .pm-body > :nth-child(2) { animation-delay: 0.06s; }
.prog-modal[open] .pm-body > :nth-child(3) { animation-delay: 0.1s; }
.prog-modal[open] .pm-body > :nth-child(4) { animation-delay: 0.14s; }
.prog-modal[open] .pm-body > :nth-child(5) { animation-delay: 0.2s; }
.prog-modal[open] .pm-body > :nth-child(6) { animation-delay: 0.26s; }
@keyframes pm-in { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes pm-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .prog-modal { max-height: 92vh; overflow-y: auto; overscroll-behavior: contain; }
  .pm-grid { grid-template-columns: 1fr; flex: none; }
  .pm-poster { padding: 16px 16px 0; }
  .pm-poster img { width: auto; max-width: 100%; height: min(52vh, 460px); max-height: none; }
  .pm-poster .prog-status { top: 28px; left: 28px; }
  .pm-body { overflow: visible; padding: 1.2rem 1.25rem 1.5rem; }
  .pm-title { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .prog-modal[open], .prog-modal[open]::backdrop, .prog-modal.is-closing, .prog-modal[open] .pm-body > * { animation: none; }
}

/* Diálogo en navegadores sin <dialog> */
.modal.is-fallback {
  position: fixed;
  z-index: 70;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
}

/* Respaldos para navegadores antiguos de Smart TV (sin la propiedad inset) */
.site-header, .hero-progress { top: 0; left: 0; right: 0; }
.hero-poster, .hero-canvas, .hero-scrim { top: 0; right: 0; bottom: 0; left: 0; }
@media (max-width: 1079px) {
  .main-nav { top: 0; right: 0; bottom: 0; left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Contenido del CMS ---------- */
.prog-host { color: var(--text-2); font-size: 0.9rem; font-weight: 600; }
.site-notice { position: relative; z-index: 40; margin-top: var(--header-h); background: linear-gradient(90deg, rgba(255, 197, 61, 0.16), rgba(255, 197, 61, 0.06)); border-bottom: 1px solid rgba(255, 197, 61, 0.35); }
.site-notice.is-urgente { background: linear-gradient(90deg, rgba(206, 17, 38, 0.3), rgba(206, 17, 38, 0.1)); border-color: rgba(255, 122, 107, 0.45); }
.site-notice.is-info { background: linear-gradient(90deg, rgba(0, 56, 168, 0.28), rgba(0, 56, 168, 0.08)); border-color: rgba(120, 160, 255, 0.35); }
.site-notice-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; max-width: var(--container); margin: 0 auto; padding: 0.7rem 3.2rem 0.7rem var(--gutter); }
.site-notice p { margin: 0; color: var(--text); font-size: 0.95rem; }
.site-notice strong { color: var(--gold); }
.site-notice-close { position: absolute; top: 50%; right: 0.6rem; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 1.4rem; cursor: pointer; }
/* Afiche del CMS con otra proporción: completo, sobre fondo oscuro */
.prog-media img.is-fit { object-fit: contain; background: radial-gradient(80% 60% at 50% 40%, rgba(255, 197, 61, 0.08), transparent 70%), #0b0a14; }
