/* ==========================================================================
   tonodelrio.com — sistema visual
   Paleta tomada de la portada de «Queremos ver a Jesús».
   ========================================================================== */

/* ---------- Fuentes (self-hosted, subset latin: cubre á é í ó ú ñ ¿ ¡ « ») */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens */
:root {
  /* Color — ratios AA verificados */
  --c-olive-950: #171c14;
  --c-olive-900: #1f261c;           /* fondo de la portada */
  --c-olive-800: #2a3124;
  --c-gold: #c4a468;                /* sobre olive-900: 6.5:1 */
  --c-gold-deep: #7a5f2c;           /* sobre cream: 5.3:1 */
  --c-cream: #f6f0e5;               /* igual al fondo del mockup oficial */
  --c-paper: #fbf8f2;
  --c-ink: #1f261c;                 /* sobre cream: 13.7:1 */
  --c-ink-muted: #555b4d;           /* sobre cream: 6.2:1 */
  --c-line: rgba(31, 38, 28, 0.16);
  --c-on-dark: #f1ebdf;             /* sobre olive-900: 13:1 */
  --c-on-dark-muted: #b8b5a5;       /* sobre olive-900: 7.5:1 */
  --c-line-dark: rgba(241, 235, 223, 0.18);
  --c-focus: #c4a468;

  /* Tipografía */
  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --fs-xs: 0.8125rem;                                   /* 13 */
  --fs-sm: 0.875rem;                                    /* 14 */
  --fs-body: clamp(0.96875rem, 0.94rem + 0.12vw, 1.03125rem);
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  --fs-h2: clamp(2.5rem, 1.7rem + 3.6vw, 5rem);
  --fs-quote: clamp(1.75rem, 1.2rem + 2.6vw, 3.5rem);
  --fs-mega: clamp(4rem, 19vw, 9.5rem);

  /* Espacio */
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1320px;
  --col-gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(88px, 12vw, 176px);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 320ms;
  --dur-slow: 620ms;
  --dur-xslow: 1000ms;
  --ease-settle: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-premium: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1);

  --radius: 2px;
  --shadow-book: 0 40px 60px -20px rgba(0, 0, 0, 0.55), 0 18px 24px -12px rgba(0, 0, 0, 0.45);
}

/* ---------- Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, blockquote, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
em, cite { font-style: italic; }
strong { font-weight: 700; }
::selection { background: var(--c-gold); color: var(--c-olive-900); }

:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.on-light :focus-visible, :where(.on-light) :focus-visible { outline-color: var(--c-gold-deep); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--c-olive-900); color: var(--c-on-dark);
  padding: 10px 16px; font-size: var(--fs-sm); text-decoration: none;
}
.skip:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Tipografía de sistema */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: var(--fs-h3);
  line-height: 1.15;
}
.lead {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.35;
  text-wrap: balance;
}
.prose p { text-wrap: pretty; max-width: 60ch; }
.prose p + p { margin-top: 1.1em; }
.muted { color: var(--c-ink-muted); }
.small { font-size: var(--fs-xs); letter-spacing: 0.02em; }
.gold { color: var(--c-gold); }
.on-light .gold { color: var(--c-gold-deep); }

/* Superficies */
.on-dark { background: var(--c-olive-900); color: var(--c-on-dark); }
.on-dark .muted { color: var(--c-on-dark-muted); }
.on-light { background: var(--c-cream); color: var(--c-ink); }
.on-paper { background: var(--c-paper); color: var(--c-ink); }

/* Grano sutil en bloques oscuros (0 requests) */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Botones */
.btn {
  --btn-bg: var(--c-olive-900);
  --btn-fg: var(--c-on-dark);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 50px;
  padding: 0 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-base) var(--ease-settle), opacity var(--dur-fast) linear;
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* flecha que avanza en hover */
  content: "→";
  font-weight: 400;
  transition: transform var(--dur-base) var(--ease-settle);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--gold { --btn-bg: var(--c-gold); --btn-fg: var(--c-olive-900); }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost::after { content: "↓"; }
