/* ==========================================================
   CMF Radio — estilos principales
   Maquetación responsive basada en la primera propuesta visual
   ========================================================== */

:root {
  --cyan: #00d9f2;
  --cyan-bright: #12efff;
  --blue: #087de5;
  --navy: #031d48;
  --deep: #02142f;
  --white: #f4fdff;
  --pink: #ff2f83;
  --content: 1500px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: #031c43;
  font-family: "Montserrat", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* -------------------------- Encabezado ------------------------- */
.site-header {
  min-height: 76px;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #071b3a;
  background: linear-gradient(100deg, #00d4e9 0%, #eaffff 28%, #fff 76%, #e7fbff 100%);
  box-shadow: 0 3px 18px #001a3a45;
}
.main-nav {
  width: min(100%, 1080px);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 62px);
}
.main-nav a {
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  transition: color .2s ease;
}
.main-nav a > span { font-size: 22px; line-height: 1; }
.main-nav a:hover,
.main-nav a.active { color: #087dd5; }
.main-nav a.active::after {
  content: "";
  height: 4px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  border-radius: 8px;
  background: #087fe6;
}
.instagram-nav-icon, .telegram-nav-icon { width: 23px; height: 23px; flex: 0 0 auto; }
.menu-toggle { display: none; }

/* --------------------------- Portada -------------------------- */
.hero {
  min-height: 448px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 5.5% 18px;
  background:
    radial-gradient(ellipse at 84% 16%, #e629b8 0%, transparent 22%),
    radial-gradient(ellipse at 64% 5%, #00c8ed 0%, transparent 25%),
    radial-gradient(ellipse at 28% 60%, #057ad3 0%, transparent 40%),
    linear-gradient(112deg, #064d91 0%, #032858 45%, #031333 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .38;
  background-image: radial-gradient(#08d7f5 1.3px, transparent 1.3px);
  background-size: 13px 13px;
  mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 76%, #000);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 720px;
  height: 720px;
  left: -330px;
  top: -300px;
  border: 1px solid #00dfff35;
  border-radius: 50%;
  box-shadow: 0 0 0 28px #00dfff10, 0 0 0 72px #00dfff0a;
}
.hero-inner {
  width: min(100%, var(--content));
  min-height: 345px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 330px) minmax(430px, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  position: relative;
  z-index: 2;
}

/* Logo circular: recorte sin el texto/eslogan inferior de la imagen original */
.hero-logo {
  width: 100%;
  height: 100%;
  min-height: 345px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: center;
  place-items: center;
  z-index: 2;
}
.hero-logo img {
  display: block;
  width: clamp(220px, 22vw, 330px);
  height: auto;
  aspect-ratio: 1 / 1;
  margin: 0;
  object-fit: contain;
  object-position: 50% 50%;
  border-radius: 50%;
  box-shadow: 0 0 0 6px #00dfff55, 0 0 42px #00c8ff99;
}

.hero-center { min-width: 0; position: relative; z-index: 3; }
.hero-copy { position: relative; padding: 0 0 0 4px; }
h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(48px, 5.1vw, 78px);
  line-height: .99;
  letter-spacing: -.065em;
  font-weight: 900;
  text-shadow: 0 5px 24px #001b3c80;
}
h1 span { white-space: nowrap; }
.brush-line {
  display: block;
  width: min(330px, 85%);
  height: 9px;
  margin: 14px 0 10px 75px;
  transform: skewX(-28deg) rotate(-3deg);
  background: linear-gradient(90deg, transparent, #00eaff 14%, #00c9ee 78%, transparent);
  clip-path: polygon(0 40%, 100% 0, 92% 65%, 8% 100%);
}
.tagline {
  margin: 0 0 18px;
  font-size: clamp(21px, 2.3vw, 34px);
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
  text-shadow: 0 3px 16px #001a3c77;
}

/* Auriculares PNG independiente con transparencia */
.headphone-art {
  width: 100%;
  height: 350px;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 14px 22px #00152c99);
}
.headphone-art img {
  width: 125%;
  height: 132%;
  position: absolute;
  right: -12%;
  top: -16%;
  object-fit: contain;
  object-position: center;
  animation: headphone-float 5.5s ease-in-out infinite;
}

/* Ondas decorativas del hero */
.soundwave {
  position: absolute;
  bottom: 70px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 72px;
  opacity: .82;
}
.soundwave i {
  display: block;
  width: 6px;
  border-radius: 8px;
  background: linear-gradient(#00eaff, #078be9);
  box-shadow: 0 0 12px #00cfff;
  animation: wave-pulse 1.1s ease-in-out infinite alternate;
}
.soundwave i:nth-child(6n+1) { height: 18px; }
.soundwave i:nth-child(6n+2) { height: 34px; animation-delay: -.2s; }
.soundwave i:nth-child(6n+3) { height: 58px; animation-delay: -.5s; }
.soundwave i:nth-child(6n+4) { height: 42px; animation-delay: -.7s; }
.soundwave i:nth-child(6n+5) { height: 68px; animation-delay: -.3s; }
.soundwave i:nth-child(6n) { height: 28px; animation-delay: -.6s; }
.soundwave-left { left: 2%; }
.soundwave-right { right: 3%; }

/* ------------------------- Reproductor -------------------------- */
.player-shell {
  width: min(790px, 100%);
  min-height: 100px;
  margin: 10px auto 0;
  padding: 11px 26px;
  border: 4px solid var(--cyan);
  border-radius: 70px;
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(105deg, #03172eec, #05234bfa 55%, #031a36f5);
  box-shadow: 0 0 22px #00c9ff45, inset 0 0 25px #00b9f51c;
}
.play-button {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  flex: 0 0 auto;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #ff4b9a, #e51c83 55%, #087de5);
  box-shadow: 0 7px 20px #e51c8370;
  transition: transform .2s ease, filter .2s ease;
}
.play-button:hover { transform: scale(1.06); filter: brightness(1.12); }
.play-button svg { width: 32px; height: 32px; fill: currentColor; }
.pause-icon { display: none; }
.play-button.is-playing .play-icon { display: none; }
.play-button.is-playing .pause-icon { display: block; }
.player-info { min-width: 0; flex: 1; }
.player-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 900;
  white-space: nowrap;
}
.player-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #8cb8d7;
  font-size: 11px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3985;
  box-shadow: 0 0 10px #ff3985;
}
.equalizer { display: inline-flex; align-items: center; gap: 3px; height: 22px; color: #00eaff; }
.equalizer i {
  display: block;
  width: 4px;
  height: 17px;
  border-radius: 4px;
  background: currentColor;
  transform-origin: bottom;
  animation: equalizer-bounce .75s ease-in-out infinite;
}
.equalizer i:nth-child(2) { animation-delay: -.18s; height: 21px; }
.equalizer i:nth-child(3) { animation-delay: -.42s; height: 14px; }
.equalizer i:nth-child(4) { animation-delay: -.3s; height: 19px; }
.live-pill {
  padding: 8px 14px;
  border-radius: 30px;
  background: linear-gradient(90deg, #ff367e, #eb2676);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 4px 14px #ff28754d;
}
.live-pill i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #fff;
}
.player-divider { width: 1px; height: 46px; background: #3e779d; }
.volume-icon { padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.volume-icon svg {
  width: 25px; height: 25px; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.volume-control { width: 112px; accent-color: var(--cyan); cursor: pointer; }
.stream-note {
  margin: 8px 0 0;
  color: #9ddcf4;
  font-size: 11px;
  text-align: center;
  opacity: .8;
}
.player-shell.is-playing { animation: player-aura 2.8s ease-in-out infinite; }
.player-shell.is-playing .status-dot { animation: dot-blink 1.2s ease-in-out infinite; }

/* ---------------------- Tarjetas musicales ------------------------ */
.genres-section {
  width: 100%;
  margin: 0 auto;
  padding: 28px max(5.8%, calc((100% - 1500px) / 2)) 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  background: linear-gradient(180deg, #034d91 0%, #057ec4 100%);
}
.genre-card {
  min-width: 0;
  height: 132px;
  padding: 16px;
  border: 3px solid #00d9f3;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  isolation: isolate;
  box-shadow: 0 8px 20px #001b3a66;
  transition: transform .22s ease, box-shadow .22s ease;
}
.genre-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9; }
.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px #001b3a80, 0 0 18px #00dfff88;
}
.cumbia-card { background: radial-gradient(ellipse at 20% 20%, #f52fc7, #4d146e 48%, #061c4b); }
.cumbia-card::before { background: linear-gradient(90deg, #f900a755, #081d4cbb); }
.reggaeton-card { background: radial-gradient(ellipse at 45% 15%, #6c29ec, #071a5a 68%); }
.reggaeton-card::before { background: linear-gradient(90deg, #b41eff55, #041b50cc); }
.hits-card { background: radial-gradient(ellipse at 65% 15%, #00d5eb, #03466d 55%, #061a46); }
.hits-card::before { background: linear-gradient(90deg, #00d9ef44, #041c4bc9); }
.genre-symbol {
  color: #fff;
  font-size: 62px;
  line-height: 1;
  font-weight: 700;
  text-shadow: 0 0 10px #ff28de, 0 0 24px #ff28de;
}
.reggaeton-symbol { text-shadow: 0 0 12px #d92cff, 0 0 25px #d92cff; transform: rotate(0deg); }
.hits-symbol { color: #fff; text-shadow: 0 0 10px #ff28de, 0 0 24px #ff28de; }
.genre-name {
  font-size: clamp(21px, 2.5vw, 36px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.04em;
  text-shadow: 0 3px 12px #00112d;
  white-space: nowrap;
}
.genre-name small { display: block; font-size: .57em; line-height: 1.2; }
.genre-underline {
  width: 38%;
  height: 5px;
  position: absolute;
  bottom: 18px;
  left: 38%;
  background: linear-gradient(90deg, transparent, #00eaff, transparent);
  transform: rotate(-5deg);
}

/* --------------------- Franja de redes sociales ------------------- */
.instagram-strip {
  min-height: 112px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, #05366d, #031a3c 66%, #062b58);
  border-top: 1px solid #00dfff66;
  border-bottom: 5px solid #00cfe9;
}
.instagram-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: radial-gradient(#00dfff 1px, transparent 1px);
  background-size: 10px 10px;
  mask-image: linear-gradient(90deg, #000, transparent 65%);
}
.social-links {
  width: min(100%, 1040px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vw, 76px);
  position: relative;
  z-index: 1;
}
.social-group {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.social-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}
.social-brand strong { font-size: 19px; }
.social-logo { width: 52px; height: 52px; flex: 0 0 auto; transition: transform .2s ease; }
.social-brand:hover .social-logo { transform: scale(1.07) rotate(-5deg); }
.telegram-logo { filter: drop-shadow(0 0 8px #27a7e766); }
.social-pill {
  padding: 10px 20px;
  border: 3px solid #00d9f3;
  border-radius: 40px;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.social-pill:hover {
  background: #00d9f322;
  box-shadow: 0 0 18px #00dfff55;
  transform: translateY(-2px);
}

/* ---------------- Footer restaurado de la primera maqueta ---------------- */
.site-footer {
  min-height: 68px;
  padding: 13px max(6%, calc((100% - 1500px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #021a3b;
  color: #e9faff;
}
.footer-left,
.footer-right {
  min-width: 0;
  display: flex;
  align-items: center;
}
.footer-left { gap: 22px; }
.footer-left strong {
  color: #00d8f1;
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
}
.footer-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 1px;
  background: #00cfe8;
}
.footer-description { color: #cce9f8; font-size: 13px; white-space: nowrap; }
.footer-right { gap: 22px; }
.footer-tagline {
  color: #e9faff;
  font-size: 15px;
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
}
.footer-equalizer {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #00dff4;
}
.footer-equalizer i {
  display: block;
  width: 4px;
  border-radius: 5px;
  background: currentColor;
  box-shadow: 0 0 8px #00dff477;
  animation: equalizer-bounce .8s ease-in-out infinite;
}
.footer-equalizer i:nth-child(1),
.footer-equalizer i:nth-child(9) { height: 9px; animation-delay: -.35s; }
.footer-equalizer i:nth-child(2),
.footer-equalizer i:nth-child(8) { height: 17px; animation-delay: -.15s; }
.footer-equalizer i:nth-child(3),
.footer-equalizer i:nth-child(7) { height: 24px; animation-delay: -.5s; }
.footer-equalizer i:nth-child(4),
.footer-equalizer i:nth-child(6) { height: 15px; animation-delay: -.25s; }
.footer-equalizer i:nth-child(5) { height: 28px; }

/* ------------------------ Animaciones ----------------------- */
@keyframes headphone-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-9px) rotate(-1deg); }
}
@keyframes wave-pulse {
  from { transform: scaleY(.55); opacity: .7; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes equalizer-bounce {
  0%, 100% { transform: scaleY(.28); }
  50% { transform: scaleY(1); }
}
@keyframes player-aura {
  0%, 100% { box-shadow: 0 0 22px #00c9ff45, inset 0 0 25px #00b9f51c; }
  50% { box-shadow: 0 0 34px #00dfff88, inset 0 0 30px #00b9f52c; }
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* ----------------------- Adaptación a pantallas ------------------------ */
@media (max-width: 1120px) {
  .hero { padding-left: 3.5%; padding-right: 3.5%; }
  .hero-inner { grid-template-columns: minmax(190px, 250px) minmax(350px, 1fr) minmax(220px, 280px); gap: 12px; }
  .hero-logo img { width: clamp(190px, 22vw, 245px); }
  .headphone-art { height: 300px; }
  .headphone-art img { width: 132%; right: -18%; }
  .player-shell { gap: 15px; padding-left: 20px; padding-right: 20px; }
  .genres-section { padding-left: 3.5%; padding-right: 3.5%; gap: 14px; }
  .genre-card { height: 118px; gap: 10px; }
  .genre-symbol { font-size: 50px; }
}
@media (max-width: 820px) {
  .site-header, .main-nav { min-height: 68px; }
  .main-nav { gap: clamp(14px, 3vw, 26px); }
  .main-nav a { min-height: 68px; font-size: 13px; gap: 7px; }
  .main-nav a > span { font-size: 19px; }
  .hero { padding: 24px 22px 18px; }
  .hero-inner { grid-template-columns: 190px minmax(0, 1fr); gap: 12px 20px; }
  .hero-logo { grid-row: 1; min-height: 220px; }
  .hero-logo img { width: 180px; }
  .hero-center { grid-column: 2; }
  .headphone-art { grid-column: 1 / -1; height: 220px; margin-top: -8px; }
  .headphone-art img { width: min(72%, 470px); height: 145%; right: 14%; top: -23%; }
  .soundwave { bottom: 78px; }
  .player-shell { margin-top: 6px; }
  .genres-section { padding-top: 20px; padding-bottom: 20px; }
  .genre-card { height: 104px; padding: 10px; }
  .genre-symbol { font-size: 42px; }
  .genre-name { font-size: clamp(17px, 2.7vw, 25px); }
}
@media (max-width: 640px) {
  .site-header { min-height: 64px; justify-content: flex-end; padding: 0 16px; }
  .menu-toggle {
    width: 44px; height: 44px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px;
    border: 1px solid #0a477533; border-radius: 10px; background: #ffffff99; cursor: pointer;
  }
  .menu-toggle span { width: 22px; height: 2.5px; border-radius: 4px; background: #063260; }
  .main-nav {
    display: none;
    min-height: auto;
    position: absolute;
    top: 64px; left: 0; right: 0;
    padding: 10px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #efffff;
    box-shadow: 0 12px 20px #001b3b35;
  }
  .main-nav.open { display: flex; }
  .main-nav a { min-height: 46px; justify-content: flex-start; border-bottom: 1px solid #d5f3f8; font-size: 14px; }
  .main-nav a.active::after { display: none; }
  .hero { padding: 22px 16px 18px; }
  .hero-inner { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; }
  .hero-logo { min-height: 100px; }
  .hero-logo img { width: 88px; box-shadow: 0 0 0 3px #00dfff55, 0 0 18px #00c8ff88; }
  .hero-copy { padding: 0; }
  .eyebrow { font-size: 8px; letter-spacing: .12em; margin-bottom: 7px; }
  h1 { font-size: clamp(34px, 8.8vw, 52px); }
  h1 span { white-space: normal; }
  .brush-line { width: 75%; height: 5px; margin: 8px 0 7px 18px; }
  .tagline { font-size: clamp(14px, 3.8vw, 20px); white-space: normal; margin-bottom: 4px; }
  .headphone-art { height: 160px; margin-top: 0; }
  .headphone-art img { width: min(88%, 330px); height: 150%; right: 6%; top: -25%; }
  .soundwave { height: 34px; bottom: 82px; gap: 3px; opacity: .55; }
  .soundwave i { width: 3px; }
  .player-shell {
    width: 100%;
    min-height: 72px;
    margin-top: 0;
    padding: 8px 10px;
    gap: 8px;
    border-width: 2px;
    border-radius: 46px;
  }
  .play-button { width: 48px; height: 48px; }
  .play-button svg { width: 23px; height: 23px; }
  .player-title { font-size: 14px; gap: 6px; }
  .player-status { font-size: 8px; margin-top: 4px; }
  .equalizer { display: none; }
  .live-pill { padding: 6px 8px; font-size: 8px; }
  .player-divider { height: 28px; }
  .volume-icon svg { width: 18px; height: 18px; }
  .volume-control { width: 48px; }
  .stream-note { font-size: 9px; }
  .genres-section { grid-template-columns: 1fr; padding: 16px 14px 18px; gap: 10px; }
  .genre-card { height: 88px; justify-content: flex-start; padding-left: 22px; border-radius: 17px; }
  .genre-symbol { width: 62px; text-align: center; font-size: 45px; }
  .genre-name { font-size: 24px; }
  .genre-underline { left: 30%; bottom: 11px; }
  .instagram-strip { min-height: 96px; padding: 12px 14px; }
  .social-links { gap: 18px; }
  .social-group { gap: 10px; }
  .social-brand { gap: 7px; font-size: 10px; }
  .social-brand strong { font-size: 13px; }
  .social-logo { width: 38px; height: 38px; }
  .social-pill { padding: 8px 11px; border-width: 2px; font-size: 11px; }
  .site-footer { min-height: 62px; padding: 12px 14px; gap: 12px; }
  .footer-left { gap: 10px; }
  .footer-left strong { font-size: 17px; }
  .footer-divider { height: 24px; }
  .footer-description { font-size: 10px; }
  .footer-right { gap: 9px; }
  .footer-tagline { font-size: 11px; }
  .footer-equalizer { gap: 2px; transform: scale(.82); transform-origin: right center; }
}
@media (max-width: 520px) {
  .social-links { flex-wrap: wrap; row-gap: 14px; }
  .social-group { flex: 0 1 auto; }
}

@media (max-width: 480px) {
  .site-footer {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
  }
  .footer-left { gap: 8px; }
  .footer-description { font-size: 9px; }
  .footer-tagline { font-size: 10px; }
  .footer-right { margin-left: auto; }
}

@media (max-width: 370px) {
  .hero-inner { grid-template-columns: 76px minmax(0, 1fr); }
  .hero-logo img { width: 72px; }
  h1 { font-size: 32px; }
  .tagline { font-size: 13px; }
  .live-pill { display: none; }
  .volume-control { width: 38px; }
  .social-links { gap: 12px; }
  .social-group { gap: 7px; }
  .social-brand { font-size: 9px; }
  .social-brand strong { font-size: 11px; }
  .social-logo { width: 32px; height: 32px; }
  .social-pill { padding: 7px 8px; font-size: 9px; }
}



/* ---------------- Ajustes móviles: tablet vertical y teléfonos ----------------
   Estas reglas solo afectan pantallas de hasta 768px.
   La composición de escritorio permanece sin cambios.
------------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Encabezado: marca a la izquierda y hamburguesa a la derecha */
  .site-header {
    min-height: 62px;
    height: 62px;
    justify-content: flex-end;
    padding: 0 16px;
  }
  .site-header::before {
    content: "CMF Radio";
    margin-right: auto;
    color: #063260;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: -.03em;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
    display: flex;
    flex: 0 0 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #0a477533;
    border-radius: 10px;
    background: #ffffff99;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 22px;
    height: 2.5px;
    border-radius: 4px;
    background: #063260;
  }
  .main-nav {
    display: none;
    width: 100%;
    min-height: auto;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    padding: 10px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #efffff;
    box-shadow: 0 12px 20px #001b3b35;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    min-height: 46px;
    justify-content: flex-start;
    border-bottom: 1px solid #d5f3f8;
    font-size: 14px;
  }
  .main-nav a.active::after { display: none; }

  /* Portada: logo, título/eslogan, reproductor y auriculares en ese orden */
  .hero {
    padding: 24px 16px 20px;
    text-align: center;
  }
  .hero-inner {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    text-align: center;
  }
  .hero-logo {
    order: 1;
    width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }
  .hero-logo img {
    width: clamp(190px, 48vw, 260px);
    max-width: 72vw;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }
  .hero-center {
    order: 2;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-copy {
    width: 100%;
    padding: 0;
    text-align: center;
  }
  h1 {
    font-size: clamp(36px, 8.5vw, 58px);
    line-height: 1;
  }
  h1 span { white-space: normal; }
  .brush-line {
    width: min(270px, 72%);
    height: 6px;
    margin: 10px auto 9px;
  }
  .tagline {
    margin: 0 0 14px;
    font-size: clamp(17px, 4.2vw, 23px);
    line-height: 1.25;
    white-space: normal;
  }

  /* Reproductor: estado y nombre arriba; vivo/volumen en una segunda fila */
  .player-shell {
    width: 100%;
    max-width: 580px;
    min-width: 0;
    min-height: 0;
    margin: 0 auto;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto minmax(48px, 68px);
    grid-template-areas:
      "play info info info"
      "play live mute slider";
    align-items: center;
    gap: 8px 10px;
    border-width: 2px;
    border-radius: 24px;
  }
  .play-button {
    grid-area: play;
    width: 46px;
    height: 46px;
  }
  .play-button svg { width: 22px; height: 22px; }
  .player-info {
    grid-area: info;
    min-width: 0;
    width: 100%;
    text-align: left;
  }
  .player-title {
    font-size: 16px;
    line-height: 1.2;
    gap: 7px;
  }
  .player-status {
    margin-top: 4px;
    gap: 6px;
    font-size: 10px;
    line-height: 1.25;
    white-space: normal;
  }
  .live-pill {
    grid-area: live;
    justify-self: start;
    padding: 6px 9px;
    font-size: 9px;
  }
  .player-divider { display: none; }
  .volume-icon {
    grid-area: mute;
    justify-self: end;
    display: flex;
    align-items: center;
  }
  .volume-icon svg { width: 19px; height: 19px; }
  .volume-control {
    grid-area: slider;
    width: 100%;
    min-width: 0;
    margin: 0;
  }
  .stream-note {
    width: 100%;
    margin-top: 8px;
    font-size: 10px;
    line-height: 1.35;
  }

  /* Auriculares: debajo del reproductor, sin desbordamiento lateral */
  .headphone-art {
    order: 3;
    width: 100%;
    max-width: 440px;
    height: clamp(150px, 42vw, 220px);
    margin: 0 auto;
    overflow: visible;
  }
  .headphone-art img {
    width: min(92%, 390px);
    height: 100%;
    position: relative;
    top: auto;
    right: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
  }
  .soundwave { display: none; }

  /* Redes: Instagram y Telegram en bloques verticales centrados */
  .instagram-strip {
    min-height: 0;
    padding: 20px 14px;
  }
  .social-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }
  .social-group {
    width: min(100%, 390px);
    justify-content: center;
    gap: 12px;
  }
  .social-brand { gap: 9px; font-size: 11px; }
  .social-brand strong { font-size: 14px; }
  .social-logo { width: 40px; height: 40px; }
  .social-pill {
    padding: 8px 13px;
    border-width: 2px;
    font-size: 12px;
  }

  /* Footer: ambas líneas centradas y con espacio suficiente */
  .site-footer {
    min-height: 0;
    padding: 17px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
  }
  .footer-left,
  .footer-right {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  .footer-left strong { font-size: 18px; }
  .footer-divider { height: 23px; }
  .footer-description { font-size: 11px; white-space: normal; }
  .footer-right { gap: 12px; }
  .footer-tagline { font-size: 12px; white-space: normal; }
  .footer-equalizer {
    transform: scale(.9);
    transform-origin: center;
  }
}

/* Teléfonos angostos: compactar sin ocultar el estado ni EN VIVO */
@media (max-width: 380px) {
  .hero { padding-right: 12px; padding-left: 12px; }
  .hero-inner { gap: 13px; }
  .hero-logo img { width: min(58vw, 210px); }
  h1 { font-size: clamp(33px, 9vw, 40px); }
  .tagline { font-size: 16px; }
  .player-shell {
    grid-template-columns: 42px minmax(0, 1fr) auto minmax(42px, 54px);
    gap: 7px;
    padding: 9px;
  }
  .play-button { width: 40px; height: 40px; }
  .player-title { font-size: 14px; }
  .player-status { font-size: 9px; }
  .live-pill { padding: 5px 7px; font-size: 8px; }
  .volume-icon svg { width: 17px; height: 17px; }
  .social-group { gap: 8px; }
  .social-brand { font-size: 10px; }
  .social-brand strong { font-size: 13px; }
  .social-logo { width: 36px; height: 36px; }
  .social-pill { padding: 7px 10px; font-size: 11px; }
  .footer-left { gap: 8px; }
  .footer-description { font-size: 10px; }
  .footer-tagline { font-size: 11px; }
}

/* Accesibilidad: respetar la preferencia del sistema por menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}


/* ==========================================================
   CMF Radio v7 — navegación glass real + recurso de auriculares
   El header se superpone al hero para que el blur tenga contenido
   visual detrás. Se conserva el resto de la composición.
   ========================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 76px;
  min-height: 76px;
  color: #f4fdff;
  background: rgba(3, 24, 58, 0.58);
  border-bottom: 1px solid rgba(0, 224, 246, 0.42);
  box-shadow: 0 8px 28px rgba(0, 10, 32, 0.22);
  -webkit-backdrop-filter: blur(20px) saturate(165%);
  backdrop-filter: blur(20px) saturate(165%);
}

.main-nav a {
  color: #f4fdff;
}

.main-nav a:hover,
.main-nav a.active {
  color: #12efff;
}

.main-nav a.active::after {
  background: linear-gradient(90deg, #00d9f2, #168bff);
  box-shadow: 0 0 12px rgba(0, 217, 242, 0.62);
}

/* Deja espacio equivalente al header original, ahora superpuesto al hero. */
.hero {
  min-height: 524px;
  padding-top: 104px;
}

/* Asegura que el PNG de auriculares se vea completo dentro de su columna. */
.headphone-art {
  min-width: 0;
  overflow: visible;
}
.headphone-art img {
  display: block;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

/* Navegación móvil: mismo cristal oscuro y header superpuesto. */
@media (max-width: 768px) {
  .site-header {
    position: absolute;
    height: 62px;
    min-height: 62px;
    background: rgba(3, 24, 58, 0.72);
    border-bottom-color: rgba(0, 224, 246, 0.38);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }

  .site-header::before {
    color: #f4fdff;
  }

  .menu-toggle {
    border-color: rgba(0, 217, 242, 0.58);
    background: rgba(4, 42, 82, 0.52);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .menu-toggle span {
    background: #12efff;
    box-shadow: 0 0 7px rgba(18, 239, 255, 0.38);
  }

  .main-nav {
    background: rgba(2, 20, 47, 0.88);
    border: 1px solid rgba(0, 217, 242, 0.30);
    border-top: 0;
    box-shadow: 0 14px 28px rgba(0, 8, 25, 0.38);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    backdrop-filter: blur(20px) saturate(165%);
  }

  .main-nav a {
    color: #f2fbff;
    border-bottom-color: rgba(0, 217, 242, 0.16);
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: #12efff;
  }

  /* Compensa la altura del header superpuesto: conserva el mismo inicio visual. */
  .hero {
    min-height: 0;
    padding-top: 86px;
  }

  .headphone-art {
    width: 100%;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  .headphone-art img {
    max-width: 100%;
  }
}


/* ==========================================================
   CMF Radio v8 — footer al borde inferior según la altura
   disponible de cada pantalla.
   El contenido conserva su altura natural: en pantallas bajas
   la página se desplaza; en pantallas altas el footer baja al
   borde inferior sin quedar flotando a mitad de la página.
   ========================================================== */
html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.site-footer {
  flex: 0 0 auto;
  margin-top: auto;
}


/* ==========================================================
   CMF Radio — sección Ahora Suena y programación musical
   Mantiene la identidad visual y el header/footer compartidos.
   ========================================================== */
.now-playing-section,

.schedule-section {
  margin-top: 54px;
  margin-bottom: 46px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(0, 220, 245, .24);
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(0, 224, 245, .10), transparent 36%),
    radial-gradient(ellipse at 100% 100%, rgba(224, 35, 190, .09), transparent 34%),
    linear-gradient(145deg, rgba(4, 27, 61, .98), rgba(5, 39, 78, .96));
  box-shadow: 0 18px 45px rgba(0, 10, 35, .22), inset 0 1px rgba(255,255,255,.045);
}

.schedule-section .section-heading {
  margin-bottom: 22px;
}

.schedule-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 18px;
  padding: 7px;
  border: 1px solid rgba(0, 220, 245, .16);
  border-radius: 15px;
  background: rgba(2, 17, 43, .62);
}

.schedule-tab {
  min-width: 0;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #b9d9f1;
  background: rgba(13, 48, 86, .58);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.schedule-tab:hover,
.schedule-tab:focus-visible {
  color: #fff;
  border-color: rgba(0, 225, 245, .55);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 220, 245, .12);
}

.schedule-tab.is-active {
  color: #031b3d;
  border-color: #13e6f4;
  background: linear-gradient(115deg, #15e8f4, #159bff);
  box-shadow: 0 5px 18px rgba(0, 210, 245, .22);
}

.schedule-day-panel {
  min-height: 270px;
  padding: clamp(15px, 2vw, 23px);
  border: 1px solid rgba(0, 220, 245, .22);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(3, 24, 56, .82), rgba(5, 33, 69, .78));
}

.schedule-day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0 0 13px;
  border-bottom: 1px solid rgba(0, 220, 245, .32);
}

.schedule-day-heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 900;
}

.schedule-day-heading h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: #13e6f4;
  box-shadow: 0 0 12px rgba(19, 230, 244, .8);
}

.schedule-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.schedule-program-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 220, 245, .23);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 57, 103, .92), rgba(5, 29, 65, .96));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.schedule-program-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, #10e9f5, #168cff);
  opacity: .95;
}

.schedule-program-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 245, .7);
  box-shadow: 0 9px 22px rgba(0, 12, 38, .28), 0 0 18px rgba(0, 220, 245, .08);
}

.schedule-program-card.schedule-mix::before {
  background: linear-gradient(180deg, #f13acb, #11e5f3);
}

.schedule-program-card.schedule-flow::before {
  background: linear-gradient(180deg, #c34cff, #168bff);
}

.schedule-program-time {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #13e7f4;
  font-size: .82rem;
  letter-spacing: .015em;
}

.schedule-program-time strong {
  font-weight: 900;
}

.schedule-time-index {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border: 1px solid rgba(0, 220, 245, .32);
  border-radius: 8px;
  color: #a9eefa;
  background: rgba(0, 220, 245, .08);
  font-size: .68rem;
  font-weight: 900;
}

.schedule-program-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.schedule-program-label {
  color: #8eb4d4;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.schedule-program-lists {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-list-chip {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid rgba(0, 220, 245, .3);
  border-radius: 7px;
  color: #f2fcff;
  background: rgba(0, 188, 235, .13);
  font-size: .77rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.schedule-mix .schedule-list-chip:last-child {
  border-color: rgba(241, 58, 203, .38);
  background: rgba(205, 47, 187, .13);
}

.schedule-flow .schedule-list-chip {
  border-color: rgba(195, 76, 255, .42);
  background: rgba(145, 64, 224, .16);
}

.schedule-program-pulse {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #13e7f4;
  box-shadow: 0 0 11px rgba(19, 231, 244, .85);
}

.schedule-mix .schedule-program-pulse {
  background: #f13acb;
  box-shadow: 0 0 11px rgba(241, 58, 203, .8);
}

.schedule-flow .schedule-program-pulse {
  background: #c34cff;
  box-shadow: 0 0 11px rgba(195, 76, 255, .8);
}

.schedule-disclaimer {
  margin: 13px 3px 0;
  color: #83a9c9;
  font-size: .74rem;
  text-align: right;
}

@media (max-width: 1100px) {
  .schedule-program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-tabs { gap: 6px; }
  .schedule-tab { padding-inline: 6px; font-size: .72rem; }
}

@media (max-width: 768px) {
  .now-playing-section,
  .schedule-section {
    width: min(100% - 28px, 600px);
    margin-top: 34px;
  }

  .now-playing-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 15px;
    min-height: 0;
    padding: 16px;
    border-radius: 20px;
  }

  .track-art-wrap { width: 88px; border-radius: 15px; }
  .track-live { margin-bottom: 7px; font-size: .65rem; }
  .track-details h3 { font-size: 1.05rem; }
  .track-details p { font-size: .88rem; }
  .track-equalizer { display: none; }

  .schedule-section {
    padding: 16px;
    border-radius: 18px;
  }

  .schedule-tabs {
    display: flex;
    overflow-x: auto;
    padding: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 220, 245, .55) rgba(255,255,255,.06);
  }

  .schedule-tab {
    flex: 0 0 auto;
    min-width: 88px;
    scroll-snap-align: start;
    font-size: .7rem;
  }

  .schedule-day-panel { padding: 13px; border-radius: 14px; }
  .schedule-program-grid { grid-template-columns: 1fr; gap: 8px; }
  .schedule-program-card { min-height: 98px; padding: 13px; }
  .schedule-disclaimer { text-align: left; }
}

@media (max-width: 390px) {
  .schedule-section { padding: 12px; }
  .schedule-tab { min-width: 82px; }
  .schedule-program-card { min-height: 92px; padding: 11px; }
  .schedule-program-time { font-size: .76rem; }
  .schedule-list-chip { font-size: .73rem; }
}

@media (prefers-reduced-motion: reduce) {
  .track-equalizer i {
    animation: none;
  }
}

/* ==========================================================
   Ajuste de presentación — tema actual y contenedores
   Recupera la composición horizontal de la tarjeta musical.
   ========================================================== */
.now-playing-section,
.schedule-section {
  width: min(calc(100% - 48px), var(--content));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin: 0 0 20px;
}

.section-heading .section-kicker {
  display: inline-block;
  margin-bottom: 9px;
  color: #8bd8ed;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: #f4fdff;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  font-weight: 900;
}

.section-heading p {
  margin: 0;
  color: #a9c5df;
  font-size: .9rem;
  line-height: 1.55;
}

.now-playing-card {
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  min-width: 0;
  min-height: 250px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid rgba(0, 220, 245, .2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(5, 38, 75, .9), rgba(10, 35, 77, .82));
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 12px 30px rgba(0, 10, 35, .16);
}

.track-art-wrap {
  position: relative;
  width: 100%;
  max-width: 230px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(0, 225, 245, .35);
  border-radius: 17px;
  background: linear-gradient(145deg, #0a4777, #061d42);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25), 0 0 20px rgba(0, 220, 245, .1);
}

.track-art-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-art-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(0, 225, 245, .08), transparent 48%, rgba(237, 45, 190, .09));
}

.track-details {
  min-width: 0;
}

.track-live {
  display: inline-flex;
  margin-bottom: 12px;
}

.track-details h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.track-details p {
  margin: 0;
  color: #a9c5df;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.track-equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 92px;
  height: 68px;
  padding: 0 8px;
}

.track-equalizer i {
  display: block;
  width: 5px;
  height: 22%;
  border-radius: 8px;
  background: linear-gradient(180deg, #19efff, #078de8);
  box-shadow: 0 0 10px rgba(0, 220, 245, .35);
  animation: cmf-track-wave .85s ease-in-out infinite alternate;
}

.track-equalizer i:nth-child(3n) { animation-delay: -.55s; height: 76%; }
.track-equalizer i:nth-child(3n + 1) { animation-delay: -.25s; height: 48%; }
.track-equalizer i:nth-child(4n) { animation-delay: -.7s; height: 92%; }

@keyframes cmf-track-wave {
  from { transform: scaleY(.42); }
  to { transform: scaleY(1); }
}

@media (max-width: 768px) {
  .now-playing-section,
  .schedule-section {
    width: min(calc(100% - 28px), 600px);
    margin-left: auto;
    margin-right: auto;
  }

  .now-playing-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 15px;
    min-height: 0;
    padding: 15px;
  }

  .track-art-wrap { width: 96px; max-width: 96px; border-radius: 13px; }
  .track-details h3 { font-size: 1rem; }
  .track-details p { font-size: .82rem; }
  .track-equalizer { display: none; }
}

@media (max-width: 390px) {
  .now-playing-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .track-art-wrap { width: 76px; max-width: 76px; }
  .track-live { font-size: .58rem; }
}

@media (prefers-reduced-motion: reduce) {
  .track-equalizer i { animation: none; }
}
