/* ============================================================
   LA RETRO RADIO — Tocadiscos / Vinilo 70s
   Refinado con ui-ux-pro-max + frontend-design
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Superficies cálidas */
  --espresso:  #1c1109;
  --walnut:    #271710;
  --wood:      #3a2415;
  --wood-lt:   #4a2f1b;
  --card:      #2c1b10;

  /* Texto (contraste verificado sobre espresso/walnut) */
  --cream:     #f7ecd6;   /* ~13:1  */
  --cream-2:   #e2cfac;   /* ~8:1  texto secundario */
  --cream-3:   #c2ab86;   /* ~5:1  apoyo, sobre superficies oscuras */

  /* Acentos 70s */
  --gold:      #f0b53e;   /* mostaza dorada */
  --orange:    #e3712a;   /* naranja quemado */
  --rust:      #c2451d;   /* teja */
  --avocado:   #9aa83f;   /* verde aguacate */

  --ff-display:'Righteous', sans-serif;
  --ff-script: 'Pacifico', cursive;
  --ff-body:   'Poppins', sans-serif;

  --maxw: 1080px;
  --radius: 16px;
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
  --ease: .35s cubic-bezier(.4,0,.2,1);
  --ring: 0 0 0 3px rgba(240,181,62,.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ff-body);
  font-size: 16px;
  color: var(--cream);
  background: var(--espresso);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Foco visible global (accesibilidad) */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 2000;
  background: var(--gold); color: var(--espresso); font-weight: 600;
  padding: 10px 16px; border-radius: 0 0 10px 10px; transition: top var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Texturas globales ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, transparent 55%, rgba(0,0,0,.45) 100%);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  padding: 13px 0;
  background: rgba(28,17,9,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(240,181,62,.16);
  transition: padding var(--ease), background var(--ease);
}
.navbar.scrolled { padding: 8px 0; background: rgba(22,13,7,.95); }

.nav-container {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo-link { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.nav-logo { height: 44px; width: 44px; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 2px rgba(240,181,62,.4); }
.nav-brand { font-family: var(--ff-display); font-size: 1.12rem; letter-spacing: .5px; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; min-height: 40px;
  font-weight: 500; font-size: .94rem; color: var(--cream-2);
  padding: 8px 14px; border-radius: 999px;
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(240,181,62,.1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px;
  font-weight: 600; font-size: .92rem; color: var(--espresso);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  padding: 9px 18px; border-radius: 999px; margin-left: 6px;
  box-shadow: 0 6px 18px rgba(227,113,42,.35);
  transition: transform var(--ease), box-shadow var(--ease);
}
.nav-cta .ico { width: 15px; height: 15px; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(227,113,42,.5); }

/* Hamburguesa */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--gold); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; z-index: 2; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 112px 0 64px; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(227,113,42,.22), transparent 55%),
    linear-gradient(180deg, #2c1b10 0%, #20140c 55%, #160d06 100%);
}

/* Rayos de sol cálidos */
.sunburst {
  position: absolute; top: -50vmax; left: 50%; transform: translateX(-50%);
  width: 120vmax; height: 120vmax; pointer-events: none; opacity: .45;
  background: repeating-conic-gradient(from 0deg at 50% 50%,
    rgba(240,181,62,.15) 0deg 6deg, transparent 6deg 13deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 60%);
  animation: spinSun 120s linear infinite;
}
@keyframes spinSun { to { transform: translateX(-50%) rotate(360deg); } }

.hero-glow {
  position: absolute; bottom: -20%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 50%; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(227,113,42,.18), transparent 70%);
  filter: blur(20px);
}

.hero-inner { position: relative; z-index: 2; text-align: center; padding: 0 22px; max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .76rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold);
  padding: 7px 16px; border-radius: 999px;
  background: rgba(240,181,62,.08); border: 1px solid rgba(240,181,62,.28);
  margin-bottom: 22px;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 8px var(--orange); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.82); } }

.hero-title {
  font-family: var(--ff-script);
  font-size: clamp(3rem, 9vw, 5.6rem);
  line-height: 1.02; color: var(--gold);
  text-shadow: 0 2px 0 #b5872a, 0 4px 0 var(--rust), 0 7px 26px rgba(0,0,0,.55);
  margin-bottom: 16px;
}

.hero-slogan {
  font-size: clamp(1rem, 2.2vw, 1.16rem); color: var(--cream-2);
  max-width: 560px; margin: 0 auto 40px;
}
.hl-70 { color: var(--gold); font-weight: 600; }
.hl-80 { color: var(--orange); font-weight: 600; }
.hl-90 { color: var(--avocado); font-weight: 600; }

/* ============================================================
   CONSOLA / TOCADISCOS
   ============================================================ */
.deck {
  max-width: 660px; margin: 0 auto;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}
