/* ══════════════════════════════════════════
   RADIO FOLCLOR ONLINE — design tokens
   bg:     #241009 (adobe oscuro)
   bg-2:   #170a05 (sombra de monte)
   ember:  #e35d1a (brasa / acento primario)
   gold:   #f2ab3d (sol / acento secundario)
   cream:  #f7e9d1 (texto claro)
   wine:   #6b2318 (poncho / superficies)
   ══════════════════════════════════════════ */

:root {
  --bg: #241009;
  --bg-2: #170a05;
  --ember: #e35d1a;
  --gold: #f2ab3d;
  --cream: #f7e9d1;
  --wine: #6b2318;

  --display: 'Alfa Slab One', serif;
  --body: 'Lora', serif;
  --ui: 'Nunito Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--body);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ── grano sutil sobre toda la pagina ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ══ NAV ══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px clamp(20px, 5vw, 56px);
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease;
}
.nav.scrolled {
  background: rgba(23, 10, 5, 0.88);
  backdrop-filter: blur(10px);
  padding: 12px clamp(20px, 5vw, 56px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 44px; width: auto; }
.nav-wsp {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
  background: rgba(247, 233, 209, 0.1);
  border: 1px solid rgba(247, 233, 209, 0.25);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.nav-wsp:hover { background: #2fbf60; border-color: #2fbf60; transform: translateY(-1px); }
.ic-wsp { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }

/* ══ HERO ══ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/fondo.jpeg");
  background-size: cover;
  background-position: center 20%;
  filter: saturate(0.85);
  transform: scale(1.06);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 65% at 50% 38%, rgba(36, 16, 9, 0.55), rgba(36,16,9,0.88) 70%),
    linear-gradient(180deg, rgba(23,10,5,0.75) 0%, rgba(23,10,5,0.55) 30%, rgba(23,10,5,0.92) 88%, var(--bg-2) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-logo {
  width: min(360px, 70vw);
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.5));
  margin-bottom: 6px;
}
.hero-eyebrow {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  color: var(--cream);
  text-shadow: 0 6px 24px rgba(0,0,0,0.45);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.6;
  color: rgba(247,233,209,0.85);
  max-width: 480px;
  margin-bottom: 48px;
}

/* ── player / sunburst ── */
.player {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}
.sunburst {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.sunburst-rays {
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(242,171,61,0.55) 0deg 4deg,
    transparent 4deg 18deg
  );
  border-radius: 50%;
  animation: spin 26s linear infinite;
  mask-image: radial-gradient(circle, black 42%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle, black 42%, transparent 72%);
}
.sunburst-rays--slow {
  animation-duration: 40s;
  animation-direction: reverse;
  opacity: 0.6;
  background: repeating-conic-gradient(
    from 8deg,
    rgba(227,93,26,0.45) 0deg 2deg,
    transparent 2deg 22deg
  );
}
@keyframes spin { to { transform: rotate(360deg); } }

.play-btn {
  position: relative;
  z-index: 2;
  width: 108px; height: 108px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #ff8a3d, var(--ember) 60%, #b8430e 100%);
  box-shadow: 0 14px 34px rgba(227,93,26,0.45), inset 0 2px 6px rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.play-btn:hover { transform: scale(1.05); box-shadow: 0 18px 42px rgba(227,93,26,0.55), inset 0 2px 6px rgba(255,255,255,0.35); }
.play-btn:active { transform: scale(0.97); }

.ic-play { width: 34px; height: 34px; fill: var(--cream); margin-left: 3px; }
.play-eq { display: none; align-items: flex-end; gap: 4px; height: 30px; }
.play-eq i {
  width: 4px;
  background: var(--cream);
  border-radius: 2px;
  animation: eq 0.9s ease-in-out infinite;
}
.play-eq i:nth-child(1) { height: 30%; animation-delay: -0.6s; }
.play-eq i:nth-child(2) { height: 65%; animation-delay: -0.3s; }
.play-eq i:nth-child(3) { height: 100%; animation-delay: -0.9s; }
.play-eq i:nth-child(4) { height: 50%; animation-delay: -0.15s; }
.play-eq i:nth-child(5) { height: 80%; animation-delay: -0.45s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.play-btn[aria-pressed="true"] .play-icon { display: none; }
.play-btn[aria-pressed="true"] .play-eq { display: flex; }

.player-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--ui);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 0 0 rgba(255,77,77,0.6);
  animation: pulse-dot 1.8s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255,77,77,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255,77,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,77,0); }
}

/* ── reproductor embebido ── */
.player-embed {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(247,233,209,0.18);
  background: rgba(23,10,5,0.6);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.player-embed iframe { width: 100%; height: 150px; display: block; border: none; }

.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(247,233,209,0.35);
  display: flex; align-items: center; justify-content: center;
  animation: bob 2.2s ease-in-out infinite;
  z-index: 2;
}
.scroll-cue svg { width: 16px; height: 16px; fill: var(--cream); }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }

/* ══ SECCIONES COMPARTIDAS ══ */
.section-eyebrow {
  font-family: var(--ui);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ember);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.04;
  color: var(--cream);
  margin-bottom: 22px;
}

/* ══ ARTISTA EN VIVO ══ */
.artista {
  background: var(--bg-2);
  padding: 100px 20px;
  position: relative;
}
.artista-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.artista-text {
  color: rgba(247,233,209,0.78);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 44px;
}
.video-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(242,171,61,0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  background: #000;
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ══ GENEROS ══ */
.generos {
  background:
    radial-gradient(ellipse 70% 60% at 15% 10%, rgba(227,93,26,0.14), transparent 60%),
    var(--bg);
  padding: 100px 20px 110px;
  text-align: center;
}
.generos-inner { max-width: 720px; margin: 0 auto; }
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}
.chip {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cream);
  border: 1px solid rgba(242,171,61,0.4);
  background: rgba(242,171,61,0.08);
  padding: 10px 20px;
  border-radius: 999px;
  transition: background 0.25s, transform 0.2s;
}
.chip:hover { background: rgba(242,171,61,0.2); transform: translateY(-2px); }

/* ══ FOOTER ══ */
.footer {
  position: relative;
  background: var(--bg-2);
  padding: 90px 20px 46px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid rgba(242,171,61,0.15);
}
.footer-rays {
  position: absolute;
  top: -280px; left: 50%;
  width: 700px; height: 700px;
  transform: translateX(-50%);
  background: repeating-conic-gradient(
    from 0deg,
    rgba(227,93,26,0.08) 0deg 3deg,
    transparent 3deg 15deg
  );
  border-radius: 50%;
  mask-image: radial-gradient(circle, black 30%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 65%);
}
.footer-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.footer-logo { width: 150px; margin: 0 auto 32px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 30px;
}
.footer-link {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(247,233,209,0.25);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.footer-link:hover { background: rgba(247,233,209,0.1); transform: translateY(-2px); }
.footer-link--wsp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2fbf60;
  border-color: #2fbf60;
  color: #0d2b16;
}
.footer-link--wsp:hover { background: #29ab55; }
.footer-copy {
  font-family: var(--ui);
  font-size: 0.8rem;
  color: rgba(247,233,209,0.5);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .player-embed iframe { height: 140px; }
  .artista, .generos { padding: 72px 20px; }
  .footer { padding: 72px 20px 36px; }
}
