/* =============================================================
   PONY — Paula Salinas · prototipo v1
   Arquetipo: galería nocturna brutalista. La obra pone el color;
   el cromo es tinta, papel y un único acento rosa (su firma PONY).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Colores fijos (no cambian con el tema) */
  --ink-fixed: #0f0e0d;
  --cream-fixed: #f4efe6;
  --pink-ink: #2a0517;
  --lime: #d4ff3a;

  /* Tema oscuro (por defecto) */
  --bg: #0f0e0d;
  --bg-2: #181614;
  --bg-3: #221f1c;
  --paper: #f4efe6;
  --paper-2: #e9e2d5;
  --muted: #a8a198;
  --line: rgba(244, 239, 230, 0.14);
  --pink: #ff4fa3;
  --accent-2: var(--lime);
  --glass: rgba(15, 14, 13, .4);
  --nav-bg: rgba(15, 14, 13, .72);
  --veil-a: rgba(10, 9, 8, .96);
  --veil-b: rgba(10, 9, 8, .86);
  --veil-c: rgba(10, 9, 8, .78);
  --stroke: rgba(244, 239, 230, .9);
  --title-shadow: rgba(0, 0, 0, .85);
  --book-glow: #241f1b;
  --stage: #0b0a09;
  --shadow: rgba(0, 0, 0, .8);
  color-scheme: dark;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* Tema claro: papel de acuarela, tinta y el mismo rosa PONY */
