.container-loader.loader {
  display: none;

}

.container-loader.loader.on {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
      position: fixed;
    z-index: 22222;
    background: white;

}



@keyframes latido {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(0.95);
  }

  75% {
    transform: scale(1.05);
  }
}


.container-loader.loader img {
  animation: latido 1s infinite;
  transition: transform 0.2s ease-in-out;
  width: 200px;

}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1c2430;
  background: #f3f5f8;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e5e9f0;
}

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #1b2840;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #243b6a, #4264a6);
  color: #fff;
  font-size: 14px;
}

.brand-text {
  font-size: 1.1rem;
}

.search-box {
  flex: 1;
  max-width: 620px;
  display: flex;
  border: 1px solid #d9dfe9;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.search-box input {
  border: 0;
  padding: 12px 16px;
  flex: 1;
  font-size: 0.95rem;
}

.search-box input:focus {
  outline: none;
}

.search-box button {
  border: 0;
  background: #26447f;
  color: #fff;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
}

.main-nav {
  border-top: 1px solid #edf1f7;
  background: #fbfcff;
}

.nav-links {
  min-height: 46px;
  display: flex;
  gap: 24px;
  align-items: center;
  overflow-x: auto;
}

.nav-links a {
  color: #31496d;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.site-main {
  padding-bottom: 48px;
}

.hero-section {
  background: linear-gradient(120deg, #11294e 0%, #234884 60%, #2d5da7 100%);
  color: #fff;
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.hero-kicker {
  margin: 0 0 12px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .82;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.hero-copy p {
  color: #dce7fb;
  max-width: 56ch;
}

.hero-cta {
  display: inline-flex;
  margin-top: 10px;
  background: #fff;
  color: #1f396a;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
}

.hero-highlight {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  align-self: center;
}

.hero-badge {
  display: inline-block;
  background: #ffd25f;
  color: #262b35;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.82rem;
}

.books-section {
  padding-top: 42px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 1.55rem;
  color: #18293f;
}

.section-head span {
  font-size: 0.9rem;
  color: #5b6b82;
}

.carousel-3d {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 10px;
}

.carousel-3d-scene {
  height: 440px;
  perspective: 1100px;
  overflow: hidden;
}

.carousel-3d-track {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .65s ease;
}

.carousel-3d-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 330px;
  margin-left: -110px;
  margin-top: -165px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 26px rgba(11, 23, 44, .28);
  background: #fff;
}

.carousel-3d-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-control {
  border: 1px solid #d5deec;
  background: #ffffff;
  color: #203962;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.book-card {
  background: #fff;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  overflow: hidden;
  padding-bottom: 12px;
}

.book-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.book-card h3,
.book-card p {
  margin: 8px 12px 0;
}

.book-card h3 {
  font-size: .98rem;
}

.book-card p {
  color: #5b6b82;
  font-size: .86rem;
}

.site-footer {
  border-top: 1px solid #dde4ee;
  background: #fff;
}

.site-footer p {
  margin: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  color: #60708a;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }

  .search-box {
    max-width: 100%;
  }

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

  .carousel-3d {
    grid-template-columns: 40px 1fr 40px;
    overflow: visible;
  }

  .carousel-3d-scene {
    height: 360px;
    overflow: visible;
  }

  .carousel-3d-item {
    width: 165px;
    height: 247px;
    margin-left: -82px;
    margin-top: -123px;
  }
}

:root {
  --ink-strong: #15213a;
  --ink-medium: #3b4a64;
  --brand-1: #1f3f86;
  --brand-2: #5d7eff;
  --brand-3: #3eb5ff;
  --accent-1: #ffd86e;
  --surface-1: #f4f7fc;
  --surface-2: #ffffff;
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(125, 163, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 22%, rgba(62, 181, 255, 0.16), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(159, 126, 255, 0.12), transparent 35%),
    linear-gradient(180deg, #f8faff 0%, #eef2f8 100%);
  color: var(--ink-strong);
}

.site-header {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(16, 36, 74, 0.07);
}

.brand-mark {
  box-shadow: 0 8px 18px rgba(40, 72, 136, 0.35);
}

.search-box {
  border: 1px solid #d3dced;
  box-shadow: 0 8px 20px rgba(33, 59, 109, 0.08);
}

.search-box button {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  transition: transform .2s ease, filter .2s ease;
}

.search-box button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.nav-links a {
  position: relative;
  transition: color .2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
  transition: width .25s ease;
}

.nav-links a:hover {
  color: #193462;
}

.nav-links a:hover::after {
  width: 100%;
}

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, #0f2450 0%, #1f4383 55%, #2d67b6 100%);
}

.hero-section::before,
.hero-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::before {
  width: 380px;
  height: 380px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
  animation: blobFloatA 10s ease-in-out infinite;
}

.hero-section::after {
  width: 260px;
  height: 260px;
  bottom: -100px;
  left: -70px;
  background: radial-gradient(circle, rgba(255, 216, 110, 0.35), transparent 68%);
  animation: blobFloatB 12s ease-in-out infinite;
}

.hero-copy h1 {
  text-shadow: 0 12px 25px rgba(5, 15, 32, 0.35);
}

.hero-cta {
  background: linear-gradient(135deg, #ffffff, #eef4ff);
  box-shadow: 0 8px 22px rgba(11, 27, 57, 0.28);
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(11, 27, 57, 0.34);
}

.hero-highlight {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 26px rgba(5, 15, 32, 0.26);
  animation: glowPulse 4.6s ease-in-out infinite;
}

.hero-badge {
  box-shadow: 0 6px 15px rgba(255, 210, 95, 0.4);
}

.books-section {
  position: relative;
}

.books-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(1200px, 92%);
  border-top: 1px solid rgba(166, 182, 210, 0.3);
}

.section-head h2 {
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 62px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
}

.carousel-3d {
  border-radius: 22px;
  padding: 20px 10px;
  background: linear-gradient(180deg, #ffffff, #f6f8fd);
  border: 1px solid #dce5f4;
  box-shadow: 0 12px 28px rgba(20, 36, 68, 0.09);
}

.carousel-3d-scene {
  background:
    radial-gradient(circle at center, rgba(114, 148, 236, 0.12), transparent 58%);
  border-radius: 16px;
}

.carousel-3d-item {
  border: 0;
  overflow: visible;
  background: transparent;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform .4s ease, box-shadow .35s ease;
}

.carousel-3d-item:hover {
  box-shadow: 0 22px 36px rgba(11, 23, 44, .38);
}

.carousel-book-link {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  padding: 6px 8px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fefefe, #e8eef8);
  box-shadow:
    0 12px 22px rgba(14, 28, 52, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: transform .3s ease, filter .3s ease, box-shadow .3s ease;
  transform-origin: center center;
}

.carousel-book-link:hover {
  transform: scale(1.12);
  filter: brightness(1.04);
  box-shadow:
    0 18px 30px rgba(14, 28, 52, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  z-index: 4;
}

.carousel-book-link::before {
  content: none;
}

.carousel-book-link::after {
  content: none;
}

.carousel-3d.is-variant-alt .carousel-book-link {
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfcfe, #edf1f7);
  box-shadow:
    0 14px 24px rgba(41, 55, 84, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.carousel-3d.is-variant-alt .carousel-book-link::before {
  content: none;
}

.carousel-3d.is-variant-alt .carousel-book-link::after {
  content: none;
}

.carousel-3d.is-mode-coverflow .carousel-3d-track {
  transition: transform .4s ease;
}

.carousel-3d.is-mode-coverflow .carousel-3d-item {
  transition: transform .65s ease, opacity .45s ease, box-shadow .35s ease;
}

.carousel-book-title {
  margin: 8px 2px 0;
  text-align: center;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #312102;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  letter-spacing: .02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-book-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 7px;
  border: 1px solid #d8dfec;
  box-shadow: 0 18px 26px rgba(14, 28, 52, 0.26), 0 3px 8px rgba(14, 28, 52, 0.12);
}

.carousel-control {
  box-shadow: 0 8px 18px rgba(21, 41, 78, 0.12);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.carousel-control:hover {
  transform: translateY(-1px) scale(1.03);
  background-color: #26447f;
  color: #fff;
}

.carousel-3d {
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.carousel-3d-scene {
  background: transparent;
  border-radius: 0;
}

.carousel-control {
  box-shadow: none;
  border: 1px solid #d5deec;
  background: #ffffff;
}

.book-card {
  border: 1px solid #dde6f5;
  box-shadow: 0 10px 22px rgba(20, 40, 78, 0.08);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
}

.book-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(25, 46, 84, 0.05));
  pointer-events: none;
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: #b9c9e7;
  box-shadow: 0 18px 30px rgba(12, 27, 58, 0.16);
}

.book-card h3 {
  color: #1a2f54;
}

.book-card p {
  color: var(--ink-medium);
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid #d7e0f0;
  background: linear-gradient(180deg, #ffffff, #f4f7fd);
}

.book-detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
  background: #fff;
  border: 1px solid #dfe7f4;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(21, 41, 78, 0.08);
}

.book-detail-cover img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 16px 30px rgba(12, 27, 58, 0.2);
}

.book-detail-kicker {
  margin: 0;
  color: #48608a;
  font-size: .88rem;
  letter-spacing: .03em;
}

.book-detail-info h1 {
  margin: 8px 0 12px;
  color: #1a2f54;
}

.book-detail-info p {
  color: #4b5f83;
  line-height: 1.7;
  max-width: 62ch;
}

.item-page .book-detail-layout {
  position: relative;
  grid-template-columns: minmax(220px, 330px) 1fr;
  gap: 30px;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(194, 156, 103, 0.36);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 249, 240, 0.75), transparent 42%),
    linear-gradient(160deg, #fffdf9 0%, #f8efdf 100%);
  box-shadow: 0 22px 36px rgba(79, 57, 41, 0.12);
}

.item-review-hero {
  margin: 0 0 16px;
  padding: 18px 20px;
  border: 1px solid rgba(194, 156, 103, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 246, 232, 0.65), transparent 38%),
    linear-gradient(180deg, #fffdf9, #f8efdf);
  box-shadow: 0 10px 18px rgba(95, 70, 51, 0.08);
}

.item-review-hero h3 {
  margin: 0 0 8px;
  color: #4f3929;
  font-size: 1rem;
}

.item-review-hero p {
  margin: 0;
  color: #81644b;
  font-size: .93rem;
  line-height: 1.9;
}

.item-page .book-detail-layout::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px solid rgba(194, 156, 103, 0.16);
  pointer-events: none;
}

.item-page .book-detail-cover {
  position: sticky;
  top: 92px;
}

.item-page .book-detail-cover img {
  border-radius: 16px;
  border: 1px solid rgba(194, 156, 103, 0.45);
  box-shadow:
    0 24px 32px rgba(79, 57, 41, 0.20),
    0 2px 6px rgba(79, 57, 41, 0.10);
}

.item-page .book-detail-info {
  position: relative;
  z-index: 1;
}

.item-page .book-detail-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(194, 156, 103, 0.4);
  background: rgba(255, 248, 236, 0.8);
  color: #81644b;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
}

.item-page .book-detail-info h1 {
  margin: 0;
  color: #4f3929;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.35;
}

.book-detail-subtitle {
  margin: 8px 0 16px;
  color: #81644b;
  font-size: .98rem;
  line-height: 1.75;
  max-width: 64ch;
}

.book-detail-meta {
  display: grid;
  grid-template-columns: 140px 1fr;
  margin: 0 0 16px;
  border: 1px solid rgba(194, 156, 103, 0.34);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.88);
}

.book-detail-meta dt,
.book-detail-meta dd {
  margin: 0;
  padding: 10px 12px;
  line-height: 1.7;
  border-bottom: 1px solid rgba(194, 156, 103, 0.22);
}

.book-detail-meta dt {
  color: #5f4633;
  background: rgba(245, 237, 224, 0.82);
  font-size: .82rem;
  font-weight: 700;
}

.book-detail-meta dd {
  color: #81644b;
  font-size: .9rem;
  background: rgba(255, 252, 247, 0.78);
}

.book-detail-meta dt:nth-last-of-type(1),
.book-detail-meta dd:nth-last-of-type(1) {
  border-bottom: none;
}

.item-success {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(113, 148, 92, 0.34);
  background: rgba(239, 247, 230, 0.94);
  border-radius: 10px;
  color: #50663f;
  font-size: .88rem;
}

.book-buy-box {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "price price"
    "label qty"
    "actions actions";
  align-items: center;
  gap: 10px 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(184, 130, 62, 0.44);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 241, 227, 0.95));
  box-shadow: 0 12px 20px rgba(95, 70, 51, 0.10);
  max-width: 460px;
}

