*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-main:    "neue-haas-grotesk-text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "neue-haas-grotesk-display", "neue-haas-grotesk-text", "Helvetica Neue", Arial, sans-serif;
  --black:      #080808;
  --black-soft: #0f0f0f;
  --surface:    #141414;
  --surface-2:  #1c1c1c;
  --border:     rgba(255,255,255,0.08);
  --border-mid: rgba(255,255,255,0.14);
  --white:      #ffffff;
  --muted:      rgba(255,255,255,0.55);
  --muted2:     rgba(255,255,255,0.28);
  --accent:     #6a20e6;
  --accent-dim: rgba(106,32,230,0.10);
  --accent-hover: #8b45ff;
  --nav-h: 72px;
}

/* Estados: cada uno tiene su propio accent */
.state-comfort  { --accent: #888880; --accent-dim: rgba(136,136,128,0.09); }
.state-rythm    { --accent: #c87941; --accent-dim: rgba(200,121,65,0.09); }
.state-archives { --accent: #6a20e6; --accent-dim: rgba(106,32,230,0.09); }
.state-supreme  { --accent: #d4ff00; --accent-dim: rgba(212,255,0,0.07); }

html, body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
body { padding-top: var(--nav-h); }

.accent-wash {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-dim, transparent) 0%, transparent 70%);
  transition: background 1.1s ease;
}

/* ═══ NAVBAR ═══ */
.radio-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 900;
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 6%;
  transition: background 0.3s, border-color 0.3s;
}
.radio-navbar.scrolled { background: rgba(8,8,8,0.97); border-bottom-color: var(--border-mid); }
.nav-logo img { width: 68px; display: block; transition: opacity 0.2s; }
.nav-logo img:hover { opacity: 0.7; }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: 0.3s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.page { position: relative; z-index: 1; }

/* ═══ HERO ═══ */
.radio-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 80px 6% 90px;
  border-bottom: 1px solid var(--border);
}
.radio-eyebrow {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.55s ease;
}
.radio-eyebrow::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--accent);
  transition: background 0.55s ease;
}
.radio-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(52px, 10vw, 120px);
  line-height: 0.88; letter-spacing: -0.035em;
  margin-bottom: 32px; color: var(--white);
}
.radio-title span { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.22); }
.radio-tagline {
  font-size: 15px; font-weight: 400; color: var(--muted);
  max-width: 440px; line-height: 1.75; margin-bottom: 60px;
}
.btn-activate {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; border: 1px solid var(--accent);
  color: var(--accent); padding: 13px 28px;
  font-family: var(--font-main); font-size: 11px; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.55s;
}
.btn-activate:hover { background: var(--accent); color: var(--black); }
.btn-activate.active { background: var(--accent); color: var(--black); pointer-events: none; }
.btn-activate .play-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.btn-activate.active .play-dot { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ═══ STATES ═══ */
.states-section { padding: 100px 6%; border-bottom: 1px solid var(--border); }
.states-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 48px;
  display: flex; align-items: center; gap: 10px;
}
.states-label::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--muted2); }
.states-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.state-btn {
  background: var(--black); border: none; padding: 32px 28px;
  text-align: left; cursor: pointer; transition: background 0.3s;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--font-main); position: relative;
}
.state-btn::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: transparent; transition: background 0.4s;
}
.state-btn:hover { background: var(--surface); }
.state-btn.active { background: var(--surface); }
.state-btn.active::after { background: var(--accent); }
.state-number { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.state-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--white); transition: color 0.3s; }
.state-btn.active .state-name { color: var(--accent); }
.state-concept { font-size: 12px; color: var(--muted); line-height: 1.6; }
.state-tag { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted2); margin-top: 4px; }

.state-info-bar {
  padding: 20px 6%; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px; min-height: 60px;
}
.state-info-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  transition: background 0.55s ease;
}
.state-info-text { font-size: 12px; color: var(--muted); letter-spacing: 0.03em; }
.state-info-name { color: var(--white); font-weight: 500; }


/* ═══ PLAYER SOUNDCLOUD PRINCIPAL ═══ */
.radio-player-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 6% 30px;
}
.radio-player-heading { margin-bottom: 28px; }
.radio-player-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.55s ease;
}
.radio-player-label::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--accent);
  transition: background 0.55s ease;
}
.radio-player-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 0.92; letter-spacing: -0.03em;
  color: var(--white); margin-bottom: 14px;
}
.radio-player-sub {
  font-size: 13px; color: var(--muted);
  line-height: 1.75; max-width: 520px;
}
.radio-player-frame {
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.55s ease;
}
.radio-player-frame:hover { border-color: var(--border-mid); }
.radio-player-frame iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}


/* ═══ NOW PLAYING ═══ */
.now-playing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 6% 20px;
}
.now-playing-heading { margin-bottom: 18px; }
.now-playing-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
  transition: color 0.55s ease;
}
.now-playing-label::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--accent);
  transition: background 0.55s ease;
}
.now-playing-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 24px);
  letter-spacing: -0.02em;
  color: var(--muted);
}
.now-playing-title span {
  color: var(--accent);
  transition: color 0.55s ease;
}

