/* =========================================================
   OndaHit — sistema de diseño
   Rojo/negro, inspirado en el waveform del logo.
   Sin build step: se sube tal cual a cPanel.
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --surface: #161617;
  --surface-2: #1f1f21;
  --border: #2a2a2c;
  --red: #e4141e;
  --red-bright: #ff2a35;
  --red-dim: #7a0e14;
  --text: #f5f5f5;
  --text-muted: #a3a3a6;
  --player-h: 84px;
  --font-display: 'Anton', 'Archivo Black', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  padding-bottom: calc(var(--player-h) + 16px);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}
.brand-onda { color: var(--red); }
.brand-hit { color: var(--text); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: 6px;
  display: none;
}
@media (min-width: 640px) { .brand-tag { display: inline; } }

.nav-links {
  display: none;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a:hover { color: var(--text); }

.nav-live-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.nav-live-btn:hover { background: var(--red-bright); }
.nav-live-btn:active { transform: scale(0.97); }
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 40px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}
.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--red);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 68px);
  line-height: 0.98;
  margin: 0 0 18px;
  letter-spacing: 0.5px;
}
.hero h1 span { color: var(--red); }
.hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--red-bright); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-bright); }

/* Waveform del hero (elemento de firma) */
.hero-wave {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.wave-bars {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 160px;
}
.wave-bars span {
  width: 8px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red-bright), var(--red-dim));
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

/* ---------- Section headers ---------- */
.section { padding: 48px 0; }
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.3px;
}
.section-title .accent { color: var(--red); }
.section-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.section-link:hover { color: var(--red-bright); }

/* ---------- Ranking ---------- */
.ranking-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.ranking-row {
  display: grid;
  grid-template-columns: 36px 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  border-radius: 8px;
  transition: background 0.15s ease;
}
.ranking-row:hover { background: var(--surface); }
.ranking-pos {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-muted);
}
.ranking-row:nth-child(-n+3) .ranking-pos { color: var(--red); }
.ranking-cover { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: var(--surface-2); }
.ranking-info .title { font-weight: 700; font-size: 15px; }
.ranking-info .artist { color: var(--text-muted); font-size: 13px; }
.ranking-trend { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }

/* ---------- Canción del día ---------- */
.song-of-day {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
}
.song-of-day img {
  width: 96px; height: 96px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  background: var(--surface-2);
}
.song-of-day .eyebrow {
  font-family: var(--font-mono); font-size: 11px; color: var(--red);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px;
}
.song-of-day h3 { margin: 0 0 4px; font-size: 20px; }
.song-of-day .artist { color: var(--text-muted); font-size: 14px; margin-bottom: 8px; }
.song-of-day .note { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0; }

/* ---------- Noticias ---------- */
.news-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .news-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .news-grid { grid-template-columns: 1fr 1fr 1fr; } }

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.news-card:hover { border-color: var(--red); transform: translateY(-2px); }
.news-card img { width: 100%; height: 170px; object-fit: cover; background: var(--surface-2); }
.news-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-cat {
  font-family: var(--font-mono); font-size: 10px; color: var(--red);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.news-card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.news-card p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.5; flex: 1; }

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 28px;
}
@media (min-width: 800px) { .featured-card { grid-template-columns: 1.1fr 1fr; } }
.featured-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.featured-body { padding: 26px 26px 26px 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
@media (max-width: 799px) { .featured-body { padding: 0 20px 20px; } }
.featured-body h2 { font-family: var(--font-display); font-size: 28px; margin: 0; line-height: 1.05; }
.featured-body p { color: var(--text-muted); font-size: 15px; margin: 0; }

/* ---------- Banners ---------- */
.banner-slot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.banner-slot img { width: 100%; display: block; }
.banner-hero { margin: 28px 0; }
.banner-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 100px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.social-links { display: flex; gap: 14px; }
.social-links a { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.social-links a:hover { color: var(--red-bright); }

/* =========================================================
   Reproductor flotante (persistente, estilo Spotify)
   ========================================================= */
.player-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--player-h);
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 50;
  display: flex;
  align-items: center;
}
.player-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.player-play-btn {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--red);
  border: none;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.player-play-btn:hover { background: var(--red-bright); }
.player-play-btn:active { transform: scale(0.94); }
.player-play-btn svg { width: 20px; height: 20px; }

.player-meta { min-width: 0; flex: 1; display: flex; align-items: center; gap: 12px; }
.player-eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; flex-shrink: 0; }
.player-eq span {
  width: 3px; background: var(--red); border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
  opacity: 0.4;
}
.player-bar.is-playing .player-eq span { opacity: 1; }
.player-text { min-width: 0; }
.player-status {
  font-family: var(--font-mono); font-size: 10px; color: var(--red);
  text-transform: uppercase; letter-spacing: 1.5px; display: flex; align-items: center; gap: 6px;
}
.player-now-playing {
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-station { color: var(--text-muted); font-size: 12px; display: none; }
@media (min-width: 640px) { .player-station { display: block; } }

.player-volume { display: none; align-items: center; gap: 8px; }
@media (min-width: 560px) { .player-volume { display: flex; } }
.player-volume input[type="range"] {
  width: 90px; accent-color: var(--red);
}

/* Utilities */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .wave-bars span, .player-eq span, .pulse-dot { animation: none; }
}