.book-price {
  grid-area: price;
  margin: 0;
  color: #5f4633;
  font-size: .9rem;
}

.book-price strong {
  color: #4f3929;
  font-size: 1.2rem;
  letter-spacing: .01em;
}

.book-buy-box label {
  grid-area: label;
  color: #5f4633;
  font-size: .84rem;
  font-weight: 700;
}

.book-buy-box input {
  grid-area: qty;
  width: 96px;
  padding: 9px 10px;
  border: 1px solid rgba(194, 156, 103, 0.56);
  border-radius: 10px;
  font: inherit;
  color: #4f3929;
  background: #fff;
}

.book-buy-box input:focus {
  outline: none;
  border-color: #b8823e;
  box-shadow: 0 0 0 3px rgba(184, 130, 62, 0.14);
}

.book-buy-actions {
  grid-area: actions;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.item-solapas {
  margin-top: 20px;
}

.item-solapas input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.item-solapas-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.item-solapas-nav label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #81644b;
  font-size: .86rem;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s ease;
  position: relative;
}

.item-solapas-nav label:hover {
  color: #5f4633;
}

.item-solapas-nav label::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: rgba(184, 130, 62, 0.75);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.item-solapas-nav label:hover::after {
  transform: scaleX(0.5);
}

.item-solapas-panels {
  position: relative;
}

.item-solapa-panel {
  display: none;
  border: 1px solid rgba(194, 156, 103, 0.34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 238, 224, 0.95));
  padding: 18px;
  box-shadow: 0 10px 18px rgba(95, 70, 51, 0.08);
}

.item-solapa-panel h3 {
  margin: 0 0 10px;
  color: #4f3929;
  font-size: 1rem;
}

.item-solapa-panel p,
.item-solapa-panel li {
  color: #81644b;
  font-size: .91rem;
  line-height: 1.9;
}

.item-solapa-panel ul,
.item-solapa-panel ol {
  margin: 0;
  padding-left: 1.2rem;
}

#item-solapa-bio:checked ~ .item-solapas-nav label[for="item-solapa-bio"],
#item-solapa-toc:checked ~ .item-solapas-nav label[for="item-solapa-toc"],
#item-solapa-intro:checked ~ .item-solapas-nav label[for="item-solapa-intro"] {
  color: #4f3929;
}

#item-solapa-bio:checked ~ .item-solapas-nav label[for="item-solapa-bio"]::after,
#item-solapa-toc:checked ~ .item-solapas-nav label[for="item-solapa-toc"]::after,
#item-solapa-intro:checked ~ .item-solapas-nav label[for="item-solapa-intro"]::after {
  transform: scaleX(1);
}

#item-solapa-bio:checked ~ .item-solapas-panels .item-panel-bio,
#item-solapa-toc:checked ~ .item-solapas-panels .item-panel-toc,
#item-solapa-intro:checked ~ .item-solapas-panels .item-panel-intro {
  display: block;
}

.book-detail-panels {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.book-panel {
  grid-column: span 6;
  border: 1px solid rgba(194, 156, 103, 0.34);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(247, 238, 224, 0.95));
  padding: 18px;
  box-shadow: 0 10px 18px rgba(95, 70, 51, 0.08);
}

.book-panel h3 {
  margin: 0 0 10px;
  color: #4f3929;
  font-size: 1rem;
  line-height: 1.4;
}

.book-panel p,
.book-panel li {
  color: #81644b;
  font-size: .91rem;
  line-height: 1.9;
}

.book-panel ul,
.book-panel ol {
  margin: 0;
  padding-left: 1.2rem;
}

.book-panel li + li {
  margin-top: 4px;
}

.book-panel-wide {
  grid-column: 1 / -1;
}

.book-excerpt {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(194, 156, 103, 0.5);
}

