/* ===== v5: estética (se carga después de styles.css) ===== */

/* --- Tocadiscos realista --- */
.deck::before { /* plato metálico bajo el disco */
  content: ""; position: absolute; inset: -3.5%; border-radius: 50%;
  background: conic-gradient(from 0deg, #3a3f41, #8b9192, #2c3133, #9aa0a1, #3a3f41, #7d8384, #2c3133, #8b9192, #3a3f41);
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.95), inset 0 0 0 2px rgba(255,255,255,.08);
}
.vinyl { box-shadow: 0 6px 14px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05); }
.vinyl::after { /* anillos entre pistas */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 0 24%, rgba(255,255,255,.05) 24.4%, transparent 25% 33%, rgba(255,255,255,.045) 33.3%, transparent 33.9% 41%, rgba(255,255,255,.04) 41.4%, transparent 42% 46.5%, rgba(255,255,255,.06) 47%, transparent 48%);
}
.vinyl__sheen { /* reflejo de luz fijo + iridiscencia: el disco gira debajo */
  background:
    conic-gradient(from 25deg, transparent 0 7%, rgba(255,255,255,.2) 10%, transparent 15% 50%, rgba(255,255,255,.14) 57%, transparent 63%),
    conic-gradient(from 200deg, rgba(255,0,128,0), rgba(255,80,160,.10), rgba(80,200,255,.12), rgba(120,255,170,.08), rgba(255,220,90,.10), rgba(255,0,128,0) 40%, transparent 41%);
  -webkit-mask: radial-gradient(circle, transparent 0 19%, #000 19.5% 49.5%, transparent 50%);
          mask: radial-gradient(circle, transparent 0 19%, #000 19.5% 49.5%, transparent 50%);
  mix-blend-mode: screen; opacity: .9;
}
.tonearm { filter: drop-shadow(14px 22px 10px rgba(0,0,0,.55)); }
.tonearm__base { background: radial-gradient(circle at 35% 30%, #f2eee6, #9a968e 45%, #3c3a37 75%, #1d1c1b); }
.tonearm__base i { position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #d9d4ca, #57544f); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.tonearm__weight { position: absolute; right: 3%; top: -9%; width: 13%; height: 13%; border-radius: 30%; background: linear-gradient(90deg, #2b2b2b, #6e6e6e 45%, #222); transform: rotate(14deg); }
.tonearm__rod { width: 3.2%; background: linear-gradient(90deg, #6f6c66, #fbf8f1 45%, #9b978f 60%, #5d5a55); }
.tonearm__head { background: linear-gradient(160deg, #3b3b3b, #0f0f0f); border-radius: 5px 5px 3px 3px; }
.tonearm__head::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -16%; height: 30%; border-radius: 2px; background: linear-gradient(#c8102e, #7d0a1c); }
.tonearm__needle { position: absolute; left: 46%; bottom: -34%; width: 2px; height: 22%; background: #e8e3d8; border-radius: 1px; }
body.is-playing .tonearm__head { animation: needle 180ms steps(2) infinite; }
@keyframes needle { 0% { translate: 0 0; } 50% { translate: .4px .5px; } }

/* --- Pared de carátulas --- */
.wall { position: relative; height: 92svh; min-height: 560px; overflow: hidden; display: grid; place-items: center; margin: 6vh 0; }
.wall__stage { position: absolute; inset: -10% -20%; perspective: 1200px; }
.wall__tilt { position: absolute; inset: 0; display: grid; align-content: center; gap: 22px; transform: rotateX(28deg) rotateZ(-8deg) scale(1.15); transform-style: preserve-3d; will-change: transform; }
.wall__row { display: flex; gap: 22px; width: max-content; will-change: transform; }
.wall__cover { position: relative; flex: none; width: clamp(140px, 13vw, 220px); aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface);
  box-shadow: 0 24px 40px -18px rgba(0,0,0,.85); transition: transform 400ms var(--ease-out), filter 400ms ease; filter: saturate(.9) brightness(.82); }
.wall__cover img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) { .wall__cover:hover { transform: translateY(-10px) scale(1.06); filter: none; z-index: 2; } }
.wall::before, .wall::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.wall::before { background: radial-gradient(60% 55% at 50% 50%, rgba(8,21,24,.88), rgba(8,21,24,.35) 60%, transparent 80%); }
.wall::after { background: linear-gradient(var(--bg), transparent 18%, transparent 82%, var(--bg)); }
.wall__title { position: relative; z-index: 2; margin: 0; text-align: center; font-family: var(--display); font-weight: 400; font-size: clamp(56px, 8.5vw, 150px); line-height: .88; pointer-events: none; text-shadow: 0 10px 40px rgba(0,0,0,.6); }
.wall__title span { display: block; }
.wall__title span:last-child { color: var(--orange-hi); }

/* --- Historial con carátulas --- */
.history__item { grid-template-columns: 64px 64px minmax(0, 1fr) auto; }
.history__cover { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: var(--surface); box-shadow: 0 10px 20px -10px rgba(0,0,0,.8); opacity: 0; transition: opacity 500ms ease; }
.history__cover.is-in { opacity: 1; }

/* --- Ritmo de color: el fondo cambia suavemente por sección --- */
body { transition: background-color 800ms ease, color 800ms ease; }
body[data-theme="cream"] { background-color: #efe6d6; color: #13292d; }
body[data-theme="orange"] { background-color: #ff9433; color: #1a0d02; }
.manifesto__text { transition: color 800ms ease; }
body[data-theme="cream"] .manifesto__text { color: #13292d; }
body[data-theme="orange"] .finale__title span:last-child { color: #fff4e6; }
body[data-theme="orange"] .finale__lead { color: #4a2400; }
body[data-theme="orange"] .finale .btn { background: #1a0d02; color: #ffe9d2; border-color: #1a0d02; }
body[data-theme="orange"] .finale .btn--ghost { background: transparent; color: #1a0d02; border-color: rgba(26,13,2,.35); }
.finale__title span, .finale__lead, .finale .btn { transition: color 800ms ease, background-color 800ms ease, border-color 800ms ease; }
.glow { transition: opacity 800ms ease; }
body[data-theme="orange"] .glow, body[data-theme="cream"] .glow { opacity: 0; }
.cursor { mix-blend-mode: difference; }

/* --- Textura VHS: desfase de color en títulos grandes --- */
.vhs-on { animation: vhs 620ms steps(6) 1; }
@media (hover: hover) and (pointer: fine) { .section-title:hover, .hero__word:hover, .wall__title:hover { animation: vhs 620ms steps(6) 1; } }
@keyframes vhs {
  0% { text-shadow: -4px 0 rgba(255,40,90,.85), 4px 0 rgba(0,220,255,.85); transform: translateX(2px) skewX(-2deg); }
  20% { text-shadow: 3px 0 rgba(255,40,90,.8), -3px 0 rgba(0,220,255,.8); transform: translateX(-2px); }
  40% { text-shadow: -2px 1px rgba(255,40,90,.7), 2px -1px rgba(0,220,255,.7); transform: translateX(1px) skewX(1deg); }
  60% { text-shadow: 1px 0 rgba(255,40,90,.6), -1px 0 rgba(0,220,255,.6); transform: none; }
  100% { text-shadow: none; transform: none; }
}
.hero__title { position: relative; }
.hero__title::after { /* líneas de barrido muy sutiles sobre el título */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.2) 0 1px, transparent 1px 3px); opacity: .45;
}

/* --- Números de neón (Monoton) --- */
.decade__num { font-family: "Monoton", var(--display); -webkit-text-stroke: 0; color: rgba(67,184,224,.24); text-shadow: 0 0 18px rgba(67,184,224,.35); font-size: 38vh; letter-spacing: .02em; }
.decade--stat .decade__num { color: var(--orange-hi); text-shadow: 0 0 12px rgba(255,148,51,.8), 0 0 42px rgba(255,148,51,.45); font-size: 40vh; opacity: 1; }
.decade__media { aspect-ratio: 1; width: min(100%, 520px); max-height: 64vh; }

/* --- Arreglos en tablet y celular --- */
@media (max-width: 1023px) {
  .decade__num { position: relative; top: auto; left: auto; bottom: auto; display: block; font-size: 30vw; line-height: .9; margin-bottom: -6vw; z-index: 0; }
  .decade--stat .decade__num { font-size: 32vw; margin-bottom: 0; transform: none; }
  .decade__media { width: 100%; max-height: none; }
  .wall { height: 70svh; min-height: 460px; }
  .history__item { grid-template-columns: 52px 52px minmax(0, 1fr); }
  .history__cover { width: 52px; height: 52px; }
  .history__tag { grid-column: 3; }
}
@media (max-width: 639px) {
  .hero { min-height: auto; padding-bottom: 56px; }
  .eq { margin-top: 24px; }
  .history__item { grid-template-columns: 34px 48px minmax(0, 1fr); gap: 12px; }
  .history__cover { width: 48px; height: 48px; }
  .wall__cover { width: 110px; }
  .wall__tilt, .wall__row { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .vhs-on, .section-title:hover, .hero__word:hover, .wall__title:hover { animation: none !important; }
  body.is-playing .tonearm__head { animation: none; }
}
.cursor.is-label { mix-blend-mode: normal; }
/* La barra superior y el mini reproductor mantienen sus colores aunque el fondo de la página cambie */
.nav, .mini { color: #f4efe6; }
body[data-theme] .nav.is-scrolled { background: rgba(8,21,24,.82); }