:root[data-theme="light"] {
  --bg: #f4efe6;
  --bg-2: #ebe4d7;
  --bg-3: #e1d8c8;
  --paper: #151311;
  --paper-2: #2e2a26;
  --muted: #6b635a;
  --line: rgba(21, 19, 17, 0.16);
  --pink: #e8227f;
  --accent-2: #4f7a00;
  --glass: rgba(244, 239, 230, .55);
  --nav-bg: rgba(244, 239, 230, .8);
  --veil-a: rgba(244, 239, 230, .97);
  --veil-b: rgba(244, 239, 230, .88);
  --veil-c: rgba(244, 239, 230, .8);
  --stroke: rgba(21, 19, 17, .85);
  --title-shadow: rgba(80, 60, 40, .35);
  --book-glow: #e6dccb;
  --stage: #e3dbcd;
  --shadow: rgba(60, 45, 30, .35);
  color-scheme: light;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 em, h3 em { font-style: normal; color: var(--pink); }
::selection { background: var(--pink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--paper); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.mono { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; }
.small { font-size: 0.7rem; color: var(--muted); line-height: 1.5; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 1rem; }
.section-head { padding: 0 var(--gutter); max-width: 1100px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head > p:last-child { color: var(--muted); max-width: 54ch; margin-top: 1.2rem; font-size: 1.05rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center > p:last-child { margin-inline: auto; }

/* =============================================================
   4. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform .4s var(--ease-out), background .3s, color .3s, box-shadow .4s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: var(--pink-ink); box-shadow: 0 10px 30px -10px rgba(255, 79, 163, .6); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 79, 163, .8); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--paper); background: var(--glass); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--paper); }
.btn.wide { width: 100%; }

.chip {
  padding: .55rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--paper-2);
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--paper); }
.chip.is-active { background: var(--paper); color: var(--bg); border-color: var(--paper); }

.round {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line);
  display: inline-grid; place-items: center; font-size: 1rem;
  transition: background .25s, color .25s, border-color .25s;
}
.round:hover { background: var(--paper); color: var(--bg); border-color: var(--paper); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); vertical-align: middle; margin-right: .4rem; animation: pulse 2.4s ease-in-out infinite; }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 14px var(--gutter);
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease-out);
}
.nav.is-solid { background: var(--nav-bg); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; }
.nav-logo span { font-size: .7rem; vertical-align: super; color: var(--pink); }
.nav-links { display: none; gap: 1.8rem; font-size: .92rem; font-weight: 500; }
.nav-links a { position: relative; color: var(--paper-2); }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--pink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cart { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--glass); }
.nav-cart svg { width: 22px; height: 22px; }
.nav-cart-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: var(--pink-ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease-out); }
.nav-cart.has-items .nav-cart-count { transform: scale(1); }
.nav-cart.bump { animation: bump .5s var(--ease-out); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Hero: mosaico + linterna ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; align-items: end;
  --x: 50%; --y: 45%; --mx: 0; --my: 0;
}
.hero-mosaic {
  position: absolute; inset: -6%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px;
  transform: translate3d(calc(var(--mx) * -18px), calc(var(--my) * -18px), 0) scale(1.04);
  transition: transform 1.2s var(--ease-out);
}
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15); }
.hero-mosaic img:nth-child(n+10) { display: none; }
.hero-dark {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 100%, var(--veil-a) 0%, var(--veil-b) 60%, var(--veil-c) 100%);
  -webkit-mask-image: radial-gradient(circle at var(--x) var(--y), transparent 0, transparent 110px, #000 320px);
          mask-image: radial-gradient(circle at var(--x) var(--y), transparent 0, transparent 110px, #000 320px);
}
.hero-inner { position: relative; z-index: 2; padding: 120px var(--gutter) clamp(48px, 8vh, 96px); pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-kicker { color: var(--paper-2); margin-bottom: 1rem; }
.hero-title { font-size: clamp(7rem, 31vw, 30rem); line-height: .78; letter-spacing: -0.06em; margin-left: -0.04em; }
.hero-word {
  display: inline-block;
  background-image: url("assets/img/madrugada-2.webp");
  background-size: 180% auto; background-position: 0% 50%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px var(--stroke);
  animation: pan 22s ease-in-out infinite alternate;
  filter: saturate(1.3) contrast(1.05) drop-shadow(0 18px 40px var(--title-shadow));
}
.hero-lede { max-width: 46ch; font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--paper-2); margin: 1.6rem 0 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-hint { position: absolute; right: var(--gutter); bottom: 64px; z-index: 2; color: var(--muted); display: none; }

/* ---------- Marquee ---------- */
.marquee { background: var(--pink); color: var(--pink-ink); overflow: hidden; transform: rotate(-1.6deg) scale(1.03); margin: -18px 0 0; position: relative; z-index: 3; border-block: 2px solid var(--bg); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 1.6rem; padding: 14px 0; animation: marquee 32s linear infinite; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.4rem); letter-spacing: -0.02em; text-transform: uppercase; }
.marquee-track i { font-style: normal; font-size: .7em; }

/* ---------- Serie Madrugada (scroll horizontal) ---------- */
.series { position: relative; height: 420vh; margin-top: clamp(4rem, 10vw, 8rem); }
.series-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 2rem; padding-top: 70px; --s: calc((100svh - 370px) / 200); }
.series-head { padding: 0 var(--gutter); display: grid; gap: .4rem; max-width: 900px; }
.series-head h2 em { font-weight: 400; }
.series-head > p:not(.eyebrow) { color: var(--muted); max-width: 52ch; }
.series-progress { height: 2px; background: var(--line); width: min(320px, 60vw); margin-top: .8rem; overflow: hidden; }
.series-progress span { display: block; height: 100%; width: 100%; background: var(--pink); transform-origin: left; transform: scaleX(0); }
.series-track { display: flex; align-items: flex-end; gap: clamp(48px, 7vw, 120px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.piece { cursor: pointer; flex: none; }
.piece-stage { display: flex; align-items: flex-end; }
.piece-stage img {
  height: calc(var(--hcm) * var(--s)); width: auto; max-width: none;
  box-shadow: 0 30px 60px -20px var(--shadow);
  transition: transform .7s var(--ease-out), filter .5s;
}

/* Cotas: medidas reales dibujadas como en un plano */
.piece-frame { position: relative; margin: 0 46px 34px 0; }
.dim { position: absolute; color: var(--muted); pointer-events: none; }
.dim b { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em; background: var(--bg); padding: 0 .5em; white-space: nowrap; }
.dim-w { left: 0; right: 0; bottom: -22px; height: 1px; background: currentColor; display: grid; place-items: center; }
.dim-h { top: 0; bottom: 0; right: -24px; width: 1px; background: currentColor; display: grid; place-items: center; }
.dim-h b { transform: rotate(-90deg); }
.dim::before, .dim::after { content: ""; position: absolute; background: currentColor; }
.dim-w::before, .dim-w::after { top: -5px; width: 1px; height: 11px; }
.dim-w::before { left: 0; } .dim-w::after { right: 0; }
.dim-h::before, .dim-h::after { left: -5px; height: 1px; width: 11px; }
.dim-h::before { top: 0; } .dim-h::after { bottom: 0; }
.piece:hover .dim { color: var(--pink); }
.dim { transition: color .4s; }
.piece-meta { margin-top: 1rem; color: var(--paper-2); }
.piece-meta b { color: var(--pink); margin-right: .6rem; }

/* ---------- Tienda ---------- */
.shop { padding: clamp(6rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 6rem); }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; padding: 0 var(--gutter); margin-bottom: 2rem; }
.grid { columns: 1; column-gap: 18px; padding: 0 var(--gutter); }
.card { break-inside: avoid; margin-bottom: 26px; cursor: pointer; transition: opacity .4s, transform .5s var(--ease-out); }
.card.is-out { display: none; }
.card.is-in { animation: rise .7s var(--ease-out) both; }
.card-media { position: relative; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.card-media img { width: 100%; transition: transform 1s var(--ease-out); }
.card:hover .card-media img { transform: scale(1.045); }
.card-badge { position: absolute; top: 10px; left: 10px; padding: .25rem .55rem; border-radius: 99px; background: rgba(15,14,13,.7); color: var(--cream-fixed); backdrop-filter: blur(6px); font-family: var(--mono); font-size: .66rem; letter-spacing: .04em; }
.card-badge.is-avail { top: auto; bottom: 10px; background: var(--lime); color: #151a00; backdrop-filter: none; }
.card-add { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); color: var(--bg); font-size: 1.4rem; font-weight: 500; display: grid; place-items: center; transform: translateY(8px) scale(.9); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s, background .2s; }
.card:hover .card-add, .card-add:focus-visible { opacity: 1; transform: none; }
.card-add:hover { background: var(--pink); }
.card-body { display: flex; justify-content: space-between; gap: 1rem; padding-top: .8rem; }
.card-title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; letter-spacing: -0.01em; }
.card-tech { color: var(--muted); margin-top: .2rem; }
.card-price { white-space: nowrap; text-align: right; }
.card-price b { display: block; font-family: var(--sans); font-size: .95rem; }
.noscript { color: var(--muted); }

/* ---------- Flipbook ---------- */
.book-sec { padding: clamp(5rem, 10vw, 8rem) 0; background: radial-gradient(80% 60% at 50% 40%, var(--book-glow) 0%, var(--bg) 70%); }
.book-wrap { display: grid; justify-items: center; gap: 1.6rem; padding: 0 var(--gutter); }
.book {
  position: relative; width: min(1040px, 100%); aspect-ratio: 2 / 1.32;
  perspective: 2600px; outline-offset: 10px;
  transition: transform .9s var(--ease-out);
}
.book.at-start { transform: translateX(-25%); }
.book.at-end { transform: translateX(25%); }
.sheet {
  position: absolute; top: 0; left: 50%; width: 50%; height: 100%;
  transform-origin: left center; transform-style: preserve-3d;
  transition: transform 1s var(--ease-out);
  cursor: pointer;
}
.sheet.is-flipped { transform: rotateY(-180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--cream-fixed); color: var(--ink-fixed); overflow: hidden;
  display: flex; flex-direction: column; padding: clamp(12px, 3%, 32px);
  box-shadow: inset 18px 0 30px -18px rgba(0,0,0,.35);
  border-radius: 0 6px 6px 0;
}
.face.back { transform: rotateY(180deg); border-radius: 6px 0 0 6px; box-shadow: inset -18px 0 30px -18px rgba(0,0,0,.35); }
.face::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent 12%); }
.face.back::after { background: linear-gradient(-90deg, rgba(0,0,0,.06), transparent 12%); }
.face .pg-img { flex: 1; min-height: 0; display: grid; place-items: center; }
.face .pg-img img { max-height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.face .pg-meta { font-family: var(--mono); font-size: clamp(.5rem, 1.1vw, .72rem); line-height: 1.5; padding-top: .8em; display: flex; justify-content: space-between; gap: 1em; }
.face .pg-meta b { font-family: var(--display); font-size: 1.5em; letter-spacing: -0.02em; }
/* Portada del libro */
.face.cover {
  container-type: size;
  background: var(--ink-fixed); color: var(--cream-fixed);
  padding: 6% 6% 5% 8%; gap: 0;
  box-shadow: inset 7px 0 0 rgba(255,255,255,.05), inset 9px 0 14px -6px rgba(0,0,0,.8);
  border: 1px solid rgba(244,239,230,.08);
}
.face.cover::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.07) 45%, transparent 55%); }
.face.cover::after { background: linear-gradient(90deg, rgba(0,0,0,.45), transparent 5%); }
.cv-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: max(7px, 2.5cqw); letter-spacing: .14em; text-transform: uppercase; color: rgba(244,239,230,.85); margin-bottom: 5cqw; }
.cv-art { position: absolute; inset: 0; margin: 0; z-index: 0; }
.cv-art img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; filter: saturate(1.12); }
.cv-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.55) 0%, rgba(10,9,8,0) 22%, rgba(10,9,8,0) 45%, rgba(10,9,8,.55) 68%, rgba(10,9,8,.9) 100%); }
.cv-top, .cv-title, .cv-foot, .cv-credit { position: relative; z-index: 2; }
.cv-credit { position: absolute; left: 8%; bottom: 1.8%; font-family: var(--mono); font-size: max(6px, 1.9cqw); letter-spacing: .12em; text-transform: uppercase; color: rgba(244,239,230,.5); }
.cv-title { position: relative; z-index: 2; display: grid; margin-top: auto; font-family: var(--display); font-weight: 800; font-size: 25cqw; line-height: .78; letter-spacing: -0.055em; text-shadow: 0 2cqw 5cqw rgba(0,0,0,.55); }
.cv-title span:last-child { margin-left: 12cqw; }
.cv-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 4cqw; }
.cv-foot b { font-family: var(--display); font-weight: 800; font-size: 10cqw; line-height: .8; letter-spacing: -0.04em; color: #ff4fa3; }
.cv-foot span { font-family: var(--mono); font-size: max(7px, 2.5cqw); letter-spacing: .1em; text-transform: uppercase; text-align: right; line-height: 1.5; color: rgba(244,239,230,.75); }
@media (hover: hover) and (pointer: fine) {
  .book.at-start .sheet:first-child:hover { transform: rotateY(-14deg); }
}
.face.text { justify-content: center; gap: 1em; font-size: clamp(.62rem, 1.35vw, 1rem); line-height: 1.55; }
.face.text h4 { font-family: var(--display); font-size: 2.2em; letter-spacing: -0.03em; line-height: 1; }
.face.end { background: var(--pink); color: var(--pink-ink); justify-content: center; align-items: flex-start; gap: .6em; }
.face.end strong { font-family: var(--display); font-size: clamp(1.4rem, 4vw, 3.4rem); line-height: .9; letter-spacing: -0.04em; }
.book-ui { display: flex; align-items: center; gap: 1.2rem; }
.book-ui span { min-width: 9ch; text-align: center; color: var(--muted); }

/* ---------- Encargos ---------- */
.commission { padding: clamp(6rem, 12vw, 10rem) 0; }
.records { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 56px); padding: 0 var(--gutter); margin-bottom: clamp(4rem, 8vw, 6rem); }
.record { position: relative; width: min(100%, 360px); justify-self: center; outline-offset: 8px; }
.record-sleeve { position: relative; z-index: 2; aspect-ratio: 1; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.9); transition: transform .8s var(--ease-out); }
.record-sleeve img { width: 100%; height: 100%; object-fit: cover; }
.record-vinyl {
  position: absolute; z-index: 1; top: 4%; left: 4%; width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 2px, #1c1c1c 2px 4px);
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.05);
  display: grid; place-items: center;
  transition: transform 1s var(--ease-out);
}
.record-vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 20%, rgba(255,255,255,.08) 25%, transparent 30% 70%, rgba(255,255,255,.06) 75%, transparent 80%); }
.record-vinyl span { width: 34%; aspect-ratio: 1; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 4px #0b0b0b; position: relative; }
.record-vinyl span::after { content: ""; position: absolute; inset: 46%; border-radius: 50%; background: var(--ink-fixed); }
.record:hover .record-vinyl, .record:focus-visible .record-vinyl { transform: translateX(38%) rotate(200deg); }
.record:hover .record-sleeve, .record:focus-visible .record-sleeve { transform: translateX(-10%) rotate(-2deg); }
.record figcaption { margin-top: 1.1rem; display: grid; gap: .1rem; }
.record figcaption b { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.02em; }
.record figcaption span { color: var(--muted); }

.config { margin: 0 var(--gutter); display: grid; gap: 18px; }
.config-steps, .config-quote { background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3.5vw, 40px); }
.config-steps { display: grid; gap: 1.8rem; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { color: var(--muted); margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opts label { position: relative; }
.opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opts span { display: inline-block; padding: .7rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.opts input:hover + span { border-color: var(--paper); }
.opts input:checked + span { background: var(--paper); color: var(--bg); border-color: var(--paper); }
.opts input:focus-visible + span { outline: 2px solid var(--pink); outline-offset: 3px; }
.idea { display: grid; gap: .8rem; }
.idea .mono { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.idea textarea { font: inherit; color: var(--paper); background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem; resize: vertical; }
.idea textarea:focus { outline: none; border-color: var(--pink); }
.config-quote { display: grid; gap: .9rem; align-content: start; position: relative; overflow: hidden; }
.config-quote::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255,79,163,.25), transparent 70%); top: -140px; right: -120px; pointer-events: none; }
.quote-price { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; }
.quote-time { color: var(--accent-2); }
.quote-steps { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: grid; gap: .55rem; counter-reset: s; }
.quote-steps li { counter-increment: s; position: relative; padding-left: 2.2rem; color: var(--muted); font-size: .92rem; }
.quote-steps li::before { content: "0" counter(s); position: absolute; left: 0; top: .2rem; font-family: var(--mono); font-size: .72rem; color: var(--pink); }
.quote-steps b { color: var(--paper); margin-right: .35rem; }
.quote-note { color: var(--muted); font-size: .68rem; }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: clamp(2rem, 5vw, 5rem); padding: clamp(5rem, 10vw, 9rem) var(--gutter); align-items: center; border-top: 1px solid var(--line); }
.about-photo { position: relative; max-width: 460px; }
.about-photo img { border-radius: 10px; aspect-ratio: 4 / 5.4; object-fit: cover; width: 100%; }
.about-photo .tag { position: absolute; left: 14px; bottom: 14px; padding: .35rem .7rem; border-radius: 99px; background: rgba(15,14,13,.75); color: var(--cream-fixed); backdrop-filter: blur(6px); }
.statement { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2.7rem); line-height: 1.15; letter-spacing: -0.02em; }
.statement .w { opacity: .18; transition: opacity .4s; }
.statement .w.on { opacity: 1; }
.about-more { color: var(--muted); max-width: 60ch; margin-top: 1.8rem; }
.sign { margin-top: 1.4rem; font-family: var(--display); font-size: 1.2rem; }
.sign em { color: var(--pink); font-style: normal; }

