:root {
  --bg: #06070b;
  --panel: #0d0f16;
  --line: rgba(214, 220, 235, .12);
  --text: #e6e9ef;
  --muted: #8b90a0;
  --chrome: linear-gradient(145deg, #ffffff 0%, #b9bfcc 38%, #6a7080 52%, #dfe3ea 70%, #9aa0ae 100%);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }

.bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: rgba(6, 7, 11, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.nav__links { display: flex; gap: 0; }
.nav__links a, .nav__brand {
  padding: 8px 8px; border-radius: 8px;
  transition: opacity .2s, transform .15s;
}
.nav__links a {
  font-size: 13px; color: var(--muted); text-decoration: none; opacity: .9;
}
.nav__links a:hover { color: var(--text); }
.nav__brand:hover { opacity: .7; }
.nav a:active { transform: scale(.95); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 54px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px 56px; text-align: center;
}
.hero__grid {
  display: none;
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(92, 104, 160, .22), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 100%;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 78%);
  opacity: .7;
}
.hero__logo {
  position: relative; width: min(620px, 100%);  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__tag {
  position: relative; margin-top: 14px;
  font-size: 13px; letter-spacing: .38em; text-transform: uppercase; color: var(--muted);
  animation: rise .9s .12s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__tag span { margin: 0 .5em; color: var(--text); }
.hero__cta {
  position: relative; display: flex; gap: 12px; margin-top: 28px;
  animation: rise .9s .22s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 26px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: transform .15s, opacity .2s;
}
.btn--chrome { background: var(--chrome); color: #0a0b10; }
.btn--ghost { border: 1px solid rgba(230, 233, 239, .35); }
.btn:hover { transform: translateY(-2px); }
.btn--ghost:hover { opacity: .75; }
.btn:active { transform: scale(.96); }

/* ---------- sections ---------- */
.section { max-width: 980px; margin: 0 auto; padding: 56px 16px; scroll-margin-top: 40px; }
.eyebrow { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); }
h2 {
  margin: 6px 0 24px;
  font-size: 26px; font-weight: 600; letter-spacing: .02em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  width: fit-content;
}

/* ---------- player ---------- */
.player {
  background: rgba(13, 15, 22, .66);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.player__now { display: grid; gap: 18px; padding: 16px; }
.player__cover {
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9);
}
.player__cover img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.player__cover img.is-loading { opacity: 0; }
.player__kind { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.player__title { margin-top: 2px; font-size: 22px; font-weight: 600; }
.player__seek { margin-top: 14px; }
.player__times {
  display: flex; justify-content: space-between; margin-top: 4px;
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}

input[type=range] {
  --p: 0%;
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 20px; background: transparent; cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #e6e9ef var(--p), rgba(230, 233, 239, .18) var(--p));
}
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(230, 233, 239, .18); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: #e6e9ef; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px;
  border-radius: 50%; background: #fff; border: 0;
  transition: transform .15s;
}
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.25); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.45); }

.player__controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ctl {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer;
  transition: transform .15s, opacity .2s;
}
.ctl svg { width: 22px; height: 22px; fill: currentColor; }
.ctl:hover { opacity: .7; transform: scale(1.08); }
.ctl:active { transform: scale(.9); }
.ctl--play { width: 56px; height: 56px; background: var(--chrome); color: #0a0b10; }
.ctl--play:hover { opacity: 1; }
.ctl--play svg { width: 26px; height: 26px; }
.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }
.player__yt {
  margin-left: auto; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  transition: opacity .2s, transform .15s;
}
.player__yt:hover { color: var(--text); }
.player__yt:active { transform: scale(.95); }

.tracks { list-style: none; padding: 6px; border-top: 1px solid var(--line); }
.track {
  display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 8px 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
  position: relative;
}
.track::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(230, 233, 239, .07); opacity: 0; transition: opacity .2s;
}
.track:hover::before, .track.is-current::before { opacity: 1; }
.track:active { transform: scale(.99); }
.track > * { position: relative; }
.track__n { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; }
.track__name { font-size: 15px; font-weight: 500; }
.track__kind { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.track__dur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.eq { display: none; height: 14px; gap: 2px; align-items: flex-end; justify-content: center; }
.eq i { width: 3px; height: 100%; background: #fff; border-radius: 1px; transform-origin: bottom; transform: scaleY(.35); }
.track.is-current .eq { display: flex; }
.track.is-current .track__n span { display: none; }
.track.is-current.is-playing .eq i { animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s !important; }
.eq i:nth-child(3) { animation-delay: -.6s !important; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ---------- adelantos ---------- */
.teaser {
  display: grid; gap: 20px; padding: 16px;
  background: rgba(13, 15, 22, .66);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.teaser__frame { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 12px; overflow: hidden; }
.teaser__cover { width: 100%; filter: blur(4px); transform: scale(1.06); }
.teaser__name { font-size: 20px; font-weight: 600; }
.teaser__name span {
  margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; letter-spacing: .16em; color: var(--muted); vertical-align: middle;
}
.teaser__text { margin-top: 2px; font-size: 14px; color: var(--muted); }
.snips { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 8px; }
.snip {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px; padding: 8px 14px 8px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
  transition: transform .15s;
}
.snip__bar {
  position: absolute; inset: 0; background: rgba(230, 233, 239, .1);
  transform-origin: left; transform: scaleX(var(--p, 0));
}
.snip::after {
  content: ""; position: absolute; inset: 0; background: rgba(230, 233, 239, .06);
  opacity: 0; transition: opacity .2s;
}
.snip:hover::after { opacity: 1; }
.snip:active { transform: scale(.98); }
.snip__ico {
  position: relative; flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--chrome); color: #0a0b10;
}
.snip__ico svg { width: 18px; height: 18px; fill: currentColor; }
.snip__name { position: relative; flex: 1; font-size: 15px; font-weight: 500; }
.snip__len { position: relative; font-size: 12px; color: var(--muted); }

/* ---------- galería ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.gallery img { width: 100%; border-radius: 12px; break-inside: avoid; }
.gallery img:nth-child(1) { order: -2; }
.gallery img:nth-child(3) { order: -1; } /* retrato de P3PO segundo en celular */

/* ---------- footer ---------- */
.footer {
  display: grid; justify-items: center; gap: 6px;
  padding: 24px 16px 40px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); text-align: center;
}
.footer img { width: 180px; }
.footer a { padding: 8px; text-decoration: none; color: var(--text); transition: opacity .2s, transform .15s; }
.footer a:hover { opacity: .7; }
.footer a:active { transform: scale(.96); }

/* ---------- desktop ---------- */
@media (min-width: 760px) {
  .nav { padding: 12px 32px; }
  .nav__links a { padding: 8px 14px; }
  .section { padding: 80px 32px; }
  h2 { font-size: 30px; }
  .player__now { grid-template-columns: 360px 1fr; align-items: center; gap: 28px; padding: 24px; }
  .player__title { font-size: 26px; }
  .tracks { padding: 10px 14px 14px; }
  .teaser { grid-template-columns: 280px 1fr; align-items: center; gap: 32px; padding: 24px; }
  .gallery { display: block; columns: 3; column-gap: 14px; }
  .gallery img { margin-bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
