/* ============================================================
   Radios593 — Portada (index.html)
   Hoja propia de la portada. styles.css sigue sirviendo a
   estacion.html, directorio.html y blog.html sin cambios.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --z-push-ask:     9997;
  --z-update-bar:   9998;
  --z-splash:      10001;
  --z-pwa-banner:  10000;
  --z-update-wall: 20000;

  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --bg:        #f6f5fb;
  --bg-2:      #eeebf7;
  --surface:   #ffffff;
  --surface-2: #f3f1fa;
  --surface-3: #e9e5f5;
  --border:    rgba(30, 16, 70, .09);
  --border-2:  rgba(30, 16, 70, .16);
  --text:      #171129;
  --text-2:    #4a4462;
  --text-3:    #7f7898;
  --primary:   #6d28d9;
  --primary-2: #7c3aed;
  --primary-soft: rgba(109, 40, 217, .1);
  --on-primary: #ffffff;
  --live:      #e11d48;
  --ok:        #16a34a;
  --star:      #e11d48;
  --shadow-sm: 0 1px 2px rgba(23,17,41,.06), 0 1px 3px rgba(23,17,41,.05);
  --shadow:    0 6px 24px rgba(23,17,41,.08), 0 2px 6px rgba(23,17,41,.05);
  --shadow-lg: 0 20px 50px rgba(23,17,41,.16), 0 6px 16px rgba(23,17,41,.08);
  --header-bg: rgba(246,245,251,.82);
  --player-bg: rgba(255,255,255,.9);

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --r-full: 999px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --wrap: 1240px;
  --player-h: 76px;
}

body.dark {
  --bg:        #0c0915;
  --bg-2:      #110d1d;
  --surface:   #15111f;
  --surface-2: #1c172a;
  --surface-3: #262037;
  --border:    rgba(255,255,255,.07);
  --border-2:  rgba(255,255,255,.14);
  --text:      #f3f1fa;
  --text-2:    #b9b2cf;
  --text-3:    #7e7796;
  --primary:   #8b5cf6;
  --primary-2: #a78bfa;
  --primary-soft: rgba(139, 92, 246, .14);
  --live:      #fb3b63;
  --ok:        #22c55e;
  --star:      #fb3b63;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 8px 28px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --header-bg: rgba(12,9,21,.78);
  --player-bg: rgba(21,17,31,.88);
  color-scheme: dark;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
  transition: background-color .25s ease, color .25s ease;
}

main, .footer { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 30000;
  background: var(--primary); color: #fff; padding: 10px 14px; border-radius: var(--r);
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* Barra de respaldo para navegadores que ignoran theme-color */
#themeFallbackBar { display: none; width: 100vw; height: 4px; background: #4c1d95; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; }

/* ── Icon button ────────────────────────────────────────────── */
.ibtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-shrink: 0;
  border: 0; border-radius: var(--r-full);
  background: transparent; color: var(--text-2);
  cursor: pointer; transition: background .15s, color .15s, transform .1s;
}
.ibtn:hover { background: var(--surface-2); color: var(--text); }
.ibtn:active { transform: scale(.92); }
.ibtn svg { width: 20px; height: 20px; }
.ibtn.is-on { color: var(--star); }
.ibtn.is-on .heart-path { fill: currentColor; }

/* ================================================================
   HEADER
   ================================================================ */