.book-detail-panels,
.book-panel,
.book-panel-wide {
  display: none;
}

.cart-page .container {
  max-width: 860px;
}

.cart-card {
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
  color: #5f4633;
}

.cart-card h1 {
  margin: 0 0 16px;
  color: #4f3929;
}

.cart-empty {
  color: #81644b;
  margin: 0 0 14px;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(194, 156, 103, 0.3);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.85);
}

.cart-item img {
  width: 80px;
  height: 106px;
  object-fit: cover;
  justify-self: center;
  border-radius: 8px;
  border: 1px solid rgba(194, 156, 103, 0.35);
}

.cart-item-info {
  align-self: center;
}

.cart-item-info h3 {
  margin: 0 0 6px;
  color: #4f3929;
  font-size: .95rem;
}

.cart-item-author,
.cart-item-meta {
  margin: 0;
  color: #6f553f;
  font-size: .86rem;
  line-height: 1.7;
}

.cart-item-remove-form {
  margin: 0;
  align-self: start;
}

.cart-remove-btn {
  border: 0;
  background: transparent;
  color: #6f553f;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  padding: 2px 4px;
  font-family: inherit;
  cursor: pointer;
  transition: color .18s ease;
}

.cart-remove-btn:hover {
  color: #4f3929;
}

.cart-summary {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(194, 156, 103, 0.35);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.9);
}

.cart-summary p {
  margin: 0;
  color: #5f4633;
  line-height: 1.8;
}

.cart-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.finish-order-page .container {
  max-width: 1100px;
}

.finish-order-card {
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
}

.finish-order-card h1 {
  margin: 0 0 18px;
  color: #4f3929;
}

.finish-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.finish-order-form,
.finish-order-summary {
  padding: 16px;
  border: 1px solid rgba(194, 156, 103, 0.34);
  border-radius: 14px;
  background: rgba(255, 252, 247, 0.9);
}

.finish-order-form h2,
.finish-order-summary h2 {
  margin: 0 0 14px;
  color: #4f3929;
  font-size: 1.02rem;
}

.finish-grid {
  display: grid;
  gap: 12px;
}

.finish-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.finish-order-form .contact-field {
  margin-bottom: 10px;
}

.finish-order-form .contact-field:last-of-type {
  margin-bottom: 0;
}

.finish-order-form textarea {
  min-height: 90px;
  resize: vertical;
}

.finish-payment-panel {
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid rgba(194, 156, 103, 0.34);
  border-radius: 12px;
  background: rgba(255, 252, 247, 0.78);
}

.finish-payment-panel h3 {
  margin: 0 0 10px;
  color: #5f4633;
  font-size: .92rem;
}

.finish-agree {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #6f553f;
  font-size: .88rem;
  line-height: 1.6;
}

.finish-agree input {
  accent-color: #b8823e;
}

.finish-order-summary .cart-list {
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.finish-complete-box {
  padding: 18px;
  border: 1px solid rgba(113, 148, 92, 0.34);
  border-radius: 14px;
  background: rgba(239, 247, 230, 0.92);
}

.finish-complete-box h2 {
  margin: 0 0 8px;
  color: #3f5a31;
}

.finish-complete-box p {
  margin: 0;
  color: #516640;
  line-height: 1.8;
}

.finish-order-number {
  margin-top: 8px !important;
}

@media (max-width: 980px) {
  .finish-order-layout {
    grid-template-columns: 1fr;
  }

  .finish-order-summary {
    order: -1;
  }
}

@media (max-width: 740px) {
  .finish-grid.two-col {
    grid-template-columns: 1fr;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes blobFloatA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-14px, 16px) scale(1.05);
  }
}

@keyframes blobFloatB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(16px, -8px) scale(1.08);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 26px rgba(5, 15, 32, 0.26);
  }
  50% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 32px rgba(8, 21, 45, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 740px) {
  .book-detail-layout {
    grid-template-columns: 1fr;
  }

  .book-detail-cover {
    max-width: 280px;
    margin: 0 auto;
  }

  .book-detail-meta {
    grid-template-columns: 1fr;
  }

  .book-buy-box {
    grid-template-columns: 1fr;
    grid-template-areas:
      "price"
      "label"
      "qty"
      "actions";
    max-width: 100%;
  }

  .item-page .book-detail-cover {
    position: static;
    top: auto;
  }

  .item-solapas-nav {
    gap: 6px;
  }

  .item-solapas-nav label {
    min-height: 34px;
    padding: 0 12px;
    font-size: .8rem;
  }

  .cart-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cart-item img {
    width: 100px;
    height: 132px;
    margin-bottom: 2px;
  }
}

