/* Paleta tomada del logo: azul pizarra, blanco y plateado del micrófono */
:root {
  --navy: #2f3b4b;
  --navy-dark: #263140;
  --navy-deep: #1f2834;
  --card: #36445a;
  --line: rgba(255, 255, 255, .12);
  --dots: rgba(255, 255, 255, .45);
  --white: #ffffff;
  --silver: #cfd4db;
  --muted: #b3bdca;
  --live: #e5484d;
  --wa: #25d366;
  --radius: 22px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .3);
  --font-display: "Passion One", "Arial Black", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Open Sans", system-ui, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.05; }
h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(2.3rem, 5vw, 3.4rem); }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* Borde punteado interior, como el del logo */
.dotted { position: relative; }
.dotted::after {
  content: ""; position: absolute; inset: 9px; pointer-events: none;
  border: 2px dotted var(--dots); border-radius: calc(var(--radius) - 8px);
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(38, 49, 64, .9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; text-transform: uppercase; letter-spacing: .5px; }
.nav__logo { width: 46px; height: 46px; border-radius: 10px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; transition: color .2s; }
.nav__links a:hover { color: var(--white); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: 64px 0 96px; background: var(--navy); }
.hero__glow {
  position: absolute; right: -10%; top: -20%; width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__text { min-width: 0; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.8rem, 7.5vw, 5.4rem); margin: 18px 0 16px; overflow-wrap: break-word;
}
/* Efecto metálico, como la rejilla del micrófono */
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, #ffffff 15%, #9aa3ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.hero__alt { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.hero__alt a { color: var(--white); font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 99px;
  background: var(--white); color: var(--navy);
  font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: 1px;
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .7); } 100% { box-shadow: 0 0 0 9px rgba(229, 72, 77, 0); } }

/* Logo grande con ondas "al aire" cuando suena */
.hero__art { display: grid; place-items: center; }
.onair { position: relative; width: min(440px, 82vw); aspect-ratio: 1; display: grid; place-items: center; }
.onair img { position: relative; width: 100%; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .35)); transition: transform .4s; }
.onair__ring {
  position: absolute; inset: 14%; border-radius: 50%;
  border: 2px dotted var(--dots); opacity: 0;
}
body.is-playing .onair img { animation: beat 1.8s ease-in-out infinite; }
body.is-playing .onair__ring { animation: wave 2.6s ease-out infinite; }
body.is-playing .onair__ring:nth-child(2) { animation-delay: 1.3s; }
@keyframes wave { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }

/* ===== Reproductor ===== */
.player {
  margin-top: 32px; display: flex; align-items: center; gap: 18px;
  padding: 18px 26px 18px 18px; max-width: 540px;
  background: var(--white); color: var(--navy);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.player.dotted::after { border-color: rgba(47, 59, 75, .35); }
.player__btn {
  position: relative; z-index: 1; flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--navy); color: var(--white);
  display: grid; place-items: center; transition: transform .15s, background .2s;
}
.player__btn:hover { transform: scale(1.06); background: var(--navy-deep); }
.player__btn svg { width: 30px; height: 30px; fill: currentColor; }
.player__btn--sm { width: 44px; height: 44px; background: var(--white); color: var(--navy); }
.player__btn--sm:hover { background: var(--silver); }
.player__btn--sm svg { width: 22px; height: 22px; }
.icon-pause, .player__spinner { display: none; }
.is-playing .icon-play, .is-loading .icon-play { display: none; }
.is-playing .icon-pause { display: block; }
.is-loading .player__spinner { display: block; width: 26px; height: 26px; border: 3px solid rgba(255, 255, 255, .3); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
.player__btn--sm .player__spinner { border-color: rgba(47, 59, 75, .25); border-top-color: currentColor; width: 20px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.player__info { flex: 1; min-width: 0; }
.player__label { display: block; font-size: .75rem; font-weight: 800; color: #6b7686; text-transform: uppercase; letter-spacing: 1px; }
.player__title { display: block; font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__vol { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: #6b7686; }
.player__vol svg { width: 20px; fill: currentColor; }
.player__vol input { width: 90px; accent-color: var(--navy); }

.eq { display: flex; gap: 3px; height: 14px; align-items: flex-end; margin-top: 6px; }
.eq i { width: 4px; height: 3px; background: var(--navy); border-radius: 2px; }
.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; }
.eq i:nth-child(4) { animation-delay: .1s; } .eq i:nth-child(5) { animation-delay: .3s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* ===== Secciones ===== */
.section { padding: 96px 0; background: var(--navy-dark); }
.section--alt { background: var(--navy); }
.section__head { margin-bottom: 40px; text-align: center; }
.section__head h2 { margin-top: 12px; }
.kicker {
  display: inline-block; padding: 4px 16px; border-radius: 99px;
  background: var(--white); color: var(--navy);
  font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: .75rem;
}

.schedule { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.show { padding: 30px 28px; background: var(--card); border-radius: var(--radius); transition: transform .2s; }
.show:hover { transform: translateY(-4px); }
.show__time { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--silver); letter-spacing: .5px; margin-bottom: 10px; }
.show h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.7rem; margin-bottom: 8px; }
.show p { color: var(--muted); font-size: .95rem; }
.show { transition: transform .2s, background .4s, color .4s; }
.show--live { background: var(--white); color: var(--navy); }
.show--live::before {
  content: "Al aire"; position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 99px;
  background: var(--live); color: var(--white); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  animation: pulse 1.6s infinite;
}
.show--live.dotted::after { border-color: rgba(47, 59, 75, .35); }
.show--live .show__time, .show--live p { color: #5a6676; }

.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about__img img { width: 100%; max-width: 420px; margin-inline: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .3)); }
.about h2 { margin: 12px 0 18px; }
.about p { color: var(--muted); margin-bottom: 14px; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.stats li { padding: 18px 16px; border-radius: 16px; background: var(--card); text-align: center; }
.stats li.dotted::after { inset: 6px; border-radius: 11px; }
.stats strong { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.stats span { font-size: .8rem; color: var(--muted); }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact__card { display: flex; align-items: center; gap: 16px; padding: 24px; text-decoration: none; background: var(--card); border-radius: var(--radius); transition: transform .2s, background .2s; }
.contact__card:hover { transform: translateY(-4px); background: #3d4c63; }
.contact__card svg { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 50%; background: var(--white); fill: var(--navy); }
.contact__card strong { display: block; font-size: 1.05rem; }
.contact__card span { color: var(--muted); font-size: .9rem; }
.contact__card--wa svg { background: var(--wa); fill: #fff; }

/* ===== Instalar app ===== */
[hidden] { display: none !important; }
.nav__install {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--white); color: var(--navy); font: 800 .8rem "Open Sans", sans-serif; text-transform: uppercase; letter-spacing: .8px;
}
.nav__install svg { width: 16px; fill: currentColor; }
.nav__links { align-items: center; }

.install-cta {
  margin-top: 16px; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 540px;
  padding: 12px 18px 12px 12px; cursor: pointer; text-align: left; color: var(--white);
  background: transparent; border: 2px dotted var(--dots); border-radius: var(--radius);
  font-family: inherit; transition: background .2s, border-color .2s;
}
.install-cta:hover { background: rgba(255, 255, 255, .06); border-color: var(--white); }
.install-cta img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.install-cta span { flex: 1; min-width: 0; }
.install-cta strong { display: block; font-size: .95rem; }
.install-cta small { display: block; color: var(--muted); font-size: .8rem; }
.install-cta svg { width: 24px; flex: none; fill: currentColor; }

.modal {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; padding: 16px;
  background: rgba(15, 20, 28, .7); backdrop-filter: blur(4px);
}
.modal__box {
  position: relative; width: min(420px, 100%); padding: 32px 26px 24px; border-radius: var(--radius);
  background: var(--white); color: var(--navy); text-align: center; animation: up .3s ease;
}
.modal__box.dotted::after { border-color: rgba(47, 59, 75, .3); }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal__icon { width: 64px; height: 64px; border-radius: 14px; margin: 0 auto 12px; }
.modal h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 1.7rem; margin-bottom: 16px; }
.modal__steps { text-align: left; padding-left: 22px; display: grid; gap: 10px; font-size: .95rem; }
.modal__steps svg { width: 20px; height: 20px; vertical-align: -4px; fill: #0a84ff; }
.modal__close { position: absolute; z-index: 1; top: 12px; right: 16px; border: 0; background: none; font-size: 1.8rem; line-height: 1; color: #6b7686; cursor: pointer; }
.modal__ok { position: relative; z-index: 1; margin-top: 20px; width: 100%; padding: 13px; border: 0; border-radius: 99px; background: var(--navy); color: var(--white); font: 800 .9rem "Open Sans", sans-serif; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
@media (min-width: 600px) { .modal { place-items: center; } }

/* ===== Footer ===== */
.footer { padding: 36px 0 110px; background: var(--navy-deep); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: .85rem; }

/* ===== Mini reproductor ===== */
.mini {
  position: fixed; left: 50%; bottom: 16px; z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px;
  background: var(--navy-deep); border: 2px solid var(--white); border-radius: 99px; box-shadow: var(--shadow);
  transform: translate(-50%, 160%); transition: transform .35s ease;
  max-width: calc(100% - 32px);
}
.mini.is-visible { transform: translate(-50%, 0); }
.mini__text { min-width: 0; }
.mini__text span { display: block; font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.mini__text strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { padding: 32px 0 72px; }
  .hero__inner, .about { grid-template-columns: 1fr; gap: 28px; }
  .hero__art { order: -1; }
  .onair { width: min(300px, 74vw); }
  .hero__text { text-align: center; }
  .hero__lead, .player { margin-inline: auto; }
  .player { text-align: left; }
  .about { text-align: center; }
  .about__img img { max-width: 280px; }

  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--navy-dark); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav__links a { padding: 14px 16px; border-top: 1px solid var(--line); width: 100%; }
  .nav__install { margin: 12px 16px 16px; align-self: flex-start; }
  .install-cta { margin-inline: auto; }
  .nav.is-open .nav__links { max-height: 380px; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 520px) {
  .player { gap: 14px; padding: 14px 18px 14px 14px; }
  .player__vol { display: none; }
  .stats { gap: 8px; }
  .stats li { padding: 14px 8px; }
  .section { padding: 72px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