.topbar {
  position: sticky; top: 0; z-index: 900;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.update-bar-visible .topbar { top: 52px; }
.topbar__inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__logo { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -.03em; line-height: 1; }
.brand__name span { color: var(--primary-2); }
.brand__sub { font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 3px; letter-spacing: .02em; }

.nav { display: flex; gap: 2px; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 8px 12px; border-radius: var(--r-full); transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.topsearch {
  flex: 1; max-width: 420px; margin-left: auto; position: relative;
}
.topsearch input {
  width: 100%; height: 40px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 14px;
  padding: 0 14px 0 40px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.topsearch input::placeholder { color: var(--text-3); }
.topsearch input:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px var(--primary-soft); }
.topsearch svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.topsearch kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font: 600 11px var(--font); color: var(--text-3); border: 1px solid var(--border-2);
  border-radius: 6px; padding: 1px 6px; background: var(--surface-2);
}
.topsearch input:focus + kbd, .topsearch input:not(:placeholder-shown) + kbd { display: none; }

.topbar__actions { display: flex; gap: 4px; }
.mode-sun { display: none; }
body.dark .mode-sun { display: block; }
body.dark .mode-moon { display: none; }

/* ================================================================
   HERO
   ================================================================ */
.hero { position: relative; overflow: hidden; padding: 56px 0 36px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; pointer-events: none;
  background:
    radial-gradient(40% 60% at 20% 30%, rgba(124,58,237,.22), transparent 70%),
    radial-gradient(35% 55% at 80% 20%, rgba(225,29,72,.14), transparent 70%),
    radial-gradient(30% 50% at 55% 70%, rgba(59,130,246,.10), transparent 70%);
  filter: blur(10px);
}
.hero .wrap { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px 6px 10px; border-radius: var(--r-full); box-shadow: var(--shadow-sm);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(225,29,72,.6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(225,29,72,.55); } 70% { box-shadow: 0 0 0 8px rgba(225,29,72,0); } 100% { box-shadow: 0 0 0 0 rgba(225,29,72,0); } }

.hero__title {
  font-size: clamp(32px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.045em;
  font-weight: 800; margin: 18px 0 14px; max-width: 820px;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--primary-2) 0%, #e11d48 60%, #f59e0b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-2); max-width: 620px; margin: 0 0 26px; }

.hero__search { position: relative; max-width: 640px; }
.hero__search input {
  width: 100%; height: 58px; border-radius: var(--r-lg);
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px; padding: 0 120px 0 52px; outline: none;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.hero__search input:focus { border-color: var(--primary-2); box-shadow: var(--shadow), 0 0 0 5px var(--primary-soft); }
.hero__search input::placeholder { color: var(--text-3); }
.hero__search > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-3); }
.hero__search button {
  position: absolute; right: 7px; top: 7px; height: 44px; padding: 0 18px;
  border: 0; border-radius: 12px; background: var(--primary); color: #fff;
  font-weight: 600; font-size: 14px; cursor: pointer; transition: filter .15s;
}
.hero__search button:hover { filter: brightness(1.1); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; color: var(--text-2); font-size: 14px; }
.hero__stats strong { color: var(--text); font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-right: 4px; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.quick__label { font-size: 13px; color: var(--text-3); align-self: center; margin-right: 4px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  height: 34px; padding: 0 14px; border-radius: var(--r-full);
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--border-2); color: var(--text); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip small { font-size: 11px; opacity: .65; font-weight: 600; }

/* ================================================================
   SECTIONS / RAILS
   ================================================================ */
.section { padding: 26px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__title { font-size: 22px; font-weight: 750; letter-spacing: -.025em; margin: 0; }
.section__sub { font-size: 13px; color: var(--text-3); margin: 3px 0 0; }
.section__actions { display: flex; gap: 6px; align-items: center; }
.link-btn {
  border: 0; background: none; color: var(--primary-2); font-weight: 600; font-size: 13px;
  cursor: pointer; padding: 6px 8px; border-radius: var(--r-sm); text-decoration: none;
}
.link-btn:hover { background: var(--primary-soft); }
.rail-nav { width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface); }
.rail-nav svg { width: 16px; height: 16px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 156px; gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; margin: -4px -2px 0; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* ── Station card ───────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 18px 14px; }

.st {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  min-width: 0; cursor: pointer; outline: none;
}
.st__art {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.st__blur { position: absolute; inset: -20%; background-size: cover; background-position: center; filter: blur(22px) saturate(1.4); opacity: 0; transform: scale(1.1); transition: opacity .4s; }
.st__blur.loaded { opacity: .45; }
.st__art img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.st__art img.img-fallback { opacity: .5; padding: 22%; }
.st__play {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(76,29,149,.45); opacity: 0; transform: translateY(8px) scale(.9);
  transition: opacity .2s, transform .25s var(--ease-spring); cursor: pointer;
}
.st__play svg { width: 20px; height: 20px; }
.st__fav {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(10,8,20,.55); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s, transform .15s;
}
.st__fav svg { width: 16px; height: 16px; }
.st__fav.is-on { opacity: 1; color: #ff4d73; }
.st__fav.is-on .heart-path { fill: currentColor; }
.st__fav:active { transform: scale(.88); }
.st:hover .st__art, .st:focus-visible .st__art { transform: translateY(-3px); box-shadow: var(--shadow); }
.st:hover .st__play, .st:focus-visible .st__play, .st.is-current .st__play { opacity: 1; transform: none; }
.st:hover .st__fav, .st:focus-visible .st__fav { opacity: 1; }
.st:focus-visible .st__art { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.st.is-current .st__art { border-color: var(--primary-2); box-shadow: 0 0 0 2px var(--primary-2), var(--shadow); }
.st__name { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st__meta { font-size: 12px; color: var(--text-3); margin: 2px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ecualizador animado en la tarjeta que está sonando */
.eq { display: none; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: #fff; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 30%; } 50% { height: 100%; } }
body.is-playing .st.is-current .st__play .ico-play { display: none; }
body.is-playing .st.is-current .st__play .eq { display: flex; }

/* Skeletons */
.skel .st__art { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skel .st__name { height: 12px; width: 75%; border-radius: 6px; background: var(--surface-2); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Province tiles ─────────────────────────────────────────── */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.prov {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border);
  text-align: left; cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.prov:hover { transform: translateY(-2px); border-color: var(--border-2); box-shadow: var(--shadow); }
.prov__logos { display: flex; flex-shrink: 0; }
.prov__logos img {
  width: 34px; height: 34px; border-radius: 10px; object-fit: contain; background: var(--surface-2);
  border: 2px solid var(--surface); margin-left: -10px; padding: 2px;
}
.prov__logos img:first-child { margin-left: 0; }
.prov__name { font-weight: 650; font-size: 14px; line-height: 1.25; margin: 0; }
.prov__count { font-size: 12px; color: var(--text-3); margin: 2px 0 0; }

/* ── Browse toolbar ─────────────────────────────────────────── */
.browse-bar {
  position: sticky; top: 64px; z-index: 50;
  background: var(--bg); padding: 12px 0; margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.update-bar-visible .browse-bar { top: 116px; }
.browse-bar__row { display: flex; gap: 10px; align-items: center; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips-scroll::-webkit-scrollbar { display: none; }
.select {
  height: 36px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; font-size: 13px; padding: 0 30px 0 12px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a84a1' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.browse-bar #provinceSelect { display: none; max-width: 100%; min-width: 0; }
#sortSelect { flex-shrink: 0; }
@media (max-width: 760px) {
  .browse-bar .chips-scroll { display: none; }
  .browse-bar #provinceSelect { display: block; flex: 1; }
}
.result-info { font-size: 13px; color: var(--text-3); margin: 0 0 14px; }
.result-info strong { color: var(--text); }

.province-header {
  grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0 2px; border-bottom: 1px solid var(--border); margin-top: 8px;
}
.province-header-text { font-weight: 700; font-size: 16px; }
.province-header-count { font-size: 12px; color: var(--text-3); }

.empty {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px; color: var(--text-2);
  border: 1px dashed var(--border-2); border-radius: var(--r-lg);
}
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* ── Features + FAQ (SEO) ───────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.feature { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.feature__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-2); margin-bottom: 12px; }
.feature__icon svg { width: 20px; height: 20px; }
.feature h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.feature p { margin: 0; font-size: 13.5px; color: var(--text-2); }

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text-2); font-size: 14px; }

/* ================================================================
   PÁGINAS SEO (/radio/*, /radios/*)
   ================================================================ */
.page { padding-top: 18px; padding-bottom: 20px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; font-size: 13px; color: var(--text-3); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.page-head { padding: 10px 0 8px; }
.page-title { font-size: clamp(28px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; margin: 14px 0 10px; }
.page-lead { font-size: 16px; color: var(--text-2); max-width: 760px; margin: 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.prose h3 { font-size: 16px; margin: 18px 0 6px; }
.prose p { color: var(--text-2); margin: 0 0 12px; }
.prose a { color: var(--primary-2); }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--border); }
.facts span { font-size: 12px; color: var(--text-3); }
.facts a { color: inherit; }
.st__link { text-decoration: none; color: inherit; }
.st__link:hover { text-decoration: underline; }
.seo-page .st__play { opacity: 1; transform: none; }
.seo-page .grid .st__art { cursor: pointer; }
a.prov { color: inherit; text-decoration: none; }
.prov__name, .prov__count { display: block; }

.station-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); cursor: default;
}
.station-hero__bg { position: absolute; inset: -30%; background-size: cover; background-position: center; filter: blur(60px) saturate(1.5); opacity: .28; pointer-events: none; }
.station-hero__art { position: relative; width: 200px; aspect-ratio: 1; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.station-hero__art img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.station-hero__info { position: relative; min-width: 0; }
.station-hero__title { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.04em; font-weight: 800; margin: 14px 0 6px; }
.station-hero__sub { color: var(--text-2); margin: 0 0 20px; }
.station-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r-full);
  font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(109,40,217,.35); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost svg { width: 16px; height: 16px; }
.btn-ghost:hover { border-color: var(--border-2); }
body.is-playing .station-hero.is-current .btn-primary .ico-play { display: none; }
body.is-playing .station-hero.is-current .btn-primary .eq { display: flex; }
.seo-pbar[hidden] { display: none; }
body.seo-page:not(:has(.seo-pbar:not([hidden]))) { padding-bottom: 0; }
@media (max-width: 760px) {
  .station-hero { grid-template-columns: 1fr; text-align: center; padding: 22px 18px; gap: 18px; }
  .station-hero__art { width: 160px; margin: 0 auto; }
  .station-hero__actions { justify-content: center; }
  .seo-pbar .pbar__right { display: none; }
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--bg-2); padding: 44px 0 24px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__about p { color: var(--text-2); font-size: 14px; max-width: 360px; margin: 14px 0 16px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin: 6px 0 14px; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a, .footer ul button { text-decoration: none; color: var(--text-2); font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer ul a:hover, .footer ul button:hover { color: var(--text); }
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.sbtn {
  width: 36px; height: 36px; border-radius: 10px; display: none; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); transition: color .15s, border-color .15s;
}
.sbtn[data-active="true"] { display: grid; }
.sbtn:hover { color: var(--text); border-color: var(--border-2); }
.sbtn svg { width: 16px; height: 16px; }
#f-whats { display: none; }
#f-whats.show-important { display: inline; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-3);
}
.footer__legal a { color: var(--text-2); text-decoration: none; }

/* ================================================================
   PLAYER BAR (fija abajo)
   ================================================================ */
.pbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  height: calc(var(--player-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--player-bg);
  backdrop-filter: saturate(170%) blur(22px); -webkit-backdrop-filter: saturate(170%) blur(22px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px rgba(0,0,0,.08);
}
.pbar__progress { position: absolute; top: -1px; left: 0; right: 0; height: 2px; overflow: hidden; }
.pbar__progress::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--primary-2), transparent);
}
body.is-loading .pbar__progress::after { animation: loadbar 1.1s linear infinite; }
@keyframes loadbar { to { transform: translateX(100%); } }

.pbar__inner { height: var(--player-h); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; max-width: none; padding: 0 20px; }

.pbar__info { display: flex; align-items: center; gap: 12px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.pbar__art { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); }
.pbar__art img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.pbar__text { min-width: 0; }
.pbar__name { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0; }
.pbar__status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); margin: 2px 0 0; white-space: nowrap; overflow: hidden; }
.pbar__status > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.live-tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  color: var(--text-3); text-transform: uppercase; flex-shrink: 0;
}
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.is-playing .live-tag { color: var(--live); }
body.is-playing .live-tag::before { animation: livePulse 1.8s infinite; }
body.is-error .live-tag { color: #f59e0b; }

.pbar__controls { display: flex; align-items: center; gap: 6px; }
.play-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center; background: var(--text); color: var(--bg);
  transition: transform .12s, filter .15s; position: relative;
}
.play-btn:hover { transform: scale(1.05); }
.play-btn:active { transform: scale(.95); }
.play-btn svg { width: 22px; height: 22px; }
.play-btn .ico-pause, .play-btn .spin { display: none; }
body.is-playing .play-btn .ico-play { display: none; }
body.is-playing .play-btn .ico-pause { display: block; }
body.is-loading .play-btn .ico-play, body.is-loading .play-btn .ico-pause { display: none; }
body.is-loading .play-btn .spin { display: block; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.pbar__right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.vol { display: flex; align-items: center; gap: 4px; }
.range {
  -webkit-appearance: none; appearance: none; width: 110px; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(to right, var(--text) var(--val, 100%), var(--surface-3) var(--val, 100%));
}
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 0; }
.listeners { font-size: 12px; color: var(--text-3); display: none; align-items: center; gap: 6px; margin-right: 6px; white-space: nowrap; }
.listeners.visible { display: inline-flex; }
.listeners::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.cast-btn { display: none; }
.cast-btn.cast-connected { color: var(--primary-2); }
.timer-badge { position: absolute; top: 2px; right: 0; font-size: 9px; font-weight: 700; background: var(--primary); color: #fff; border-radius: 6px; padding: 0 4px; line-height: 14px; }
.timer-wrap { position: relative; }

/* Popover temporizador */
.popover {
  position: absolute; bottom: calc(100% + 12px); right: 0; min-width: 210px; z-index: 5;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px;
}
.popover h5 { margin: 6px 10px 8px; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.popover button {
  display: flex; justify-content: space-between; width: 100%; border: 0; background: none; padding: 9px 10px;
  border-radius: var(--r-sm); font-size: 14px; cursor: pointer; color: var(--text);
}
.popover button:hover { background: var(--surface-2); }
.popover button[aria-checked="true"] { color: var(--primary-2); font-weight: 600; }

/* ================================================================
   NOW PLAYING (pantalla completa)
   ================================================================ */
.np {
  position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column;
  background: #0c0915; color: #fff; overflow: hidden;
  transform: translateY(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility 0s .4s;
}
.np.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
.np__bg { position: absolute; inset: -15%; background-size: cover; background-position: center; filter: blur(60px) saturate(1.6) brightness(.55); transform: scale(1.1); opacity: .9; transition: background-image .4s; }
.np__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,9,21,.3), rgba(12,9,21,.85)); }
.np__top { position: relative; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 8px; }
.np__top .ibtn { color: #fff; }
.np__top .ibtn:hover { background: rgba(255,255,255,.12); }
.np__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.np__body { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 12px 24px 28px; max-width: 520px; width: 100%; margin: 0 auto; }
.np__art { width: min(72vw, 340px, 42vh); aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.08); box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.np__art img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.np__meta { width: 100%; display: flex; align-items: center; gap: 12px; }
.np__meta > div { flex: 1; min-width: 0; }
.np__name { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np__sub { margin: 4px 0 0; font-size: 14px; color: rgba(255,255,255,.65); }
.np__meta .ibtn { color: #fff; }
.np__meta .ibtn.is-on { color: #ff4d73; }
.np__viz { width: 100%; height: 48px; opacity: 0; transition: opacity .4s; }
.np__viz.viz-active { opacity: 1; }
.np__controls { display: flex; align-items: center; justify-content: center; gap: 22px; }
.np__controls .ibtn { color: #fff; width: 52px; height: 52px; }
.np__controls .ibtn svg { width: 26px; height: 26px; }
.np__controls .ibtn:hover { background: rgba(255,255,255,.12); }
.np .play-btn { width: 72px; height: 72px; background: #fff; color: #0c0915; }
.np .play-btn svg { width: 30px; height: 30px; }
.np__extra { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.np__pill {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none;
}
.np__pill svg { width: 16px; height: 16px; }
.np__pill:hover { background: rgba(255,255,255,.16); }
.np__pill.is-on { background: #fff; color: #0c0915; }

/* ================================================================
   COMPONENTES DE SISTEMA (splash, updates, push, toasts)
   ================================================================ */
.sp {
  position: fixed; inset: 0; z-index: var(--z-splash); display: flex; flex-direction: column;
  align-items: center; justify-content: center; background: #0d0525; color: #fff; text-align: center;
  transition: opacity .4s ease; overflow: hidden;
  animation: spSafety 0s linear 10s forwards; /* por si el JS falla: nunca bloquear la página */
}
@keyframes spSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.sp__bg { position: absolute; inset: 0; pointer-events: none; animation: spFade .8s ease .15s both; background: radial-gradient(ellipse 80% 55% at 50% 30%, rgba(109,40,217,.5) 0%, transparent 65%), radial-gradient(ellipse 50% 40% at 80% 80%, rgba(225,29,72,.18) 0%, transparent 60%); }
.sp__card { position: relative; width: 120px; height: 120px; border-radius: 30px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: spRise .7s cubic-bezier(.2,.8,.2,1) .2s both; margin-bottom: 26px; }
.sp__ring { position: absolute; inset: -10px; border-radius: 40px; border: 2px solid rgba(167,139,250,.4); animation: spRing 2s ease-in-out infinite; }
@keyframes spRing { 0%,100% { transform: scale(1); opacity: .4; } 50% { transform: scale(1.06); opacity: 1; } }
.sp__logo { width: 80px; height: 80px; object-fit: contain; }
/* El logo arranca en el centro exacto (donde lo deja el splash nativo de Android) y sube: se ve como un solo splash */
@keyframes spRise { from { transform: translateY(56px); } to { transform: none; } }
@keyframes spFade { from { opacity: 0; } to { opacity: 1; } }
.sp__ring { animation: spFade .6s ease .5s both, spRing 2s ease-in-out .5s infinite; }
.sp__name { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: 0 0 8px; animation: spText .5s ease .45s both; }
.sp__name span { color: #a78bfa; }
.sp__sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(196,181,253,.6); margin: 0 0 32px; font-weight: 500; animation: spText .5s ease .55s both; }
@keyframes spText { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sp__bar { width: 120px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.1); overflow: hidden; animation: spFade .4s ease .7s both; }
.sp__fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, #7c3aed, #e11d48); animation: spProgress 2s ease-in-out infinite; }
@keyframes spProgress { 0% { width: 0; margin-left: 0; } 50% { width: 70%; margin-left: 15%; } 100% { width: 0; margin-left: 100%; } }
.sp__copy { animation: spFade .4s ease .7s both; position: absolute; bottom: 24px; font-size: 11px; color: rgba(255,255,255,.25); margin: 0; }

.update-bar { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-update-bar); background: linear-gradient(135deg, #1e0b4a 0%, #4c1d95 100%); border-bottom: 1px solid rgba(167,139,250,.3); box-shadow: 0 4px 24px rgba(76,29,149,.5); transition: transform .4s var(--ease-spring), opacity .3s ease; }
.update-bar--hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.update-bar__inner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; max-width: 680px; margin: 0 auto; }
.update-bar__icon { font-size: 18px; flex-shrink: 0; }
.update-bar__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.update-bar__text strong { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.update-bar__text span { font-size: 11px; color: rgba(196,181,253,.8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.update-bar__btn { flex-shrink: 0; background: #7c3aed; color: #fff; border: none; border-radius: 20px; padding: 7px 16px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.update-bar__btn:disabled { background: rgba(255,255,255,.15); cursor: not-allowed; }
.update-bar__close { flex-shrink: 0; background: none; border: none; color: rgba(255,255,255,.5); font-size: 14px; cursor: pointer; padding: 4px 6px; }
.update-bar-visible .hero { padding-top: 96px; }

.push-ask { position: fixed; left: 16px; right: 16px; bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom)); max-width: 380px; margin: 0 auto; z-index: var(--z-push-ask); display: flex; align-items: center; gap: 12px; padding: 14px 40px 14px 16px; background: linear-gradient(135deg, #1e0b4a 0%, #4c1d95 100%); border: 1px solid rgba(167,139,250,.3); border-radius: 16px; box-shadow: 0 12px 40px rgba(30,10,80,.5); transition: transform .4s var(--ease-spring), opacity .3s ease; }
.push-ask.hidden { display: flex !important; transform: translateY(160%); opacity: 0; pointer-events: none; }
.push-ask__icon { font-size: 22px; flex-shrink: 0; }
.push-ask__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push-ask__text strong { font-size: 13px; font-weight: 700; color: #fff; }
.push-ask__text span { font-size: 11.5px; color: rgba(196,181,253,.85); line-height: 1.3; }
.push-ask__btn { flex-shrink: 0; background: #7c3aed; color: #fff; border: none; border-radius: 20px; padding: 8px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }
.push-ask__close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: rgba(255,255,255,.5); cursor: pointer; padding: 4px; }

#updateWall { position: fixed; inset: 0; z-index: var(--z-update-wall); background: linear-gradient(145deg, #140736 0%, #2d0e7a 60%, #6d28d9 100%); display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; padding: 24px; }
.update-wall__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 320px; }
.update-wall__logo { width: 80px; height: 80px; border-radius: 20px; }
.update-wall__title { font-size: 22px; font-weight: 700; margin: 0; }
.update-wall__msg { font-size: 14px; color: rgba(255,255,255,.72); margin: 0; }
.update-wall__spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }

#reinstallWall { position: fixed; inset: 0; z-index: var(--z-update-wall); background: #0c0915; display: flex; align-items: center; justify-content: center; padding: 24px; }
.rw__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 24px; padding: 32px 24px; max-width: 340px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: #fff; }
.rw__icon { font-size: 48px; line-height: 1; }
.rw__title { font-size: 20px; font-weight: 700; margin: 0; }
.rw__msg { font-size: 14px; color: rgba(255,255,255,.7); margin: 0; }
.rw__steps { width: 100%; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.rw__step { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.8); }
.rw__step span { width: 26px; height: 26px; border-radius: 50%; background: #7c3aed; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.rw__step em { font-style: normal; color: #c4b5fd; font-weight: 600; }
.rw__btn { display: block; width: 100%; padding: 14px; background: linear-gradient(135deg, #7c3aed, #6d28d9); color: #fff; text-decoration: none; border-radius: 14px; font-size: 15px; font-weight: 700; }
.rw__note { font-size: 11px; color: rgba(255,255,255,.3); margin: 0; }

.toast-notification-main { position: fixed; z-index: 9000; min-width: 290px; max-width: min(380px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: toastIn .32s var(--ease-spring); }
.pos-top-right { top: 76px; right: 16px; }
.pos-top-center { top: 76px; left: 50%; transform: translateX(-50%); }
.pos-top-left { top: 76px; left: 16px; }
.pos-bottom-right { bottom: calc(var(--player-h) + 16px); right: 16px; }
.pos-bottom-center { bottom: calc(var(--player-h) + 16px); left: 50%; transform: translateX(-50%); }
.pos-bottom-left { bottom: calc(var(--player-h) + 16px); left: 16px; }
.toast-notification-main.exit { animation: toastOut .28s ease forwards; }
.toast-inner { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 13px; font-weight: 650; color: var(--text); margin-bottom: 2px; }
.toast-message { font-size: 12px; color: var(--text-2); line-height: 1.5; }
.toast-action { margin-top: 8px; border: 0; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-full); cursor: pointer; }
.toast-close-btn-main { background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 18px; padding: 0; line-height: 1; }
.toast-progress { height: 3px; background: var(--border); }
.toast-progress-bar { height: 100%; background: var(--primary); animation: progressBarNotif 5s linear forwards; }
@keyframes progressBarNotif { from { width: 100%; } to { width: 0; } }
.toast-info .toast-progress-bar { background: #3b82f6; }
.toast-success .toast-progress-bar { background: #10b981; }
.toast-warning .toast-progress-bar { background: #f59e0b; }
.toast-error .toast-progress-bar { background: #ef4444; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.94); } to { opacity: 1; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
.pos-top-center.toast-notification-main, .pos-bottom-center.toast-notification-main { animation-name: toastInC; }
.pos-top-center.exit, .pos-bottom-center.exit { animation-name: toastOutC; }
@keyframes toastOutC { to { opacity: 0; transform: translate(-50%, -6px) scale(.97); } }
@keyframes toastInC { from { opacity: 0; transform: translate(-50%, -14px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }

/* ================================================================
   REDISEÑO 2026-10-12 — identidad Ecuador, hero con mosaico,
   logos sobre fondo blanco (como radio.es / TuneIn). El
   reproductor (.pbar / now playing) no se toca.
   ================================================================ */
:root {
  --ec-yellow: #ffd100;
  --ec-blue:   #0a4fd1;
  --ec-red:    #ef3340;
  --tile-bg:   #ffffff;
}

/* Franja tricolor bajo la barra superior */
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--ec-yellow) 0 50%, var(--ec-blue) 50% 75%, var(--ec-red) 75% 100%);
  opacity: .9;
}

/* ── Hero en dos columnas ──────────────────────────────────── */
.hero { padding: 64px 0 44px; }
.hero::before {
  background:
    radial-gradient(38% 60% at 15% 30%, rgba(124,58,237,.24), transparent 70%),
    radial-gradient(30% 50% at 78% 35%, rgba(255,209,0,.12), transparent 70%),
    radial-gradient(30% 50% at 88% 75%, rgba(239,51,64,.12), transparent 70%),
    radial-gradient(30% 50% at 60% 90%, rgba(10,79,209,.12), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero__copy { min-width: 0; }
.hero__title em {
  background: linear-gradient(100deg, var(--ec-yellow) 0%, #ff8a00 35%, var(--ec-red) 70%, var(--primary-2) 100%);
  -webkit-background-clip: text; background-clip: text;
}
body:not(.dark) .hero__title em { background: linear-gradient(100deg, #d97706 0%, var(--ec-red) 55%, var(--primary) 100%); -webkit-background-clip: text; background-clip: text; }

.hero__wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  transform: perspective(1200px) rotateY(-14deg) rotateX(6deg) rotate(-2deg);
  transform-style: preserve-3d; position: relative;
}
.hero__wall::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(139,92,246,.45), transparent);
  filter: blur(40px);
}
.hw {
  position: relative; aspect-ratio: 1; border: 0; padding: 0; cursor: pointer;
  border-radius: 22px; background: var(--tile-bg); overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06);
  animation: hwIn .6s var(--ease) both, hwFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 60ms), calc(var(--i) * -0.7s);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.hw img { width: 100%; height: 100%; object-fit: contain; padding: 12%; }
.hw:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 26px 50px rgba(0,0,0,.35), 0 0 0 2px var(--primary-2); }
.hw__play {
  position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary); color: #fff;
  box-shadow: 0 6px 16px rgba(76,29,149,.5); opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s var(--ease-spring);
}
.hw__play svg { width: 16px; height: 16px; }
.hw:hover .hw__play, .hw:focus-visible .hw__play, .hw.is-current .hw__play { opacity: 1; transform: none; }
.hw.is-current { box-shadow: 0 0 0 3px var(--primary-2), 0 18px 40px rgba(0,0,0,.3); }
body.is-playing .hw.is-current .ico-play { display: none; }
body.is-playing .hw.is-current .eq { display: flex; }
.hw:nth-child(3n+2) { top: -22px; }
@keyframes hwIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes hwFloat { 50% { translate: 0 -5px; } }

/* ── Encabezados de sección ─────────────────────────────────── */
.section { padding: 30px 0; }
.section__title { font-size: 24px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.section__title::before {
  content: ""; width: 4px; height: 22px; border-radius: 4px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--ec-yellow), var(--ec-blue) 55%, var(--ec-red));
}

/* ── Tarjetas: logo sobre baldosa blanca ───────────────────── */
.st__art {
  border-radius: 18px; border: 0;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, var(--shadow-sm);
}
.st__art.has-img, .seo-page .st__art { background: var(--tile-bg); animation: none; }
body.dark .st__art.has-img, body.dark.seo-page .st__art { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.35); }
.st__blur { display: none; }
.st__art img { padding: 11%; }
.st:hover .st__art, .st:focus-visible .st__art { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.st__name { font-weight: 650; }
.st__play { background: linear-gradient(135deg, var(--primary-2), var(--primary)); }

/* ── Provincias ─────────────────────────────────────────────── */
.prov-grid { grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); }
.prov { padding: 16px; border-radius: 18px; }
.prov > span:last-of-type { min-width: 0; }
.prov::after {
  content: "›"; margin-left: auto; font-size: 22px; line-height: 1; color: var(--text-3);
  transition: transform .2s var(--ease), color .2s;
}
.prov:hover::after { transform: translateX(3px); color: var(--primary-2); }
.prov__logos img { width: 38px; height: 38px; background: var(--tile-bg); border-color: var(--surface); border-radius: 11px; }

.link-btn { white-space: nowrap; }

/* ── Barra de filtros ───────────────────────────────────────── */
.chip[aria-pressed="true"], .chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Páginas de emisora / provincia ─────────────────────────── */
.station-hero {
  padding: 36px; gap: 36px; border-radius: 28px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
.station-hero__bg { opacity: .4; filter: blur(70px) saturate(1.7); }
.station-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--ec-yellow) 0 50%, var(--ec-blue) 50% 75%, var(--ec-red) 75% 100%);
}
.station-hero__art { width: 220px; border-radius: 26px; box-shadow: 0 24px 60px rgba(0,0,0,.4); }
.station-hero__title { font-size: clamp(30px, 4.6vw, 52px); }
.btn-primary { height: 50px; padding: 0 24px; background: linear-gradient(135deg, var(--primary-2), var(--primary)); }
.facts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.facts li { padding: 10px 14px; border-radius: 14px; }
.facts strong { font-size: 14px; }
.page-head { padding: 18px 0 14px; }
.section.prose { margin-top: 26px; }
.prose { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 26px 28px; }
.prose p:last-child { margin-bottom: 0; }

@media (max-width: 1179px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__wall { display: none; }
}
@media (max-width: 760px) {
  .hero { padding: 30px 0 18px; }
  .section { padding: 22px 0; }
  .section__title { font-size: 19px; }
  .section__title::before { height: 18px; }
  .st__art { border-radius: 14px; }
  .prov { padding: 12px; }
  .prov::after { display: none; }
  .station-hero { padding: 24px 18px 28px; border-radius: 22px; }
  .station-hero__art { width: 168px; }
  .prose { padding: 20px 18px; border-radius: 18px; }
  .section.prose { margin-top: 18px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Provincias: logos arriba y nombre abajo, para que no se corte */
  .prov { flex-direction: column; align-items: flex-start; gap: 8px; }
  .prov__logos img { width: 30px; height: 30px; border-radius: 9px; }
  .prov__name { overflow-wrap: anywhere; }
}
@media (max-width: 400px) {
  body .wrap { padding: 0 14px; }
  .hero__title { font-size: 30px; }
  .hero__search input { font-size: 15px; padding-left: 46px; }
  .hero__search > svg { left: 16px; }
  .hero__stats { gap: 8px 18px; }
  .section .section__title { font-size: 18px; }
  .section__head { align-items: center; }
  .station-hero__actions { flex-direction: column; align-items: stretch; }
  .station-hero__actions > * { justify-content: center; }
  .station-hero__title { font-size: 28px; }
  .page-title { font-size: 26px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts li { padding: 9px 11px; }
  .prose h2 { font-size: 19px; }
}
/* Celular en horizontal: encabezado compacto */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 18px 0 12px; }
  .hero__title { font-size: 28px; margin: 10px 0 8px; }
  .hero__lead { display: none; }
  .hero__stats, .quick { margin-top: 12px; }
  .station-hero { grid-template-columns: auto 1fr; text-align: left; }
  .station-hero__art { width: 120px; margin: 0; }
  .station-hero__actions { justify-content: flex-start; }
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .range { width: 80px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .listeners { display: none !important; }
}
@media (max-width: 760px) {
  :root { --player-h: 68px; }
  .wrap { padding: 0 16px; }
  .topbar__inner { height: 58px; gap: 10px; }
  .topsearch { display: none; }
  .topbar__actions { margin-left: auto; }
  .brand__sub { display: none; }
  .hero { padding: 30px 0 18px; }
  .hero__search input { height: 52px; padding-right: 16px; font-size: 16px; }
  .hero__search button { display: none; }
  .browse-bar { top: 58px; }
  .update-bar-visible .browse-bar { top: 110px; }
  .section__title { font-size: 19px; }
  .rail { grid-auto-columns: 128px; gap: 12px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .st__name { font-size: 13px; }
  .st__play { width: 36px; height: 36px; right: 6px; bottom: 6px; }
  .st__play svg { width: 16px; height: 16px; }
  .st__fav { opacity: 1; width: 28px; height: 28px; top: 5px; right: 5px; background: rgba(10,8,20,.35); }
  .st__fav:not(.is-on) { opacity: .0; pointer-events: none; }
  .prov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .prov { padding: 12px; gap: 10px; }
  .prov__logos img:nth-child(3) { display: none; }
  .pbar__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 10px 0 12px; }
  .pbar__right { display: none; }
  .pbar__controls .hide-sm { display: none; }
  .pbar__art { width: 46px; height: 46px; }
  .play-btn { width: 44px; height: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__stats strong { font-size: 18px; }
}
@media (hover: none) {
  .st__play { opacity: 0; }
  .st.is-current .st__play { opacity: 1; transform: none; }
}

/* Movimiento reducido: ver capa "AUDITORÍA DE MOVIMIENTO" al final (menos y más suave, no cero) */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }

/* ================================================================
   PULIDO 2026-10-21 (skill design-taste-frontend)
   Menos ornamento, más escala y legibilidad: sin degradados, sin
   sombras en reposo, sin contornos de 1px, texto corrido a 16px,
   superficies separadas por un paso de tono. Se mantienen la marca
   (morado) y la franja tricolor de Ecuador (franjas planas).
   Para revertir: borrar desde aquí hasta el final del archivo.
   ================================================================ */
:root {
  --bg: #f1eff8;
  --bg-2: #e8e5f2;
  --surface: #ffffff;
  --surface-2: #e9e6f3;
  --surface-3: #dedaee;
  --text-2: #3f3957;
  --text-3: #625b7d;
  --primary: #5b21b6;
  --primary-2: #6d28d9;
}
body.dark {
  --bg: #0c0915;
  --bg-2: #120e1f;
  --surface: #191426;
  --surface-2: #221c33;
  --surface-3: #2c2541;
  --text-2: #cbc5de;
  --text-3: #9b94b4;
  --primary: #7c3aed;
  --primary-2: #a78bfa;
}
body { font-size: 16px; line-height: 1.55; }

/* Barras: la franja tricolor separa; nada de líneas finas */
.topbar { border-bottom: 0; }
.brand__logo { box-shadow: none; }
.brand__sub { font-size: 12px; }
.topsearch input { border-color: transparent; background: var(--surface-2); font-size: 15px; }
.topsearch kbd { border: 0; background: var(--surface-3); }

/* ── Hero: un titular grande en dos líneas, fondo plano ───────── */
.hero::before, .hero__wall::before { display: none; }
.hero { padding: 72px 0 56px; }
.hero__title { font-size: clamp(36px, 5.6vw, 80px); line-height: .98; letter-spacing: -.05em; margin: 0 0 22px; max-width: 12ch; text-wrap: balance; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); max-width: 54ch; margin-bottom: 30px; }
.hero__search input { border-color: transparent; background: var(--surface); box-shadow: none; font-size: 17px; }
body.dark .hero__search input { background: var(--surface-2); }
.hero__search input:focus { box-shadow: 0 0 0 3px var(--primary-2); }
.hero__search button { background: var(--primary); border-radius: 12px; font-size: 15px; }
.hero__stats { font-size: 15px; }
.hero__stats strong { font-size: 24px; }
.quick__label { font-size: 15px; color: var(--text-2); }
.chip { border-color: transparent; background: var(--surface-2); font-size: 14px; height: 36px; }
.chip:hover { border-color: transparent; background: var(--surface-3); }
.chip small { font-size: 13px; }
.hw { box-shadow: none; }
.hw:hover { box-shadow: 0 0 0 3px var(--primary-2); }
.hw.is-current { box-shadow: 0 0 0 3px var(--primary-2); }
.hw__play, .st__play { box-shadow: none; background: var(--primary); }

/* ── Secciones: más aire entre secciones que dentro ───────────── */
.section { padding: 44px 0; }
.section__title { font-size: clamp(22px, 2.4vw, 30px); }
.section__title::before { display: none; }
.section__sub { font-size: 15px; color: var(--text-2); }
.link-btn { font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.link-btn__ico { width: 16px; height: 16px; }
.rail-nav { border: 0; background: var(--surface-2); }

/* Tarjetas de emisora: la baldosa blanca ya separa del fondo */
.st__art, body.dark .st__art.has-img, body.dark.seo-page .st__art { box-shadow: none; }
.st:hover .st__art, .st:focus-visible .st__art { box-shadow: 0 0 0 3px var(--primary-2); }
.st.is-current .st__art { box-shadow: 0 0 0 3px var(--primary-2); }
.st__name { font-size: 15px; }
.st__meta { font-size: 13px; color: var(--text-3); }
.st__fav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10,8,20,.62); }

/* Provincias, filtros, listas: superficies por tono, sin contorno */
.prov { border: 0; background: var(--surface); }
.prov:hover { border-color: transparent; box-shadow: none; background: var(--surface-2); }
.prov__name { font-size: 16px; }
.prov__count { font-size: 14px; color: var(--text-3); }
.browse-bar { border-bottom: 0; }
.select { border-color: transparent; background-color: var(--surface-2); font-size: 14px; }
.result-info { font-size: 15px; color: var(--text-2); }
.province-header { border-bottom: 0; padding-top: 18px; }
.province-header-text { font-size: 20px; }
.province-header-count { font-size: 14px; }
.empty { border: 0; background: var(--surface); }

/* Funciones: lista tipográfica en un campo de color, no tarjetas con ícono */
.features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 56px; background: var(--surface); border-radius: 28px; padding: 44px 48px; }
.feature { padding: 0; border: 0; background: none; border-radius: 0; }
.feature__icon { display: none; }
.feature h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.feature p { font-size: 16px; color: var(--text-2); max-width: 46ch; }
.faq { gap: 8px; }
.faq details { border: 0; background: var(--surface); padding: 0 22px; }
.faq summary { font-size: 17px; padding: 18px 0; }
.faq details p { font-size: 16px; max-width: 68ch; }

/* Páginas de emisora / provincia / legales */
.station-hero { border: 0; background: var(--surface); }
.station-hero::after { display: none; }
.station-hero__art { box-shadow: none; }
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-ghost { border-color: transparent; background: var(--surface-2); }
.btn-ghost:hover { border-color: transparent; background: var(--surface-3); }
.facts li { border: 0; background: var(--surface); }
.facts span { font-size: 13px; }
.prose { border: 0; }
.prose p, .prose li { font-size: 17px; line-height: 1.6; max-width: 68ch; }
.page-lead { font-size: 18px; max-width: 60ch; }
.crumbs ol { font-size: 14px; }

/* Pie: cierre con tono propio, sin líneas ni etiquetas en versalitas */
.footer { border-top: 0; margin-top: 56px; }
.footer h4 { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text); font-weight: 700; }
.footer ul a, .footer ul button, .footer__about p { font-size: 15px; }
.footer__legal { border-top: 0; padding-top: 0; font-size: 14px; color: var(--text-2); }
.sbtn { border: 0; background: var(--surface); }

/* Reproductor: barra sólida (una sola superficie desenfocada: la barra superior) */
.pbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); border-top: 0; }
.pbar__art { border: 0; }

/* Avisos del sistema: planos, en el morado de la marca */
body .pwa-banner { background: #2a1066; border: 0; box-shadow: 0 18px 50px rgba(10,4,30,.5); bottom: calc(var(--player-h) + 14px + env(safe-area-inset-bottom)); }
body .pwa-banner__logo { box-shadow: none; border: 0; }
.pwa-banner__pitch { margin: 0 0 14px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.86); }
body .pwa-banner__btn-install { background: #fff; color: #2a1066; box-shadow: none; }
.update-bar { background: #2a1066; border-bottom: 0; }
.update-bar__text strong { font-size: 14px; }
.update-bar__text span { font-size: 13px; color: rgba(255,255,255,.8); }
.update-bar__btn, .push-ask__btn { background: #fff; color: #2a1066; font-size: 13px; }
.update-bar__close { color: rgba(255,255,255,.7); display: grid; place-items: center; }
.push-ask { background: #2a1066; border: 0; }
.push-ask__icon { color: #fff; display: grid; place-items: center; }
.push-ask__text strong { font-size: 15px; }
.push-ask__text span { font-size: 13px; color: rgba(255,255,255,.8); }
#updateWall { background: #1a0b40; }
.rw__card { border: 0; background: #1a0b40; }
.rw__icon { width: 56px; height: 56px; border-radius: 14px; }
.rw__btn { background: #fff; color: #1a0b40; }
.toast-notification-main { border: 0; }
.toast-icon { padding-top: 4px; line-height: 0; }
.toast-title { font-size: 15px; }
.toast-message { font-size: 14px; }
.toast-action { font-size: 14px; padding: 8px 14px; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 28px; }
  .section { padding: 28px 0; }
  .features { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; border-radius: 22px; }
  .st__name { font-size: 14px; }
  .prov__name { font-size: 15px; }
}
@media (max-width: 400px) {
  .hero__title { font-size: 36px; }
}
/* Carga de logos: parpadeo plano en vez de brillo en degradado */
.st__art:not(.has-img) { background: var(--surface-2); animation: skelPulse 1.4s ease-in-out infinite; }
.seo-page .st__art, .st__art.has-img { background: var(--tile-bg); animation: none; }
@keyframes skelPulse { 50% { background-color: var(--surface-3); } }
.skel .st__art { background: var(--surface-2); animation: skelPulse 1.4s ease-in-out infinite; }
/* Nada que se lea por debajo de 13px */
.brand__sub, .listeners, .pbar__status { font-size: 13px; }
.live-tag { font-size: 12px; letter-spacing: .04em; }
.pbar__name { font-size: 15px; }

/* ================================================================
   MOVIMIENTO 2026-10-21 (skills find-animation-opportunities + animate)
   Solo transform/opacity (height solo en el acordeón), curvas fuertes,
   duraciones de UI < 300ms. --ease se mantiene para lo existente.
   ================================================================ */
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* El hover que levanta tarjetas solo con ratón: en táctil el toque dispara un hover falso */
@media (hover: none) {
  .st:hover .st__art, .st:focus-visible .st__art, .prov:hover, .hw:hover { transform: none; }
}

/* 1. Respuesta al toque: se hunde un 3 % (la etiqueta e íconos van con él) */
.st__art { transition: transform 160ms var(--ease-out), box-shadow 200ms ease; }
.prov { transition: transform 160ms var(--ease-out), background-color 150ms ease; }
.chip { transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease; }
.hero__search button, .btn-primary, .btn-ghost, .hw, .rail-nav, .link-btn { transition: transform 160ms var(--ease-out), background-color 150ms ease, box-shadow 200ms ease; }
.st:active .st__art, .prov:active, .chip:active, .hw:active,
.hero__search button:active, .btn-primary:active, .btn-ghost:active, .rail-nav:active, .link-btn:active { transform: scale(0.97); }

/* 4. Menú del temporizador: nace de su botón (abajo a la derecha) */
.popover {
  transform-origin: 100% 100%;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
@starting-style {
  .popover { opacity: 0; transform: scale(0.96); }
}

/* 5. Preguntas frecuentes: la respuesta se despliega en vez de aparecer de golpe.
   Sin soporte de ::details-content / interpolate-size se abre como antes. */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content {
  block-size: 0; overflow: hidden; opacity: 0;
  transition: block-size 220ms var(--ease-in-out), opacity 220ms var(--ease-out), content-visibility 220ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* Movimiento reducido: sin desplazamientos ni escalas, solo fundidos cortos */
@media (prefers-reduced-motion: reduce) {
  .st:active .st__art, .prov:active, .chip:active, .hw:active,
  .hero__search button:active, .btn-primary:active, .btn-ghost:active, .rail-nav:active, .link-btn:active { transform: none; }
  @starting-style { .popover { transform: none; } }
}

/* ================================================================
   TIPOGRAFÍA Y COMPONENTES 2026-10-21 (skill redesign-existing-projects)
   Inter → Bricolage Grotesque (titulares, con carácter) + Geist (texto).
   Cifras tabulares, sin huérfanas, FAQ visible en dos columnas.
   ================================================================ */
:root {
  --font: 'Geist', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Geist', 'Segoe UI', system-ui, sans-serif;
}
body { font-family: var(--font); }
.hero__title, .section__title, .page-title, .station-hero__title, .brand__name,
.np__name, .sp__name, .hero__stats strong, .feature h3, .prose h2,
.province-header-text, .faq-list dt, .update-wall__title, .rw__title, .footer h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
.hero__title { letter-spacing: -.022em; font-weight: 800; }
.section__title, .page-title, .station-hero__title { letter-spacing: -.015em; font-weight: 750; }
.brand__name { letter-spacing: -.02em; }
h1, h2, h3, .st__name, .prov__name, dt { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
.hero__stats strong, .chip small, .prov__count, .st__meta, .province-header-count, .listeners, .result-info strong {
  font-variant-numeric: tabular-nums;
}
.nav a, .chip, .link-btn, .btn-primary, .btn-ghost, .hero__search button { font-weight: 600; }

/* Preguntas frecuentes: pregunta y respuesta a la vista, dos columnas */
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; margin: 0; max-width: 1100px; }
.faq-list > div { margin: 0; }
.faq-list dt { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 0 0 8px; }
.faq-list dd { margin: 0; font-size: 16px; color: var(--text-2); max-width: 52ch; }
@media (max-width: 760px) {
  .faq-list { grid-template-columns: 1fr; gap: 24px; }
  .faq-list dt { font-size: 17px; }
}
@media (max-width: 420px) {
  .hero__stats { gap: 8px 16px; font-size: 14px; }
  .hero__stats strong { font-size: 21px; }
}
/* Botón para seguir cargando emisoras tras la carga automática */
.more-btn {
  grid-column: 1 / -1; justify-self: center; margin-top: 12px; height: 48px; padding: 0 26px;
  border: 0; border-radius: var(--r-full); background: var(--surface-2); color: var(--text);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 150ms ease;
}
.more-btn:hover { background: var(--surface-3); }
.more-btn:active { transform: scale(0.97); }

/* ================================================================
   RENDIMIENTO 2026-10-21 (skill animation-performance)
   Bucles y barras pasan a transform/opacity (solo composición).
   ================================================================ */
/* Ecualizador: antes animaba height (layout) mientras sonaba la radio */
.eq i { height: 100%; transform-origin: 50% 100%; animation-name: eqScale; }
@keyframes eqScale { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* Punto en vivo: antes animaba box-shadow (repintado por fotograma) */
.dot-live, body.is-playing .live-tag::before { position: relative; box-shadow: none; animation: none; }
.dot-live::after, body.is-playing .live-tag::after {
  content: ""; position: absolute; border-radius: 50%; background: currentColor; pointer-events: none;
  animation: liveRing 1.8s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
.dot-live { color: var(--live); }
.dot-live::after { inset: 0; }
body.is-playing .live-tag { position: relative; }
body.is-playing .live-tag::after { left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; }
@keyframes liveRing { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

/* Barra de los avisos: antes animaba width */
.toast-progress-bar { width: 100%; transform-origin: 0 50%; animation-name: progressBarScale; }
@keyframes progressBarScale { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* Splash: antes animaba width + margin-left justo durante la carga */
.sp__fill { width: 40%; animation-name: spSlide; }
@keyframes spSlide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Barra superior: el desenfoque se recompone en cada fotograma de scroll; en táctil, fondo sólido */
@media (hover: none), (max-width: 760px) {
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}

@media (prefers-reduced-motion: reduce) {
  .dot-live::after, body.is-playing .live-tag::after { animation: none; opacity: 0; }
}

/* ================================================================
   SENSACIÓN DE APP 2026-10-21 (skill mobile-native)
   ================================================================ */
/* Sin el destello gris/azul al tocar: cada control ya tiene su :active */
html { -webkit-tap-highlight-color: transparent; }

/* Instalada como app: tirar hacia abajo no recarga la página (cortaría la radio) */
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }
}
.np { overscroll-behavior: contain; }

/* Toque inmediato (sin espera de doble toque) y sin seleccionar el texto de los controles al mantener presionado */
button, a, [role="button"], .chip, .st__art, .prov, .hw, select, summary {
  touch-action: manipulation;
}
button, [role="button"], .chip, .prov, .hw, .st__art, .ibtn, .play-btn, .pbar__info, .link-btn, .more-btn {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}

/* iPhone hace zoom en campos de menos de 16px y no vuelve: 16px en pantallas táctiles */
@media (pointer: coarse) {
  input, textarea, select, .hero__search input, .topsearch input, .select { font-size: 16px; }
}

/* Barra superior bajo la barra de estado (iPhone instalado con status bar translúcida) */
.topbar { padding-top: env(safe-area-inset-top, 0px); }

/* Hover pegajoso: en táctil el último elemento tocado se quedaba "encendido" */
@media (hover: none) {
  .ibtn:not(.is-on):hover { background: transparent; color: var(--text-2); }
  .np__top .ibtn:hover { background: transparent; }
  .nav a:not([aria-current="page"]):hover { background: transparent; color: var(--text-2); }
  .chip:not([aria-pressed="true"]):not(.is-active):hover { background: var(--surface-2); color: var(--text-2); }
  .prov:hover { background: var(--surface); }
  .prov:hover::after { transform: none; color: var(--text-3); }
  .link-btn:hover { background: none; }
  .btn-ghost:hover, .more-btn:hover { background: var(--surface-2); }
  .np__pill:not(.is-on):hover { background: rgba(255,255,255,.08); }
  .sbtn:hover { color: var(--text-2); }
  .footer ul a:hover, .footer ul button:hover { color: var(--text-2); }
  .st:hover .st__art, .hw:hover { box-shadow: none; }
  .st.is-current .st__art, .hw.is-current { box-shadow: 0 0 0 3px var(--primary-2); }
}
.browse-bar { top: calc(64px + env(safe-area-inset-top, 0px)); }
@media (max-width: 760px) { .browse-bar { top: calc(58px + env(safe-area-inset-top, 0px)); } }

/* ================================================================
   AUDITORÍA DE MOVIMIENTO 2026-10-21 (skill improve-animations, plans/001-004)
   ================================================================ */
/* 004 — una sola ease-out fuerte; la pantalla completa entra como panel nativo */
:root { --ease: var(--ease-out); }
.np { transition: transform 400ms var(--ease-drawer), visibility 0s 400ms; }
.np.open { transition: transform 400ms var(--ease-drawer), visibility 0s; }

/* 003 — sin rebote */
.st__play, .hw__play { transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.update-bar, .push-ask { transition: transform 320ms var(--ease-drawer), opacity 200ms var(--ease-out); }
body .pwa-banner { animation-duration: 320ms; animation-timing-function: var(--ease-drawer); }

/* 001 — avisos con transiciones (se pueden interrumpir), salen por el mismo borde */
.toast-notification-main, .pos-top-center.toast-notification-main, .pos-bottom-center.toast-notification-main {
  animation: none;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@starting-style { .toast-notification-main { opacity: 0; transform: translateY(-10px) scale(.97); } }
@starting-style { .pos-top-center.toast-notification-main { opacity: 0; transform: translate(-50%, -10px) scale(.97); } }
@starting-style { .pos-bottom-right.toast-notification-main, .pos-bottom-left.toast-notification-main { opacity: 0; transform: translateY(10px) scale(.97); } }
@starting-style { .pos-bottom-center.toast-notification-main { opacity: 0; transform: translate(-50%, 10px) scale(.97); } }
.toast-notification-main.exit { opacity: 0; transform: translateY(-6px) scale(.98); transition-duration: 160ms; }
.pos-top-center.exit { transform: translate(-50%, -6px) scale(.98); }
.pos-bottom-right.exit, .pos-bottom-left.exit { transform: translateY(6px) scale(.98); }
.pos-bottom-center.exit { transform: translate(-50%, 6px) scale(.98); }

/* 002 — movimiento reducido: fuera bucles y desplazamientos, quedan fundidos cortos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hw, .eq i, .dot-live::after, body.is-playing .live-tag::after, .sp__ring, .sp__card, .st__art:not(.has-img), .skel .st__art { animation: none !important; }
  .hw { translate: none; }
  .np { transform: none; opacity: 0; transition: opacity 200ms ease, visibility 0s 200ms; }
  .np.open { opacity: 1; transition: opacity 200ms ease, visibility 0s; }
  @starting-style { .toast-notification-main, .pos-bottom-right.toast-notification-main, .pos-bottom-left.toast-notification-main { transform: none; } }
  @starting-style { .pos-top-center.toast-notification-main, .pos-bottom-center.toast-notification-main { transform: translateX(-50%); } }
  .toast-notification-main.exit, .pos-bottom-right.exit, .pos-bottom-left.exit { transform: none; }
  .pos-top-center.exit, .pos-bottom-center.exit { transform: translateX(-50%); }
  .update-bar--hidden { transform: none; }
  .push-ask.hidden { transform: none; }
  .st__art, .prov, .chip, .hw { transition-property: opacity, background-color, box-shadow; }
}

/* ================================================================
   DETALLES 2026-10-21 (skill emil-design-eng)
   ================================================================ */
.play-btn { transition: transform 160ms var(--ease-out), filter 150ms ease; }
.play-btn:hover { transform: none; }
@media (hover: hover) and (pointer: fine) { .play-btn:hover { transform: scale(1.05); } }
.play-btn:active { transform: scale(0.95); }
/* El ícono nuevo (play / pausa / cargando) entra en vez de aparecer de golpe */
.play-btn svg, .play-btn .spin { transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out); }
@starting-style { .play-btn svg, .play-btn .spin { opacity: 0; transform: scale(.8); } }
.spin { animation-duration: .6s; }
/* Aviso en pausa: la barra de tiempo también se detiene */
.toast-notification-main.is-paused .toast-progress-bar { animation-play-state: paused; }
/* Salir más rápido que entrar */
.np { transition: transform 280ms var(--ease-drawer), visibility 0s 280ms; }
.np.open { transition: transform 400ms var(--ease-drawer), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  @starting-style { .play-btn svg, .play-btn .spin { transform: none; } }
  .np { transition: opacity 200ms ease, visibility 0s 200ms; }
  .np.open { transition: opacity 200ms ease, visibility 0s; }
}

/* ================================================================
   DATOS EXTREMOS 2026-10-21 (skill break-ui)
   ================================================================ */
/* Nombres sin espacios (p. ej. "RadioSatelitalEcuadorOnline24Horas") se cortaban sin "…" o se salían */
.st__name, .toast-title, .toast-message, .np__name, .pbar__name { overflow-wrap: anywhere; }
/* Avisos con un nombre de 150 caracteres tapaban media pantalla */
.toast-message { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Pantalla completa: es la vista de detalle, el nombre se lee entero (hasta 4 líneas) */
.np__name { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; text-wrap: balance; line-height: 1.15; }
.np__name.is-long { font-size: 19px; letter-spacing: -.01em; }
/* Páginas /radio/: mismo corte para nombres sin espacios (deducido del CSS; no se puede inyectar en la BD) */
.station-hero__title, .page-title, .crumbs li, .st__link { overflow-wrap: anywhere; }

/* Letra: el usuario prefirió Inter (2026-10-21) — se revierte Bricolage Grotesque + Geist */
:root {
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.hero__title { letter-spacing: -.045em; }
.section__title, .page-title, .station-hero__title { letter-spacing: -.03em; }

/* ================================================================
   DESTACADAS 2026-10-23 — radios patrocinadas por provincia
   (#promoBox en la portada, r593_promo_block() en /radios/{prov}).
   Etiqueta de texto "Patrocinado" siempre en el mismo sitio; se
   separa por un paso de tono, sin bordes ni sombras en reposo.
   Para revertir: borrar este bloque.
   ================================================================ */
.promo { margin: 0 0 24px; padding: 18px; border-radius: 16px; background: var(--surface); }
.promo__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.promo__title { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
.promo__tag, .st__tag {
  flex: none; font-size: 12px; font-weight: 600; line-height: 1; color: var(--text-2);
  background: var(--surface-2); padding: 6px 10px; border-radius: var(--r-full);
}
.st__tag { font-size: 11px; padding: 3px 7px; margin-right: 2px; vertical-align: 1px; }
.promo__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }

.st.pc {
  flex-direction: row; align-items: center; gap: 14px; padding: 10px 12px 10px 10px;
  border-radius: 14px; background: var(--surface-2); transition: background-color .15s ease, transform .15s var(--ease);
}
.st.pc:hover { background: var(--surface-3); }
.st.pc:active { transform: scale(.98); }
.st.pc > div:nth-of-type(2) { flex: 1; min-width: 0; }
.pc .st__art, .st.pc:hover .st__art, .st.pc:focus-visible .st__art, .st.pc.is-current .st__art {
  width: 64px; flex: none; border-radius: 12px; transform: none; outline: none; box-shadow: none;
}
.pc .st__art img { padding: 9%; }
.pc .st__play, .pc .st__fav { display: none; }
.pc .st__name { font-size: 15px; }
.pc .st__meta { font-size: 13px; color: var(--text-2); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st.pc:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
.st.pc.is-current { box-shadow: 0 0 0 2px var(--primary-2); }
.pc__go {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--primary); color: #fff;
}
.pc__go svg { width: 18px; height: 18px; }
body.is-playing .st.pc.is-current .pc__go .ico-play { display: none; }
body.is-playing .st.pc.is-current .pc__go .eq { display: flex; }

.promo__more {
  display: inline-block; margin-top: 12px; font-size: 14px; color: var(--text-2);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-2);
}
.promo__more:hover { color: var(--text); text-decoration-color: currentColor; }

/* Sin patrocinador: una franja discreta que vende el espacio */
.promo--empty { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 14px 14px 18px; }
.promo__pitch { margin: 0; font-size: 15px; color: var(--text-2); max-width: 60ch; }
.promo__pitch strong { color: var(--text); font-weight: 650; }
.promo__cta {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 16px; flex: none;
  border-radius: 12px; background: var(--primary-soft); color: var(--primary-2); font-size: 15px; font-weight: 600;
  text-decoration: none; transition: background-color .15s ease, color .15s ease;
}
body:not(.dark) .promo__cta { color: var(--primary); }
.promo__cta svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.promo__cta:hover { background: var(--primary); color: #fff; }
.promo__cta:hover svg { transform: translateX(2px); }

@media (max-width: 600px) {
  .promo { padding: 14px; margin-bottom: 18px; }
  .promo__list { grid-template-columns: 1fr; gap: 8px; }
  .st.pc { gap: 12px; padding: 8px 10px 8px 8px; }
  .pc .st__art, .st.pc:hover .st__art, .st.pc:focus-visible .st__art, .st.pc.is-current .st__art { width: 56px; }
  .promo--empty { padding: 14px; }
  .promo__cta { width: 100%; justify-content: center; }
}