/* ---------- Hub / contacto ---------- */
.hub { padding: clamp(5rem, 10vw, 9rem) var(--gutter) clamp(4rem, 8vw, 6rem); text-align: center; }
.hub-title { font-size: clamp(4rem, 16vw, 14rem); line-height: .85; letter-spacing: -0.06em; }
.hub-title em { font-style: normal; color: var(--pink); }
.hub > p { color: var(--muted); margin: 1.4rem auto 2.6rem; max-width: 44ch; }
.hub-links { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.hub-link {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem;
  padding: 1.3rem 1.6rem; border-radius: 18px; border: 1.5px solid var(--line); text-align: left;
  font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -0.01em;
  transition: color .4s, border-color .4s;
  isolation: isolate;
}
.hub-link::before { content: ""; position: absolute; inset: 0; background: var(--pink); transform: translateY(101%); transition: transform .55s var(--ease-out); z-index: -1; }
.hub-link:hover { color: var(--pink-ink); border-color: var(--pink); }
.hub-link:hover::before { transform: none; }
.hub-link b { font-weight: 400; color: inherit; opacity: .7; }
.hub-link i { font-style: normal; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 26px var(--gutter) 70px; border-top: 1px solid var(--line); color: var(--muted); }

/* ---------- Modal de obra ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 12px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 5, 4, .82); backdrop-filter: blur(8px); animation: fade .35s both; }
.modal-panel {
  position: relative; width: min(1180px, 100%); max-height: calc(100svh - 24px); overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px;
  display: grid; grid-template-columns: 1fr; animation: pop .55s var(--ease-out) both;
}
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 5; background: var(--glass); backdrop-filter: blur(6px); }
.modal-media { position: relative; background: var(--stage); display: grid; grid-template-rows: 1fr auto; min-height: 340px; }
.zoom { position: relative; display: grid; place-items: center; padding: clamp(16px, 3vw, 40px); overflow: hidden; cursor: zoom-in; }
.zoom img { max-height: min(62svh, 720px); width: auto; max-width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.zoom-lens { position: absolute; width: 180px; height: 180px; border-radius: 50%; pointer-events: none; border: 2px solid var(--paper); box-shadow: 0 10px 40px rgba(0,0,0,.6); background-repeat: no-repeat; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .25s, transform .35s var(--ease-out); }
.zoom.is-zooming .zoom-lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.media-toggle { display: flex; gap: .4rem; justify-content: center; padding: 0 0 16px; }

.room { position: relative; min-height: min(62svh, 620px); overflow: hidden; background: linear-gradient(180deg, #d9d2c5 0%, #cfc6b7 78%); }
.room-wall { position: absolute; inset: 0 0 18% 0; }
.room-art { position: absolute; left: 50%; transform: translateX(-50%); background: #fff; padding: 0; box-shadow: 0 18px 30px -12px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.2); transition: width .7s var(--ease-out), height .7s var(--ease-out), bottom .7s var(--ease-out), padding .5s; display: grid; place-items: center; }
.room-art.is-print { padding: 3.5%; outline: 6px solid #1c1a18; }
.room-art img { width: 100%; height: 100%; object-fit: cover; }
.room-sofa { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); transition: width .7s var(--ease-out), height .7s var(--ease-out); }
.room-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(180deg, #8a6f55, #6e5641); }
.room-scale { position: absolute; left: 14px; top: 12px; margin-right: 64px; color: #2a2622; background: rgba(255,255,255,.6); padding: .3rem .6rem; border-radius: 99px; }

.modal-info { padding: clamp(22px, 3.5vw, 44px); display: grid; gap: 1rem; align-content: start; }
.modal-info h3 { font-size: clamp(2rem, 4vw, 3.2rem); }
.ficha { display: grid; gap: .5rem; border-block: 1px solid var(--line); padding: 1rem 0; }
.ficha div { display: grid; grid-template-columns: 7rem 1fr; gap: .8rem; }
.ficha dt { color: var(--muted); }
.ficha dd { margin: 0; }
.formats > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.fmt { border: 1.5px solid var(--line); border-radius: 14px; padding: .7rem .6rem; text-align: left; display: grid; gap: .1rem; transition: border-color .25s, background .25s; }
.fmt:hover { border-color: var(--paper); }
.fmt.is-active { border-color: var(--pink); background: rgba(255, 79, 163, .09); }
.fmt b { font-family: var(--display); font-size: 1.3rem; }
.fmt span { font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.m-price { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; }
.m-nav { display: flex; gap: .5rem; justify-content: flex-end; }

/* ---------- Carrito ---------- */
.cart { position: fixed; inset: 0; z-index: 120; }
.cart-backdrop { position: absolute; inset: 0; background: rgba(5,5,4,.7); animation: fade .3s both; }
.cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr auto; animation: slide .5s var(--ease-out) both; }
.cart-panel header, .cart-panel footer { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.cart-panel footer { display: grid; border-top: 1px solid var(--line); }
.cart-panel h3 { font-size: 1.8rem; }
.cart-list { list-style: none; padding: 0 22px; overflow: auto; display: grid; align-content: start; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.cart-item b { display: block; font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.cart-item .mono { color: var(--muted); }
.cart-item button { color: var(--muted); font-size: .8rem; text-decoration: underline; }
.cart-empty { color: var(--muted); padding: 2rem 0; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.1rem; }
.cart-total b { font-family: var(--display); font-size: 1.6rem; }

/* ---------- Toast, etiqueta, cursor ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--paper); color: var(--bg); padding: .8rem 1.2rem; border-radius: 99px; font-size: .8rem; transition: transform .5s var(--ease-out), visibility 0s .5s; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }
.proto-tag { position: fixed; right: 12px; bottom: 12px; z-index: 60; padding: .35rem .7rem; border-radius: 99px; background: var(--lime); color: #151a00; font-size: .64rem; font-weight: 500; pointer-events: none; }
.cursor { position: fixed; top: 0; left: 0; z-index: 300; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--pink); pointer-events: none; display: none; place-items: center; transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s; mix-blend-mode: normal; }
.cursor span { font-family: var(--mono); font-size: .7rem; color: var(--pink-ink); opacity: 0; transition: opacity .2s; }
.cursor.is-big { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
.cursor.is-big span { opacity: 1; }

/* =============================================================
   7. Effects
   ============================================================= */
@keyframes pan { to { background-position: 100% 50%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes slide { from { transform: translateX(100%); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .grid { columns: 2; }
  .hero-mosaic { grid-template-columns: repeat(4, 1fr); }
  .hero-mosaic img:nth-child(n+10) { display: block; }
}
@media (min-width: 720px) {
  .records { grid-template-columns: repeat(3, 1fr); }
  .hero-hint { display: block; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .grid { columns: 3; column-gap: 26px; }
  .config { grid-template-columns: 1.5fr 1fr; }
  .config-quote { position: sticky; top: 90px; }
  .about { grid-template-columns: minmax(280px, 0.8fr) 1.2fr; }
  .modal-panel { grid-template-columns: 1.35fr 1fr; overflow: hidden; }
  .modal-info { overflow: auto; max-height: calc(100svh - 24px); }
  .hub-links { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
  .grid { columns: 4; }
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: grid; }
}
@media (max-width: 539px) {
  .series-sticky { --s: calc((100svh - 400px) / 200); }
  .hero-inner { padding-bottom: 40px; }
  .card-add { opacity: 1; transform: none; }
}

/* =============================================================
   9. Reduced motion — solo efectos intrusivos
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 90s; }
  .hero-word { animation: none; }
  .dot { animation: none; }
}

/* Enlace "Escuchar en Spotify" bajo las portadas */
.record .listen { display: inline-flex; align-items: center; gap: .5rem; margin-top: .6rem; justify-self: start; padding: .45rem .85rem .45rem .5rem; border-radius: 99px; border: 1.5px solid var(--line); color: var(--paper); transition: border-color .25s, background .25s, color .25s; }
.record .listen svg { width: 20px; height: 20px; }
.record .listen:hover { border-color: #1ed760; background: #1ed760; color: #0f0e0d; }

/* Botón de tema + contenedor de acciones del nav */
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.nav-theme { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--glass); transition: border-color .25s, transform .5s var(--ease-out); }
.nav-theme:hover { border-color: var(--paper); transform: rotate(-20deg); }
.nav-theme svg { width: 21px; height: 21px; grid-area: 1 / 1; transition: opacity .35s, transform .5s var(--ease-out); }
.nav-theme .i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="light"] .nav-theme .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="light"] .nav-theme .i-moon { opacity: 1; transform: none; }
.nav-cart:hover { border-color: var(--paper); }

/* Transición suave al cambiar de tema */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .45s ease, color .45s ease, border-color .45s ease !important;
}

/* Ajustes del tema claro */
:root[data-theme="light"] .hero-mosaic img { filter: saturate(1.1); }
:root[data-theme="light"] .marquee { border-color: var(--bg); }
:root[data-theme="light"] .config-quote::before { background: radial-gradient(circle, rgba(232,34,127,.16), transparent 70%); }
:root[data-theme="light"] .btn-primary { color: #fff; }
:root[data-theme="light"] .face { box-shadow: inset 18px 0 30px -18px rgba(0,0,0,.18), 0 0 0 1px rgba(21,19,17,.1), 0 24px 40px -18px rgba(60,45,30,.35); }
:root[data-theme="light"] .face.back { box-shadow: inset -18px 0 30px -18px rgba(0,0,0,.18), 0 0 0 1px rgba(21,19,17,.1), 0 24px 40px -18px rgba(60,45,30,.35); }
:root[data-theme="light"] .face.cover { box-shadow: 0 24px 40px -18px rgba(60,45,30,.45); }

/* Lista de series: todas visibles, el resaltado va rotando; clic = filtra la tienda */
.series-nav { line-height: 2; }
.series-link { color: var(--muted); position: relative; white-space: nowrap; transition: color .35s; }
.series-sep { color: var(--muted); opacity: .5; margin: 0 .3em; }
.series-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: 1.5px; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.series-link.is-hot { color: var(--pink); }
.series-link.is-hot::after { animation: seriesTimer 2.6s linear both; }
.series-nav.is-paused .series-link.is-hot::after { animation: none; transform: scaleX(1); }
.series-link:hover { color: var(--pink); }
@keyframes seriesTimer { to { transform: scaleX(1); } }

.filter-note { margin: -1rem var(--gutter) 1.6rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.filter-note b { color: var(--pink); font-weight: 500; }
.filter-note button { text-decoration: underline; color: var(--paper-2); }
/* Portada pequeña (celular): sin pie de foto para que no choque con el título */
@container (max-width: 280px) { .cv-credit { display: none; } }

/* Cinta "Vendido": diagonal fina en la esquina inferior derecha, en el lima de "Original disponible" */
.sold-ribbon {
  position: absolute; right: -44px; bottom: 16px; width: 150px; z-index: 2;
  transform: rotate(-45deg); text-align: center; pointer-events: none;
  background: var(--lime); color: #151a00;
  font-family: var(--mono); font-size: .6rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  padding: .22rem 0; box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.card.is-sold .card-add { right: auto; left: 10px; }
