:root {
  --color-base-hue: 90;
  --hue: var(--color-base-hue);

  --bg-primary: oklch(12% 0.03 var(--hue));
  --bg-secondary: oklch(18% 0.04 var(--hue));
  --bg-glass: oklch(from var(--bg-primary) l c h / 0.65);
  --text-main: oklch(96% 0.02 var(--hue));
  --text-soft: oklch(72% 0.04 var(--hue));
  --accent: oklch(82% 0.18 var(--hue));
  --border-color: oklch(26% 0.03 var(--hue));

  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --max-page: 1480px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-speed: 0.3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
  background: var(--bg-primary);
  color: var(--text-main);
  position: relative;
  overflow-x: hidden;
}

.parallax-bg {
  position: fixed; inset: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed; background-repeat: no-repeat;
  z-index: -2;
}
.parallax-overlay { 
  position: fixed; inset: 0; 
  background: linear-gradient(180deg, 
    oklch(25% 0.03 var(--hue) / 0.85) 0%,    /* 75% de oscuridad (Arriba) */
    oklch(22.5% 0.02 var(--hue) / 0.92) 50%, /* 77.5% de oscuridad (Centro) */
    oklch(20% 0.02 var(--hue) / 0.96) 100%);   /* 80% de oscuridad (Abajo) */ 
  z-index: -1; 
}

h1, h2 { margin: 0; font-weight: 900; text-transform: lowercase; letter-spacing: -0.04em; }
h1 { font-size: clamp(48px, 10vw, 120px); line-height: 0.9; }
h2 { font-size: clamp(36px, 6vw, 72px); line-height: 0.95; }
.text-soft { color: var(--text-soft); }

.container { max-width: var(--max-page); margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px); position: relative; z-index: 1; }
.section { padding: clamp(60px, 8vw, 120px) 0; }

/* NAV */
.top-nav {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: var(--bg-glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 6px; border-radius: 999px;
  border: 1px solid oklch(from var(--text-main) l c h / 0.1);
  display: flex; gap: 4px;
  box-shadow: 0 10px 30px oklch(0 0 0 / 0.3);
}
.nav-item {
  color: var(--text-main); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  transition: all var(--transition-speed) var(--ease-out);
}
.nav-item:hover { background: oklch(from var(--text-main) l c h / 0.1); }
.nav-item.active { background: var(--accent); color: var(--bg-primary); }

/* HERO */
.hero {
  text-align: center; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
}
.slogan { font-size: clamp(16px, 2.5vw, 22px); font-weight: 600; letter-spacing: 0.02em; margin-top: 8px; }
.logo-wrapper { display: flex; justify-content: center; margin-bottom: 24px; }
.radio-logo {
  width: clamp(140px, 22vw, 220px); height: clamp(140px, 22vw, 220px);
  border-radius: 50%; object-fit: cover; border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px oklch(from var(--accent) l c h / 0.2), 0 20px 50px oklch(0 0 0 / 0.5);
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(from var(--accent) l c h / 0.15); color: var(--accent);
  padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.live-dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* PLAYER */
.player-container { width: 100%; max-width: 600px; margin: 40px auto 0 auto; }
.player-controls {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border-color);
  box-shadow: 0 30px 60px -20px oklch(0 0 0 / 0.5);
}
.play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--bg-primary);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-speed) var(--ease-out); flex-shrink: 0;
  box-shadow: 0 8px 20px oklch(from var(--accent) l c h / 0.3);
}
.play-btn:hover { transform: scale(1.05); box-shadow: 0 12px 25px oklch(from var(--accent) l c h / 0.4); }
.play-btn svg { width: 32px; height: 32px; }