.btn--ghost:hover::after { transform: translateY(3px); }
.on-dark .btn--ghost { color: var(--c-on-dark); border-color: var(--c-line-dark); }
.btn--plain::after { content: none; }

/* Enlace con subrayado que crece */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px;
  background: currentColor;
  transform-origin: left;
  opacity: 0.55;
}
.link:hover::after, .link:focus-visible::after { opacity: 1; animation: sweep var(--dur-slow) var(--ease-settle) both; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Encabezado */
.site-head {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
}
.site-head__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.wordmark {
  font-family: var(--f-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  padding: 10px 0;
}
.site-head .link { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
@media (max-width: 420px) { .wordmark { font-size: 1rem; letter-spacing: 0.16em; } }

.site-head--dark { color: var(--c-on-dark); }

/* ---------- Pie */
.site-foot {
  padding-block: 56px 40px;
  border-top: 1px solid var(--c-line-dark);
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  align-items: baseline; justify-content: space-between;
}
.site-foot .wordmark { font-size: 1rem; }
.site-foot p { font-size: var(--fs-xs); }
.site-foot a { color: var(--c-on-dark); }

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---- Hero */
.hero {
  position: relative;
  padding-top: 96px;
  background: var(--c-cream);
}
.hero__grid { display: grid; gap: 28px; }
.hero__name {
  font-size: var(--fs-mega);
  color: var(--c-ink);
  position: relative; z-index: 2;
}
.hero__name .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.hero__name .line > span { display: block; }
.hero__name .line--2 { padding-left: 0.5em; }
.hero__photo {
  position: relative;
  overflow: hidden;
  background: #d9d6cf;
  aspect-ratio: 4 / 4.2;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 12%;
}
.hero__copy p { max-width: 34ch; text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.hero__book {
  position: relative; z-index: 3;
  width: clamp(132px, 34vw, 200px);
  margin-top: 40px;
  margin-bottom: calc(-1 * clamp(96px, 26vw, 150px));
  text-decoration: none;
  display: block;
}
.hero__book-label {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-ink-muted);
  margin-bottom: 12px;
}
.hero__book img {
  box-shadow: var(--shadow-book);
  transition: transform var(--dur-slow) var(--ease-settle);
}
.hero__book:hover img { transform: translateY(-6px) rotate(-1deg); }

/* ---- Quién es */
.about { padding-block: calc(var(--section) + 40px) var(--section); }
.about__grid { display: grid; gap: 28px; }
.about .h2 { margin-bottom: 8px; }
.about .prose { color: var(--c-on-dark); }
.about__books { font-family: var(--f-display); font-size: var(--fs-lead); line-height: 1.4; }
.about__books em { color: var(--c-gold); }

/* ---- Mensaje */
.message { padding-block: var(--section); }
.message__photo { overflow: hidden; aspect-ratio: 4 / 3; background: var(--c-olive-900); }
.message__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.message__head { display: grid; gap: 20px; margin-top: clamp(40px, 6vw, 88px); }
.message__head p { max-width: 46ch; text-wrap: pretty; }
.pillars {
  display: grid;
  margin-top: clamp(48px, 6vw, 88px);
  border-top: 1px solid var(--c-line);
}
.pillars li {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--c-line);
}
.pillars strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  margin-bottom: 6px;
}
.pillars span { color: var(--c-ink-muted); display: block; max-width: 36ch; }

/* ---- Cita grande (firma: subrayado dorado que se dibuja) */
.statement { padding-block: clamp(88px, 11vw, 160px); }
.statement blockquote p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 1rem + 4.2vw, 5.25rem);
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  text-wrap: balance;
  max-width: 20ch;
}
.statement footer { margin-top: 28px; font-size: var(--fs-sm); }
.statement cite { font-style: italic; }
.mark {
  background-image: linear-gradient(var(--c-gold), var(--c-gold));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.06em;
}