@media (max-width: 980px) {
  .item-page .book-detail-layout {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }

  .item-page .book-detail-layout::before {
    inset: 10px;
  }

  .item-page .book-detail-cover {
    position: static;
    top: auto;
    max-width: 260px;
    margin: 0 auto;
  }

  .book-detail-meta {
    grid-template-columns: 1fr;
  }

  .item-review-hero {
    padding: 16px 16px;
  }

  .item-solapas-nav {
    display: flex;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .item-solapas-nav label {
    flex: 0 0 auto;
  }
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header-actions a {
  font-size: .84rem;
  font-weight: 600;
  color: #274372;
  border: 1px solid #d4dff0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  transition: all .2s ease;
}

.header-actions a:hover {
  background: #28467e;
  border-color: #28467e;
  color: #fff;
}

.footer-links {
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid #e0e8f5;
}

.footer-links a {
  color: #385382;
  font-weight: 600;
  font-size: .9rem;
}

.footer-links a:hover {
  color: #223d72;
}

.plain-page {
  padding-top: 54px;
}

.plain-card {
  background: #fff;
  border: 1px solid #dfe7f4;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(21, 41, 78, 0.08);
}

.plain-card h1 {
  margin: 0 0 10px;
  color: #1a2f54;
}

.plain-card p,
.plain-card li,
.plain-card label {
  color: #4b5f83;
  line-height: 1.7;
}

/* ===== Company page (会社概要) ===== */
.company-page .container {
  max-width: 760px;
}

.company-card {
  padding: 30px 34px;
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
}

.company-card h1 {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: .02em;
  color: #4f3929;
}

@media (max-width: 740px) {
  .company-card {
    padding: 22px 18px;
  }
}

/* ===== Ley de divulgaciones (特定商取引法) ===== */
.disclosure-page .container {
  max-width: 980px;
}

.disclosure-card {
  padding: 30px 34px;
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
}

.disclosure-card h1 {
  margin: 0 0 24px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: .02em;
  color: #4f3929;
}

.disclosure-table {
  display: grid;
  grid-template-columns: 220px 1fr;
  margin: 0;
  border-top: 1px solid rgba(194, 156, 103, 0.38);
}

.disclosure-table dt,
.disclosure-table dd {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(194, 156, 103, 0.28);
  line-height: 1.8;
  margin: 0;
}

.disclosure-table dt {
  font-weight: 700;
  font-size: .88rem;
  color: #5f4633;
  background: rgba(245, 237, 224, 0.65);
  display: flex;
  align-items: flex-start;
  padding-right: 20px;
}

.disclosure-table dd {
  color: #81644b;
  font-size: .92rem;
}

.disclosure-table dd a {
  color: #b8823e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.disclosure-table dd a:hover {
  color: #5f4633;
}

.disclosure-note {
  display: block;
  margin-top: 6px;
  font-size: .86rem;
  color: #9a7c62;
}

@media (max-width: 740px) {
  .disclosure-card {
    padding: 22px 18px;
  }

  .disclosure-table {
    grid-template-columns: 1fr;
  }

  .disclosure-table dt {
    padding-bottom: 4px;
    border-bottom: none;
    background: rgba(245, 237, 224, 0.85);
    border-radius: 6px 6px 0 0;
  }

  .disclosure-table dd {
    padding-top: 8px;
    border-radius: 0 0 6px 6px;
  }
}

/* ===== User guide (ご注文方法) ===== */
.user-guide-page .container {
  max-width: 980px;
}

.user-guide-card {
  padding: 30px 34px;
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
}

.user-guide-card h1 {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  letter-spacing: .02em;
  color: #4f3929;
}

.user-guide-card p,
.user-guide-card li,
.user-guide-card label {
  color: #81644b;
}

.ug-section {
  margin-bottom: 28px;
}

.ug-section:last-child {
  margin-bottom: 0;
}

.ug-heading {
  margin: 0 0 12px;
  padding: 8px 14px;
  font-size: .97rem;
  font-weight: 700;
  color: #5f4633;
  background: rgba(245, 237, 224, 0.75);
  border-left: 4px solid rgba(129, 100, 75, 0.55);
  border-radius: 0 8px 8px 0;
}

.ug-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.ug-list > li {
  padding-left: 1.4em;
  position: relative;
  line-height: 1.85;
  font-size: .92rem;
  color: #81644b;
}

.ug-list > li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: #b8823e;
  font-size: .75em;
  top: .35em;
}

.ug-sublist {
  margin: 8px 0 2px;
  padding-left: 1.2rem;
  display: grid;
  gap: 4px;
  list-style: decimal;
}

.ug-sublist li {
  font-size: .88rem;
  line-height: 1.75;
  color: #9a7c62;
}

.ug-contact-block {
  margin: 12px 0 4px 1.4em;
  padding: 12px 18px;
  background: rgba(245, 237, 224, 0.55);
  border: 1px solid rgba(194, 156, 103, 0.38);
  border-radius: 10px;
  display: inline-block;
}

.ug-contact-name {
  font-weight: 700;
  font-size: .92rem;
  color: #5f4633;
  margin: 0 0 4px;
}

.ug-contact-info {
  font-size: .9rem;
  color: #81644b;
  margin: 0;
}

.ug-contact-info a {
  color: #b8823e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ug-contact-info a:hover {
  color: #5f4633;
}

@media (max-width: 740px) {
  .user-guide-card {
    padding: 22px 18px;
  }

  .ug-contact-block {
    margin-left: 0;
    display: block;
  }
}

/* ===== Privacy policy ===== */
.privacy-policy-page .container {
  max-width: 980px;
}

.privacy-policy-card {
  padding: 30px 34px;
}

.privacy-policy-card {
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
}

.privacy-policy-card h1 {
  margin-bottom: 20px;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  letter-spacing: .02em;
  color: #4f3929;
}

.privacy-policy-card p,
.privacy-policy-card li,
.privacy-policy-card label {
  color: #81644b;
}

.privacy-policy-lead {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-left: 4px solid rgba(129, 100, 75, 0.5);
  background: rgba(245, 237, 224, 0.55);
  border-radius: 10px;
  line-height: 1.9;
  color: #5f4633;
  font-size: .93rem;
}

.pp-section {
  margin-bottom: 22px;
}

.pp-section:last-child {
  margin-bottom: 0;
}

.pp-heading {
  margin: 0 0 10px;
  padding: 7px 14px;
  font-size: .95rem;
  font-weight: 700;
  color: #5f4633;
  background: rgba(245, 237, 224, 0.75);
  border-left: 4px solid rgba(129, 100, 75, 0.55);
  border-radius: 0 8px 8px 0;
}

.pp-section p {
  font-size: .92rem;
  line-height: 1.9;
  color: #81644b;
  margin: 0 0 8px;
}

.pp-section p:last-child {
  margin-bottom: 0;
}

.pp-list {
  margin: 10px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.pp-list li {
  padding-left: 1.4em;
  position: relative;
  font-size: .9rem;
  line-height: 1.85;
  color: #81644b;
}

.pp-list li::before {
  content: "*";
  position: absolute;
  left: 0;
  color: #b8823e;
  font-weight: 700;
}

.pp-note {
  margin-top: 10px;
  font-size: .88rem;
  color: #9a7c62;
  line-height: 1.85;
}

@media (max-width: 740px) {
  .privacy-policy-card {
    padding: 22px 18px;
  }

  .privacy-policy-list {
    padding-left: 1.1rem;
  }
}

.plain-form-grid {
  display: grid;
  gap: 12px;
}

.plain-form-grid input,
.plain-form-grid textarea {
  width: 100%;
  border: 1px solid #d4dff0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}

.plain-form-grid textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== Auth pages ===== */
.auth-page .container {
  max-width: 640px;
}

.auth-card {
  padding: 32px 34px;
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
}

.auth-card h1 {
  margin: 0 0 8px;
  color: #4f3929;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: .02em;
}

.auth-lead {
  margin: 0 0 22px;
  color: #81644b;
  font-size: .93rem;
  line-height: 1.8;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.7;
}

.auth-alert-success {
  border: 1px solid rgba(113, 148, 92, 0.34);
  background: rgba(239, 247, 230, 0.92);
  color: #50663f;
}

.auth-alert-error {
  border: 1px solid rgba(179, 104, 91, 0.3);
  background: rgba(253, 240, 236, 0.92);
  color: #8b534a;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field label,
.auth-field-split label {
  font-size: .86rem;
  font-weight: 700;
  color: #5f4633;
}

.auth-field input,
.auth-field-split input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(194, 156, 103, 0.5);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.92);
  color: #4f3929;
  font: inherit;
  font-size: .93rem;
  box-sizing: border-box;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.auth-field input:focus,
.auth-field-split input:focus {
  outline: none;
  border-color: #b8823e;
  box-shadow: 0 0 0 3px rgba(184, 130, 62, 0.15);
}

.auth-field input::placeholder,
.auth-field-split input::placeholder {
  color: #c4a882;
}

/* Login: arena tone specifically for email/password fields */
.auth-page #login-email,
.auth-page #login-password {
  background: rgba(255, 252, 247, 0.92) !important;
  border-color: rgba(194, 156, 103, 0.5) !important;
  color: #4f3929 !important;
}

.auth-page #login-email:focus,
.auth-page #login-password:focus {
  border-color: #b8823e;
  box-shadow: 0 0 0 3px rgba(184, 130, 62, 0.2);
}

.auth-page #login-email::placeholder,
.auth-page #login-password::placeholder {
  color: #c4a882;
}

.auth-page #login-email:-webkit-autofill,
.auth-page #login-email:-webkit-autofill:hover,
.auth-page #login-email:-webkit-autofill:focus,
.auth-page #login-password:-webkit-autofill,
.auth-page #login-password:-webkit-autofill:hover,
.auth-page #login-password:-webkit-autofill:focus {
  -webkit-text-fill-color: #4f3929;
  box-shadow: 0 0 0 1000px rgba(255, 252, 247, 0.92) inset;
  transition: background-color 9999s ease-out 0s;
}

.auth-field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.auth-field-split > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-actions,
.account-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-primary,
.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 700;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.auth-primary {
  border: none;
  background: #81644b;
  color: #fff;
  cursor: pointer;
}

.auth-primary:hover {
  background: #5f4633;
  transform: translateY(-1px);
}

.auth-secondary {
  border: 1px solid rgba(194, 156, 103, 0.46);
  background: rgba(255, 252, 247, 0.76);
  color: #81644b;
}

.auth-secondary:hover {
  border-color: #b8823e;
  color: #5f4633;
  transform: translateY(-1px);
}

.account-card {
  max-width: 100%;
}

.account-welcome {
  margin: 0 0 16px;
  color: #5f4633;
  font-size: 1rem;
  font-weight: 700;
}

.account-summary {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin: 0 0 24px;
  border-top: 1px solid rgba(194, 156, 103, 0.38);
}

.account-summary dt,
.account-summary dd {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(194, 156, 103, 0.28);
  line-height: 1.8;
}

.account-summary dt {
  background: rgba(245, 237, 224, 0.65);
  color: #5f4633;
  font-size: .88rem;
  font-weight: 700;
}

.account-summary dd {
  color: #81644b;
  font-size: .92rem;
}

/* ===== Contact form ===== */
.contact-page .container {
  max-width: 760px;
}

.contact-card {
  padding: 30px 34px;
  border-color: rgba(194, 156, 103, 0.34);
  background: linear-gradient(180deg, #fffcf7, #f7eedf);
}

.contact-card h1 {
  margin: 0 0 6px;
  color: #4f3929;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  letter-spacing: .02em;
}

.contact-lead {
  margin: 0 0 22px;
  font-size: .92rem;
  color: #81644b;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field label {
  font-size: .85rem;
  font-weight: 700;
  color: #5f4633;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cf-required {
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: #b8823e;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .03em;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(194, 156, 103, 0.5);
  border-radius: 10px;
  background: rgba(255, 252, 247, 0.9);
  color: #4f3929;
  font: inherit;
  font-size: .92rem;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: #b8823e;
  box-shadow: 0 0 0 3px rgba(184, 130, 62, 0.15);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #c4a882;
}

.contact-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8823e' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.contact-field textarea {
  min-height: 130px;
  resize: vertical;
}

