/* Los grises salen del fondo de estudio de la foto de perfil; el amarillo, de las gafas. */
:root {
  --tinta: #0c0c0d;
  --blanco: #fff;
  --estudio-1: #7f858b;
  --estudio-2: #bcc1c6;
  --gris: #a9afb4;
  --lente: #f5dc0a;
  --pad: clamp(1rem, 3vw, 2.75rem);
  --ancho: 100%;            /* anchura de la letra: la mueve el tempo del tema */
  --nombre-fs: 24vw;
  --nombre-ancho: 100%;
  --titular: "Anybody", "Arial Black", Impact, sans-serif;
  --texto: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --suave: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; overflow-x: clip; background: var(--tinta); color: var(--blanco);
  font: 400 1.0625rem/1.5 var(--texto); -webkit-font-smoothing: antialiased;
}
body.con-player { padding-bottom: 4.5rem; }
h1, h2, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
abbr { text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--lente); outline-offset: 3px; }
.saltar { position: absolute; left: var(--pad); top: -4rem; z-index: 50; background: var(--tinta); color: var(--blanco); padding: .75rem 1rem; }
.saltar:focus { top: 1rem; }

/* ---------- Portada ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden;
  background: linear-gradient(var(--estudio-1), var(--estudio-2)); color: var(--tinta);
}
.nav {
  position: absolute; inset: 0 0 auto; z-index: 4; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem var(--pad); font-weight: 600;
}
.nav a { text-decoration: none; padding: .5rem 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 2px; }
.nav-enlaces { display: flex; gap: clamp(1rem, 2.5vw, 2.25rem); }
.nombre {
  position: absolute; z-index: 1; top: 4.25rem; left: 50%; transform: translateX(-50%);
  font-family: var(--titular); font-weight: 900; font-size: var(--nombre-fs); line-height: .74;
  font-stretch: var(--nombre-ancho); white-space: nowrap; color: var(--blanco);
}
.nombre.entra { transition: font-stretch 1.1s var(--suave); }
.perfil {
  position: absolute; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%);
  height: calc(100vh - 4.25rem - var(--nombre-fs) * .42); height: calc(100svh - 4.25rem - var(--nombre-fs) * .42);
  min-height: 22rem; width: auto; max-width: none;
}
.hero-pie { position: absolute; z-index: 3; left: var(--pad); bottom: var(--pad); width: min(17rem, 26vw); }
.hero-pie p { font-size: 1.25rem; line-height: 1.3; font-weight: 500; margin-bottom: 1.25rem; text-wrap: balance; }
.boton {
  display: inline-block; background: var(--tinta); color: var(--blanco); text-decoration: none; font-weight: 600;
  padding: .85rem 1.6rem; transition: background .2s, color .2s;
}
.boton:hover { background: var(--lente); color: var(--tinta); }

/* ---------- Música ---------- */
.musica { padding: clamp(1.75rem, 4vh, 4rem) 0 clamp(4rem, 10vh, 7rem); overflow-x: clip; }
.musica-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding: 0 var(--pad); }
.musica-cab p { font-weight: 500; color: var(--gris); }
.musica .musica-cab .rotulo { font-size: clamp(2rem, 4vw, 4rem); color: var(--lente); }
.titulo {
  --alto: clamp(3rem, min(10.5vw, 13.5vh), 9.5rem);
  display: flex; flex-direction: column; justify-content: flex-end; height: calc(var(--alto) * 1.86);
  margin: .5rem var(--pad) 1.25rem; font-family: var(--titular); font-weight: 900; text-transform: uppercase;
  font-stretch: var(--ancho); line-height: .9; white-space: nowrap; transition: font-stretch .7s var(--suave);
}
.titulo span + span { color: var(--gris); }
.ficha { display: flex; align-items: center; gap: 1.25rem; padding: 0 var(--pad); min-height: 4rem; }
.play { flex: none; width: 4rem; height: 4rem; border-radius: 50%; background: var(--lente); color: var(--tinta); display: grid; place-items: center; transition: transform .2s var(--suave); }
.play:hover { transform: scale(1.07); }
.play svg { width: 1.6rem; }
svg path { fill: currentColor; }
.i-pausa, .sonando .i-play { display: none; }
.sonando .i-pausa { display: block; }
.artistas { flex: 1; max-width: 62ch; color: #d6d9dc; text-wrap: pretty; }
.bpm { margin-left: auto; flex: none; font-weight: 600; white-space: nowrap; }
.bpm span { font: 900 clamp(2rem, 4vw, 3.5rem)/1 var(--titular); font-stretch: 100%; font-variant-numeric: tabular-nums; }

.caja {
  --h: clamp(18rem, 43vh, 36rem);
  display: flex; gap: 3px; height: calc(var(--h) + 2rem); margin-top: 1.75rem; padding: 0 var(--pad);
}
.disco { position: relative; flex: 1 1 0; min-width: 0; height: 100%; text-align: center; transition: flex-grow .55s var(--suave), flex-basis .55s var(--suave); }
.disco-foto { position: relative; display: block; height: var(--h); overflow: hidden; background: #1c1d1f; }
.disco img {
  position: absolute; top: 0; left: 50%; height: 100%; width: calc(var(--h) * var(--r)); max-width: none;
  object-fit: cover; transform: translateX(-50%); filter: brightness(.62); transition: filter .3s;
}
.disco-bpm { display: block; padding-top: .45rem; font-size: .8125rem; line-height: 1.2; color: var(--gris); font-variant-numeric: tabular-nums; }
.disco[aria-current="true"] { flex: 0 0 calc(var(--h) * var(--r)); }
.disco[aria-current="true"] img { filter: none; }
.disco[aria-current="true"] .disco-bpm { color: var(--lente); font-weight: 700; }
@media (hover: hover) { .disco:not([aria-current="true"]):hover { flex-grow: 2.6; } .disco:hover img { filter: none; } }

.lista { margin: clamp(2.5rem, 6vh, 4rem) var(--pad) 0; }
.lista summary { cursor: pointer; font-weight: 600; padding: .75rem 0; width: max-content; }
.lista ol { columns: 2; column-gap: 3rem; margin-top: .5rem; }
.lista li { break-inside: avoid; }
.fila { display: grid; grid-template-columns: 5.25rem 1fr; width: 100%; text-align: left; padding: .7rem 0; border-top: 1px solid #2c2e31; }
.fila-bpm { font-variant-numeric: tabular-nums; color: var(--gris); }
.fila-txt strong { display: block; font-weight: 600; }
.fila-txt span { display: block; font-size: .9375rem; line-height: 1.4; color: var(--gris); }
.fila:hover strong, .fila[aria-current="true"] strong, .fila[aria-current="true"] .fila-bpm { color: var(--lente); }

/* ---------- Cabina ---------- */
.rotulo {
  font-family: var(--titular); font-weight: 900; font-stretch: var(--ancho); text-transform: uppercase;
  font-size: clamp(2.4rem, 8.6vw, 9rem); line-height: .85; white-space: nowrap; transition: font-stretch .7s var(--suave);
}
.cabina { display: grid; gap: 3px; }
.cabina-abre { position: relative; }
.cabina-abre img { width: 100%; height: min(100vh, 67vw); object-fit: cover; object-position: 50% 30%; }
.cabina-abre::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(12, 12, 13, .8)); }
.cabina-txt { position: absolute; z-index: 1; left: var(--pad); right: var(--pad); bottom: var(--pad); }
.cabina-txt p { margin-top: 1rem; font-size: clamp(1.0625rem, 1.5vw, 1.375rem); line-height: 1.35; font-weight: 500; text-wrap: balance; }
.con-player .cabina-txt { bottom: calc(var(--pad) + 4.5rem); }
.tira { display: flex; flex-wrap: wrap; gap: 3px; }
.tira img { min-width: 0; object-fit: cover; }
.tira .v { flex: 667 1 28%; width: 28%; aspect-ratio: 2 / 3; }
.tira .h { flex: 1485 1 62%; width: 62%; }

/* ---------- Contratar ---------- */
.contratar {
  display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 2rem; background: #fff; color: var(--tinta);
  padding: clamp(4rem, 12vh, 8rem) var(--pad) 0; overflow: hidden;
}
.contratar-txt { padding-bottom: clamp(3rem, 12vh, 8rem); min-width: 0; }
.contratar .rotulo { font-size: clamp(2rem, 5vw, 6rem); }
.contratar-txt > p { font-size: 1.375rem; line-height: 1.35; margin: 1.5rem 0 2rem; max-width: 30ch; }
.contratar > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 52%; filter: brightness(1.07); mix-blend-mode: multiply; }
.vias a { display: flex; justify-content: space-between; gap: 1rem; max-width: 34rem; padding: 1rem 0; border-top: 2px solid var(--tinta); text-decoration: none; font-size: 1.25rem; font-weight: 600; }
.vias a span { font-weight: 400; overflow-wrap: anywhere; text-align: right; }
.vias a:hover { background: var(--lente); }
.aviso { max-width: 34rem; border: 2px dashed var(--tinta); padding: 1.1rem 1.25rem; }

.pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding: 1.5rem var(--pad); font-size: .9375rem; color: var(--gris); }

/* ---------- Reproductor ---------- */
.player {
  position: fixed; z-index: 20; inset: auto 0 0; display: flex; align-items: center; gap: .25rem; height: 4.5rem;
  padding: 0 var(--pad); background: var(--lente); color: var(--tinta);
}
.player button { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; }
.player button svg { width: 1.35rem; }
.player :focus-visible { outline-color: var(--tinta); outline-offset: 0; }
.player-txt { flex: 0 1 22rem; margin: 0 1rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onda { position: relative; flex: 1; height: 2.5rem; min-width: 4rem; }
.onda svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .32; }
.onda .onda-hecha { opacity: 1; clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.onda input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.onda:focus-within { outline: 2px solid var(--tinta); outline-offset: 3px; }
.tiempo { width: 3rem; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .nav { font-size: .9375rem; }
  .nav-enlaces { gap: .8rem; }
  .hero::after { content: ""; position: absolute; z-index: 2; inset: 62% 0 0; background: linear-gradient(transparent, rgba(12, 12, 13, .9) 60%, #0c0c0d 88%); }
  .perfil { height: auto; min-height: 0; width: max(112vw, 47svh); left: 42.5%; bottom: auto; top: calc(4.25rem + var(--nombre-fs) * .46); }
  .hero-pie { right: var(--pad); width: auto; color: var(--blanco); }
  .hero-pie .boton { background: var(--lente); color: var(--tinta); }

  .titulo { --alto: 17vw; margin-bottom: 1rem; }
  .ficha { flex-wrap: wrap; gap: .75rem 1rem; }
  .artistas { order: 3; flex: 1 0 100%; min-height: 4.5em; font-size: 1rem; }
  .caja {
    --h: min(54vh, 112vw); gap: 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    padding: 0 calc(50vw - var(--h) * .28); scrollbar-width: none; margin-top: 1rem;
  }
  .caja::-webkit-scrollbar { display: none; }
  .disco, .disco[aria-current="true"] { flex: 0 0 min(calc(var(--h) * var(--r)), 80vw); scroll-snap-align: center; transition: none; }
  .disco-foto { background: none; }
  .disco img { width: 100%; object-fit: contain; }
  .lista ol { columns: 1; }
  .fila { grid-template-columns: 4.75rem 1fr; }

  .rotulo, .contratar .rotulo { font-size: 8.8vw; }
  .cabina-abre img { height: 118vw; object-position: 47% 50%; }
  .tira .v { order: 1; flex: 1 1 40%; }
  .tira .h { order: 2; flex: 1 1 100%; width: 100%; }

  .contratar { grid-template-columns: 1fr; gap: 0; }
  .contratar-txt { padding-bottom: 1rem; }
  .player { gap: 0; }
  .player [data-prev], .tiempo { display: none; }
  .player-txt { flex: 1 1 50%; margin: 0 .75rem 0 .5rem; }
  .onda { flex: 1 1 30%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Descargas ---------- */
.bajar { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; text-decoration: none; font-weight: 600; }
.bajar svg { width: 1.35rem; }
.ficha .bajar { height: 3.25rem; padding: 0 1.25rem; border: 2px solid var(--blanco); transition: background .2s, color .2s, border-color .2s; }
.ficha .bajar:hover { background: var(--lente); border-color: var(--lente); color: var(--tinta); }
.ficha .bpm { margin-left: 0; }
.lista li { display: flex; align-items: center; border-top: 1px solid #2c2e31; }
.lista .fila { border-top: 0; }
.lista .bajar { width: 2.75rem; height: 2.75rem; color: var(--gris); }
.lista .bajar:hover { color: var(--lente); }
@media (max-width: 760px) {
  .ficha .bajar { width: 3.25rem; padding: 0; }
  .ficha .bajar span { display: none; }
  .ficha .bpm { margin-left: auto; }
  .bpm span { font-size: 1.55rem; }
}