.deck-wood {
  position: relative;
  display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: center;
  padding: 28px;
  border-radius: 20px;
  /* Veta de madera */
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 30%),
    repeating-linear-gradient(92deg, #3a2415 0px, #4a2f1b 3px, #3a2415 7px, #422a18 11px),
    var(--wood);
  border: 1px solid rgba(0,0,0,.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 2px rgba(0,0,0,.25);
}
.deck-wood::after {
  content: ""; position: absolute; inset: 10px; border-radius: 14px;
  border: 1px solid rgba(240,181,62,.12); pointer-events: none;
}

/* Plato */
.platter-area { display: flex; justify-content: center; }
.platter {
  position: relative; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, #241308 0%, #160c05 72%);
  box-shadow: inset 0 0 0 7px rgba(0,0,0,.45), inset 0 0 22px rgba(0,0,0,.7), 0 8px 22px rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  animation: platter-breathe 6s ease-in-out infinite;
}
@keyframes platter-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.018); }
}

.vinyl {
  position: relative; width: 216px; height: 216px; border-radius: 50%;
  background: radial-gradient(circle, #181818 0%, #050505 100%);
  box-shadow: 0 6px 20px rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  animation: spin 7s linear infinite;
}
.deck:hover .vinyl, .deck:focus-within .vinyl { animation-duration: 4.5s; }
@keyframes spin { to { transform: rotate(360deg); } }

.vinyl-grooves {
  position: absolute; inset: 12px; border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
    rgba(255,255,255,.05) 0 1px, transparent 1px 4px);
}
.vinyl-sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg,
    transparent 0deg, rgba(255,236,196,.16) 26deg, transparent 58deg,
    transparent 214deg, rgba(255,236,196,.1) 240deg, transparent 280deg);
  animation: sheen-rotate 5s linear infinite;
}
@keyframes sheen-rotate { to { transform: rotate(-360deg); } }
.vinyl-label {
  position: relative; z-index: 2; width: 94px; height: 94px; border-radius: 50%;
  overflow: hidden; box-shadow: 0 0 0 4px var(--rust), 0 2px 8px rgba(0,0,0,.55);
}
.vinyl-logo { width: 100%; height: 100%; object-fit: cover; }
.vinyl-hole {
  position: absolute; z-index: 3; width: 11px; height: 11px; border-radius: 50%;
  background: #0a0a0a; box-shadow: inset 0 0 3px rgba(255,255,255,.3);
}