.player-info { flex-grow: 1; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.player-status { font-size: 15px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em; }

.equalizer { display: flex; align-items: flex-end; gap: 4px; height: 20px; }
.equalizer .bar { width: 4px; background: var(--text-main); border-radius: 2px; height: 4px; transition: height 0.2s; opacity: 0.5; }
.equalizer.playing .bar { background: var(--accent); opacity: 1; animation: eq-play 1s infinite alternate ease-in-out; }
.equalizer.playing .bar:nth-child(1) { animation-delay: 0.1s; }
.equalizer.playing .bar:nth-child(2) { animation-delay: 0.4s; }
.equalizer.playing .bar:nth-child(3) { animation-delay: 0.2s; }
.equalizer.playing .bar:nth-child(4) { animation-delay: 0.5s; }
.equalizer.playing .bar:nth-child(5) { animation-delay: 0.3s; }
@keyframes eq-play { 0% { height: 4px; } 100% { height: 20px; } }

.volume-control { display: flex; align-items: center; gap: 12px; color: var(--text-soft); }
#volume-slider { -webkit-appearance: none; width: 80px; height: 4px; background: var(--border-color); border-radius: 2px; outline: none; }
#volume-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* GRILLA */
.programacion-section { text-align: center; }
.grilla-completa-container {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px; margin-top: 40px; text-align: left;
}
.dia-card {
  background: var(--bg-glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0; transform: translateY(20px);
  animation: cardFadeUp 0.6s var(--ease-out) forwards;
}
.dia-card.hoy {
  border-color: var(--accent);
  box-shadow: 0 0 25px -5px oklch(from var(--accent) l c h / 0.25);
}
.dia-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border-color); padding-bottom: 12px;
}
.dia-header h3 { font-size: 22px; font-weight: 800; color: var(--text-main); margin: 0; text-transform: capitalize; }
.today-tag { background: var(--accent); color: var(--bg-primary); font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 999px; }
.dia-programas { display: flex; flex-direction: column; gap: 16px; }
.programa-item { display: flex; align-items: flex-start; gap: 14px; }
.programa-icon {
  font-size: 20px; background: oklch(from var(--accent) l c h / 0.1);
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md); flex-shrink: 0;
  border: 1px solid oklch(from var(--accent) l c h / 0.15);
}
.programa-details { display: flex; flex-direction: column; gap: 2px; }
.programa-time { font-size: 13px; font-weight: 800; color: var(--accent); }
.programa-title { font-size: 16px; font-weight: 700; color: var(--text-main); }
.programa-desc { font-size: 13px; line-height: 1.4; }
.programa-empty { font-size: 13px; font-style: italic; color: var(--text-soft); }
@keyframes cardFadeUp { to { opacity: 1; transform: translateY(0); } }

/* REDES */
.redes-section, .contacto-section { text-align: center; }
.social-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; max-width: 900px; margin: 40px auto 0;
}
.social-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-glass); backdrop-filter: blur(12px);
  border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 20px 24px; text-decoration: none; color: var(--text-main); text-align: left;
  transition: border-color var(--transition-speed) var(--ease-out);
}
.social-card:hover { border-color: var(--accent); }
.social-icon { width: 32px; height: 32px; flex-shrink: 0; color: var(--accent); }

/* WHATSAPP */
.btn-whatsapp {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 32px; padding: 18px 36px;
  background: #25D366; color: #0a1a0f;
  font-weight: 800; font-size: 16px; text-decoration: none;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-speed) var(--ease-out);
}
.btn-whatsapp:hover { transform: scale(1.03); }
.btn-whatsapp .social-icon { width: 24px; height: 24px; color: #0a1a0f; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-color); padding: 40px 0;
  text-align: center; color: var(--text-soft); font-size: 14px;
  background: oklch(from var(--bg-primary) l c h / 0.8);
  backdrop-filter: blur(8px);
}

/* MOBILE */
@media (max-width: 600px) {
  .top-nav { top: 12px; padding: 4px; gap: 2px; }
  .nav-item { font-size: 12px; padding: 6px 12px; }
  .player-controls { flex-direction: column; text-align: center; }
  .player-info { align-items: center; }
  .grilla-completa-container { grid-template-columns: 1fr; }
}