/* Libros — landing editorial */
:root {
  --ink: #1a1614;
  --paper: #f7f4ef;
  --paper-dark: #ebe6dd;
  --accent: #8b2942;
  --accent-hover: #6d1f33;
  --muted: #5c5650;
  --gold: #c4a35a;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(26, 22, 20, 0.12);
  --font-display: "Cormorant Garamond", "Georgia", serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 22, 20, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 0.35rem;
  border-radius: 10px;
  text-decoration: none;
}

.header-cart:hover {
  color: var(--accent);
  text-decoration: none;
  background: rgba(139, 41, 66, 0.08);
}

.header-cart__badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 4px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 41, 66, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.btn--sm {
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
}

.book-footer--stack {
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

.book-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.book-card__actions .btn {
  width: 100%;
  justify-content: center;
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 80%;
  background: radial-gradient(
    ellipse at 30% 20%,
    rgba(196, 163, 90, 0.18) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 32ch;
  margin: 0 0 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 22, 20, 0.12);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  justify-self: end;
  max-width: 420px;
}

.hero-stack {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  right: auto;
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 200px;
}

.hero-float p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-float strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-top: 0.25rem;
}

/* Section common */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header--left {
  text-align: left;
  max-width: 640px;
  margin-left: 0;
  margin-right: auto;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.section-desc {
  margin: 0;
  color: var(--muted);
}

.bg-warm {
  background: linear-gradient(180deg, var(--paper-dark) 0%, var(--paper) 100%);
}

/* Book grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.book-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 22, 20, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.book-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  color: inherit;
  text-decoration: none;
}

.book-card__link:hover .book-title__text {
  color: var(--accent);
}

.book-author--card {
  margin-bottom: 0;
}

.book-card__buy {
  padding: 0 1.15rem 1.25rem;
  margin-top: auto;
}

.book-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--paper-dark);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.book-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.book-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  line-height: 1.25;
}

.book-author {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.book-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.book-price {
  font-weight: 700;
  font-size: 1.1rem;
}

.book-footer .btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

/* Ficha de libro */
.product-detail__back {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.product-detail__back a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.product-detail__back a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.product-breadcrumb {
  margin: 0 0 1.5rem;
}

.product-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.product-breadcrumb__list li:not(:last-child)::after {
  content: "|";
  color: rgba(92, 86, 80, 0.45);
  font-weight: 400;
}

.product-breadcrumb__list a {
  color: var(--muted);
  text-decoration: none;
}

.product-breadcrumb__list a:hover {
  color: var(--accent);
}

.product-breadcrumb__list [aria-current="page"] {
  color: var(--accent);
  max-width: 100%;
}

.product-breadcrumb__muted {
  color: var(--muted);
}

.product-detail__grid {
  display: grid;
  grid-template-columns: minmax(260px, min(560px, 100%)) 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.product-detail__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.product-detail__gallery--single {
  grid-template-columns: 1fr;
}

.product-detail__cover {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-dark);
}

.product-detail__cover img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}

.product-detail__title {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.product-detail__title--h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.product-detail__author {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.product-detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.product-detail__price-alt {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.product-detail__promo {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--accent);
  font-weight: 500;
}

.product-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.product-detail__meta {
  border-top: 1px solid rgba(26, 22, 20, 0.1);
  padding-top: 1.25rem;
}

.product-detail__dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
  margin: 0;
  font-size: 0.9rem;
}

.product-detail__dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-detail__dl dd {
  margin: 0.15rem 0 0;
  color: var(--ink);
}

.product-detail__story {
  max-width: 720px;
}

.product-detail__h2 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
}

.product-detail__h2:first-child {
  margin-top: 0;
}

.product-detail__synopsis {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.product-detail__bullets {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.product-detail__bullets li {
  margin-bottom: 0.5rem;
}

.product-detail--narrow {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.product-detail--narrow .product-detail__back {
  text-align: left;
}

@media (max-width: 800px) {
  .product-detail__grid {
    grid-template-columns: 1fr;
  }

  .product-detail__visual {
    max-width: 100%;
    margin-inline: auto;
  }

  .product-detail__gallery:not(.product-detail__gallery--single) {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-inline: auto;
  }

  .product-detail__dl {
    grid-template-columns: 1fr;
  }
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 22, 20, 0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(139, 41, 66, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  margin: 0;
  padding: clamp(3rem, 7vw, 4.5rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 480px;
  opacity: 0.85;
}

.cta-band .btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: #d4b56a;
  color: var(--ink);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(26, 22, 20, 0.1);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0.75rem 0 0;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 1rem;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--ink);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 22, 20, 0.08);
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* Club de lectura — suscripción (estética rosa / bordó) */
.club {
  --club-bg: #f7e4ec;
  --club-ink: #7a1f32;
  --club-ink-hover: #5c1826;

  background: var(--club-bg);
  color: var(--club-ink);
  padding: clamp(3rem, 8vw, 5rem) 1.25rem;
  text-align: center;
}

.club a {
  color: var(--club-ink);
}

.club-wrap {
  width: min(900px, 100%);
  margin-inline: auto;
}

.club-display {
  font-family: "Shrikhand", "Georgia", cursive;
  font-weight: 400;
  font-size: clamp(1.85rem, 5.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--club-ink);
  margin: 0 0 1.25rem;
  letter-spacing: 0.01em;
}

.club-display--sm {
  font-size: clamp(1.45rem, 4vw, 2rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.club-lead {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 2.1vw, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.65;
  margin: 0 auto 2rem;
  max-width: 38em;
}

.club-perks {
  list-style: none;
  margin: 0 auto 2.75rem;
  padding: 0;
  max-width: 28rem;
  text-align: left;
}

.club-perks li {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.65rem 0 0.65rem 2rem;
  position: relative;
  border-bottom: 1px solid rgba(122, 31, 50, 0.15);
}

.club-perks li:last-child {
  border-bottom: none;
}

.club-perks li::before {
  content: "♡";
  position: absolute;
  left: 0;
  top: 0.55rem;
  font-size: 1rem;
  line-height: 1;
}

.club-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.club-plan {
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(122, 31, 50, 0.12);
}

.club-plan-desc {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.55;
  margin: 0 0 1rem;
  min-height: 3.1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-plan-price {
  font-family: "Shrikhand", cursive;
  font-size: clamp(2rem, 5vw, 2.65rem);
  margin: 0 0 1.35rem;
  color: var(--club-ink);
}

.btn-club {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: #fff;
  background: var(--club-ink);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 6px 20px rgba(122, 31, 50, 0.3);
}

.btn-club:hover {
  background: var(--club-ink-hover);
  color: #fff;
  text-decoration: none;
}

.btn-club:active {
  transform: scale(0.98);
}

.club-info {
  text-align: left;
  margin-top: 0.5rem;
}

.club-info-block {
  margin-bottom: 1.35rem;
}

.club-info-block:last-child {
  margin-bottom: 0;
}

.club-info-q {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
  color: var(--club-ink);
}

.club-info-a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: 0;
  color: var(--club-ink);
  opacity: 0.92;
}

.club-themes {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.65;
  margin: 0;
  max-width: 36em;
  margin-inline: auto;
}

@media (max-width: 700px) {
  .club-plans {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .club-plan-desc {
    min-height: auto;
  }
}

/* Mobile nav */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    max-width: 320px;
    order: -1;
  }

  .book-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Toasts */
.toast-root {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.9rem 1.15rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast--in {
  opacity: 1;
  transform: translateY(0);
}

.toast--out {
  opacity: 0;
  transform: translateY(8px);
}

/* Carrito */
.cart-empty {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 2rem 0 0.5rem;
}

.cart-empty__cta {
  text-align: center;
  margin: 0 0 2rem;
}

.cart-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 72px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(26, 22, 20, 0.07);
}

.cart-row__media {
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-dark);
}

.cart-row__media img {
  width: 72px;
  height: 108px;
  object-fit: cover;
  display: block;
}

.cart-row__ph {
  width: 72px;
  height: 108px;
  background: var(--paper-dark);
}

.cart-row__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.cart-row__title:hover {
  color: var(--accent);
}

.cart-row__author {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.cart-row__unit {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-qty {
  width: 3.25rem;
  padding: 0.4rem 0.35rem;
  font-size: 0.95rem;
  border: 1px solid rgba(26, 22, 20, 0.2);
  border-radius: 8px;
  text-align: center;
  font-family: var(--font-body);
}

.cart-row__sub {
  font-weight: 700;
  font-size: 1rem;
  min-width: 5.5rem;
  text-align: right;
}

.cart-remove {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}

.cart-remove:hover {
  background: rgba(139, 41, 66, 0.12);
  color: var(--accent);
}

.cart-summary {
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(26, 22, 20, 0.07);
  max-width: 400px;
  margin-left: auto;
}

.cart-summary__total {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.btn-cart-checkout {
  width: 100%;
}

/* Contenido bajo el carrito (editable en includes/cart_below_blocks.php) */
.cart-below {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid rgba(26, 22, 20, 0.12);
}

.cart-below__heading {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.cart-below__intro {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52rem;
}

.cart-below__code {
  font-size: 0.82em;
  padding: 0.12em 0.4em;
  background: rgba(26, 22, 20, 0.06);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.cart-below__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.cart-below-card {
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 22, 20, 0.08);
  box-shadow: 0 4px 16px rgba(26, 22, 20, 0.05);
}

.cart-below-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.cart-below-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.cart-below-card__cta {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-below-card__cta a {
  color: var(--accent);
  text-decoration: none;
}

.cart-below-card__cta a:hover {
  text-decoration: underline;
}

.cart-suggest {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  border: 1px solid rgba(26, 22, 20, 0.08);
}

.cart-suggest--first {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.cart-suggest__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.cart-suggest__sub {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 40rem;
}

.cart-suggest__row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.cart-suggest-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid rgba(26, 22, 20, 0.06);
  align-items: flex-start;
}

.cart-suggest-card__media {
  flex-shrink: 0;
  width: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-dark);
}

.cart-suggest-card__media img {
  width: 72px;
  height: 108px;
  object-fit: cover;
  display: block;
}

.cart-suggest-card__body {
  min-width: 0;
  flex: 1;
}

.cart-suggest-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: block;
  line-height: 1.25;
}

.cart-suggest-card__title:hover {
  color: var(--accent);
}

.cart-suggest-card__author {
  margin: 0.2rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.cart-suggest-card__price {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-suggest-card__btn {
  width: 100%;
}

.cart-suggest__footer {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-suggest__footer a {
  color: var(--accent);
  text-decoration: none;
}

.cart-suggest__footer a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .cart-suggest__row {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .cart-suggest-card {
    flex: 0 0 min(280px, 85vw);
    scroll-snap-align: start;
  }
}

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

@media (max-width: 700px) {
  .cart-row {
    grid-template-columns: 64px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-row__qty,
  .cart-row__sub,
  .cart-remove {
    grid-column: 2;
  }

  .cart-row__qty {
    justify-self: start;
  }

  .cart-row__sub {
    text-align: left;
  }

  .cart-remove {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
  }

  .cart-row {
    position: relative;
  }

  .cart-summary {
    margin-left: 0;
    max-width: none;
  }

  .toast-root {
    left: 1rem;
    right: 1rem;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto;
    top: 60px;
    background: var(--paper);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(26, 22, 20, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav .btn-primary {
    width: 100%;
  }

  .nav .header-cart {
    width: 100%;
    justify-content: center;
    padding: 0.65rem;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .book-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