.cf-submit {
  justify-self: start;
  padding: 11px 36px;
  border: none;
  border-radius: 10px;
  background: #81644b;
  color: #fff;
  font: inherit;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.cf-submit:hover {
  background: #5f4633;
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .contact-card {
    padding: 22px 18px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .auth-field-split,
  .account-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 740px) {
  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ===== Rediseño pedido (Home/Header/Footer) ===== */
body {
  margin: 0;
  color: #2c1f0e;
  background:
    linear-gradient(rgba(240, 224, 196, 0.55), rgba(228, 208, 172, 0.60)),
    url('../img/fondo.jpg') center / cover fixed no-repeat;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border: 0;
  background: rgb(21 12 1 / 58%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.48);
}

.header-note-links {
  display: inline-flex;
  gap: 14px;
  margin-top: 0;
  align-items: center;
}

.account-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5c2e0a;
  transition: color .2s ease, transform .2s ease;
}

.account-icon-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

.account-icon-link:hover {
  color: #8b4010;
  transform: translateY(-1px);
}

.account-icon-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: rgba(40, 22, 6, 0.92);
  color: #f5e4b8;
  font-size: .72rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.account-icon-link::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  border: 5px solid transparent;
  border-top-color: rgba(40, 22, 6, 0.92);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.account-icon-link:hover::after,
.account-icon-link:hover::before {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.header-main {
  min-height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}

.brand-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-main .brand {
  color: #f5e4b8;
}

.header-main .brand-mark {
  background: linear-gradient(135deg, #c9883a, #e8b660);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid rgba(210, 168, 90, 0.55);
  padding: 4px 8px;
  background: transparent;
  transition: border-color .2s ease;
}

.nav-search:focus-within {
  border-bottom-color: #d9a052;
}

.nav-search input {
  width: 140px;
  background: transparent;
  border: none;
  color: #e8cfa0;
  font-size: .85rem;
  padding: 2px 0;
  outline: none;
}

.nav-search input::placeholder {
  color: rgba(232, 207, 160, 0.6);
}

.nav-search button {
  background: transparent;
  border: none;
  color: #d9a052;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: color .2s ease;
}

.nav-search button:hover {
  color: #f5d878;
}

.nav-search button svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-nav {
  background: transparent;
  border-top: 1px solid rgba(210, 168, 90, 0.18);
}

.nav-row {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-right-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-nav {
  position: sticky;
  top: 86px;
  z-index: 45;
  border-top: 1px solid rgba(210, 168, 90, 0.18);
  border-bottom: 1px solid rgba(210, 168, 90, 0.18);
  background: rgba(23, 13, 3, 0.52);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.category-links {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  overflow: visible;
  white-space: normal;
  padding: 6px 0;
}

.category-links a {
  color: #e8cfa0;
  font-weight: 600;
  font-size: .78rem;
  padding: 2px 0;
  white-space: nowrap;
}

.category-links a:hover {
  color: #f5d878;
}

.header-account-links a {
  font-size: .7rem;
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(210, 168, 90, 0.28);
  background: rgb(21 12 1 / 58%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px 10px;
  color: #d4b880;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.footer-brand-area {
  flex: 1 1 220px;
}

.footer-brand {
  margin: 0;
  color: #d4b880;
  font-size: .86rem;
  font-weight: 700;
}

.footer-tagline {
  margin: 0;
  color: #d4b880;
  font-size: .74rem;
  display: none;
}

.footer-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: unset;
  border: 0;
  gap: 14px;
  flex: 1 1 100%;
  justify-content: center;
}

.footer-links li {
  margin: 0;
}

.footer-links li + li::before {
  content: '|';
  margin-right: 14px;
  color: inherit;
}

.footer-links a {
  color: inherit;
  font-weight: 600;
  font-size: .74rem;
}

.footer-links a:hover {
  color: inherit;
  text-decoration: underline;
}

.site-footer > .footer-main > p,
.site-footer > .footer-main > * > p:last-child {
  display: block;
  margin: 0;
  flex: 1 1 100%;
  text-align: center;
}

.footer-legal {
  color: inherit;
  font-size: .7rem;
  line-height: 1.2;
  padding-top: 1px;
}

.site-footer::after {
  content: '';
  display: none;
}

.books-section .books-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.books-section .books-grid::-webkit-scrollbar {
  display: none;
}

.books-strip {
  display: grid;
  grid-template-columns: 32px 1fr 32px;
  align-items: center;
  gap: 6px;
}

.strip-control {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(170, 120, 60, 0.45);
  background: rgba(255, 244, 220, 0.92);
  color: #5a3a0e;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.strip-control:hover {
  background: rgba(255, 235, 198, 1);
}

.strip-control:disabled {
  opacity: .35;
  cursor: default;
}


.section-page .section-books-grid {
  display: grid;
  grid-template-columns: repeat(5, 207px);
  gap: 16px;
  justify-content: center;
  margin-bottom: 30px;
}

.books-section .book-card {
  width: 100%;
  max-width: 100%;
  flex: none;
  min-width: 0;
  margin: 0;
  padding: 0;
  height: auto;
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.books-section .book-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  margin: 0 auto 12px;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.books-section .book-card-image a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: perspective(900px) rotateY(-13deg);
  transition: transform .24s ease, filter .24s ease;
}

.books-section .book-card-image a::before {
  content: none;
}

.books-section .book-card-image a::after {
  content: none;
}

.books-section .book-card-image img {
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  box-shadow: 0 14px 22px rgba(0, 0, 0, 0.26), 0 2px 6px rgba(0, 0, 0, 0.14);
}

.books-section .book-card:hover {
  transform: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.books-section .book-card:hover .book-card-image a {
  transform: perspective(900px) rotateY(-9deg) translateY(-2px);
  filter: brightness(1.04);
}

.books-section .book-card-detail {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.section-page .book-card {
  width: 207px;
  max-width: 207px;
  flex: 0 0 207px;
  padding: 8px 8px 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(202, 212, 226, 0.9);
  background: linear-gradient(180deg, #fffcf7 0%, #f7eedf 100%);
  box-shadow: 0 8px 16px rgba(89, 60, 27, 0.10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.section-page .book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 182, 203, 0.88);
  box-shadow: 0 14px 20px rgba(89, 60, 27, 0.16);
}

.section-page .book-card-image {
  width: 170px;
  height: 226px;
  margin: 0 auto 10px;
  overflow: visible;
}

.section-page .book-card-image a {
  transform: perspective(900px) rotateY(-8deg);
}

.section-page .book-card:hover .book-card-image a {
  transform: perspective(900px) rotateY(-5deg) translateY(-1px);
}

.section-more {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #5a3a0e;
  font-weight: 700;
  font-size: .84rem;
  text-decoration: none;
  transition: color .2s ease, gap .2s ease;
}

.section-more a::after {
  content: "\2192";
  font-size: .9em;
  display: inline-block;
  transition: transform .2s ease;
}

.section-more a:hover {
  color: #3d2008;
  background: transparent;
}

.section-more a:hover::after {
  transform: translateX(4px);
}

.category-showcase {
  padding-top: 24px;
}

.category-showcase .container {
  width: min(1320px, 96%);
}

.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-showcase-card {
  position: relative;
  display: block;
  min-height: 430px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 20px rgba(54, 31, 10, 0.18);
}

.category-showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.category-showcase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(28, 18, 8, 0.12) 30%, rgba(28, 18, 8, 0.78) 100%);
}

.category-showcase-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 238, 209, 0.55);
  background: rgba(255, 247, 232, 0.16);
  color: #fffaf2;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.category-showcase-overlay h3 {
  margin: 0;
  color: #fffaf2;
  font-size: clamp(1.75rem, 3.2vw, 2.3rem);
  letter-spacing: .03em;
}

.category-showcase-overlay p {
  margin: 8px 0 0;
  color: rgba(255, 248, 238, 0.95);
  font-size: .95rem;
}

.category-showcase-card:hover img {
  transform: scale(1.04);
}

.kids-feature-review {
  padding-top: 28px;
}

.kids-feature-review .container {
  width: min(1280px, 96%);
}

.kids-review-banner {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(220px, 1.05fr) 24px minmax(260px, 1fr);
  align-items: center;
  gap: 26px;
  overflow: hidden;
  min-height: 270px;
  padding: 26px 34px;
  border-radius: 26px;
  border: 1px solid rgba(214, 187, 146, 0.36);
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 248, 235, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(170, 132, 90, 0.95), rgba(126, 93, 61, 0.95)),
    linear-gradient(180deg, rgba(255, 247, 232, 0.14), rgba(255, 247, 232, 0.05));
  box-shadow:
    0 14px 28px rgba(54, 31, 10, 0.16),
    inset 0 1px 0 rgba(255, 250, 241, 0.28);
}

.kids-review-banner::before,
.kids-review-banner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: .20;
}

.kids-review-banner::before {
  inset: 18px 24px auto 80px;
  height: 78px;
  border-top: 3px dashed rgba(246, 228, 195, 0.32);
  border-left: 3px dashed rgba(246, 228, 195, 0.32);
  border-top-left-radius: 24px;
}

.kids-review-banner::after {
  right: 54px;
  bottom: 28px;
  width: 420px;
  border-top: 3px dashed rgba(246, 228, 195, 0.28);
}

.kids-review-cover {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.kids-review-cover img {
  width: min(100%, 156px);
  display: block;
  filter: drop-shadow(0 18px 20px rgba(44, 23, 7, 0.32));
}

.kids-review-title-group,
.kids-review-copy {
  position: relative;
  z-index: 2;
  color: #fff8ef;
}

.kids-review-kicker {
  margin: 0 0 10px;
  color: rgba(255, 244, 225, 0.82);
  font-size: .74rem;
  letter-spacing: .16em;
  font-weight: 800;
}

.kids-review-title-group h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: .98;
  color: #fffaf2;
  text-shadow: 0 10px 18px rgba(67, 36, 10, 0.18);
}

.kids-review-author {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2vw, 1.6rem);
  color: rgba(255, 245, 231, 0.92);
}

.kids-review-divider {
  width: 4px;
  height: 118px;
  border-radius: 999px;
  background: rgba(255, 243, 221, 0.64);
  justify-self: center;
  position: relative;
  z-index: 2;
}

.kids-review-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.6;
  color: rgba(255, 248, 238, 0.96);
}

.kids-review-price {
  display: inline-block;
  margin-top: 18px;
  color: #fff2d5;
  font-size: .96rem;
  font-weight: 800;
}

.kids-review-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 238, 209, 0.62);
  background: rgba(255, 247, 232, 0.12);
  color: #fffaf2;
  font-weight: 900;
  font-size: .9rem;
  box-shadow: 0 6px 12px rgba(58, 31, 9, 0.10);
}

