:root {
  --font-oswald: "Oswald";
  --font-archivo: "Archivo";
  --navy-950: #031f36;
  --navy-900: #042b4d;
  --navy-800: #053d68;
  --navy-700: #07507d;
  --teal: #00a4b5;
  --teal-bright: #13d2db;
  --green: #4e9d35;
  --green-dark: #2e7429;
  --ivory: #f7f3eb;
  --paper: #fffdf8;
  --ink: #092d50;
  --muted: #61717a;
  --line: #d7dedb;
  --amber: #f2c84b;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}
body {
  margin: 0;
  padding-bottom: 88px;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-archivo), Arial, sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.audio-fallback-slot {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: -9999px;
  overflow: hidden;
  pointer-events: none;
}

/* Aviso de corte de la Planta Eléctrica (franja arriba; solo cuando hay algo) */
.aviso-corte {
  background: var(--amber);
  color: var(--ink);
  border-bottom: 3px solid #d9a92a;
}
.aviso-corte.es-incidencia {
  background: #d6453a;
  color: #fff;
  border-bottom-color: #a92f26;
}
.aviso-corte-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 15px;
  line-height: 1.35;
}
.aviso-corte-chip {
  font-family: var(--font-oswald), "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(9, 45, 80, .12);
}
.aviso-corte.es-incidencia .aviso-corte-chip { background: rgba(255, 255, 255, .18); }
.aviso-corte-in strong { font-weight: 800; }
.aviso-corte-texto { flex: 1 1 320px; }
.aviso-corte-in a { font-weight: 700; text-decoration: underline; white-space: nowrap; }
@media (max-width: 720px) {
  .aviso-corte-in { padding: 10px 16px; font-size: 14px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: 94px;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) auto minmax(270px, 1fr);
  align-items: center;
  gap: 28px;
  padding: 8px clamp(24px, 3.8vw, 66px);
  color: var(--navy-950);
  background: var(--ivory);
  border-bottom: 1px solid #e2e3dd;
  box-shadow: 0 5px 18px rgba(0, 38, 67, .1);
}
.brand {
  width: min(350px, 100%);
  display: block;
}
.brand img { width: 100%; height: auto; max-height: 74px; display: block; object-fit: contain; object-position: left center; }
nav { display: flex; align-items: center; justify-content: center; gap: clamp(22px, 2.6vw, 44px); }
nav a {
  position: relative;
  padding: 12px 0;
  font-family: var(--font-oswald), sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 5px;
  height: 3px;
  background: var(--teal);
  transition: right .2s ease;
}
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 11px; }
.header-social {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy-950);
}
.header-social:hover { background: var(--teal); }
.facebook-mark { display: grid; place-items: center; font-family: Arial, sans-serif; font-weight: 900; line-height: 1; }
.youtube-mark {
  position: relative;
  width: 22px;
  height: 15px;
  display: block;
  border-radius: 5px;
  background: currentColor;
}
.header-social .youtube-mark { color: white; background: white; }
.youtube-mark i {
  position: absolute;
  top: 4px;
  left: 8px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}
