/* =====================================================================
   TODAVÍA — David Perchez
   Paleta extraída de la portada oficial: violeta profundo → magenta →
   coral/naranja → dorado, sobre negro carbón y blanco cálido.
   ===================================================================== */

@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0f0a15;          /* negro carbón (tinte violeta de la portada) */
  --ink-2: #160d22;
  --violet-deep: #1e1132;  /* #1e1932 dominante de la portada */
  --violet: #3e1d63;
  --magenta: #f0185c;      /* #f71159 */
  --coral: #fa4c3f;
  --orange: #ec7a3f;       /* #e8763f */
  --gold: #f4b061;         /* destellos dorados */
  --cream: #f6ead8;        /* blanco cálido (#f3d8a8 aclarado) */
  --cream-2: rgba(246, 234, 216, .78);
  --cream-3: rgba(246, 234, 216, .58);
  --line: rgba(246, 234, 216, .14);

  --serif: "Cormorant", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1180px;
  --radius: 999px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --warm: linear-gradient(100deg, var(--gold) 0%, var(--orange) 52%, var(--coral) 100%);
  --journey: linear-gradient(180deg, #6a35a8 0%, var(--magenta) 38%, var(--coral) 62%, var(--orange) 80%, var(--gold) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font-family: var(--sans); font-size: 17px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2 { margin: 0; font-weight: 500; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--magenta); color: #fff; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.sc { font-variant: small-caps; text-transform: lowercase; letter-spacing: .06em; font-family: var(--serif); font-weight: 600; font-size: 1.08em; }
.footer-album.sc { font-size: inherit; }

/* ---------- Tipografía editorial ---------- */
.eyebrow, .kicker, .meta {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--cream-2); margin: 0;
}
.kicker { color: var(--gold); margin-bottom: 18px; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 7.2vw, 72px); line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
.headline, .headline-sm { font-family: var(--serif); font-style: italic; font-weight: 500; text-wrap: balance; }

/* ---------- Topbar ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
}
.brand { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; text-decoration: none; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { font-size: 13px; font-weight: 500; letter-spacing: .04em; text-decoration: none; color: var(--cream-2); transition: color .2s; }
.nav a:hover { color: var(--cream); }
.nav a:not(.nav-cta) { display: none; }
.nav-cta { border: 1px solid var(--line); padding: 7px 16px; border-radius: var(--radius); color: var(--cream) !important; }
@media (min-width: 760px) { .nav a:not(.nav-cta) { display: inline; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 28px;
  border-radius: var(--radius); font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--warm); color: #1a0d14; box-shadow: 0 10px 36px -10px rgba(250, 76, 63, .65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(250, 76, 63, .8); }
.btn-ghost { color: var(--cream); border: 1px solid rgba(246, 234, 216, .32); background: rgba(15, 10, 21, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-lg { min-height: 58px; padding: 16px 38px; font-size: 16px; }

/* ---------- 1 · HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate;
  padding: 76px 0 40px; }
.hero-atmos { position: absolute; inset: -10%; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 38%, rgba(240, 24, 92, .30), transparent 70%),
    radial-gradient(50% 45% at 18% 85%, rgba(236, 122, 63, .20), transparent 70%),
    radial-gradient(70% 60% at 10% 10%, rgba(62, 29, 99, .75), transparent 70%),
    url("../img/atmosfera.webp") center / cover no-repeat;
  filter: saturate(1.05); opacity: .9; animation: breathe 18s ease-in-out infinite alternate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15, 10, 21, .55) 0%, rgba(15, 10, 21, .35) 40%, var(--ink) 100%); }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06) translate3d(-1%, 1%, 0); } }

.hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; gap: 26px; justify-items: center; text-align: center; }
.hero-cover { margin: 0; width: min(58vw, 34svh, 300px); aspect-ratio: 1; border-radius: 6px; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(240, 24, 92, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy { display: grid; justify-items: center; }
.wordmark {
  font-family: var(--serif); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; margin-right: -.14em;
  font-size: clamp(46px, 13vw, 128px); line-height: .95; margin-top: 10px;
  background: linear-gradient(180deg, #fffaf2 0%, var(--cream) 55%, #d9c7b4 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.meta { margin-top: 12px; color: var(--gold); }
.headline { font-size: clamp(26px, 6.4vw, 44px); line-height: 1.12; margin: 20px 0 10px; }
.sub { color: var(--cream-2); max-width: 34ch; font-size: 16px; line-height: 1.55; margin-bottom: 22px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; width: min(100%, 360px); }
.cta-row .btn { width: 100%; }

@media (max-height: 700px) and (max-width: 759px) {
  .hero-cover { width: min(44vw, 30svh, 220px); }
  .headline { margin-top: 14px; }
  .sub { font-size: 15px; margin-bottom: 16px; }
  .hero-inner { gap: 18px; }
}
@media (min-width: 760px) {
  .cta-row { flex-direction: row; width: auto; }
  .cta-row .btn { width: auto; }
}
@media (min-width: 960px) {
  .hero { padding: 100px 0 80px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(48px, 6vw, 96px); align-items: center; justify-items: start; text-align: left; }
  .hero-copy { justify-items: start; order: 1; }
  .hero-cover { order: 2; width: min(100%, 460px); justify-self: end; transform: rotate(1.2deg); }
  .wordmark { font-size: clamp(72px, 7.6vw, 116px); margin-left: -.04em; }
  .sub { max-width: 40ch; font-size: 18px; }
}

/* ---------- 2 · HISTORIA ---------- */
.story { position: relative; padding: clamp(88px, 14vw, 168px) 0;
  background: radial-gradient(70% 50% at 50% 45%, rgba(62, 29, 99, .5), transparent 72%), linear-gradient(180deg, var(--ink) 0%, var(--violet-deep) 100%); }