/* ---- El libro */
.book-feature { padding-block: var(--section); background: var(--c-cream); }
.book-feature__title { font-size: clamp(2.6rem, 1.2rem + 6.4vw, 7.5rem); line-height: 0.95; }
.book-feature__title .gold { display: inline-block; }
.book-feature__grid { display: grid; gap: 32px; margin-top: clamp(36px, 5vw, 72px); align-items: start; }
.book-feature__media { max-width: 420px; margin-inline: auto; width: 100%; }
.book-feature__media img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  mask-composite: intersect;
}
.book-feature__data {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-ink-muted);
  padding-block: 16px;
  border-block: 1px solid var(--c-line);
  margin-block: 28px 28px;
}

/* ---- Otros libros */
.other-books { padding-block: var(--section); }
.other-books__grid { display: grid; gap: 40px; }
.spines { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 40px); width: 100%; max-width: 560px; justify-self: end; }
.spine {
  aspect-ratio: 5 / 7.4;
  border: 1px solid var(--c-line-dark);
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  text-align: center;
  padding: clamp(16px, 3vw, 36px) clamp(10px, 2vw, 28px);
  transition: transform var(--dur-slow) var(--ease-settle);
}
.spine:hover { transform: translateY(-6px); }
.spine__rule { width: 36px; height: 1px; background: var(--c-gold); }
.spine .h3 {
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 0.9rem + 1.6vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: 0.02em;
  hyphens: none;
  overflow-wrap: normal;
}
.spine p { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---- Redes */
.social { padding-block: var(--section); }
.social__grid { display: grid; gap: 40px; align-items: end; }
.social__photo { overflow: hidden; aspect-ratio: 9 / 10; background: #cfc8bb; }
.social__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.social__intro p { margin-top: 16px; max-width: 40ch; }
.social__list { margin-top: 36px; border-top: 1px solid var(--c-line); }
.social__list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line);
  text-decoration: none;
}
.social__handle {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.1;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.social__what { grid-column: 1; font-size: var(--fs-sm); color: var(--c-ink-muted); }
.social__arrow {
  grid-column: 2; grid-row: 1 / span 2;
  font-size: 1.25rem;
  transition: transform var(--dur-base) var(--ease-settle);
}
.social__list a:hover .social__arrow,
.social__list a:focus-visible .social__arrow { transform: translate(4px, -4px); }

/* ==========================================================================
   EBOOK
   ========================================================================== */

.eb-hero { padding-block: 104px clamp(72px, 9vw, 128px); overflow: hidden; }
.eb-hero__grid { display: grid; gap: 36px; align-items: center; }
.eb-hero__title { font-size: clamp(3rem, 1.4rem + 7vw, 7rem); line-height: 0.94; }
.eb-hero__title .line { display: block; overflow: hidden; padding-bottom: 0.04em; margin-bottom: -0.04em; }
.eb-hero__title .line > span { display: block; }
.eb-hero__title .jesus { display: block; font-size: 1.32em; line-height: 0.95; color: var(--c-gold); }
.eb-hero__title .line.jesus { padding-bottom: 0.2em; margin-bottom: -0.2em; }
.eb-hero__sub { margin-top: 22px; color: var(--c-on-dark); max-width: 26ch; }
.eb-hero__author { margin-top: 14px; font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.eb-hero__buy {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid var(--c-line-dark);
}
.price {
  font-family: var(--f-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  font-weight: 500;
}
.price small { font-size: 0.42em; letter-spacing: 0.12em; margin-left: 0.2em; font-weight: 600; }
.eb-hero__meta { flex-basis: 100%; font-size: var(--fs-xs); letter-spacing: 0.04em; color: var(--c-on-dark-muted); order: 3; }

/* Mockup 3D del libro, construido en CSS */
.book3d {
  --w: clamp(170px, 46vw, 360px);
  --depth: calc(var(--w) * 0.075);
  perspective: 1800px;
  width: var(--w);
  margin-inline: auto;
  position: relative;
}
.book3d__obj {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-26deg) rotateX(6deg) rotateZ(-1deg);
  transition: transform var(--dur-xslow) var(--ease-settle);
}
.book3d:hover .book3d__obj { transform: rotateY(-16deg) rotateX(4deg) rotateZ(-0.5deg); }
.book3d__front { position: relative; transform: translateZ(calc(var(--depth) / 2)); }
.book3d__front img { width: 100%; border-radius: 1px 3px 3px 1px; }
.book3d__front::after { /* luz de lomo sobre la tapa */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.14) 2.2%, rgba(0,0,0,.18) 4%, transparent 9%, transparent 92%, rgba(255,255,255,.06));
  border-radius: 1px 3px 3px 1px;
}
.book3d__spine {
  position: absolute; top: 0; left: 0;
  width: var(--depth); height: 100%;
  transform-origin: left center;
  transform: translateZ(calc(var(--depth) / 2)) rotateY(-90deg);
  background: linear-gradient(90deg, #11150e, #262c1f 40%, #1a1f15);
}
.book3d__pages {
  position: absolute; top: 1.2%; right: 0;
  width: var(--depth); height: 97.6%;
  transform-origin: right center;
  transform: translateZ(calc(var(--depth) / 2)) rotateY(90deg);
  background: repeating-linear-gradient(90deg, #f4efe4 0 1px, #dcd5c6 1px 2px);
}
.book3d__back {
  position: absolute; inset: 0;
  transform: translateZ(calc(var(--depth) / -2));
  background: #11150e;
  box-shadow: var(--shadow-book);
}
.book3d__shadow {
  position: absolute; left: 8%; right: -6%; bottom: -7%; height: 10%;
  background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent);
  filter: blur(6px);
  z-index: -1;
}

/* Sinopsis */
.synopsis { padding-block: var(--section); }
.synopsis .h2 { margin-bottom: clamp(32px, 5vw, 64px); }
.synopsis__cols p { text-wrap: pretty; }
.synopsis__cols p + p { margin-top: 1.1em; }
.synopsis__cols p:first-child::first-letter {
  font-family: var(--f-display);
  float: left;
  font-size: 4.6em;
  line-height: 0.8;
  padding: 0.06em 0.1em 0 0;
  color: var(--c-gold-deep);
}

/* Para quién */
.for-whom { padding-block: clamp(88px, 11vw, 160px); text-align: center; }
.for-whom .h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
.for-whom p {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.4rem);
  line-height: 1.3;
  max-width: 34ch;
  margin: 28px auto 0;
  text-wrap: balance;
}