/* Brazo */
.tonearm { position: absolute; top: -4px; right: -4px; width: 100px; height: 100px; z-index: 5; transform-origin: 86px 14px; animation: arm-sway 7s ease-in-out infinite; }
@keyframes arm-sway {
  0%, 100% { transform: rotate(2deg); }
  50%      { transform: rotate(6deg); }
}
.deck:hover .tonearm, .deck:focus-within .tonearm { animation-duration: 4s; }
.tonearm-pivot { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(145deg,#d8d8d8,#7a7a7a); box-shadow: 0 2px 5px rgba(0,0,0,.55); }
.tonearm-rod { position: absolute; top: 16px; right: 12px; width: 4px; height: 56px; background: linear-gradient(180deg,#dcdcdc,#9a9a9a); border-radius: 3px; transform: rotate(40deg); transform-origin: top; box-shadow: 1px 0 3px rgba(0,0,0,.45); }
.tonearm-head { position: absolute; bottom: 26px; left: 32px; width: 13px; height: 18px; background: linear-gradient(145deg,#3a3a3a,#0f0f0f); border-radius: 3px; transform: rotate(40deg); }

/* Consola */
.console {
  background: #160d06; border: 1px solid rgba(240,181,62,.2);
  border-radius: 13px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 6px 18px rgba(0,0,0,.4);
}
.console-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; background: #100802; border-bottom: 1px solid rgba(240,181,62,.12);
}
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--rust); box-shadow: 0 0 9px var(--orange); animation: pulse 1.4s ease-in-out infinite; flex-shrink: 0; }
.console-status { font-weight: 600; font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.console-freq { margin-left: auto; font-size: .72rem; letter-spacing: 1px; color: var(--cream-3); }

/* VU meter */
.vu { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 16px; margin-left: 4px; }
.vu i { width: 3px; background: linear-gradient(180deg, var(--gold), var(--rust)); border-radius: 2px; animation: vu 1s ease-in-out infinite; }
.vu i:nth-child(1){height:40%;animation-delay:-.1s}.vu i:nth-child(2){height:75%;animation-delay:-.5s}.vu i:nth-child(3){height:55%;animation-delay:-.2s}.vu i:nth-child(4){height:90%;animation-delay:-.7s}.vu i:nth-child(5){height:50%;animation-delay:-.3s}.vu i:nth-child(6){height:70%;animation-delay:-.6s}.vu i:nth-child(7){height:35%;animation-delay:-.15s}
@keyframes vu { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.console-screen { background: #160d06; }
.console-hint { text-align: center; font-size: .78rem; color: var(--cream-3); padding: 10px 12px; }

/* ============================================================
   HISTORIAL DE CANCIONES
   ============================================================ */
.history {
  max-width: 660px; margin: 26px auto 0;
  background: #160d06; border: 1px solid rgba(240,181,62,.2);
  border-radius: 13px; overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.45);
}
.history-bar {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; background: #100802; border-bottom: 1px solid rgba(240,181,62,.12);
}
.history-ico { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }
.history-title {
  font-family: var(--ff-display); font-weight: 400;
  font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cream);
}
.history-tag { margin-left: auto; font-size: .72rem; letter-spacing: 1px; color: var(--cream-3); }
.history-screen { background: #160d06; }

/* Scroll hint */
.scroll-hint {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 38px;
  font-size: .82rem; font-weight: 600; letter-spacing: 1px; color: var(--cream-2);
  border: 1px solid rgba(240,181,62,.28); padding: 10px 22px; border-radius: 999px;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.scroll-hint svg { width: 16px; height: 16px; animation: bob 2s ease-in-out infinite; }
.scroll-hint:hover { color: var(--gold); border-color: var(--gold); background: rgba(240,181,62,.08); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ============================================================
   SECCIÓN ABOUT / PROGRAMACIÓN
   ============================================================ */
.section { position: relative; z-index: 2; padding: 96px 0; }
.about { background: linear-gradient(180deg, #160d06, #20140c); text-align: center; }

.kicker { font-weight: 600; font-size: .76rem; letter-spacing: 3px; text-transform: uppercase; color: var(--orange); }
.section-title { font-family: var(--ff-display); font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .5px; margin: 8px 0 16px; color: var(--cream); }
.ink { color: var(--gold); }
.section-lead { max-width: 600px; margin: 0 auto 56px; color: var(--cream-2); font-size: 1.02rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; margin-bottom: 52px; }
.card {
  background: linear-gradient(165deg, #32200f, #251608);
  border: 1px solid rgba(240,181,62,.14); border-radius: var(--radius); padding: 30px 26px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(240,181,62,.42); box-shadow: 0 18px 42px rgba(0,0,0,.45); }
.card-ico { display: block; width: 46px; height: 46px; color: var(--orange); margin-bottom: 18px; }
.card-ico svg { width: 100%; height: 100%; }
.card:nth-child(2) .card-ico { color: var(--gold); }
.card:nth-child(3) .card-ico { color: var(--avocado); }
.card-title { font-family: var(--ff-display); font-size: 1.32rem; letter-spacing: .5px; margin-bottom: 10px; color: var(--cream); }
.card-text { font-size: .93rem; color: var(--cream-2); }

.genres { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.genre {
  font-size: .85rem; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  color: var(--cream); background: rgba(240,181,62,.08); border: 1px solid rgba(240,181,62,.28);
  transition: background var(--ease), transform var(--ease), color var(--ease);
}
.genre:hover { background: rgba(227,113,42,.22); transform: scale(1.06); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; z-index: 2; background: #130b05; border-top: 1px solid rgba(240,181,62,.16); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }

.footer-logo { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 2px rgba(240,181,62,.35); margin-bottom: 12px; }
.footer-tag { font-family: var(--ff-display); font-size: .95rem; letter-spacing: 1px; color: var(--gold); }

.footer-heading { font-family: var(--ff-display); font-size: 1rem; letter-spacing: 1.5px; color: var(--cream); margin-bottom: 16px; font-weight: 400; }
.footer-email { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--cream-2); font-size: .95rem; transition: color var(--ease); }
.footer-email .ico { width: 18px; height: 18px; flex-shrink: 0; }
.footer-email:hover { color: var(--gold); }

.footer-follow { margin: 18px 0 10px; font-size: .8rem; letter-spacing: 2px; text-transform: uppercase; color: var(--cream-3); }
.socials { display: flex; gap: 12px; }
.social {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(240,181,62,.06); border: 1px solid rgba(240,181,62,.25); color: var(--cream-2);
  transition: color var(--ease), border-color var(--ease), transform var(--ease), background var(--ease);
}
.social svg { width: 20px; height: 20px; }
.social:hover { color: var(--espresso); background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--cream-2); font-size: .95rem; transition: color var(--ease), padding-left var(--ease); }
.footer-nav a:hover { color: var(--gold); padding-left: 5px; }

.footer-bottom { border-top: 1px solid rgba(240,181,62,.12); padding: 22px; text-align: center; }
.footer-bottom p { font-size: .84rem; color: var(--cream-3); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .deck-wood { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .console { width: 100%; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; text-align: center; }
  .footer-logo { margin-inline: auto; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-brand { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: rgba(19,11,5,.98); padding: 16px 22px; border-bottom: 1px solid rgba(240,181,62,.18);
  }
  .nav-links.open { display: flex; }
  .nav-link, .nav-cta { width: 100%; justify-content: center; text-align: center; padding: 13px; border-radius: 10px; margin: 0; }
  .deck-wood { padding: 20px; }
  .platter, .vinyl { width: min(216px, 72vw); height: min(216px, 72vw); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-email, .socials { justify-content: center; }
  .footer-nav { align-items: center; }
  .footer-nav a:hover { padding-left: 0; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .22s; } .reveal.d3 { transition-delay: .34s; }

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
