/* =========================================================
   VERANO 86 (David Tapia × Gaf DJ White)
   Sistema de diseño: outrun/Miami 1986. Cielo de atardecer,
   neón de arcade, carretera infinita. Un acento audaz (el
   degradado del título); todo lo demás, disciplinado.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

@font-face {
  font-family: 'Good Times';
  src: url('/assets/fonts/good-times.woff2') format('woff2'),
       url('/assets/fonts/good-times.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* paleta extraída de la portada real del sencillo */
  --night:   #15082c;
  --dusk:    #3a1368;
  --magenta: #ef2d8f;
  --coral:   #ff6a3d;
  --gold:    #ffc83d;
  --teal:    #17b8a6;
  --teal-dim:#0d4f4a;
  --red:     #e23b32;
  --sand:    #f6ddae;
  --ink:     #0a0512;
  --paper:   #fff6e9;
  --paper-dim: rgba(255, 246, 233, 0.68);

  --font-display: 'Good Times', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --grad-sunset: linear-gradient(180deg, var(--night) 0%, var(--dusk) 38%, var(--magenta) 68%, var(--coral) 88%, var(--gold) 100%);
  --grad-title: linear-gradient(95deg, var(--gold) 0%, var(--coral) 35%, var(--magenta) 70%, #b23bd9 100%);

  --container: 1180px;
  --edge: clamp(20px, 5vw, 64px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--magenta); color: var(--ink); }

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--edge);
  padding-right: var(--edge);
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.04;
}

p { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(.2,.8,.2,1), box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-title);
  color: var(--ink);
  box-shadow: 0 10px 30px -8px rgba(239, 45, 143, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(239, 45, 143, 0.8); }

/* ---------------------------------------------------------
   NAV
   --------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--edge);
  background: linear-gradient(180deg, rgba(10,5,18,0.75), transparent);
  pointer-events: none;
}
.site-nav * { pointer-events: auto; }
.nav-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--paper);
}
.nav-mark span { color: var(--gold); }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 246, 233, 0.3);
  background: rgba(10, 5, 18, 0.4);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.nav-back svg { transition: transform 0.2s ease; }
.nav-back:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateX(-2px);
}
.nav-back:hover svg { transform: translateX(-2px); }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px var(--edge) 80px;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--grad-sunset);
}

.hero-sun-glow {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(76vw, 760px);
  height: min(76vw, 760px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,200,61,0.55) 0%, rgba(255,106,61,0.3) 42%, transparent 70%);
  filter: blur(16px);
  animation: sun-breathe 7s ease-in-out infinite;
}
@keyframes sun-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-50%, -50%) scale(1.035); opacity: 1; }
}

.hero-sun-badge {
  position: absolute;
  left: 50%;
  top: 54%;
  width: min(60vw, 600px);
  height: min(60vw, 600px);
  transform: translate(-50%, -50%);
  opacity: 0.92;
}

.radio-tag {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: rgba(255, 246, 233, 0.55);
}

@media (max-width: 640px) {
  .hero-sun-badge { width: min(84vw, 420px); height: min(84vw, 420px); }
  .radio-tag { font-size: 0.6rem; }
}

.hero-grid {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 46%;
  background-image:
    linear-gradient(rgba(255,246,233,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,246,233,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center bottom;
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  mask-image: linear-gradient(to top, black, transparent);
  transform: perspective(280px) rotateX(62deg);
  transform-origin: bottom;
  opacity: 0.55;
  animation: grid-drift 7s linear infinite;
}
@keyframes grid-drift { from { background-position: center 0; } to { background-position: center 60px; } }

.hero-road {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 15%;
  height: 46%;
  transform: translateX(-50%) perspective(280px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, black 45%, transparent);
  mask-image: linear-gradient(to top, black 45%, transparent);
  opacity: 0.8;
  pointer-events: none;
}
.hero-road-edge {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--sand);
  opacity: 0.6;
}
.hero-road-edge-left { left: 0; }
.hero-road-edge-right { right: 0; }
.hero-road-center {
  position: absolute;
  left: 50%; top: -42px; bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(to bottom, var(--sand) 0 18px, transparent 18px 42px);
  animation: road-dash 1s linear infinite;
}
@keyframes road-dash { from { transform: translateX(-50%) translateY(0); } to { transform: translateX(-50%) translateY(42px); } }

.hero-palms {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.palm {
  position: absolute;
  bottom: -2%;
  width: min(46vw, 420px);
  height: 62%;
  filter: drop-shadow(0 0 24px rgba(21,8,44,0.6));
  overflow: visible;
}
.palm-left { left: -6%; }
.palm-right { right: -6%; transform: scaleX(-1); }
.frond {
  transform-box: view-box;
  transform-origin: 132px 160px;
  animation: frond-sway 4.6s ease-in-out infinite;
}
@keyframes frond-sway {
  0%, 100% { transform: rotate(-1.6deg) scaleY(1); }
  50% { transform: rotate(1.8deg) scaleY(1.015); }
}
@media (max-width: 640px) {
  .palm { width: 60vw; opacity: 0.7; }
}

.hero-scanline {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 3px, rgba(0,0,0,0.08) 4px);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-title {
  font-weight: 900;
  font-size: clamp(3.2rem, 13vw, 8.5rem);
  letter-spacing: -0.01em;
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 0 rgba(10,5,18,0.35));
  text-shadow: 0 0 60px rgba(239,45,143,0.35);
}

.hero-byline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  letter-spacing: 0.04em;
  color: var(--paper);
  text-shadow: 0 2px 14px rgba(10, 5, 18, 0.7), 0 1px 3px rgba(10, 5, 18, 0.8);
}
.hero-byline b { color: var(--gold); font-weight: 800; }

.hero-console {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(20px, 3.2vw, 32px) clamp(24px, 5vw, 48px);
  background: rgba(8, 4, 16, 0.78);
  backdrop-filter: blur(10px) saturate(1.1);
  border-radius: 26px;
  border-top: 1px solid rgba(255, 246, 233, 0.16);
  box-shadow: 0 20px 50px -24px rgba(0,0,0,0.6);
}

.hero-tag {
  font-weight: 600;
  color: var(--paper);
  max-width: 44ch;
}

.countdown {
  display: flex;
  gap: clamp(10px, 2.4vw, 22px);
}
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdown-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  color: var(--paper);
}
.countdown-label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 700;
  margin-top: 2px;
}

.hero-cta { margin-top: 12px; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--paper);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(10, 5, 18, 0.75);
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--paper-dim), transparent);
  animation: scroll-cue-move 1.8s ease-in-out infinite;
}
@keyframes scroll-cue-move { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------------------------------------------------------
   SECTION SHELL
   --------------------------------------------------------- */