/* Índice */
.contents { padding-block: var(--section); }
.contents__grid { display: grid; gap: 36px; }
.contents__intro p { margin-top: 14px; }
.toc { border-top: 1px solid var(--c-line-dark); counter-reset: toc; }
.toc li {
  display: grid;
  grid-template-columns: clamp(44px, 7vw, 88px) 1fr;
  gap: 0 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--c-line-dark);
  counter-increment: toc;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  line-height: 1;
  color: var(--c-gold);
  grid-row: 1 / span 2;
}
.toc strong {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem);
  line-height: 1.2;
}
.toc span { color: var(--c-on-dark-muted); font-size: var(--fs-sm); margin-top: 4px; }

/* Citas */
.quotes { padding-block: var(--section); }
.quotes .h2 { margin-bottom: clamp(48px, 7vw, 104px); }
.quotes__list { display: grid; gap: clamp(56px, 8vw, 112px); }
.quote p {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote);
  line-height: 1.15;
  text-wrap: balance;
}
.quote footer {
  margin-top: 18px;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--c-gold-deep);
  display: flex; align-items: center; gap: 14px;
}
.quote footer::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* Autor */
.author { padding-block: var(--section); }
.author__grid { display: grid; gap: 32px; align-items: center; }
.author__photo { overflow: hidden; aspect-ratio: 4 / 5; max-width: 360px; background: #d9d6cf; }
.author__photo img { width: 100%; height: 100%; object-fit: cover; }
.author .prose { margin-top: 20px; }
.author .link { margin-top: 16px; font-weight: 600; font-size: var(--fs-sm); }

/* Comprar */
.buy { padding-block: var(--section); }
.buy__head p { margin-top: 16px; }
.steps { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--c-line); }
.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--c-line);
}
.step__n {
  font-family: var(--f-display);
  font-size: clamp(3.25rem, 2rem + 6vw, 7.5rem);
  line-height: 0.8;
  color: var(--c-gold-deep);
  font-weight: 400;
}
.step .h3 { margin-bottom: 8px; }
.step__body > p { max-width: 52ch; }
.step__body .btn { margin-top: 22px; }

