/* =========================================================
   J. J. MUGAR — Web de autor
   Arquetipo: Editorial Dark Warm (adaptado a librería)
   ========================================================= */

:root {
  --bg:       #110D0B;
  --bg-2:     #18120F;
  --bg-3:     #211915;
  --cream:    #F2EBDA;
  --cream-2:  #D9CDB5;
  --cream-3:  #9A8B72;
  --accent:   #B8402E;   /* rojo vino de Córdoba */
  --accent-2: #962F20;
  --gold:     #C9A063;
  --gold-2:   #E2C38E;
  --line:     rgba(242,235,218,.12);
  --line-2:   rgba(242,235,218,.22);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
main, .footer, .section, .hero { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--cream); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--bg); padding: 8px 14px; z-index: 999; }
.skip:focus { left: 12px; top: 12px; }


/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(17,13,11,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.brand em { color: var(--gold); font-style: italic; font-weight: 400; }
.nav-links { display: flex; gap: 30px; align-items: center; font-size: 14px; letter-spacing: .04em; }
.nav-links a:not(.btn) { color: var(--cream-2); position: relative; padding: 4px 0; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links a:not(.btn):hover { color: var(--cream); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; background: none; border: 0; color: var(--cream); width: 44px; height: 44px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .3s var(--ease), opacity .3s; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: .01em;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--gold); color: #1a120c; }
.btn-primary:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-buy { background: var(--accent); color: var(--cream); width: 100%; justify-content: center; }
.btn-buy:hover { background: var(--accent-2); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero-mesh {
  position: absolute; inset: -10%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 40%, rgba(184,64,46,.30), transparent 70%),
    radial-gradient(35% 45% at 20% 75%, rgba(201,160,99,.14), transparent 70%);
  will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-3%, 2%, 0) scale(1.05); } }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-3); }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(184,64,46,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(184,64,46,0); } 100% { box-shadow: 0 0 0 0 rgba(184,64,46,0); } }
.hero-title {
  font-family: var(--serif); font-weight: 300; line-height: .95; letter-spacing: -.035em;
  font-size: clamp(64px, 11vw, 168px); margin: 22px 0 18px;
  font-variation-settings: "opsz" 144;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .line > span { display: inline-block; }
.hero-title em { font-style: italic; color: var(--gold); font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero-lede { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4; color: var(--cream-2); max-width: 30ch; margin: 0 0 34px; font-weight: 300; }
.hero-lede em { color: var(--cream); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: clamp(22px, 4vw, 48px); margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; color: var(--cream); }
.stat span { font-size: 13px; color: var(--cream-3); letter-spacing: .06em; }

.portrait { position: relative; max-width: 420px; justify-self: end; width: 100%; }
.portrait-frame {
  position: relative; border-radius: 220px 220px var(--radius) var(--radius); overflow: hidden;
  aspect-ratio: 482 / 640; background: var(--bg-3);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: saturate(.96) contrast(1.03); }
.portrait-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(17,13,11,.55)); }
.portrait::before {
  content: ""; position: absolute; inset: -14px; border: 1px solid rgba(201,160,99,.4);
  border-radius: 234px 234px 22px 22px; pointer-events: none;
}
.portrait-sign {
  position: absolute; left: -28px; bottom: 34px; z-index: 2;
  font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--cream);
  font-variation-settings: "SOFT" 100; background: var(--bg); padding: 6px 16px; border: 1px solid var(--line-2); border-radius: 999px;
}
.portrait-sign small { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: block; margin-top: -2px; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cream-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 34px); color: var(--cream-2); white-space: nowrap; font-weight: 300; }
.marquee-track span::after { content: "✦"; font-style: normal; color: var(--gold); font-size: .5em; margin-left: 48px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 28px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 20px; }
.section-title { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.03em; margin: 0; font-variation-settings: "opsz" 144; }
.section-title em { font-style: italic; color: var(--gold); font-variation-settings: "SOFT" 100, "opsz" 144; }
.section-intro { color: var(--cream-2); max-width: 36ch; margin: 0; font-size: 16px; justify-self: end; }