.kids-review-watermark {
  position: absolute;
  left: 28px;
  bottom: -10px;
  margin: 0;
  pointer-events: none;
  font-size: clamp(2.2rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: .88;
  color: rgba(255, 245, 229, 0.10);
  letter-spacing: -.04em;
}

.section-pagination {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(170, 120, 60, 0.45);
  background: rgba(255, 244, 220, 0.92);
  color: #5a3a0e;
  font-size: .8rem;
  font-weight: 700;
}

.pagination-link:hover {
  background: rgba(255, 235, 198, 1);
}

.pagination-link.is-active {
  background: linear-gradient(135deg, #8a5c20, #b87a30);
  border-color: #a26725;
  color: #fff;
}

.section-page .books-grid {
  display: flex;
  flex-wrap: nowrap;
}

.section-empty {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid rgba(194, 156, 103, 0.35);
  border-radius: 12px;
  background: rgba(255, 249, 239, 0.8);
  color: #6f553f;
  font-size: .92rem;
  line-height: 1.8;
  text-align: center;
}

.books-section .book-card h3,
.books-section .book-card p {
  margin: 3px 7px 0;
  color: #3a2510;
}

.books-section .book-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  min-height: 2.4em;
  text-transform: uppercase;
}

.books-section .book-card h3 a {
  color: inherit;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
}

.books-section .book-card h3 a:hover {
  text-decoration: underline;
}

.section-page .book-card h3,
.section-page .book-card p {
  margin: 4px 8px 0;
  text-transform: none;
}

.section-page .book-card h3 {
  font-size: .74rem;
  line-height: 1.45;
  min-height: 2.9em;
  color: var(--sand-heading);
  font-weight: 700;
}

.section-page .book-card-author {
  font-size: .64rem;
  line-height: 1.35;
  min-height: 2.7em;
  color: var(--sand-ink);
  opacity: 1;
}

.section-page .book-card-price {
  margin-top: 8px !important;
  font-size: .72rem;
  color: var(--sand-heading-strong);
  font-weight: 800;
}

.books-section .book-card-author {
  font-size: .75rem;
  line-height: 1.25;
  opacity: .9;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  text-transform: uppercase;
}

.books-section .book-card-price {
  font-size: .85rem;
  font-weight: 700;
  color: #6a4010;
  margin-top: auto !important;
}

#mas-vendidos {
  padding-top: 0;
}

#mas-vendidos .container {
  padding-top: 0;
}

#mas-vendidos .carousel-3d {
  margin-top: -6px;
}

#mas-vendidos .section-head {
  margin-bottom: 6px;
}

@media (max-width: 980px) {
  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-showcase-card {
    min-height: 360px;
  }

  .kids-review-banner {
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 24px 24px 30px;
  }

  .kids-review-divider {
    display: none;
  }

  .kids-review-copy {
    grid-column: 1 / -1;
  }

  .kids-review-banner::after {
    width: 240px;
  }

  .header-main {
    padding: 8px 0;
  }

  .brand-stack {
    align-items: center;
  }

  .nav-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 4px 0 6px;
  }

  .nav-right-section {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .category-links {
    gap: 6px 12px;
    min-height: 38px;
  }

  .category-nav {
    top: 116px;
  }

  .nav-search input {
    width: 100px;
    font-size: .8rem;
  }

  .header-account-links {
    justify-content: center;
  }

  .books-section .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-page .books-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-page .section-books-grid {
    grid-template-columns: repeat(3, 207px);
  }

  .footer-main {
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .footer-links {
    justify-content: center !important;
    align-items: center;
    gap: 2px;
  }
}

@media (max-width: 740px) {
  html,
  body {
    overflow-x: hidden;
  }

  .home-refresh {
    overflow-x: hidden;
  }

  .home-refresh .container,
  .home-refresh .category-showcase .container,
  .home-refresh .kids-feature-review .container {
    width: min(100%, 92%);
  }

  .category-showcase {
    padding-top: 18px;
  }

  .category-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-showcase-card {
    min-height: 210px;
    border-radius: 14px;
  }

  .home-refresh .carousel-3d {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
    width: 100%;
  }

  .home-refresh .carousel-3d-scene {
    overflow: hidden;
  }

  .home-refresh .carousel-3d-track {
    overflow: hidden;
  }

  .category-showcase-overlay {
    padding: 16px;
  }

  .category-showcase-chip {
    font-size: .78rem;
    margin-bottom: 8px;
  }

  .category-showcase-overlay h3 {
    font-size: 1.7rem;
  }

  .category-showcase-overlay p {
    font-size: .84rem;
  }

  .kids-feature-review {
    padding-top: 22px;
  }

  .kids-review-banner {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 20px 16px 26px;
    border-radius: 20px;
    text-align: center;
  }

  .kids-review-banner::before,
  .kids-review-banner::after {
    display: none;
  }

  .kids-review-cover img {
    width: 180px;
    max-width: 58vw;
  }

  .kids-review-kicker {
    margin-bottom: 6px;
  }

  .kids-review-title-group h2 {
    font-size: 2rem;
  }

  .kids-review-author {
    margin-top: 8px;
    font-size: .98rem;
  }

  .kids-review-copy p {
    font-size: .94rem;
  }

  .kids-review-price {
    margin-top: 12px;
    font-size: .86rem;
  }

  .kids-review-cta {
    margin-top: 14px;
    font-size: .84rem;
    padding: 9px 18px;
  }

  .kids-review-watermark {
    left: 12px;
    bottom: -4px;
    font-size: 2.4rem;
  }

  .books-section .book-card {
    width: 148px;
    max-width: 148px;
    flex-basis: 148px;
  }

  .books-section .book-card-image {
    width: 120px;
    height: 172px;
  }

  .books-section .book-card h3 {
    font-size: .52rem;
  }

  .books-section .book-card-author,
  .books-section .book-card-price {
    font-size: .48rem;
  }

  .books-strip {
    grid-template-columns: 28px 1fr 28px;
    gap: 4px;
  }

  .strip-control {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .category-links {
    gap: 6px 10px;
    min-height: 36px;
  }

  .category-nav {
    top: 138px;
  }

  .category-links a {
    font-size: .72rem;
  }

  .nav-search {
    gap: 3px;
    padding: 4px 6px;
    border-bottom: 1.5px solid rgba(210, 168, 90, 0.55);
  }

  .nav-search input {
    width: 70px;
    font-size: .78rem;
    padding: 1px 0;
  }

  .nav-search input::placeholder {
    font-size: .75rem;
  }

  .nav-search button svg {
    width: 14px;
    height: 14px;
  }

  .nav-links {
    gap: 12px;
    font-size: .9rem;
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: .83rem;
  }

  .carousel-book-title {
    margin-top: 6px;
    font-size: .7rem;
    line-height: 1.25;
  }

  .account-icon-link svg {
    width: 18px;
    height: 18px;
  }

  .header-account-links a {
    font-size: .68rem;
  }

  .books-section .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-page .section-books-grid {
    grid-template-columns: repeat(2, 176px);
    gap: 12px;
  }

  .section-page .book-card {
    width: 176px;
    max-width: 176px;
    flex-basis: 176px;
    padding: 6px 6px 10px;
  }

  .section-page .book-card-image {
    width: 144px;
    height: 192px;
  }

  .section-page .book-card h3 {
    font-size: .66rem;
  }

  .section-page .book-card-author {
    font-size: .58rem;
  }

  .section-page .book-card-price {
    font-size: .66rem;
  }

  .section-more {
    justify-content: center;
  }

  #mas-vendidos {
    padding-top: 2px;
  }

  #mas-vendidos .section-head {
    margin-bottom: 6px;
  }
}