.account {
  margin-top: 22px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  max-width: 560px;
}
.account__row {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-line);
  align-items: baseline;
}
.account__row:last-child { border-bottom: 0; }
.account dt { font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--c-ink-muted); }
.account dd { font-weight: 500; min-width: 0; }
.account__row--clabe { grid-template-columns: 1fr; gap: 6px; padding-block: 18px; }
.clabe {
  font-family: var(--f-mono);
  font-size: clamp(1.125rem, 0.9rem + 1.3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  word-spacing: 0.1em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.copy-btn[data-state="done"] { --btn-bg: var(--c-gold); --btn-fg: var(--c-olive-900); }
.copy-btn::after { content: none; }
.copy-status { margin-left: 12px; font-size: var(--fs-sm); color: var(--c-ink-muted); }

/* FAQ */
.faq { padding-block: var(--section); }
.faq__grid { display: grid; gap: 28px; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq details:first-of-type { border-top: 1px solid var(--c-line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-settle);
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 58ch; color: var(--c-ink-muted); }

/* Cierre */
.closing { padding-block: clamp(104px, 13vw, 192px); text-align: center; }
.closing blockquote p {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 1.2rem + 5.6vw, 6.25rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 400;
  text-wrap: balance;
}
.closing blockquote footer { margin-top: 20px; font-size: var(--fs-sm); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-gold); }
.closing__after { margin: 44px auto 36px; max-width: 44ch; color: var(--c-on-dark-muted); }
.closing__after span { white-space: nowrap; }

/* CTA fijo en móvil */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--c-olive-900);
  color: var(--c-on-dark);
  border-top: 1px solid var(--c-line-dark);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-premium);
}
.sticky-cta.is-shown { transform: translateY(0); }
.sticky-cta .price { font-size: 1.6rem; }
.sticky-cta .price small { font-size: 0.8125rem; }
.sticky-cta .btn { min-height: 44px; padding: 0 20px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ==========================================================================
   Layout por breakpoint (móvil primero)
   ========================================================================== */
@media (min-width: 768px) {
  .hero__photo { aspect-ratio: 4 / 3.6; }
  .pillars { grid-template-columns: 1fr 1fr; column-gap: var(--col-gap); }
  .message__photo { aspect-ratio: 16 / 9; }
  .book-feature__grid { grid-template-columns: 1fr 1fr; }
  .book-feature__media { grid-row: span 2; }
  .social__grid { grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 5vw, 96px); }
  .synopsis__cols { columns: 2; column-gap: clamp(32px, 5vw, 72px); }
  .author__grid { grid-template-columns: minmax(220px, 4fr) 7fr; column-gap: clamp(32px, 6vw, 112px); }
  .faq__grid { grid-template-columns: 4fr 8fr; column-gap: var(--col-gap); }
  .step { grid-template-columns: clamp(80px, 12vw, 160px) minmax(0, 1fr); gap: 0 clamp(8px, 2vw, 32px); }
}