/* ---------- Destacado ---------- */
.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-tag { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.feature h3, .feature-h { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 14px 0 22px; }
.feature h3 em, .feature-h em { color: var(--gold); font-variation-settings: "SOFT" 100; }
.feature p { color: var(--cream-2); font-size: 18px; max-width: 54ch; }
.feature-quote { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--cream); border-left: 2px solid var(--gold); padding-left: 20px; margin: 28px 0; max-width: 46ch; }
.feature-quote small { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--cream-3); margin-top: 8px; }
.feature .book { max-width: 340px; margin: 0 auto; }

/* ---------- Libro 3D ---------- */
.book {
  --w: 100%;
  position: relative; aspect-ratio: 2 / 3; width: var(--w);
  perspective: 1400px;
}
.book-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(-18deg) rotateX(2deg);
  transition: transform .7s var(--ease);
}
.book:hover .book-inner, .card:hover .book-inner, .card:focus-within .book-inner { transform: rotateY(-6deg) rotateX(0) translateZ(10px); }
.book-cover, .book-pages, .book-spine { position: absolute; }
.book-cover {
  inset: 0; border-radius: 3px 7px 7px 3px; overflow: hidden;
  transform: translateZ(14px);
  box-shadow: 18px 22px 40px -10px rgba(0,0,0,.75), inset 4px 0 8px rgba(255,255,255,.08);
}
.book-cover::after { /* brillo de lomo */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.12) 2.5%, rgba(0,0,0,.18) 5%, transparent 9%, transparent 85%, rgba(255,255,255,.06));
}
.book-pages { top: 2%; bottom: 2%; right: -12px; width: 28px; transform: rotateY(90deg) translateZ(0); transform-origin: left; background: repeating-linear-gradient(90deg, #e9e0cb 0 1px, #cfc4ab 1px 2px); border-radius: 0 2px 2px 0; }
.book-spine { top: 0; bottom: 0; left: 0; width: 28px; transform: rotateY(-90deg) translateX(-14px); transform-origin: left; background: var(--bg-3); }

/* Portada tipográfica (siempre presente, debajo de la real) */
.tcover {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 11% 10% 9%; text-align: center; color: var(--c-ink, #F2EBDA);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.10), transparent 60%),
    var(--c-bg, #3a1712);
}
.tcover::before { content: ""; position: absolute; inset: 5%; border: 1px solid var(--c-line, rgba(242,235,218,.35)); pointer-events: none; }
.tcover-genre { font-size: clamp(8px, 1.1vw, 11px); letter-spacing: .26em; text-transform: uppercase; opacity: .8; position: relative; }
.tcover-title { font-family: var(--serif); font-weight: 400; font-size: clamp(17px, 2.3vw, 27px); line-height: 1.05; letter-spacing: -.01em; position: relative; text-wrap: balance; }
.tcover-orn { font-size: 14px; color: var(--c-acc, #C9A063); position: relative; }
.tcover-author { font-size: clamp(8px, 1vw, 11px); letter-spacing: .3em; text-transform: uppercase; position: relative; }
.book-cover img.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.book-cover img.real.ok { opacity: 1; }

/* paletas de portada */
.pal-1 { --c-bg: #4a1a14; --c-acc: #E2C38E; }
.pal-2 { --c-bg: #1f2a24; --c-acc: #C9A063; }
.pal-3 { --c-bg: #2b2016; --c-acc: #E2C38E; }
.pal-4 { --c-bg: #1b1f2e; --c-acc: #D9A68A; }
.pal-5 { --c-bg: #5a3a1a; --c-acc: #F2EBDA; }
.pal-6 { --c-bg: #30141e; --c-acc: #E2C38E; }
.pal-7 { --c-bg: #e9dfc8; --c-ink: #2a1c14; --c-acc: #B8402E; --c-line: rgba(42,28,20,.35); }

/* ---------- Tarjetas de libros ---------- */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.card { display: flex; flex-direction: column; gap: 18px; }
.card .book { padding: 0 8% 0 4%; }
.card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.card-title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.card-text { color: var(--cream-2); font-size: 15px; line-height: 1.55; margin: 0 0 6px; flex: 1; }
.card .btn-buy { margin-top: auto; }

.shelf-poetry { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.shelf-poetry .card-title { font-size: 20px; }

/* ---------- Relatos ---------- */
.stories { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.stories .book { max-width: 300px; }
.story-list { list-style: none; margin: 0 0 32px; padding: 0; counter-reset: s; columns: 2; column-gap: 40px; }
.story-list li { counter-increment: s; break-inside: avoid; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 20px; display: flex; gap: 14px; align-items: baseline; transition: color .3s, padding-left .3s var(--ease); }
.story-list li::before { content: counter(s, decimal-leading-zero); font-family: var(--sans); font-size: 12px; color: var(--gold); letter-spacing: .1em; }
.story-list li:hover { color: var(--gold-2); padding-left: 6px; }

/* ---------- Biografía ---------- */
.bio { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.bio-lead { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; letter-spacing: -.01em; margin: 0; }
.bio-lead::first-letter { float: left; font-size: 3.2em; line-height: .85; padding: 6px 12px 0 0; color: var(--gold); font-style: italic; }
.bio-text p { color: var(--cream-2); margin: 0 0 18px; }
.timeline { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.timeline li { padding: 22px 18px 0 0; position: relative; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid var(--gold); }
.timeline b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--gold); line-height: 1.1; }
.timeline span { font-size: 14px; color: var(--cream-2); }

/* ---------- Música ---------- */
.music { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.songs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.songs span { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--cream-2); transition: border-color .3s, color .3s, background .3s; }
.songs span:hover { border-color: var(--gold); color: var(--cream); background: rgba(201,160,99,.08); }
.vinyl { position: relative; aspect-ratio: 1; max-width: 400px; justify-self: center; width: 100%; }
.vinyl-disc { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle, #1a1412 0 2px, #0c0908 2px 4px); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.04); animation: spin 9s linear infinite; }
.vinyl-disc::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 30deg, transparent 0 10%, rgba(255,255,255,.07) 14%, transparent 20% 60%, rgba(255,255,255,.05) 64%, transparent 70%); }
.vinyl-label { position: absolute; inset: 33%; border-radius: 50%; background: var(--accent); display: grid; place-items: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(14px, 1.8vw, 20px); line-height: 1.1; color: var(--cream); }
.vinyl-label::after { content: ""; position: absolute; width: 8%; aspect-ratio: 1; border-radius: 50%; background: var(--bg); }
.vinyl-label span { transform: translateY(-34%); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Escena / actor ---------- */
.stage-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.stage-list div { padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); }
.stage-list div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stage-list small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.stage-list p { font-family: var(--serif); font-size: 22px; margin: 8px 0 0; line-height: 1.25; }

/* ---------- CTA final ---------- */
.cta { text-align: center; padding: clamp(90px, 13vw, 160px) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 50%, rgba(184,64,46,.22), transparent 70%); z-index: -1; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 7vw, 100px); line-height: 1; letter-spacing: -.03em; margin: 0 0 22px; }
.cta h2 em { font-style: italic; color: var(--gold); font-variation-settings: "SOFT" 100; }
.cta p { color: var(--cream-2); max-width: 52ch; margin: 0 auto 36px; }

/* ---------- AdSense (oculto hasta activarlo) ---------- */
.ad-slot { display: none; }
.ads-on .ad-slot { display: block; max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter); text-align: center; }
.ad-slot::before { content: "Publicidad"; display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-3); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--cream-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--cream); font-size: 28px; display: block; margin-bottom: 10px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--cream-2); margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--gold-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Botón flotante Amazon (móvil) ---------- */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* salvaguarda */
.no-js .reveal { opacity: 1; transform: none; }
.shelf .reveal:nth-child(4n+2) { transition-delay: .08s; }
.shelf .reveal:nth-child(4n+3) { transition-delay: .16s; }
.shelf .reveal:nth-child(4n+4) { transition-delay: .24s; }

/* ---------- Páginas legales ---------- */
.legal { padding: 140px 0 100px; max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 64px); line-height: 1; margin: 0 0 30px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 40px 0 10px; color: var(--gold-2); }
.legal p, .legal li { color: var(--cream-2); }
.legal a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .feature, .stories, .bio, .music { grid-template-columns: 1fr; }
  .portrait { justify-self: center; max-width: 340px; order: -1; margin-top: 10px; }
  .portrait-sign { left: 50%; transform: translateX(-50%); bottom: -18px; white-space: nowrap; }
  .hero { padding-top: 100px; }
  .hero-grid { text-align: left; }
  .section-head { grid-template-columns: 1fr; gap: 14px; }
  .section-intro { justify-self: start; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .feature .book { max-width: 260px; }
  .stories .book { max-width: 240px; margin: 0 auto; }
  .vinyl { max-width: 300px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(17,13,11,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .35s var(--ease);
  }
  .nav-links a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-links .btn { margin-top: 18px; justify-content: center; }
  .nav.is-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav.is-open { background: rgba(17,13,11,.97); }
  .nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .hero-stats { gap: 22px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 36px 16px; }
  .shelf-poetry { grid-template-columns: repeat(2, 1fr); }
  .card-title { font-size: 19px; }
  .shelf-poetry .card-title { font-size: 17px; }
  .card-text { font-size: 14px; }
  .card .btn-buy { padding: 12px 10px; font-size: 13px; }
  .story-list { columns: 1; }
  .stage-list { grid-template-columns: 1fr; }
  .stage-list div + div { padding-left: 0; border-left: 0; }
  .fab { display: inline-flex; }
  .scroll-cue { display: none; }
}
@media (max-width: 380px) {
  .shelf, .shelf-poetry { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
}

/* Solo efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  .vinyl-disc { animation-duration: 40s; }
  .hero-mesh { animation: none; }
}

/* =========================================================
   Páginas interiores: fichas, categorías, artículos
   ========================================================= */
.card-title a:hover { color: var(--gold-2); }
.card-more { display: inline-flex; align-items: center; gap: 6px; justify-content: center; font-size: 13px; color: var(--cream-2); padding: 6px 0 0; }
.card-more svg { width: 13px; height: 13px; }
.card-more:hover { color: var(--gold-2); }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-buy.btn-lg { width: auto; }
.section-tight { padding-top: 24px; }

.crumbs { font-size: 13px; color: var(--cream-3); margin-bottom: 26px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.crumbs a { color: var(--cream-2); }
.crumbs a:hover { color: var(--gold-2); }
.crumbs i { font-style: normal; opacity: .5; }

.page-hero { padding: 130px 0 40px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 70% at 85% 10%, rgba(184,64,46,.22), transparent 70%); }
.page-intro { font-family: var(--serif); font-weight: 300; font-size: clamp(19px, 2vw, 23px); color: var(--cream-2); max-width: 60ch; margin: 18px 0 0; line-height: 1.45; }
.narrow { max-width: 820px; }
.article-title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -.03em; margin: 0; }
.article-title em { font-style: italic; color: var(--gold); }

/* Ficha de libro */
.bp-hero { padding: 120px 0 40px; position: relative; overflow: hidden; }
.bp-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 25% 40%, rgba(184,64,46,.24), transparent 70%), radial-gradient(40% 60% at 90% 80%, rgba(201,160,99,.10), transparent 70%); }
.bp-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.bp-cover .book { max-width: 330px; margin: 0 auto; }
.bp-title { font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -.025em; margin: 12px 0 10px; text-wrap: balance; }
.bp-author { color: var(--cream-3); margin: 0 0 18px; }
.bp-author a { color: var(--gold-2); }
.bp-hook { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.35; color: var(--cream); margin: 0 0 28px; max-width: 34ch; }
.bp-buy { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--cream-2); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.bp-body { padding-top: 40px; }
.bp-cols { display: grid; grid-template-columns: 1.5fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose { font-size: 18px; color: var(--cream-2); }
.prose p { margin: 0 0 18px; }
.prose a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(201,160,99,.4); }
.prose a.btn { text-decoration: none; color: inherit; }
.prose a.btn-buy { color: var(--cream); }
.prose ul { padding-left: 20px; margin: 0 0 22px; }
.prose li { margin-bottom: 12px; }
.prose b { color: var(--cream); font-weight: 600; }
.sub { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3vw, 34px); color: var(--cream); margin: 36px 0 16px; letter-spacing: -.01em; }
.prose .sub:first-child { margin-top: 0; }
.note { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px 20px; font-size: 16px; background: rgba(201,160,99,.05); }
.cta-inline { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px !important; }
.cta-inline .btn-buy { width: auto; }
.bp-side { position: sticky; top: 96px; display: grid; gap: 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.details { margin: 0; display: grid; gap: 0; }
.details div { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.details dt { color: var(--cream-3); }
.details dd { margin: 0; text-align: right; color: var(--cream); }
.review-box { border-top: 1px solid var(--line); padding-top: 18px; }
.review-box p { font-size: 15px; color: var(--cream-2); margin: 0 0 12px; }
.review-box b { color: var(--cream); }
.shelf-3 { grid-template-columns: repeat(3, 1fr); }
.buybar { display: none; }

/* Guía ¿Por dónde empiezo? */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-item { display: flex; flex-direction: column; gap: 6px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .3s, transform .3s var(--ease), background .3s; }
.guide-item:hover { border-color: var(--gold); transform: translateY(-4px); background: var(--bg-3); }
.guide-q { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.guide-b { font-family: var(--serif); font-size: 26px; line-height: 1.1; color: var(--cream); }
.guide-t { color: var(--cream-2); font-size: 15px; flex: 1; }
.guide-go { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-2); font-size: 14px; margin-top: 8px; }
.guide-go svg { width: 14px; height: 14px; }

/* Artículos */
.articles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.art-card { display: flex; flex-direction: column; gap: 10px; padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--bg-3), var(--bg-2)); transition: border-color .3s, transform .3s var(--ease); }
.art-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.art-card small { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.art-card b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; color: var(--cream); }
.art-card span { color: var(--cream-2); }

/* Biografía */
.bio-page { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.portrait-sm { max-width: 220px; justify-self: end; }
.portrait-sm::before { inset: -10px; }
.prose .bio-lead { color: var(--cream); }

@media (max-width: 980px) {
  .bp-grid, .bp-cols { grid-template-columns: 1fr; }
  .bp-cover .book { max-width: 230px; }
  .bp-side { position: static; }
  .guide { grid-template-columns: repeat(2, 1fr); }
  .shelf-3 { grid-template-columns: repeat(3, 1fr); }
  .bio-page { grid-template-columns: 1fr; }
  .portrait-sm { justify-self: start; order: -1; max-width: 180px; }
}
@media (max-width: 760px) {
  .bp-hero, .page-hero { padding-top: 100px; }
  .bp-buy .btn { flex: 1 1 100%; justify-content: center; }
  .guide { grid-template-columns: 1fr; }
  .guide-item { padding: 20px; }
  .articles { grid-template-columns: 1fr; }
  .shelf-3 { grid-template-columns: repeat(2, 1fr); }
  .shelf-3 > :nth-child(3) { display: none; }
  .prose { font-size: 17px; }
  .is-book { padding-bottom: 72px; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(17,13,11,.96); border-top: 1px solid var(--line-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .buybar span { font-family: var(--serif); font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .buybar .btn { width: auto; flex: none; }
}
.hero-actions .btn-buy, .feature .btn-buy { width: auto; }