.story-body { margin-top: 40px; font-family: var(--serif); font-size: clamp(22px, 3.6vw, 30px); line-height: 1.45; color: var(--cream-2); }
.story-body p { margin-bottom: 1.05em; }
.story-body .lead { color: var(--cream); font-style: italic; }
.story-body .turn { color: var(--cream); padding-top: .6em; position: relative; }
.story-body .turn::before { content: ""; display: block; width: 56px; height: 1px; background: var(--warm); margin-bottom: 1.1em; }

/* ---------- 3 · ÁLBUM ---------- */
.album { padding: clamp(80px, 12vw, 150px) 0;
  background: radial-gradient(70% 45% at 85% 45%, rgba(240, 24, 92, .14), transparent 75%), linear-gradient(180deg, var(--violet-deep) 0%, #24112e 100%); }
.album-grid { display: grid; gap: 56px; }
.art-frame { position: relative; border-radius: 6px; overflow: hidden; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.art-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(255, 255, 255, .14), transparent 40%); pointer-events: none; }
.album-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px clamp(22px, 6vw, 44px); margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.album-facts dt { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-3); }
.album-facts dd { margin: 4px 0 0; font-family: var(--serif); font-size: 20px; white-space: nowrap; }
.journey-ends { display: flex; justify-content: space-between; gap: 16px; margin: 28px 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.journey-ends span:last-child { color: var(--gold); text-align: right; }

.tracks { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.tracks::before { content: ""; position: absolute; left: 6px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; background: var(--journey); opacity: .9; }
.tracks li { position: relative; display: flex; align-items: baseline; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.tracks li:last-child { border-bottom: 0; }
.tracks li::before { content: ""; position: absolute; left: -24px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 0 4px rgba(15, 10, 21, .9), 0 0 16px var(--c); }
.tracks .n { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--c); min-width: 22px; font-variant-numeric: tabular-nums; }
.tracks .t { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; }
.tracks li:nth-child(1)  { --c: #8b5cd0; }
.tracks li:nth-child(2)  { --c: #a74bc4; }
.tracks li:nth-child(3)  { --c: #cf3aa0; }
.tracks li:nth-child(4)  { --c: #ef2a78; }
.tracks li:nth-child(5)  { --c: #f6365e; }
.tracks li:nth-child(6)  { --c: #fa4c3f; }
.tracks li:nth-child(7)  { --c: #f5653f; }
.tracks li:nth-child(8)  { --c: #ef7e40; }
.tracks li:nth-child(9)  { --c: #f39a52; }
.tracks li:nth-child(10) { --c: #f4b061; }
.tracks li:nth-child(10) .t { color: #fff3e2; }

@media (min-width: 960px) {
  .album-grid { grid-template-columns: .95fr 1.05fr; gap: 88px; align-items: start; }
  .album-art { position: sticky; top: 48px; }
}

/* ---------- 4 · ARTISTA ---------- */
.artist { position: relative; padding: clamp(80px, 12vw, 150px) 0; overflow: hidden;
  background: radial-gradient(55% 55% at 30% 50%, rgba(236, 122, 63, .20), transparent 70%), linear-gradient(180deg, #24112e 0%, #2a1226 100%); }
.artist-grid { display: grid; gap: 48px; align-items: center; }
.artist-photo { margin: 0 auto; width: min(78vw, 440px); aspect-ratio: 1; position: relative; }
.artist-photo::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(244, 176, 97, .35), transparent 65%); filter: blur(20px); z-index: 0; }
.artist-photo img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; }
.headline-sm { font-size: clamp(24px, 4vw, 34px); line-height: 1.2; color: var(--gold); margin: 14px 0 16px; }
.artist-copy p:not(.kicker):not(.headline-sm) { color: var(--cream-2); max-width: 46ch; font-size: 18px; }
.text-link { display: inline-flex; gap: 8px; margin-top: 8px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(244, 176, 97, .5); padding-bottom: 3px; }
.text-link:hover { border-color: var(--gold); }
@media (min-width: 960px) { .artist-grid { grid-template-columns: 1fr 1fr; gap: 96px; } .artist-photo { margin: 0; } }

/* ---------- 5 · ESCUCHA ---------- */
.listen { position: relative; padding: clamp(96px, 14vw, 170px) 0; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #2a1226 0%, #331421 45%, #2b1018 100%); }
.listen-glow { position: absolute; z-index: -1; left: 50%; top: 55%; width: 900px; height: 900px; max-width: 160vw; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 176, 97, .42) 0%, rgba(250, 76, 63, .24) 32%, rgba(240, 24, 92, .10) 52%, transparent 70%);
  animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .75; } to { opacity: 1; } }
.listen .display { font-size: clamp(40px, 8vw, 80px); }
.nowrap { white-space: nowrap; }
.listen-sub { text-wrap: balance; font-family: var(--serif); font-size: clamp(22px, 3.6vw, 28px); color: var(--cream-2); margin: 20px 0 34px; }
.presave-pending { max-width: 40ch; margin: 0 auto; color: var(--cream-2); font-size: 16px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(15, 10, 21, .35); }
.presave-pending a { color: var(--gold); font-weight: 600; }
.state-live { display: none; }
body[data-mode="live"] .state-pre { display: none; }
body[data-mode="live"] .state-live { display: block; }
.platforms { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.platform { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 14px 22px; border-radius: 14px; text-decoration: none; font-weight: 600;
  background: rgba(15, 10, 21, .45); border: 1px solid rgba(246, 234, 216, .2); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.platform:hover { border-color: var(--gold); background: rgba(15, 10, 21, .65); transform: translateY(-1px); }
.platforms li:first-child .platform { background: var(--warm); color: #1a0d14; border-color: transparent; }
@media (min-width: 640px) { .platforms { grid-template-columns: 1fr 1fr; } }

/* ---------- 6 · REDES + FOOTER ---------- */
.social { padding: 64px 0 56px; background: #2b1018; border-top: 1px solid var(--line); }
.social .kicker { margin-bottom: 18px; }
.social-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.social-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 22px; border: 1px solid rgba(246, 234, 216, .26); border-radius: var(--radius); text-decoration: none; font-weight: 600; transition: border-color .2s; }
.social-list a:hover { border-color: var(--gold); }
.social-list .handle { color: var(--cream-3); font-weight: 500; }

.footer { background: var(--ink); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: flex-end; }
.footer-name { font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; margin: 0 0 2px; }
.footer-album { font-family: var(--serif); font-size: 24px; margin: 0; color: var(--gold); }
.footer-legal { margin: 0; font-size: 13px; color: var(--cream-3); }
.footer-legal a { color: var(--cream-2); }

/* ---------- CTA fijo móvil ---------- */
.sticky-cta { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(15, 10, 21, .92) 40%); transform: translateY(110%); transition: transform .35s var(--ease); pointer-events: none; }
.sticky-cta.is-on { transform: none; pointer-events: auto; }
.sticky-cta .btn { width: 100%; }
@media (min-width: 760px) { .sticky-cta { display: none; } }

/* ---------- Animaciones de entrada ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.reveal-in { animation: rise 1.1s var(--ease) both; }
.hero-copy > * { animation: rise 1s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .14s; }
.hero-copy > *:nth-child(4) { animation-delay: .22s; }
.hero-copy > *:nth-child(5) { animation-delay: .3s; }
.hero-copy > *:nth-child(6) { animation-delay: .38s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (min-width: 960px) { .hero-cover.reveal-in { animation-name: rise-tilt; } }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(20px) rotate(1.2deg); } to { opacity: 1; transform: rotate(1.2deg); } }

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