:root {
  --bg: #05080f;
  --bg-2: #080d16;
  --card: #0d1420;
  --card-2: #111a29;
  --line: #1b2536;
  --blue: #0a84ff;
  --blue-2: #4cb8ff;
  --text: #f3f6fb;
  --muted: #9aa7ba;
  --red: #ff4d4d;
  --green: #29d17d;
  --radius: 14px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-bottom: 76px; /* espacio para el reproductor fijo */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-weight: 600; }
p { margin: 0 0 1em; }
.container { width: min(1104px, 92%); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }
.muted { color: var(--muted); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .85em 1.5em; border-radius: 10px; border: 1px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 0 26px rgba(10,132,255,.45); }
.btn-primary:hover { box-shadow: 0 0 34px rgba(10,132,255,.65); }
.btn-ghost { background: var(--card-2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: #2a3a55; }
.btn-green { background: rgba(41,209,125,.08); border-color: rgba(41,209,125,.5); color: var(--green); }
.btn-green:hover { background: rgba(41,209,125,.16); }
.btn-small { padding: .6em 1.2em; font-size: .95rem; }

/* Cabecera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5,8,15,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 1rem; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 1.7rem; }
.main-nav a:not(.btn) { color: #d6deea; text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .15s; }
.main-nav a:not(.btn):hover { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: #fff; border-radius: 2px; }

/* Portada */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  background:
    radial-gradient(900px 500px at 88% 0%, rgba(10,132,255,.16), transparent 70%),
    radial-gradient(700px 400px at 0% 100%, rgba(10,132,255,.06), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: .55em; padding: .4em 1em; border-radius: 999px;
  border: 1px solid rgba(255,77,77,.4); background: rgba(255,77,77,.08); color: #ff5a5a;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.6rem;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); display: inline-block; animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,77,77,.6)} 70%{box-shadow:0 0 0 8px rgba(255,77,77,0)} 100%{box-shadow:0 0 0 0 rgba(255,77,77,0)} }
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.7rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; margin-bottom: .45em; }
.grad { background: linear-gradient(180deg, #5cc5ff, #1a8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 33em; line-height: 1.75; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.4rem; }
.hint { color: var(--blue-2); font-weight: 600; font-size: .95rem; margin-bottom: 2rem; }
.stats { display: flex; gap: 1rem; margin: 0; flex-wrap: wrap; }
.stats div { background: rgba(13,20,32,.7); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.4rem; text-align: center; min-width: 110px; }
.stats dt { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: #1f93ff; line-height: 1.1; }
.stats dd { margin: .3rem 0 0; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Disco de la portada */
.dial { position: relative; width: min(450px, 100%); aspect-ratio: 1; margin-inline: auto; }
.dial-ring { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 50%; }
.dial-core {
  position: absolute; inset: 13%; border-radius: 50%; background: var(--bg-2);
  border: 2px solid rgba(10,132,255,.55);
  box-shadow: 0 0 60px rgba(10,132,255,.45), inset 0 0 40px rgba(10,132,255,.25);
}
.dial-logo { position: absolute; inset: 26%; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; animation: vinyl 6s linear infinite; will-change: transform; }
@keyframes vinyl { to { transform: rotate(360deg); } }
.dial-logo img { width: 90%; max-width: none; transform: rotate(85deg); }
.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .5em; padding: .5em .95em;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; font-weight: 600; color: var(--text);
}
.chip svg { color: var(--blue-2); }
.chip-top { left: 0; top: 10%; }
.chip-bottom { right: 0; bottom: 10%; }

/* Secciones */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--blue-2); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; margin-bottom: .7rem; }

/* Programación */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter { border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: .55em 1.15em; border-radius: 10px; font: 600 .92rem var(--font-body); cursor: pointer; transition: all .15s; }
.filter:hover { color: #fff; border-color: #2a3a55; }
.filter.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 18px rgba(10,132,255,.4); }
.programs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.program { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.program:hover { border-color: rgba(10,132,255,.5); transform: translateY(-3px); }
.program[hidden] { display: none; }
.tag { align-self: flex-start; background: rgba(10,132,255,.14); color: var(--blue-2); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .3em .8em; border-radius: 999px; margin-bottom: .9rem; }
.program h3 { font-size: 1.2rem; margin-bottom: .2em; }
.host { color: var(--blue-2); font-weight: 600; font-size: .9rem; }
.program > p:not(.host):not(.time) { flex: 1; color: var(--muted); font-size: .95rem; }
.time { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: .7rem; }
.days { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.days li { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: .15em .6em; font-size: .75rem; color: var(--muted); font-weight: 500; }

/* Historia */
.history { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.history-text p { color: var(--muted); }
.location { margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-left: 3px solid var(--blue); background: var(--card); border-radius: 0 12px 12px 0; display: flex; flex-direction: column; }
.location span { color: var(--muted); font-size: .9rem; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.6rem - 7px); top: .4rem; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 14px rgba(10,132,255,.8); }
.year { color: var(--blue-2); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.timeline h3 { margin: .1em 0 .3em; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--muted); }

/* Patrocinadores */
.sponsors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.sponsor { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.sponsor-logo { height: 120px; background: #fff; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 1rem; margin-bottom: 1.2rem; }
.sponsor-logo img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.sponsor p { color: var(--muted); }
.sponsor a { font-weight: 600; color: var(--blue-2); text-decoration: none; }
.sponsor a:hover { text-decoration: underline; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info > p { color: var(--muted); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0; }
.address { margin-top: 1rem; color: var(--muted); }
.address strong { color: var(--text); }
.contact-form { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; }
.contact-form label { display: block; font-weight: 600; margin-bottom: 1rem; font-size: .9rem; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-top: .4rem; padding: .8em .95em; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(10,132,255,.2); }
.form-status { margin: 1rem 0 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.error { color: #ff6b6b; }

/* Pie */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 2.2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; }
.footer-inner .visits { margin-left: auto; }
@media (max-width: 720px) { .footer-inner .visits { margin: .4rem auto 0; } .cookie-banner { bottom: 80px; } }
.footer-inner img { height: 40px; width: auto; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .9rem; }
.visits { display: inline-flex; align-items: center; gap: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .8rem; margin: 0; }
.visits-label { display: inline-flex; align-items: center; gap: .45em; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.visits-label svg { color: var(--blue-2); }
.visits-digits { display: inline-flex; gap: 3px; }
.visits .digit { display: inline-grid; place-items: center; width: 20px; height: 28px; border-radius: 6px; background: linear-gradient(180deg, #16233a, #0d1626); border: 1px solid #22304a; color: #fff; font: 700 .95rem var(--font-head); font-variant-numeric: tabular-nums; box-shadow: inset 0 -6px 10px rgba(10,132,255,.12); }
.visits[hidden] { display: none; }

/* Aviso de cookies */
.cookie-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 70; width: min(720px, calc(100% - 24px)); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; background: rgba(13,20,32,.97); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1.1rem; box-shadow: 0 12px 40px rgba(0,0,0,.55); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .88rem; color: var(--text); }
.cookie-actions { display: flex; gap: .6rem; }

/* Página de política de cookies */
.legal { max-width: 820px; padding: 3rem 0 4rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: #c3cddb; }
.legal ul { padding-left: 1.2rem; }
.legal a { color: var(--blue-2); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.legal th { background: var(--card); }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--blue-2); text-decoration: none; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Reproductor fijo */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(5,8,15,.96); backdrop-filter: blur(10px); border-top: 2px solid var(--blue); }
.player-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; min-height: 72px; }
.player-info { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.player-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 10px rgba(255,77,77,.7); }
.player-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.player-live { color: var(--red); font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.player-title { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title strong { font-weight: 700; }
.player-title .sep { margin: 0 .4em; color: var(--muted); }
.player-title #player-msg { color: var(--text); }
.player-controls { display: flex; align-items: center; gap: 1.1rem; }
.play-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 0 22px rgba(10,132,255,.6); transition: transform .15s; }
.play-btn:hover { transform: scale(1.06); }
.play-btn .icon-pause { display: none; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }
.volume { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.volume input { -webkit-appearance: none; appearance: none; width: 98px; height: 3px; border-radius: 3px; background: #26324a; outline: none; cursor: pointer; }
.volume input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px rgba(10,132,255,.8); }
.volume input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--blue); }
.player-voice {
  justify-self: end; display: inline-flex; align-items: center; gap: .55em; padding: .55em 1.05em; border-radius: 8px;
  border: 1px solid rgba(41,209,125,.5); background: rgba(41,209,125,.07); color: var(--green);
  font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.player-voice:hover { background: rgba(41,209,125,.16); }

/* Adaptación a móvil */
@media (max-width: 900px) {
  .hero-inner, .history, .contact { grid-template-columns: 1fr; }
  .dial { width: min(360px, 100%); margin-top: 1rem; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
    padding: 1.2rem 4%; gap: 1rem;
  }
  .main-nav.open { display: flex; }
}
@media (max-width: 720px) {
  .player-inner { grid-template-columns: 1fr auto; }
  .player-voice { display: none; }
  .volume { display: none; }
}
@media (max-width: 480px) {
  .stats div { min-width: 0; flex: 1; padding: .8rem .6rem; }
}

/* Contador de visitas (imagen externa) */
.visit-counter { margin-top: 1.4rem; width: 100%; max-width: 220px; }
.visit-counter img { display: block; }

/* Foto del estudio junto a la programación */
.prog-intro { display: grid; grid-template-columns: 1fr minmax(280px, 400px); gap: 2.5rem; align-items: center; margin-bottom: 2rem; }
.prog-intro .section-head { margin-bottom: 0; }
.studio-photo { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(10,132,255,.45); box-shadow: 0 0 40px rgba(10,132,255,.22), 0 18px 40px rgba(0,0,0,.45); }
.studio-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(5,8,15,.45)); pointer-events: none; }
.carousel { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--bg-2); }
.carousel .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.carousel .slide.active { opacity: 1; }
@media (max-width: 860px) {
  .prog-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio-photo { max-width: 520px; }
}

/* Mapa de Google bajo el contador, alineado con el formulario */
.contact { align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.map-box { flex: 1; min-height: 240px; margin-top: 1.4rem; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: 0 0 30px rgba(10,132,255,.12); }
.map-box iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }
@media (max-width: 900px) { .map-box { flex: none; height: 280px; } }

/* Widget del tiempo */
.weather-strip { padding: 2.5rem 0; background: var(--bg); border-top: 1px solid var(--line); }
.weather-row { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: center; }
.weather-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.weather-head p { color: var(--muted); margin: 0; max-width: 34em; }
.weather-widget { width: 100%; }
@media (max-width: 760px) { .weather-row { grid-template-columns: 1fr; gap: 1.5rem; } }

.visit-counter-label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