@media (min-width: 1024px) {
  .site-head__inner { min-height: 92px; }

  /* Hero editorial: nombre enorme que cruza el retrato */
  .hero { padding-top: 116px; }
  .hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    row-gap: 0;
    align-items: end;
  }
  .hero__name { font-size: clamp(6rem, 1rem + 11.5vw, 10.5rem); grid-column: 1 / 9; grid-row: 1; align-self: start; margin-top: 3vh; }
  .hero__photo { grid-column: 7 / 13; grid-row: 1 / 4; aspect-ratio: 4 / 5; align-self: end; }
  .hero__copy { grid-column: 1 / 5; grid-row: 2; padding-bottom: 8px; }
  .hero__book { grid-column: 1 / 4; grid-row: 3; margin-top: 44px; width: 184px; margin-bottom: -150px; }
  .hero__side {
    grid-column: 11 / 13; grid-row: 1 / 4; align-self: end;
    padding-bottom: 32px;
  }

  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
  .about__grid > .h2 { grid-column: 5 / 13; }
  .about__grid > .prose { grid-column: 5 / 10; }
  .about__grid > .about__books { grid-column: 10 / 13; align-self: end; }

  .message__photo { aspect-ratio: 2 / 1; }
  .message__head { grid-template-columns: 7fr 5fr; column-gap: var(--col-gap); align-items: end; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .pillars li { padding-right: 12px; }

  .statement blockquote { margin-left: calc(100% / 12); }

  .book-feature__grid { grid-template-columns: 4fr 4fr 4fr; column-gap: clamp(28px, 4vw, 64px); }
  .book-feature__media { grid-row: auto; grid-column: 2; grid-row: 1; }
  .book-feature__left { grid-column: 1; grid-row: 1; align-self: end; }
  .book-feature__right { grid-column: 3; grid-row: 1; align-self: end; }

  .other-books__grid { grid-template-columns: 5fr 7fr; column-gap: clamp(32px, 6vw, 112px); align-items: end; }

  .eb-hero { padding-top: 132px; }
  .eb-hero__grid { grid-template-columns: 7fr 5fr; column-gap: var(--col-gap); }
  .eb-hero__visual { order: 2; }
  .book3d { --w: min(30vw, 380px); }

  .contents__grid { grid-template-columns: 4fr 8fr; column-gap: clamp(32px, 6vw, 112px); align-items: start; }
  .contents__intro { position: sticky; top: 48px; }

  .quotes__list .quote { max-width: 46rem; }
  .quotes__list .quote:nth-child(2n) { justify-self: end; text-align: right; }
  .quotes__list .quote:nth-child(2n) footer { justify-content: flex-end; }
  .quotes__list .quote:nth-child(3) { margin-left: calc(100% / 12); }
}

@media (max-width: 1023.98px) {
  .hero__side { display: none; }
}

@media (max-width: 420px) {
  .hero__ctas .btn { padding: 0 18px; }
}

/* ==========================================================================
   Motion — todo dentro de no-preference; sin JS todo queda visible
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada del hero: el nombre sube por líneas */
  .hero__name .line > span,
  .eb-hero__title .line > span { animation: rise var(--dur-xslow) var(--ease-settle) both; }
  .hero__name .line--2 > span { animation-delay: 110ms; }
  .hero__photo img { animation: settle 1400ms var(--ease-out-circ) both; }
  .hero__copy { animation: fade-up var(--dur-xslow) var(--ease-settle) 260ms both; }
  .hero__book { animation: fade-up var(--dur-xslow) var(--ease-settle) 420ms both; }

  .eb-hero__title .line:nth-child(2) > span { animation-delay: 90ms; }
  .eb-hero__title .line:nth-child(3) > span { animation-delay: 180ms; }
  .eb-hero__visual { animation: book-in 1400ms var(--ease-settle) 120ms both; }
  .eb-hero__copy > :not(h1) { animation: fade-up var(--dur-xslow) var(--ease-settle) 320ms both; }

  /* Reveals por scroll (se activan solo si js/main.js corre) */
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(22px); }
  .reveal-ready [data-reveal].is-in {
    opacity: 1; transform: none;
    transition: opacity var(--dur-xslow) var(--ease-out-circ), transform var(--dur-xslow) var(--ease-settle);
    transition-delay: var(--d, 0ms);
  }
  .reveal-ready [data-reveal="clip"] { opacity: 1; transform: none; }
  .reveal-ready [data-reveal="clip"] img { clip-path: inset(0 0 100% 0); }
  .reveal-ready [data-reveal="clip"].is-in img { animation: clip-in 1400ms var(--ease-premium) both; }

  .reveal-ready .mark { background-size: 0% 2px; }
  .reveal-ready .is-in .mark { animation: draw 1400ms var(--ease-premium) 500ms both; }
}

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes book-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes clip-in { from { clip-path: inset(0 0 100% 0); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes draw { from { background-size: 0% 2px; } to { background-size: 100% 2px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.mt { margin-top: 20px; }
