/* Identidad visual de la web. La intro mantiene sus reglas originales. */
:root {
  color-scheme: dark;
  --black: #121311;
  --white: #f2ebdd;
  --accent: #ff75b9;
  --olive: #9c496c;
  --blue: #e5a1c2;
  --pink: #ff9dcc;
  --lime: #ff75b9;
  --paper: #f2f2e8;
  --ink: #0b0d0b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: var(--paper);
}
body {
  font-family: 'Space Grotesk', Arial, sans-serif;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 6px;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(0.65);
}
.photo-blur {
  position: absolute;
  inset: 0;
  z-index: -2;
  backdrop-filter: blur(6px);
  mask-image: linear-gradient(transparent 35%, #000);
}
.shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #0b0d0b 2%, #0b0d0b99 48%, transparent);
}
.side-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #0b0d0b80, transparent);
}
.intro {
  padding: 12vh 8vw 11vh;
}
.hero::after {
  content: 'LA PANTERA / GRAN CANARIA';
  position: absolute;
  top: 32px;
  left: 8vw;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--lime);
}
h1 {
  font-family: 'Bricolage Grotesque', Arial, sans-serif;
  font-size: clamp(3.5rem, 9vw, 9rem);
  letter-spacing: -0.065em;
  line-height: 0.93;
  text-transform: uppercase;
  margin: 0 0 38px;
}
h1 span {
  display: block;
}
h1 span:last-child {
  color: var(--lime);
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--lime);
  color: var(--ink);
  border: 1px solid var(--lime);
  border-radius: 100px;
  min-height: 56px;
  padding: 16px 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s;
}
.cta:hover {
  transform: translateY(-3px);
  background: var(--paper);
}
.cursor {
  display: none;
}
/* ---------- Intro en vídeo ---------- */
.film {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.film.on {
  opacity: 1;
}
.film pantera-animation {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  filter: blur(0) brightness(1);
  transition:
    filter 1.4s ease,
    transform 1.4s ease;
}
.film.blurred pantera-animation {
  filter: blur(40px) brightness(0.7);
  transform: scale(1.08);
}
.film-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px clamp(16px, 4vw, 48px) calc(22px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, #000a, transparent);
  transition: opacity 0.5s;
}
.film.blurred .film-bar {
  opacity: 0;
  pointer-events: none;
}
.film-progress {
  flex: 1;
  height: 2px;
  background: #f2ebdd33;
}
.film-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
.film-mute,
.film-skip {
  border: 1px solid #f2ebdd66;
  background: #1213117a;
  color: var(--white);
  padding: 11px 18px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.film-skip {
  border-color: var(--accent);
  color: var(--accent);
}
.film-mute:hover {
  border-color: var(--white);
}
.film-skip:hover {
  background: var(--accent);
  color: var(--black);
}

body.guided .hero {
  display: none;
}
.guide {
  position: relative;
  z-index: 60;
  opacity: 0;
  filter: blur(40px);
  transition:
    opacity 1.2s,
    filter 1.8s;
}
.guide.in {
  opacity: 1;
  filter: blur(0);
}
.guide.settled {
  filter: none;
}
.ch {
  position: relative;
  min-height: 100svh;
  padding: 120px clamp(24px, 8vw, 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 60px;
}
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.19em;
  color: var(--lime);
  margin: 0 0 26px;
}
h3 {
  font-family: 'Bricolage Grotesque', Arial, sans-serif;
  font-size: clamp(3rem, 6.5vw, 7rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  margin: 0 0 36px;
  max-width: 14ch;
}
.body,
.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.75;
  color: #b8bcb1;
  max-width: 40ch;
  margin: 0;
}
.ch-hero {
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-end;
}
.ch-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  z-index: -2;
  filter: saturate(0.6);
}
.ch-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--ink), #0b0d0b50 65%, #0b0d0b30);
}
h2.mega {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(5rem, 17vw, 18rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  margin: 0 0 30px;
  color: var(--lime);
}
.ch-origin {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8vw;
  background: #141813;
}
.ch-origin figure {
  margin: 0;
  position: relative;
}
.ch-origin figure::after {
  content: '28° N / 15° W';
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--lime);
  color: var(--ink);
  padding: 10px 15px;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
}
.ch-origin img {
  display: block;
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
}
.ch-stats {
  background: var(--paper);
  color: var(--ink);
}
.ch-stats .eyebrow {
  color: #4b5832;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 32px;
}
.stat {
  border-top: 1px solid #0b0d0b40;
  padding-top: 28px;
}
.stat strong {
  display: block;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(4rem, 9vw, 9rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat span {
  display: block;
  max-width: 22ch;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 20px;
  color: #53584c;
}
.note {
  font-size: 0.75rem;
  color: #666d5e;
  margin: 42px 0 0;
}
.rail {
  position: fixed;
  z-index: 70;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid #ffffff20;
  border-radius: 100px;
  background: #111710df;
  backdrop-filter: blur(16px);
  max-width: calc(100% - 24px);
}
.rail a {
  text-decoration: none;
  font-size: 0.7rem;
  padding: 10px 16px;
  border-radius: 100px;
  color: #c5cbbd;
  white-space: nowrap;
  transition:
    background 0.2s,
    color 0.2s;
}
.rail a span {
  font-size: 0.6rem;
  margin-right: 7px;
  opacity: 0.5;
}
.rail a.on {
  background: var(--lime);
  color: var(--ink);
}
.next-ch {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  padding: 13px 20px;
  background: #101710dd;
  backdrop-filter: blur(14px);
  color: var(--lime);
  border: 1px solid #d7ff6450;
  border-radius: 100px;
  font-size: 0.75rem;
  transition: opacity 0.3s;
}
.next-ch.gone {
  opacity: 0;
  pointer-events: none;
}
.end-links {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.ghost {
  background: none;
  border: 0;
  color: var(--paper);
  padding: 12px 0;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.ch-end {
  isolation: isolate;
  overflow: hidden;
  justify-content: flex-end;
  background: var(--ink);
}
.ch-end-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 25%;
  filter: saturate(0.75);
}
.ch-end-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--ink), #0b0d0b80 50%, #0b0d0b20),
    linear-gradient(90deg, #0b0d0bcc, transparent 60%);
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s,
    transform 0.8s;
}
.reveal.seen {
  opacity: 1;
  transform: none;
}
/* Colección horizontal de portadas y vinilos */
.ch-songs {
  height: 100svh;
  min-height: 680px;
  padding: 0;
  display: block;
  isolation: isolate;
  overflow: hidden;
}
.music-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #191018;
}
.music-backdrops {
  position: absolute;
  inset: -45px;
}
.music-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(38px) saturate(0.75);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.75s;
}
.music-backdrop.active {
  opacity: 0.48;
}
.music-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #100b10e8, #100b10a8 52%, #100b10d9),
    linear-gradient(0deg, #100b10 0%, transparent 55%);
}
.music-heading {
  position: absolute;
  z-index: 3;
  top: 105px;
  left: 8vw;
  right: 8vw;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.music-heading span {
  font-size: 0.75rem;
  color: #e7dce4;
}
.music-console {
  position: absolute;
  z-index: 10;
  right: 8vw;
  top: 42%;
  transform: translateY(-50%);
  width: min(440px, 36vw);
}
.music-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}
.music-controls p {
  font-size: 0.72rem;
  color: #f2dce8;
  margin: 0;
}
.songs-arrows {
  display: flex;
  gap: 8px;
}
.songs-arrows button {
  width: 40px;
  height: 40px;
  border: 1px solid #ffb5d780;
  border-radius: 50%;
  background: #ffffff0c;
  color: var(--paper);
}
.songs-arrows button:hover {
  background: var(--lime);
  color: var(--ink);
}
.songs-arrows button:disabled {
  opacity: 0.3;
  cursor: default;
}
.player {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 152px;
  background: #100b10bb;
  border: 1px solid #ffffff20;
  border-radius: 12px;
  overflow: hidden;
}
.player iframe {
  display: block;
  width: 100%;
  height: 152px;
  border: 0;
}
.music-console > a {
  display: inline-block;
  font-size: 0.7rem;
  color: #f1aed0;
  margin-top: 10px;
  text-underline-offset: 4px;
}
.selected-record {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 9vw, 150px);
  top: 46%;
  width: min(42vw, 460px);
  aspect-ratio: 1;
  transform: translateY(-58%);
  display: grid;
  place-items: center;
}
.record-disc {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  left: 0;
  top: 6%;
  background: repeating-radial-gradient(
    circle at center,
    #161318 0 2px,
    #29262b 3px 4px,
    #131115 5px 7px
  );
  box-shadow: 0 25px 65px #0009;
  animation: spin-record 8s linear infinite;
  animation-play-state: paused;
}
.ch-songs.playing .record-disc {
  animation-play-state: running;
}
.record-disc::before {
  content: '';
  position: absolute;
  inset: 43%;
  border-radius: 50%;
  background: var(--lime);
  box-shadow:
    0 0 0 5px #151217,
    0 0 0 7px var(--lime);
}
.record-label {
  position: absolute;
  inset: 43%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.record-sleeve {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  width: 69%;
  aspect-ratio: 1;
  border-radius: 4px;
  background: var(--lime) url('../img/portada-sin-marca.png') center/cover;
  box-shadow: 0 25px 60px #0009;
  transition:
    transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-image 0.4s;
}
.ch-songs.playing .record-sleeve {
  transform: translateX(17%) rotate(5deg);
}
@keyframes spin-record {
  to {
    transform: rotate(360deg);
  }
}
.carousel {
  position: absolute;
  z-index: 5;
  left: 8vw;
  right: 8vw;
  bottom: 34px;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  list-style: none;
  margin: 0;
  padding: 16px max(5vw, calc(50% - clamp(65px, 7.5vw, 95px))) 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.carousel::-webkit-scrollbar {
  display: none;
}
.song {
  flex: 0 0 clamp(130px, 15vw, 190px);
  scroll-snap-align: center;
}
.song button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--paper);
  opacity: 0.55;
  transform: none;
  transition:
    opacity 0.35s,
    filter 0.35s;
  cursor: pointer;
}
.song.before-active button,
.song.after-active button {
  opacity: 0.78;
}
.song.active button {
  opacity: 1;
  filter: drop-shadow(0 0 14px #ff75b955);
}
.album-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 12px;
}
.album-vinyl {
  position: absolute;
  left: 7%;
  top: 4%;
  width: 92%;
  height: 92%;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    #171419 0 2px,
    #302c32 3px 4px,
    #141216 5px 7px
  );
  box-shadow: 0 12px 24px #0007;
  transition: transform 0.4s;
}
.album-cover {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 0;
  width: 79%;
  height: 86%;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 12px 22px #0009;
  transition: transform 0.4s;
}
.song.active .album-vinyl {
  transform: translateX(10%);
}
.song .rank,
.song .meta {
  display: none;
}
.song .title {
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 5px;
}
.song .artists {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
  color: #e3bfce;
}
/* En móvil el contenido fluye: no depende de la altura del navegador. */
@media (max-width: 900px) {
  .intro {
    padding: 100px max(20px, env(safe-area-inset-left)) calc(64px + env(safe-area-inset-bottom));
  }
  .hero::after {
    top: calc(24px + env(safe-area-inset-top));
    left: max(20px, env(safe-area-inset-left));
  }
  h1 { font-size: clamp(2.6rem, 11.5vw, 6rem); }
  .rail {
    top: calc(10px + env(safe-area-inset-top));
    width: max-content;
    max-width: calc(100% - 24px);
    gap: 0;
    padding: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-backdrop-filter: blur(16px);
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px;
    font-size: 0.65rem;
  }
  .rail a span { display: none; }
  .ch {
    padding: calc(100px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-left)) calc(96px + env(safe-area-inset-bottom));
    scroll-margin-top: 0;
  }
  h2.mega { font-size: clamp(3.3rem, 16vw, 9rem); }
  h3 { font-size: clamp(2.5rem, 9vw, 5rem); }
  .eyebrow { line-height: 1.6; }
  .ch-origin { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ch-origin figure { width: 100%; max-width: 400px; }
  .ch-origin img { max-height: 55svh; object-position: center; }
  .stats { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .stat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
  }
  .stat span { margin: 0; }
  .stat strong { font-size: clamp(3.4rem, 15vw, 5rem); }
  .ch-songs {
    height: auto;
    min-height: 100svh;
    padding: 0 0 calc(88px + env(safe-area-inset-bottom));
  }
  .music-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 24px;
    padding: calc(92px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-left)) 24px;
  }
  .music-heading {
    position: relative;
    inset: auto;
    width: 100%;
    display: block;
  }
  .music-heading .eyebrow { margin-bottom: 8px; }
  .music-heading span { font-size: 0.75rem; line-height: 1.6; }
  .selected-record {
    position: relative;
    inset: auto;
    width: clamp(140px, 42vw, 240px);
    transform: none;
  }
  .music-console {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: 560px;
  }
  .music-controls p { font-size: 0.75rem; line-height: 1.5; }
  .songs-arrows { flex-shrink: 0; }
  .songs-arrows button { width: 44px; height: 44px; }
  .music-console > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.8rem;
  }
  .carousel {
    position: relative;
    inset: auto;
    width: 100%;
    gap: 17px;
    padding: 16px calc(50% - clamp(54px, 15.5vw, 80px)) 24px;
    touch-action: pan-x pan-y;
  }
  .song { flex-basis: clamp(108px, 31vw, 160px); }
  .song .title { overflow-wrap: anywhere; }
  .next-ch {
    min-height: 44px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    right: max(16px, env(safe-area-inset-right));
  }
  .end-links { align-items: stretch; flex-direction: column; gap: 16px; }
  .ghost { min-height: 44px; }
  .film-bar {
    flex-wrap: wrap;
    gap: 12px;
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .film-progress { flex: 1 0 100%; }
  .film-mute, .film-skip {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }
  .film-skip { margin-left: auto; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .intro { padding-top: 110px; padding-bottom: 40px; }
  .ch-origin {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 28px;
  }
  .ch-origin img { max-height: none; }
  .music-stage {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
    gap: 20px;
  }
  .music-heading { grid-column: 1 / -1; }
  .selected-record { width: min(100%, 200px); }
  .music-console { align-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .guide {
    filter: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