.now-playing-card {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.55s ease;
}
.now-playing-card.is-playing { border-color: var(--accent); }

.np-artwork {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  background: var(--surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.np-artwork img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-artwork-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2);
}

.np-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.np-track {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--white);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-artist {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.np-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  margin-top: 8px;
}
.np-bars span {
  display: block;
  width: 2.5px;
  height: 3px;
  background: var(--accent);
  border-radius: 1px;
  transition: background 0.55s ease;
}
.now-playing-card.is-playing .np-bars span:nth-child(1) { animation: barPulse 0.9s ease-in-out 0s infinite alternate; }
.now-playing-card.is-playing .np-bars span:nth-child(2) { animation: barPulse 0.9s ease-in-out 0.15s infinite alternate; }
.now-playing-card.is-playing .np-bars span:nth-child(3) { animation: barPulse 0.9s ease-in-out 0.3s infinite alternate; }
.now-playing-card.is-playing .np-bars span:nth-child(4) { animation: barPulse 0.9s ease-in-out 0.45s infinite alternate; }
@keyframes barPulse { from { height: 3px; } to { height: 14px; } }


/* ═══ ALREADY PLAYED ═══ */
.already-played-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 6% 100px;
}
.already-played-heading { margin-bottom: 22px; }
.already-played-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.already-played-label::before {
  content: ''; display: inline-block;
  width: 20px; height: 1px; background: var(--muted2);
}
.already-played-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 8px;
}
.already-played-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.already-played-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 16px;
}

.ap-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--black);
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-main);
  color: var(--white);
  transition: background 0.25s;
  position: relative;
  min-height: 72px;
}
.ap-item:hover { background: var(--surface); }

.ap-thumb {
  width: 44px; height: 44px;
  background: var(--surface-2);
  flex-shrink: 0;
  overflow: hidden;
}
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ap-text { flex: 1; min-width: 0; }
.ap-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.25s;
}
.ap-item:hover .ap-title { color: var(--accent); }
.ap-artist {
  font-size: 11px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.ap-action {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted2);
  flex-shrink: 0;
  transition: color 0.25s;
}
.ap-item:hover .ap-action { color: var(--accent); }

.already-played-empty {
  padding: 40px 20px;
  border: 1px dashed var(--border);
  text-align: center;
  margin-top: 16px;
}
.already-played-empty p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
}


/* ═══ ONBOARDING ═══ */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(14px);
  display: none; align-items: center; justify-content: center;
}
.onboarding-overlay.visible { display: flex; }
.onboarding-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  padding: 40px 48px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.onboarding-eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.onboarding-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--white);
  margin-bottom: 12px;
}
.onboarding-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.btn-onboarding-close {
  background: var(--accent);
  border: none;
  color: var(--black);
  padding: 12px 32px;
  width: 100%;
  font-family: var(--font-main);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-onboarding-close:hover { background: var(--accent-hover); }


/* ═══ FOOTER — 3 columnas centrado, sin flechas ═══ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 6%;
}
.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer-left   { display: flex; align-items: center; justify-content: flex-start; }
.footer-center { display: flex; align-items: center; justify-content: center; }
.footer-right  { display: flex; align-items: center; justify-content: flex-end; }

.footer-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.social-link {
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.social-link:hover { color: var(--accent); }

.footer-copy {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}


/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .states-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); right: -100%;
    width: 72%; height: calc(100vh - var(--nav-h));
    background: rgba(8,8,8,0.97); backdrop-filter: blur(14px);
    flex-direction: column; justify-content: center;
    align-items: flex-start; padding: 0 10%; gap: 28px;
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.25,0.46,0.45,0.94); z-index: 899;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 16px; }

  .radio-player-frame iframe { height: 420px; }

  /* Footer mobile: stack centrado */
  .site-footer { padding: 28px 0 32px; }
  .footer-row {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: center;
  }
  .footer-left,
  .footer-center,
  .footer-right {
    justify-content: center;
    width: 100%;
  }
  .footer-center { order: 1; }
  .footer-right  { order: 2; }
  .footer-left   { order: 3; padding-top: 14px; border-top: 1px solid var(--border); justify-content: center; }
  .footer-nav    { gap: 16px 22px; justify-content: center; }
  .footer-nav a  { font-size: 13px; }
  .footer-socials { gap: 20px; justify-content: center; }
  .social-link    { font-size: 13px; }
  .footer-copy    { font-size: 10px; }
}

@media (max-width: 600px) {
  .radio-hero { padding: 60px 5% 70px; }
  .states-section { padding: 60px 5%; }
  .radio-player-section { padding: 40px 5% 20px; }
  .now-playing-section  { padding: 16px 5%; }
  .already-played-section { padding: 16px 5% 80px; }
  .radio-player-frame iframe { height: 380px; }
  .states-grid { grid-template-columns: 1fr 1fr; }
  .state-btn { padding: 20px 16px; }
  .state-name { font-size: 17px; }

  .now-playing-card { padding: 14px; gap: 14px; }
  .np-artwork { width: 64px; height: 64px; }
  .np-track   { font-size: 15px; }

  .already-played-list { grid-template-columns: 1fr; }
}