/* ===== Overrides de color para temática cálida ===== */
.section-head h2 {
  color: #2c1a08;
}

.section-head h2::after {
  background: linear-gradient(90deg, #c98e3a, #e8b660);
}

.section-head span {
  color: #7a5c30;
}

.carousel-control {
  border-color: rgba(180, 130, 60, 0.35);
  background: rgba(255, 248, 236, 0.90);
  color: #6a4010;
}

.carousel-control:hover {
  background: rgba(255, 238, 200, 1);
  border-color: rgba(185, 120, 30, 0.65);
}

.carousel-3d {
  background: transparent;
  border-color: rgba(190, 145, 70, 0.28);
  box-shadow: none;
}

/* ===== Home refresh: look arena unificado ===== */
.home-refresh {
  --sand-bg: #f4ede1;
  --sand-surface: #fff8ef;
  --sand-surface-2: #f8efdf;
  --sand-border: rgba(194, 156, 103, 0.34);
  --sand-ink: #81644b;
  --sand-ink-soft: #9a7c62;
  --sand-heading: #5f4633;
  --sand-heading-strong: #4f3929;
  --sand-accent: #b8823e;
  --sand-accent-soft: #e6bc7a;
  font-family: "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", Arial, sans-serif;
  color: var(--sand-ink);
}

.home-refresh,
.home-refresh p,
.home-refresh span,
.home-refresh li,
.home-refresh a,
.home-refresh .book-card-author,
.home-refresh .book-card-price,
.home-refresh .carousel-book-title {
  color: var(--sand-ink);
}

.home-refresh h1,
.home-refresh h2,
.home-refresh h3,
.home-refresh h4 {
  color: var(--sand-heading);
}

.home-refresh .books-section {
  padding-top: 34px;
}

.home-refresh .books-section::before {
  border-top: 1px solid var(--sand-border);
}

.home-refresh .section-head h2 {
  color: var(--sand-heading-strong);
  font-weight: 700;
  letter-spacing: .01em;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.home-refresh .section-head h2::after {
  height: 4px;
  width: 74px;
  background: linear-gradient(90deg, var(--sand-accent), var(--sand-accent-soft));
}

.home-refresh .section-head span {
  color: var(--sand-ink-soft);
  font-size: .96rem;
}

.home-refresh .carousel-control,
.home-refresh .strip-control {
  border-color: var(--sand-border);
  background: var(--sand-surface);
  color: var(--sand-ink);
}

.home-refresh .carousel-control:hover,
.home-refresh .strip-control:hover {
  background: var(--sand-surface-2);
  border-color: rgba(186, 138, 74, 0.5);
}

.home-refresh .section-more a {
  color: var(--sand-heading-strong);
  border: 0;
  background: transparent;
}

.home-refresh .section-more a:hover {
  color: var(--sand-heading-strong);
  background: transparent;
}

.home-refresh .books-strip {
  gap: 10px;
  grid-template-columns: 34px 1fr 34px;
}

.home-refresh .books-section .book-card {
  width: 207px;
  max-width: 207px;
  flex: 0 0 207px;
  padding: 8px 8px 12px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(202, 212, 226, 0.9);
  background: linear-gradient(180deg, #fffcf7 0%, #f7eedf 100%);
  box-shadow: 0 8px 16px rgba(89, 60, 27, 0.10);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-refresh .books-section .book-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 182, 203, 0.88);
  box-shadow: 0 14px 20px rgba(89, 60, 27, 0.16);
}

.home-refresh .books-section .book-card-image {
  width: 170px;
  height: 226px;
  margin: 0 auto 10px;
  overflow: visible;
}

.home-refresh .books-section .book-card-image a {
  transform: perspective(900px) rotateY(-8deg);
}

.home-refresh .books-section .book-card:hover .book-card-image a {
  transform: perspective(900px) rotateY(-5deg) translateY(-1px);
}

.home-refresh .books-section .book-card-image img {
  border-radius: 6px;
  box-shadow: none;
}

.home-refresh .books-section .book-card h3,
.home-refresh .books-section .book-card p {
  margin: 4px 8px 0;
  text-transform: none;
}

.home-refresh .books-section .book-card h3 {
  font-size: .74rem;
  line-height: 1.45;
  min-height: 2.9em;
  color: var(--sand-heading);
  font-weight: 700;
}

.home-refresh .books-section .book-card-author {
  font-size: .64rem;
  line-height: 1.35;
  min-height: 2.7em;
  color: var(--sand-ink);
  opacity: 1;
}

.home-refresh .books-section .book-card-price {
  margin-top: 8px !important;
  font-size: .72rem;
  color: var(--sand-heading-strong);
  font-weight: 800;
}

.book-card-add-cart {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: #c3a188;
  color: #fff;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.home-refresh .book-card-add-cart,
.home-refresh .book-card-add-cart:hover {
  color: #fff;
}

.book-card-add-cart:hover {
  background: #5f4633;
  transform: translateY(-1px);
}

.home-refresh .carousel-book-title {
  color: var(--sand-heading-strong);
  text-shadow: none;
  font-size: .86rem;
  font-weight: 700;
}

.home-refresh .section-more a,
.home-refresh .pagination-link,
.home-refresh .strip-control,
.home-refresh .carousel-control {
  color: var(--sand-heading-strong);
}

.home-refresh .section-more a,
.home-refresh .pagination-link {
  font-weight: 700;
}

.home-refresh .category-showcase-card {
  border: 1px solid var(--sand-border);
  box-shadow: 0 14px 22px rgba(79, 52, 21, 0.15);
}

.home-refresh .category-showcase-overlay {
  background: linear-gradient(180deg, rgba(39, 25, 10, 0.08) 30%, rgba(39, 25, 10, 0.62) 100%);
}

.home-refresh .category-showcase-chip,
.home-refresh .category-showcase-overlay h3,
.home-refresh .category-showcase-overlay p,
.home-refresh .kids-review-title-group,
.home-refresh .kids-review-copy,
.home-refresh .kids-review-title-group h2,
.home-refresh .kids-review-author,
.home-refresh .kids-review-copy p,
.home-refresh .kids-review-price,
.home-refresh .kids-review-cta,
.home-refresh .kids-review-kicker {
  color: #fffaf1;
}

.home-refresh .kids-review-banner {
  border: 1px solid rgba(195, 161, 136, 0.58);
  background:
    radial-gradient(circle at 14% 22%, rgba(247, 238, 230, 0.46), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(170, 132, 104, 0.26), transparent 42%),
    linear-gradient(140deg, rgba(213, 187, 167, 0.96) 0%, rgba(195, 161, 136, 0.96) 48%, rgba(170, 137, 112, 0.96) 100%),
    linear-gradient(180deg, rgba(255, 249, 243, 0.20), rgba(255, 249, 243, 0.06));
  box-shadow:
    0 16px 26px rgba(95, 67, 47, 0.16),
    inset 0 1px 0 rgba(255, 248, 242, 0.42),
    inset 0 -20px 32px rgba(131, 95, 72, 0.12);
}

.home-refresh .kids-review-title-group,
.home-refresh .kids-review-copy,
.home-refresh .kids-review-title-group h2,
.home-refresh .kids-review-author,
.home-refresh .kids-review-copy p {
  color: #fffaf1;
}

@media (max-width: 980px) {
  .home-refresh .books-section .book-card {
    width: 191px;
    max-width: 191px;
    flex-basis: 191px;
  }

  .home-refresh .books-section .book-card-image {
    width: 156px;
    height: 208px;
  }
}

@media (max-width: 740px) {
  .home-refresh .books-section {
    padding-top: 24px;
  }

  .home-refresh .books-section .book-card {
    width: calc(50% - 4px);
    max-width: none;
    flex: 0 0 calc(50% - 4px);
    padding: 6px 6px 10px;
  }

  .home-refresh .books-section .book-card-image {
    width: calc(100% - 12px);
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .home-refresh .books-section .book-card h3 {
    font-size: .66rem;
  }

  .home-refresh .books-section .book-card-author {
    font-size: .58rem;
  }

  .home-refresh .books-section .book-card-price {
    font-size: .66rem;
  }
}

  /* ===== Header minimal arena ===== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 250, 243, 0.96);
    border-bottom: 1px solid rgba(204, 179, 146, 0.38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 28px rgba(119, 90, 53, 0.08);
  }

  .header-shell {
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
    align-items: center;
    gap: 24px;
  }

  .brand-minimal {
    display: inline-flex;
    align-items: center;
    color: #81644b;
  }

  .brand-minimal .brand-wordmark {
    display: inline-block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    letter-spacing: .14em;
    color: #81644b;
  }

  .brand-minimal img.brand-wordmark {
    width: auto;
    height: clamp(72px, 8vw, 96px);
    max-width: min(1200px, 96vw);
    object-fit: contain;
  }

  .header-nav-clean {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
  }

  .header-nav-link,
  .header-categories-dropdown summary,
  .header-auth-clean a,
  .nav-search-clean input,
  .cart-icon-clean {
    color: #826756;
  }

  .header-nav-link,
  .header-categories-dropdown summary,
  .header-auth-clean a {
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: .02em;
  }

  .header-nav-link:hover,
  .header-auth-clean a:hover,
  .header-categories-dropdown summary:hover,
  .cart-icon-clean:hover {
    color: #a07b5d;
  }

  .header-categories-dropdown {
    position: relative;
  }

  .header-categories-dropdown summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .header-categories-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .header-categories-dropdown summary::after {
    content: "▾";
    font-size: .78rem;
    transform: translateY(1px);
    color: #9d8068;
  }

  .header-categories-dropdown[open] summary::after {
    transform: rotate(180deg) translateY(-1px);
  }

  .header-categories-panel {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 72vw);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(203, 176, 139, 0.48);
    background: rgba(255, 251, 245, 0.98);
    box-shadow: 0 16px 32px rgba(119, 90, 53, 0.12);
  }

  .header-categories-panel a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    color: #7d624e;
    font-size: .92rem;
    line-height: 1.35;
  }

  .header-categories-panel a:hover {
    background: #f6ede1;
    color: #9f7b5e;
  }

  .header-tools-clean {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
  }

  .nav-search-clean {
    max-width: none;
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 6px;
    border: 0;
    border-bottom: 1px solid rgba(183, 156, 126, 0.58);
    background: transparent;
    border-radius: 0;
  }

  .nav-search-clean:focus-within {
    border-bottom-color: #b88b63;
  }

  .nav-search-clean button {
    padding: 0;
    color: #826756;
  }

  .nav-search-clean button:hover {
    color: #a07b5d;
  }

  .nav-search-clean button svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
  }

  .nav-search-clean input {
    width: 112px;
    padding: 0;
    font-size: .96rem;
  }

  .nav-search-clean input::placeholder {
    color: rgba(130, 103, 86, 0.65);
  }

  .header-auth-clean {
    display: inline-flex;
    align-items: center;
    gap: 14px;
  }

  .header-auth-user {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(183, 156, 126, 0.36);
    border-radius: 999px;
    background: rgba(255, 250, 244, 0.74);
    color: #826756;
    font-size: .84rem;
    font-weight: 700;
    white-space: nowrap;
  }

  .header-auth-clean a {
    white-space: nowrap;
  }

  .cart-icon-clean {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cart-icon-clean svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .category-nav {
    display: none;
  }

  @media (max-width: 980px) {
    .header-shell {
      grid-template-columns: 1fr;
      justify-items: center;
      gap: 14px;
      padding: 14px 0;
    }

    .header-nav-clean,
    .header-tools-clean {
      flex-wrap: wrap;
      justify-content: center;
    }

    .header-categories-panel {
      left: 0;
      transform: none;
      width: min(560px, 88vw);
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 740px) {
    .site-header {
      position: static;
    }

    .header-shell {
      min-height: 0;
      gap: 12px;
      padding: 12px 0 14px;
    }

    .brand-minimal .brand-wordmark {
      font-size: 1.8rem;
      letter-spacing: .1em;
    }

    .header-nav-clean {
      gap: 18px;
    }

    .header-nav-link,
    .header-categories-dropdown summary,
    .header-auth-clean a,
    .header-auth-user,
    .nav-search-clean input {
      font-size: .9rem;
    }

    .header-tools-clean {
      gap: 14px;
    }

    .header-auth-clean {
      gap: 10px;
    }

    .nav-search-clean input {
      width: 84px;
    }

    .header-categories-panel {
      position: static;
      width: 100%;
      max-width: 320px;
      margin-top: 10px;
      transform: none;
      grid-template-columns: 1fr;
    }
  }

/* ===== Header / Footer transparencia arena ===== */
.site-header {
  background: rgb(233 218 197 / 78%);
  border-bottom: 1px solid rgba(204, 179, 146, 0.26);
  box-shadow: 0 10px 24px rgba(119, 90, 53, 0.06);
}

.site-footer {
  margin-top: 64px;
  border-top: 1px solid rgba(204, 179, 146, 0.24);
  background: rgb(233 218 197 / 78%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(119, 90, 53, 0.05);
}

.footer-main,
.footer-brand,
.footer-tagline,
.footer-links a,
.footer-legal,
.site-footer > .footer-main > p,
.site-footer > .footer-main > * > p:last-child {
  color: #81644b;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-brand-area {
  order: 3;
  flex: 1 1 100%;
  display: flex;
  justify-content: flex-end;
}

.footer-brand-logo {
  width: auto;
  height: 85px;
  max-width: min(900px, 92vw);
  object-fit: contain;
}

.footer-links li + li::before {
  color: rgba(129, 100, 75, 0.55);
}

.footer-links a:hover {
  color: #5f4633;
}

@media (max-width: 740px) {
  .site-header,
  .site-footer {
    background: rgb(233 218 197 / 78%);
  }

  .brand-minimal img.brand-wordmark {
    height: 56px;
    max-width: min(92vw, 520px);
  }

  .footer-brand-logo {
    height: 60px;
    max-width: min(88vw, 460px);
  }
}