:root {
  --black: #070706;
  --black-soft: #0e0e0d;
  --surface: rgba(20, 19, 17, 0.78);
  --surface-solid: #151411;
  --cream: #e7dfd1;
  --muted: #a9a093;
  --gold: #b9863f;
  --gold-light: #d5ad6d;
  --line: rgba(199, 153, 84, 0.28);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  --max-width: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  color: var(--cream);
  background:
    radial-gradient(circle at 20% -10%, rgba(185, 134, 63, 0.08), transparent 32%),
    var(--black);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.15'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--black);
  background: var(--gold-light);
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(7, 7, 6, .84);
  border-color: rgba(255,255,255,.07);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  letter-spacing: .14em;
}
.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--serif);
  box-shadow: inset 0 0 0 4px rgba(185,134,63,.08);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand strong { display: block; font-family: var(--serif); font-size: .98rem; }
.brand small { display: block; color: var(--gold-light); font-size: .61rem; letter-spacing: .34em; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  position: relative;
  color: #d4cbbf;
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -9px;
  height: 1px;
  background: var(--gold);
  transition: right .2s ease;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after { right: 0; }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
}
.menu-button span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 6px 0;
  background: var(--cream);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6,6,5,.97) 0%, rgba(6,6,5,.82) 44%, rgba(6,6,5,.4) 72%, rgba(6,6,5,.78) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 27%),
    url('assets/bosque-puerta-fondo.webp') center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 68% 43%, rgba(203,167,111,.14), transparent 22%),
    linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.58));
}
.hero-mist,
.hero-mist::before,
.hero-mist::after {
  position: absolute;
  content: "";
  width: 70vw;
  height: 18vw;
  min-height: 150px;
  border-radius: 50%;
  filter: blur(52px);
  background: rgba(180, 177, 164, .06);
  animation: drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-mist { left: -12%; bottom: 9%; }
.hero-mist::before { left: 52vw; bottom: -4vw; animation-delay: -5s; }
.hero-mist::after { left: 20vw; bottom: 30vw; opacity: .45; animation-delay: -9s; }

.hero-content {
  padding-top: 120px;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
}
.hero h1 {
  max-width: 790px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: #c1b9ae;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 1px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #110d08; background: linear-gradient(135deg, var(--gold-light), #9f6d2d); }
.button-primary:hover { background: linear-gradient(135deg, #e2c28d, #b17b36); }
.button-ghost { border-color: rgba(231,223,209,.35); color: var(--cream); background: rgba(6,6,5,.22); }
.button-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-book { position: relative; justify-self: center; width: min(100%, 390px); }
.book-cover {
  position: relative;
  margin: 0;
  transform: perspective(1200px) rotateY(-7deg) rotateX(1deg);
  box-shadow: var(--shadow), 16px 7px 0 -8px #1b1915, 22px 8px 0 -10px #9e927e;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255,255,255,.12), transparent 18%, transparent 78%, rgba(0,0,0,.32));
  pointer-events: none;
}
.hero-book:hover .book-cover { transform: perspective(1200px) rotateY(-2deg) translateY(-8px); }
.book-cover img { width: 100%; aspect-ratio: 645 / 1024; object-fit: cover; }
.book-glow {
  position: absolute;
  inset: 18% -15% 10%;
  background: radial-gradient(circle, rgba(192,145,76,.18), transparent 64%);
  filter: blur(20px);
}
.book-status {
  position: absolute;
  right: -28px;
  bottom: 42px;
  padding: 10px 18px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  background: rgba(9,8,7,.92);
  font-size: .65rem;
  letter-spacing: .18em;
  transform: rotate(-3deg);
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 28px;
  height: 48px;
  border: 1px solid rgba(231,223,209,.28);
  border-radius: 18px;
  transform: translateX(-50%);
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--gold-light);
  transform: translateX(-50%);
  animation: scroll 1.8s ease infinite;
}

.section { padding: clamp(90px, 11vw, 155px) 0; }
.section-heading h2 { font-size: clamp(2.5rem, 5vw, 5rem); }
.section-heading.centered { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-heading.centered > p:last-child { color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }
.ornament { display: flex; align-items: center; width: 180px; margin-top: 30px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ornament span { display: inline-grid; place-items: center; margin: 0 12px; }
.ornament img { width: 34px; height: 34px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(199,153,84,.35); }

.book-section { position: relative; background: linear-gradient(180deg, #090908, #11100e); }
.book-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.book-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(56px, 9vw, 130px); align-items: start; }
.synopsis { color: #c9c1b6; font-family: var(--serif); font-size: clamp(1.08rem, 1.7vw, 1.28rem); }
.synopsis p { margin: 0 0 22px; }
.dropcap::first-letter { float: left; margin: 4px 9px 0 0; color: var(--gold-light); font-size: 4rem; line-height: .8; }
.synopsis blockquote {
  margin: 44px 0 34px;
  padding: 18px 0 18px 28px;
  border-left: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 1.45rem;
  font-style: italic;
}
.book-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.book-meta span { padding: 8px 12px; border: 1px solid var(--line); color: var(--muted); font-family: var(--sans); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

.universe-section {
  position: relative;
  background:
    linear-gradient(rgba(7,7,6,.88), rgba(7,7,6,.94)),
    url('assets/bosque-puerta-fondo.webp') center 55% / cover fixed;
}
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.theme-card {
  min-height: 320px;
  padding: 38px 34px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(24,23,20,.8), rgba(9,9,8,.72));
  backdrop-filter: blur(8px);
  transition: border-color .25s ease, transform .25s ease;
}
.theme-card:hover { border-color: var(--line); transform: translateY(-6px); }
.theme-number { color: var(--gold); font-family: var(--serif); font-size: .78rem; letter-spacing: .18em; }
.theme-card h3 { margin: 78px 0 15px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.theme-card p { margin: 0; color: var(--muted); }

.author-section { background: #0b0b0a; }
.author-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(60px, 10vw, 150px); align-items: center; }
.author-symbol { display: grid; place-items: center; min-height: 420px; border: 1px solid rgba(255,255,255,.06); background: radial-gradient(circle, rgba(185,134,63,.13), transparent 52%); }
.coin {
  width: 210px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 5rem;
  box-shadow: inset 0 0 0 12px #0b0b0a, inset 0 0 0 14px var(--gold), 0 0 60px rgba(185,134,63,.12);
}
.author-copy h2 { font-size: clamp(3rem, 6vw, 5.8rem); }
.author-intro { color: var(--cream) !important; font-family: var(--serif); font-size: 1.35rem; }
.author-copy p { max-width: 700px; color: var(--muted); }
.signature { margin-top: 32px !important; color: var(--gold-light) !important; font-family: "Segoe Script", cursive; font-size: 2rem; transform: rotate(-2deg); }

.newsletter-section { background: linear-gradient(180deg, #0b0b0a, #090908); }
.newsletter-card {
  position: relative;
  padding: clamp(36px, 6vw, 70px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 60px;
  align-items: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 85% 20%, rgba(185,134,63,.12), transparent 35%), var(--surface-solid);
}
.newsletter-card h2 { font-size: clamp(2.3rem, 4vw, 4.2rem); }
.newsletter-card > div > p:last-child { max-width: 560px; color: var(--muted); }
.newsletter-form label { display: block; margin-bottom: 10px; color: var(--gold-light); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.input-row { display: flex; }
.input-row input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.15);
  border-right: 0;
  border-radius: 0;
  color: var(--cream);
  background: rgba(0,0,0,.28);
  outline: none;
}
.input-row input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.form-note, .form-status { min-height: 1.5em; margin: 10px 0 0; color: var(--muted); font-size: .74rem; }
.form-status { color: var(--gold-light); }

.site-footer { padding: 34px 0; border-top: 1px solid rgba(255,255,255,.07); background: #060605; }
.footer-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong, .footer-brand small { display: block; }
.footer-brand strong { font-family: var(--serif); letter-spacing: .12em; }
.footer-brand small { color: var(--muted); font-size: .68rem; }
.site-footer p { color: var(--muted); font-size: .72rem; text-align: center; }
.site-footer > .container > a { justify-self: end; color: var(--gold-light); font-size: .72rem; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes drift { to { transform: translate3d(8vw,-2vw,0) scale(1.06); } }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%,0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,20px); } }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .main-nav {
    position: fixed;
    top: 82px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(8,8,7,.97);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .main-nav a:last-child { border-bottom: 0; }
  .hero-content { grid-template-columns: 1fr; padding-top: 145px; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-book { width: min(72vw, 370px); }
  .book-grid, .author-grid, .newsletter-card { grid-template-columns: 1fr; }
  .theme-grid { grid-template-columns: 1fr; }
  .theme-card { min-height: 260px; }
  .theme-card h3 { margin-top: 52px; }
  .author-symbol { min-height: 320px; }
  .footer-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .site-footer > .container > a { justify-self: center; }
}

@media (max-width: 560px) {
  .container, .header-inner { width: min(calc(100% - 28px), var(--max-width)); }
  .header-inner { min-height: 72px; }
  .main-nav { top: 72px; left: 14px; right: 14px; }
  .brand-mark { width: 36px; }
  .hero-content { padding-top: 120px; }
  .hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .hero-actions { width: 100%; }
  .hero-actions .button { width: 100%; }
  .book-status { right: -4px; bottom: 18px; font-size: .6rem; }
  .section { padding: 82px 0; }
  .input-row { display: grid; gap: 12px; }
  .input-row input { min-height: 52px; border-right: 1px solid rgba(255,255,255,.15); }
  .coin { width: 170px; font-size: 4rem; }
  .newsletter-card { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----- Versión autor + libro ----- */
.main-nav { gap: 20px; }
.main-nav a { font-size: .69rem; }
.inline-cta { margin-top: 26px; }

.author-photo {
  position: relative;
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #11100e;
  box-shadow: var(--shadow);
}
.author-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.82));
}
.author-photo img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center 22%; }
.author-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 28px;
  bottom: 24px;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.instagram-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  color: var(--cream);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.instagram-link:hover { transform: translateY(-2px); border-color: var(--gold); background: rgba(185,134,63,.07); }
.instagram-link svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-light); stroke-width: 1.7; }
.instagram-link strong, .instagram-link small { display: block; }
.instagram-link strong { font-size: .82rem; letter-spacing: .08em; }
.instagram-link small { color: var(--muted); font-size: .69rem; }

.progress-section { background: linear-gradient(180deg, #0b0b0a, #11100e); }
.progress-card {
  padding: clamp(38px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: clamp(45px, 8vw, 100px);
  align-items: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 12% 20%, rgba(185,134,63,.11), transparent 35%), #12110f;
}
.progress-card h2 { font-size: clamp(2.3rem, 4.5vw, 4.7rem); }
.progress-card > div:first-child > p:last-child { color: var(--muted); }
.progress-panel { padding: 30px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.24); }
.progress-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin-bottom: 17px; }
.progress-topline span { color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.progress-topline strong { color: var(--gold-light); font-family: var(--serif); font-size: 2.6rem; font-weight: 400; }
.progress-track { height: 12px; overflow: hidden; border: 1px solid var(--line); background: rgba(0,0,0,.42); }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #8f612a, var(--gold-light)); transition: width 1.2s ease; }
.progress-panel p { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }

.purchase-section { background: #090908; }
.split-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(46px, 8vw, 110px);
  align-items: start;
}
.split-copy { position: sticky; top: 130px; }
.split-copy h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.split-copy > p:last-child { color: var(--muted); font-family: var(--serif); font-size: 1.15rem; }

.site-form {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(145deg, rgba(24,23,20,.88), rgba(9,9,8,.82));
}
.site-form h3 { margin: 0 0 26px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.site-form label, .newsletter-form label {
  display: grid;
  gap: 8px;
  color: var(--gold-light);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.site-form input,
.site-form textarea,
.site-form select,
.newsletter-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 0;
  color: var(--cream);
  background: rgba(0,0,0,.28);
  outline: none;
}
.site-form textarea { min-height: 120px; resize: vertical; }
.site-form select { color-scheme: dark; }
.site-form input:focus,
.site-form textarea:focus,
.site-form select:focus,
.newsletter-form input:focus { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.full-field { grid-column: 1 / -1; }
.site-form .button { margin-top: 22px; }
.button:disabled { opacity: .56; cursor: wait; transform: none; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

.reviews-section { background: linear-gradient(180deg, #10100e, #090908); }
.reviews-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(34px, 6vw, 80px); align-items: start; }
.published-reviews { display: grid; gap: 18px; }
.empty-review, .review-card {
  padding: 38px;
  border: 1px solid var(--line);
  background: rgba(18,17,15,.82);
}
.empty-review > span, .review-stars { color: var(--gold-light); letter-spacing: .22em; }
.empty-review h3, .review-card h3 { margin: 16px 0 8px; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.empty-review p, .review-card p { margin: 0; color: var(--muted); }
.review-author { margin-top: 18px !important; color: var(--gold-light) !important; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.review-form { position: relative; }
.review-form > label { margin-top: 16px; }
.check-field { display: flex !important; grid-template-columns: auto 1fr; align-items: flex-start; gap: 10px !important; color: var(--muted) !important; text-transform: none !important; letter-spacing: 0 !important; }
.check-field input { width: 18px; min-height: 18px; margin-top: 2px; accent-color: var(--gold); }

.newsletter-form { display: grid; gap: 12px; }
.newsletter-form .button { width: fit-content; margin-top: 5px; }

.footer-links { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-links a { color: var(--gold-light); font-size: .72rem; text-decoration: none; }

@media (max-width: 1050px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: .62rem; }
}

@media (max-width: 900px) {
  .progress-card, .split-card, .reviews-layout { grid-template-columns: 1fr; }
  .split-copy { position: static; }
  .author-photo, .author-photo img { min-height: 440px; }
  .author-photo img { object-position: center 18%; }
  .footer-links { justify-self: center; justify-content: center; }
}

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .site-form { padding: 26px 20px; }
  .progress-panel { padding: 22px 18px; }
  .progress-topline strong { font-size: 2rem; }
  .newsletter-form .button { width: 100%; }
}

@media (max-width: 420px) {
  .hero-lead { font-size: 1rem; }
  .section h2, .progress-card h2, .split-copy h2 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .author-photo, .author-photo img { min-height: 360px; }
  .author-copy .instagram-link { width: 100%; }
  .footer-links { gap: 10px; }
}

/* ----- Galería, calificaciones automáticas y carrusel de obras ----- */
.gallery-section { background: linear-gradient(180deg, #0d0d0c, #12110f); }
.book-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item,
.gallery-item-wide {
  position: relative;
  min-height: 0;
  height: 250px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background: #0a0a09;
  box-shadow: var(--shadow);
}

/* La primera ya no ocupa todo el ancho */
.gallery-item-wide {
  grid-column: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(.88) contrast(1.04);
  transition: transform .7s ease, filter .4s ease;
}
.gallery-item:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.08); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.85));
}
.gallery-item figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
}

.ratings-summary {
  padding: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(31,28,22,.82), rgba(12,12,10,.9));
}
.ratings-kicker {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .16em;
}
.ratings-overview { display: grid; gap: 10px; margin: 0; }
#rating-average-stars {
  color: var(--gold-light);
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
  letter-spacing: .11em;
  line-height: 1;
}
#rating-count { color: var(--muted); font-size: .78rem; }
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.rating-card,
.empty-rating {
  min-height: 78px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(18,17,15,.82);
}
.rating-card-stars,
.empty-rating > span {
  color: var(--gold-light);
  font-size: 1.15rem;
  letter-spacing: .13em;
}
.empty-rating { grid-column: 1 / -1; min-height: 142px; padding: 26px; text-align: center; }
.empty-rating > span { font-size: 1.35rem; }
.empty-rating p { margin: 13px 0 0; color: var(--muted); }
.review-privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.55;
}

.contact-section { background: linear-gradient(180deg, #090908, #0b0b0a); }
.author-titles-section {
  padding-top: clamp(50px, 7vw, 92px);
  background: linear-gradient(180deg, #0b0b0a, #060605);
}
.book-carousel {
  width: min(100%, 490px);
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 16px;
  align-items: center;
  margin: 0 auto;
}
.book-carousel-viewport {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0a09;
  box-shadow: var(--shadow);
}
.book-carousel-track {
  display: flex;
  transform: translateX(0);
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
}
.author-book-card { flex: 0 0 100%; min-width: 0; }
.author-book-card a { display: block; color: inherit; text-decoration: none; }
.author-book-card figure { position: relative; margin: 0; overflow: hidden; }
.author-book-card figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 49%, rgba(0,0,0,.86));
}
.author-book-card img {
  width: 100%;
  aspect-ratio: 645 / 1024;
  object-fit: cover;
  transition: transform .5s ease;
}
.author-book-card a:hover img { transform: scale(1.03); }
.author-book-card figcaption {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 23px;
  left: 24px;
}
.author-book-card figcaption span,
.author-book-card figcaption small { display: block; }
.author-book-card figcaption span {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: .06em;
}
.author-book-card figcaption small { margin-top: 5px; color: var(--gold-light); font-size: .71rem; letter-spacing: .08em; }
.carousel-control {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--gold-light);
  background: rgba(18,17,15,.85);
  font-size: 1.55rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.carousel-control:hover:not(:disabled) { border-color: var(--gold); color: var(--cream); background: rgba(185,134,63,.15); }
.carousel-control:disabled { opacity: .34; cursor: default; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; }
.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(231,223,209,.3);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.carousel-dot.is-active { width: 27px; background: var(--gold-light); }

@media (max-width: 900px) {
  .book-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item,
  .gallery-item-wide { grid-column: auto; min-height: 310px; }
  .gallery-item-wide { grid-column: 1 / -1; }
  .ratings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .book-gallery { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item-wide { grid-column: auto; min-height: 280px; }
  .gallery-item-wide { min-height: 300px; }
  .gallery-item figcaption { right: 18px; bottom: 16px; left: 18px; }
  .ratings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ratings-summary { padding: 26px 20px; }
  .book-carousel { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 9px; }
  .carousel-control { width: 42px; height: 42px; font-size: 1.25rem; }
}