.header-social .youtube-mark i { color: var(--navy-950); }
.header-social:hover .youtube-mark i { color: var(--teal); }
.header-listen {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-left: 15px;
  padding: 0 22px;
  color: #087f8f;
  background: transparent;
  border: 2px solid #0b92a0;
  border-radius: 999px;
  font-family: var(--font-oswald), sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.header-listen:hover { color: white; background: var(--teal); }
.play-icon {
  width: 0;
  height: 0;
  display: inline-block;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  margin-left: 2px;
}
.pause-icon { width: 12px; height: 14px; display: inline-block; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }

.hero {
  min-height: max(690px, calc(100svh - 182px));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(390px, 1fr) minmax(430px, .94fr) minmax(350px, .86fr);
  align-items: center;
  gap: clamp(30px, 3vw, 58px);
  padding: 42px clamp(28px, 4.8vw, 82px) 48px;
  color: white;
  background: #043b65;
}
.hero-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.96) contrast(1.05);
  transform: translateZ(0);
  backface-visibility: hidden;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(115deg, rgba(3, 44, 78, .82) 0%, rgba(4, 75, 119, .72) 50%, rgba(3, 38, 68, .84) 100%);
  pointer-events: none;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: .38;
  background-image: linear-gradient(rgba(64,212,219,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(64,212,219,.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: -12%;
  bottom: -27%;
  width: 67%;
  aspect-ratio: 2.2;
  border: 1px solid rgba(51,208,214,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 45px rgba(51,208,214,.04), 0 0 0 95px rgba(51,208,214,.025);
}
.island-landscape { position: absolute; inset: auto 0 0; z-index: 3; height: 160px; opacity: .36; overflow: hidden; }
.island-landscape::before, .island-landscape::after, .island-landscape i {
  content: "";
  position: absolute;
  left: -5%;
  width: 110%;
  height: 80px;
  border-top: 2px solid rgba(27,197,204,.35);
  border-radius: 50%;
}
.island-landscape::before { top: 45px; }
.island-landscape::after { top: 75px; }
.island-landscape i:nth-child(1) { top: 95px; }
.island-landscape i:nth-child(2) { top: 115px; }
.island-landscape i:nth-child(3) { top: 135px; }
.hero-copy, .on-air, .hero-logo-wrap { position: relative; z-index: 4; }
@media (min-width: 881px) {
  .hero-copy, .on-air, .hero-logo-wrap { transform: translateY(-18px); }
}
.hero-kicker, .on-air-clock, .program-time, .section-kicker { color: var(--teal-bright); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.hero-kicker { margin: 0 0 18px; font-size: 18px; }
.hero-copy h1 {
  max-width: 560px;
  margin: 0;
  font-family: var(--font-oswald), sans-serif;
  font-size: clamp(70px, 6.5vw, 112px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(0,0,0,.08);
}
.hero-intro { max-width: 490px; margin: 26px 0 0; color: #d8e9ef; font-size: clamp(17px, 1.4vw, 22px); line-height: 1.55; }
.hero-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 520px; margin-top: 48px; }
.hero-values span { display: flex; flex-direction: column; align-items: center; gap: 9px; color: #e7f5f6; font-family: var(--font-oswald), sans-serif; font-size: 13px; text-align: center; text-transform: uppercase; }
.hero-values i { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; color: white; font-style: normal; }
.hero-values svg { width: 27px; height: 27px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.on-air { min-height: 520px; padding: 24px 0 0 38px; border-left: 1px solid rgba(255,255,255,.35); }
.on-air-title { position: relative; display: flex; align-items: center; gap: 20px; padding-bottom: 20px; }
.on-air-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 138px; height: 4px; background: var(--teal-bright); }
.broadcast-icon { position: relative; width: 54px; height: 54px; display: grid; place-items: center; color: var(--teal-bright); border: 2px solid rgba(19,210,219,.34); border-radius: 50%; font-size: 25px; }
.broadcast-icon::after { content: ""; position: absolute; inset: -2px; border: 1px solid rgba(19,210,219,.45); border-radius: 50%; animation: broadcast-ring 1.35s ease-out infinite; }
.broadcast-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.broadcast-icon .signal-wave { transform-box: fill-box; transform-origin: center; }
.broadcast-icon .signal-wave-inner { animation: broadcast-wave .9s ease-in-out infinite; }
.broadcast-icon .signal-wave-outer { animation: broadcast-wave .9s .18s ease-in-out infinite; }
.on-air h2, .on-air h3, .section-heading h2, .locutor-card h3, .history-copy h2, .history-points h3, footer h3 {
  font-family: var(--font-oswald), sans-serif;
  text-transform: uppercase;
}
.on-air h2 { margin: 0; font-size: clamp(34px, 3vw, 52px); letter-spacing: -.025em; }
.on-air-clock { margin: 20px 0 10px; font-size: 17px; }
.on-air h3 { margin: 0; font-size: clamp(31px, 3vw, 52px); line-height: 1; }
.on-air-host { margin: 12px 0 0; color: var(--teal-bright); font-family: var(--font-oswald), sans-serif; font-size: 20px; }
.on-air-actions { display: flex; align-items: stretch; gap: 42px; margin-top: 22px; }
.on-air-actions > div { display: flex; flex-direction: column; justify-content: center; }
.on-air-time { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-oswald), sans-serif; font-size: 24px; font-weight: 700; }
.on-air-time .on-air-time-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: var(--teal-bright); }
.on-air-time-icon svg { width: 29px; height: 29px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-wave-icon path { transform-box: fill-box; transform-origin: center; }
.sound-wave-icon.is-playing path { animation: sound-bar .55s ease-in-out infinite alternate; }
.sound-wave-icon.is-playing path:nth-child(2) { animation-delay: -.45s; }
.sound-wave-icon.is-playing path:nth-child(3) { animation-delay: -.2s; }
.sound-wave-icon.is-playing path:nth-child(4) { animation-delay: -.6s; }
.sound-wave-icon.is-playing path:nth-child(5) { animation-delay: -.32s; }
.live-button {
  width: max-content;
  min-width: 124px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding: 0 19px;
  color: white;
  background: var(--green-dark);
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}
.live-button span { width: 9px; height: 9px; border-radius: 50%; background: white; box-shadow: 0 0 0 5px rgba(255,255,255,.14); }
.on-air-photo { width: 118px; height: 132px; margin-left: 12px; object-fit: cover; object-position: center 32%; border: 3px solid var(--teal-bright); background: var(--navy-950); }
.on-air-photo.is-station-logo { width: 132px; height: 132px; padding: 4px; object-fit: contain; object-position: center; background: white; }
.on-air-next { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.32); }
.on-air-next span { color: var(--teal-bright); font-size: 23px; }
.on-air-next .next-icon { width: 16px; height: 16px; position: relative; flex: 0 0 auto; border: 2px solid var(--teal-bright); }
.on-air-next .next-icon::after { content: ""; position: absolute; inset: 3px; background: rgba(19,210,219,.45); }
.on-air-next p { margin: 0; font-family: var(--font-oswald), sans-serif; font-size: 17px; text-transform: uppercase; }
.schedule-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 26px; color: var(--teal-bright); font-family: var(--font-oswald), sans-serif; font-size: 17px; text-transform: uppercase; }
.schedule-link span { font-size: 30px; line-height: .6; }

.hero-logo-wrap { display: grid; place-items: center; }
.hero-logo-wrap::before { content: ""; position: absolute; width: min(32vw, 510px); aspect-ratio: 1; border: 2px solid rgba(20,210,222,.28); border-radius: 50%; box-shadow: 0 0 0 24px rgba(20,210,222,.035), 0 0 0 48px rgba(20,210,222,.02); }
.hero-logo-card {
  position: relative;
  z-index: 2;
  width: min(26vw, 410px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: #f8f6ef;
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
}
.hero-logo-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.logo-spectrum {
  position: absolute;
  width: min(31vw, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .95;
  background: repeating-conic-gradient(from -90deg, #12d4df 0deg 1.15deg, transparent 1.15deg 2.85deg);
  -webkit-mask: radial-gradient(circle, transparent 0 73%, #000 73.5% 90%, transparent 90.5%);
  mask: radial-gradient(circle, transparent 0 73%, #000 73.5% 90%, transparent 90.5%);
}
.logo-spectrum::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(from -90deg, #55bb28 0deg 1.2deg, transparent 1.2deg 2.85deg); clip-path: inset(55% 0 0 0); }

.programs-section { padding: 95px clamp(28px, 6vw, 108px) 105px; background: var(--ivory); }
.section-heading > p { margin: 0 0 10px; color: var(--teal); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(46px, 5vw, 78px); line-height: .98; letter-spacing: -.035em; }
.section-heading.centered { text-align: center; }
.section-heading.centered h2::after { content: ""; display: block; width: 86px; height: 4px; margin: 18px auto 0; background: var(--teal); }
.section-heading.light > p { color: #76e0e2; }
.section-heading.light h2 { color: white; }
.day-tabs { max-width: 1200px; display: grid; grid-template-columns: repeat(6, 1fr); margin: 50px auto 28px; border: 1px solid #668097; border-radius: 7px; overflow: hidden; }
.day-tabs button { min-height: 48px; color: var(--navy-950); background: transparent; border: 0; border-right: 1px solid #668097; font-family: var(--font-oswald), sans-serif; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.day-tabs button:last-child { border-right: 0; }
.day-tabs button:hover { background: #e2efec; }
.day-tabs button.active { color: white; background: linear-gradient(100deg, #087b8a, #08617e); }
.program-grid { max-width: 1320px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 auto; }
.program-card {
  min-height: 165px;
  position: relative;
  overflow: hidden;
  padding: 26px 28px;
  color: white;
  background: linear-gradient(120deg, #062d52, #064c78);
  border: 1px solid rgba(0,164,181,.5);
  border-radius: 5px;
  box-shadow: 0 9px 24px rgba(4,43,77,.08);
}
.program-card::after { content: ""; position: absolute; right: -25px; bottom: -58px; width: 130px; height: 130px; border: 1px solid rgba(19,210,219,.18); border-radius: 50%; box-shadow: 0 0 0 25px rgba(19,210,219,.04); }
.program-card:hover { transform: translateY(-2px); border-color: var(--teal-bright); }
.program-card.is-live {
  z-index: 2;
  border-color: var(--teal-bright);
  box-shadow: 0 0 0 2px rgba(19,210,219,.4), 0 0 24px rgba(19,210,219,.6), 0 0 46px rgba(78,157,53,.24);
  animation: live-program-glow 1.55s ease-in-out infinite;
}
.program-live-label {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: white;
  background: var(--green-dark);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  box-shadow: 0 0 13px rgba(98,197,63,.65);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.program-live-label i {
  width: 7px;
  height: 7px;
  display: block;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255,255,255,.55);
  animation: live-label-pulse .9s ease-out infinite;
}
.program-time { position: relative; z-index: 1; margin: 0 0 13px; font-family: var(--font-oswald), sans-serif; font-size: 17px; }
.program-card h3 { position: relative; z-index: 1; max-width: 95%; margin: 0; font-family: var(--font-oswald), sans-serif; font-size: 25px; line-height: 1.05; }
.program-host { position: relative; z-index: 1; margin: 13px 0 0; color: #83c64b; font-family: var(--font-oswald), sans-serif; font-size: 15px; }

@keyframes live-label-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  72%, 100% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
}

.locutors-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding: 100px clamp(28px, 6vw, 108px); color: white; background: linear-gradient(120deg, var(--navy-950), #064b73); }
.locutors-section > .section-heading { align-self: center; }
.locutor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.locutor-card { overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.locutor-card img { width: 100%; height: 280px; display: block; object-fit: cover; object-position: center 35%; }
.locutor-card div { padding: 25px; }
.locutor-card span { color: #73dfe0; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.locutor-card h3 { margin: 8px 0 12px; font-size: 32px; }
.locutor-card p { margin: 0; color: #c3d8dc; font-size: 15px; line-height: 1.65; }

.history-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; padding: 110px clamp(28px, 6vw, 108px); background: var(--paper); }
.history-copy h2 { margin: 12px 0 28px; font-size: clamp(48px, 5vw, 76px); line-height: .96; }
.history-copy > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }
.history-points { border-top: 1px solid var(--line); }
.history-points article { position: relative; padding: 27px 0 27px 95px; border-bottom: 1px solid var(--line); }
.history-points article > span { position: absolute; left: 0; top: 30px; width: 70px; color: var(--teal); font-family: var(--font-oswald), sans-serif; font-size: 15px; font-weight: 700; }
.history-points h3 { margin: 0 0 9px; font-size: 27px; }
.history-points p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.social-section { position: relative; overflow: hidden; padding: 88px 25px 95px; color: white; background: linear-gradient(110deg, #053157, #075884 55%, #042d50); }
.social-wave { max-width: 1180px; position: relative; z-index: 2; height: 1px; margin: 27px auto 0; background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(19,210,219,.58) 6px 9px); opacity: .55; }
.social-links { max-width: 1180px; position: relative; z-index: 2; display: flex; justify-content: center; gap: 22px; margin: 28px auto 0; }
.social-links a { min-width: 0; flex: 1 1 0; display: flex; align-items: center; gap: 20px; padding: 25px 26px; background: rgba(2,29,51,.36); border: 1px solid rgba(255,255,255,.22); }
.social-links a:hover { border-color: var(--teal-bright); transform: translateY(-2px); }
.social-links .facebook-mark { width: 66px; height: 66px; flex: 0 0 auto; border-radius: 50%; background: #1877f2; font-size: 47px; }
.social-links .youtube-mark { width: 80px; height: 54px; flex: 0 0 auto; color: white; background: #ff0000; border-radius: 14px; }
.social-links .youtube-mark i { top: 15px; left: 32px; border-top-width: 12px; border-bottom-width: 12px; border-left-width: 18px; }
.social-links span { display: flex; flex-direction: column; color: #72dfe1; font-family: var(--font-oswald), sans-serif; font-size: 14px; text-transform: uppercase; }
.social-links strong { margin-bottom: 5px; color: white; font-size: 25px; }
.social-links .municipal-link { justify-content: center; padding: 18px 24px; }
.social-links .municipal-link img { width: 100%; max-width: 300px; height: 82px; display: block; object-fit: contain; }
.social-tagline { position: relative; z-index: 2; margin: 38px 0 0; color: #d5ecef; font-size: 18px; text-align: center; }

footer {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .9fr .8fr 1.25fr;
  gap: 55px;
  padding: 64px clamp(28px, 6vw, 108px) 96px;
  color: #c5d6da;
  background: #021c31;
}
.footer-column h3 { margin: 0 0 24px; padding-bottom: 10px; color: white; border-bottom: 2px solid var(--teal); font-size: 16px; letter-spacing: .03em; }
.footer-column p, .footer-column a { display: block; margin: 0 0 11px; font-size: 14px; line-height: 1.65; }
.footer-column a:hover { color: var(--teal-bright); }
.footer-column button { min-height: 54px; display: inline-flex; align-items: center; gap: 13px; padding: 0 24px; color: var(--teal-bright); background: transparent; border: 1px solid var(--teal-bright); border-radius: 8px; font-family: var(--font-oswald), sans-serif; font-size: 18px; text-transform: uppercase; }
.copyright { position: absolute; left: 0; right: 0; bottom: 25px; margin: 0; color: #65818a; font-size: 11px; letter-spacing: .1em; text-align: center; text-transform: uppercase; }

.player {
  position: fixed;
  z-index: 60;
  left: 0;
  right: 0;
  bottom: 0;
  height: 88px;
  display: grid;
  grid-template-columns: minmax(240px, .95fr) minmax(160px, .75fr) auto minmax(175px, .65fr);
  align-items: center;
  gap: 30px;
  padding: 8px clamp(18px, 3vw, 48px);
  color: white;
  background: rgba(2,30,52,.98);
  border-top: 1px solid rgba(19,210,219,.35);
  box-shadow: 0 -12px 35px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.player-station { display: flex; align-items: center; gap: 15px; min-width: 0; }
.player-station img { width: 62px; height: 62px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; }
.player-station div, .player-status { min-width: 0; display: flex; flex-direction: column; }
.player-station span, .player-status span { margin-bottom: 3px; color: #80a7b3; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.player-station strong { overflow: hidden; font-family: var(--font-oswald), sans-serif; font-size: 18px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.player-spectrum { height: 42px; display: flex; align-items: center; gap: 5px; }
.player-spectrum i { width: 3px; height: 10px; background: var(--teal-bright); transform-origin: center; }
.player-spectrum i:nth-child(2n) { height: 26px; }
.player-spectrum i:nth-child(3n) { height: 39px; background: #69b936; }
.player-spectrum.is-playing i { animation: player-bar .56s ease-in-out infinite alternate; }
.player-spectrum.is-playing i:nth-child(2n) { animation-delay: -.35s; }
.player-spectrum.is-playing i:nth-child(3n) { animation-delay: -.58s; }
.player-spectrum.is-playing i:nth-child(5n) { animation-delay: -.18s; }
.player-center { display: flex; align-items: center; gap: 15px; }
.player-button { width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: #007d9b; border: 2px solid var(--teal-bright); border-radius: 50%; }
.player-button:hover { color: var(--navy-950); background: var(--teal-bright); }
.player-status strong { font-size: 13px; }
.player-status span { max-width: 210px; margin-top: 4px; line-height: 1.3; }
.volume-control { justify-self: end; display: flex; align-items: center; gap: 11px; }
.volume-control > span { width: 28px; height: 28px; display: grid; place-items: center; color: var(--teal-bright); }
.speaker-icon { width: 26px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.speaker-body { fill: currentColor; stroke: none; }
.speaker-icon.is-playing .speaker-wave-inner { animation: speaker-wave .85s ease-in-out infinite; }
.speaker-icon.is-playing .speaker-wave-outer { animation: speaker-wave .85s .15s ease-in-out infinite; }
.volume-control input { width: 92px; accent-color: var(--teal-bright); }
.volume-control strong { min-width: 32px; color: var(--amber); font-size: 11px; }

@keyframes broadcast-wave {
  0%, 100% { opacity: .35; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes broadcast-ring {
  0% { opacity: .55; transform: scale(.82); }
  70%, 100% { opacity: 0; transform: scale(1.28); }
}
@keyframes sound-bar {
  from { transform: scaleY(.4); opacity: .5; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes player-bar {
  from { transform: scaleY(.32); opacity: .55; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes speaker-wave {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}
@keyframes live-program-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(19,210,219,.32), 0 0 18px rgba(19,210,219,.4), 0 0 34px rgba(78,157,53,.16); }
  50% { box-shadow: 0 0 0 3px rgba(19,210,219,.7), 0 0 31px rgba(19,210,219,.78), 0 0 54px rgba(78,157,53,.36); }
}

@media (max-width: 1240px) {
  .site-header { grid-template-columns: minmax(300px, 1fr) auto; }
  nav { display: none; }
  .hero { grid-template-columns: minmax(340px, .9fr) minmax(390px, 1fr); }
  .hero-logo-wrap { display: none; }
  .on-air { padding-left: 32px; }
  .locutors-section { grid-template-columns: 1fr; }
  .locutors-section > .section-heading { max-width: 680px; }
  .player { grid-template-columns: minmax(220px, 1fr) minmax(72px, 110px) auto minmax(160px, .55fr); gap: 18px; }
  .player-spectrum { justify-self: center; }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 78px; }
  body { padding-bottom: 76px; }
  .site-header { min-height: 78px; padding: 8px 16px; }
  .brand { width: min(260px, 100%); }
  .brand img { height: 54px; }
  .header-social { display: none; }
  .header-listen { min-height: 42px; margin-left: 0; padding: 0 14px; font-size: 13px; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 45px; padding: 62px 24px 70px; }
  .hero-video { display: block; object-position: center center; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { margin: 0 auto; font-size: clamp(68px, 17vw, 100px); }
  .hero-intro { margin-left: auto; margin-right: auto; }
  .hero-values { margin-left: auto; margin-right: auto; }
  .on-air { min-height: auto; max-width: 620px; width: 100%; margin: 0 auto; padding: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.32); }
  .on-air-title { padding-top: 28px; }
  .on-air-title::after { left: 0; bottom: 0; }
  .programs-section { padding: 75px 18px 82px; }
  .day-tabs { grid-template-columns: repeat(3, 1fr); }
  .day-tabs button { border-bottom: 1px solid #668097; }
  .day-tabs button:nth-child(3) { border-right: 0; }
  .day-tabs button:nth-child(n+4) { border-bottom: 0; }
  .program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .locutors-section, .history-section { grid-template-columns: 1fr; gap: 50px; padding: 80px 22px; }
  .social-links { flex-wrap: wrap; gap: 18px; }
  .social-links a { min-width: 0; width: min(48%, 320px); flex-basis: min(48%, 320px); }
  .social-links .municipal-link { flex-basis: min(48%, 320px); }
  footer { grid-template-columns: 1fr 1fr; gap: 42px; padding: 58px 24px 105px; }
  .player { height: 76px; grid-template-columns: minmax(0, 1fr) 45px auto; gap: 12px; padding: 7px 12px; }
  .player-station img { width: 55px; height: 55px; }
  .player-station strong { font-size: 15px; }
  .player-spectrum { width: 45px; height: 34px; gap: 3px; overflow: hidden; }
  .player-spectrum i:nth-child(n+8) { display: none; }
  .player-center { gap: 0; }
  .player-status, .volume-control { display: none; }
  .player-button { width: 50px; height: 50px; }
}

@media (max-width: 590px) {
  .site-header { grid-template-columns: 1fr auto; }
  .brand { width: min(220px, 100%); }
  .brand img { height: auto; max-height: 48px; }
  .header-listen { width: 44px; padding: 0; justify-content: center; font-size: 0; }
  .hero { padding-top: 48px; }
  .hero-kicker { font-size: 15px; }
  .hero-copy h1 { font-size: clamp(61px, 19vw, 86px); }
  .hero-values { gap: 4px; }
  .hero-values span { font-size: 10px; }
  .on-air-title { gap: 13px; }
  .broadcast-icon { width: 46px; height: 46px; }
  .on-air h2 { font-size: 34px; }
  .on-air-title::after { width: 105px; }
  .on-air h3 { font-size: 36px; }
  .on-air-actions { justify-content: space-between; gap: 18px; }
  .on-air-photo { margin-left: 0; }
  .on-air-photo { width: 105px; height: 120px; }
  .on-air-photo.is-station-logo { width: 105px; height: 105px; padding: 3px; }
  .on-air-next p { font-size: 14px; }
  .section-heading h2 { font-size: 45px; }
  .day-tabs { margin-top: 36px; }
  .day-tabs button { min-height: 45px; font-size: 12px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 145px; }
  .locutor-grid { grid-template-columns: 1fr; }
  .locutor-card img { height: 250px; }
  .social-section { padding: 70px 18px 78px; }
  .social-links { flex-direction: column; align-items: center; margin-top: 34px; }
  .social-links a { width: 100%; max-width: 390px; }
  .social-links .municipal-link { flex-basis: auto; }
  footer { grid-template-columns: 1fr; gap: 34px; }
  .player-station span { display: none; }
  .player { grid-template-columns: minmax(0, 1fr) 32px auto; gap: 8px; padding: 7px 8px; }
  .player-station { gap: 10px; }
  .player-station img { width: 48px; height: 48px; }
  .player-station strong { font-size: 13px; white-space: normal; }
  .player-spectrum { width: 32px; gap: 2px; }
  .player-spectrum i:nth-child(n+7) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Día sin programación (p. ej. domingo) */
.program-empty{grid-column:1/-1;text-align:center;padding:2rem 1rem;opacity:.75;font-size:1.05rem}

/* El botón "En vivo" del panel Al aire ahora no debe partir el texto */
.on-air-actions .live-button{white-space:nowrap}
.on-air-actions .live-button .audio-label{white-space:nowrap}

/* ---- Correcciones 2026-09-05 ----------------------------------------- */
/* "En vivo": solo el primer span es el punto; el texto no debe heredar ese estilo */
.live-button > span[aria-hidden]{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:#fff;box-shadow:0 0 0 5px rgba(255,255,255,.14)}
.live-button .audio-label{width:auto;height:auto;border-radius:0;background:none;box-shadow:none;white-space:nowrap}
/* Facebook: ícono SVG centrado en vez del glifo tipográfico "f" */
.facebook-mark,.header-social .facebook-mark,.social-links .facebook-mark{
  font-size:0;color:transparent;
  background-image:url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M13.6 22v-8.1h2.8l.4-3.3h-3.2V8.5c0-.9.3-1.6 1.6-1.6h1.7V4c-.3 0-1.3-.1-2.5-.1-2.5 0-4.2 1.5-4.2 4.3v2.4H7.4v3.3h2.8V22h3.4z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center 52%;background-size:58% auto;
}
.header-social .facebook-mark{width:34px;height:34px;border-radius:50%}