section { position: relative; }

.section-pad { padding: clamp(70px, 11vw, 140px) 0; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------------------------------------------------------
   STORY SECTION
   --------------------------------------------------------- */
.story {
  background: linear-gradient(180deg, var(--ink) 0%, #170a28 100%);
}
.story-grid {
  display: grid;
  grid-template-columns: minmax(240px, 380px) 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.cover-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(239,45,143,0.45), 0 0 0 1px rgba(255,246,233,0.08);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.cover-card img { width: 100%; }

.story-copy { max-width: 56ch; }
.story-copy h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.story-copy p {
  color: var(--paper-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}
.story-copy p + p { margin-top: 14px; }
.story-copy .station {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.station-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------------------------------------------------------
   ARCADE SECTION
   --------------------------------------------------------- */
.arcade {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(239,45,143,0.18), transparent 55%),
    #0d0618;
  text-align: center;
}
.arcade-head { max-width: 56ch; margin: 0 auto 44px; }
.arcade-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  margin: 14px 0 16px;
}
.arcade-head p { color: var(--paper-dim); font-size: 1.05rem; }

.cabinet {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  padding: clamp(14px, 2.4vw, 22px);
  background: linear-gradient(160deg, #2a1150, #190a2e 60%, #120820);
  box-shadow:
    0 40px 90px -30px rgba(0,0,0,0.75),
    inset 0 0 0 1px rgba(255,246,233,0.06);
}
.cabinet-marquee {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  background: var(--grad-title);
  border-radius: 999px;
  padding: 8px 22px;
  display: inline-block;
  margin-bottom: 16px;
}
.cabinet-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #060310;
  box-shadow: inset 0 0 0 2px rgba(255,246,233,0.08), inset 0 0 60px rgba(0,0,0,0.6);
}
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: rgba(6,3,16,0.82);
  backdrop-filter: blur(2px);
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.game-overlay[hidden] { display: none; }
.game-overlay h3 {
  font-size: clamp(1.4rem, 3.4vw, 2rem);
  font-weight: 800;
}
.game-overlay p { color: var(--paper-dim); max-width: 42ch; }

.game-hud {
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--paper);
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 2;
}
.game-hud span b { color: var(--gold); font-size: 0.95rem; }
.game-hud[hidden] { display: none; }

.cabinet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.skip-link {
  font-size: 0.85rem;
  color: var(--paper-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.skip-link:hover { color: var(--teal); }

.cabinet-hint {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--paper-dim);
}

/* ---------------------------------------------------------
   CREDITS / FOOTER
   --------------------------------------------------------- */
.credits {
  background: #0a0512;
  text-align: center;
}
.credits h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.credits p { color: var(--paper-dim); max-width: 50ch; margin: 0 auto; }
.credits-names {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.credits-names span { color: var(--paper-dim); font-weight: 500; font-size: 0.7rem; display: block; letter-spacing: 0.08em; margin-bottom: 4px; }

footer.site-footer {
  padding: 46px var(--edge) 40px;
  background: #0a0512;
  border-top: 1px solid rgba(255,246,233,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.footer-social { display: flex; gap: 18px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,246,233,0.18);
  color: var(--paper-dim);
  text-decoration: none;
  transition: 0.2s;
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }
.footer-social svg { width: 17px; height: 17px; fill: currentColor; }
.footer-meta { font-size: 0.78rem; color: var(--paper-dim); }

/* ---------------------------------------------------------
   ESCUCHA AHORA (post-lanzamiento)
   --------------------------------------------------------- */
.listen-hero {
  padding: 150px var(--edge) 60px;
  text-align: center;
}
.listen-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--grad-title);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 20px;
}
.listen-hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 900;
  background: var(--grad-title);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.listen-hero p { color: var(--paper-dim); margin-top: 14px; }

.listen-art {
  width: min(280px, 60vw);
  margin: 34px auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(239,45,143,0.45);
}

.platform-list {
  max-width: 560px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 var(--edge) 100px;
}
.platform-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  border-radius: 14px;
  background: linear-gradient(90deg, #1b0e32, #150a26);
  border: 1px solid rgba(255,246,233,0.1);
  text-decoration: none;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.platform-btn:hover { transform: translateX(4px); border-color: var(--teal); }
.platform-btn img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; }
.platform-btn .arrow { margin-left: auto; color: var(--paper-dim); }

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .cover-card { max-width: 320px; margin: 0 auto; }
  .countdown { gap: 12px; }
  .countdown-unit { min-width: 52px; }
}

@media (max-width: 520px) {
  .hero { padding-top: 100px; }
  .cabinet-controls { flex-direction: column; }
}
