/*
 * Bebelplatz FASE 18.2 — Catalog Selections Experience
 */

body.bp182-selection-archive {
  --bp182-bg: #1d1a18;
  --bp182-bg-soft: #24201d;
  --bp182-paper: #f7f1ea;
  --bp182-ink: #2d2824;
  --bp182-muted: rgba(255,248,241,.62);
  --bp182-line: rgba(255,255,255,.10);
  --bp182-accent: #de7e46;
}

body.bp182-selection-libros-recomendados { --bp182-accent: #c77e51; }
body.bp182-selection-super-ventas { --bp182-accent: #b66e45; }
body.bp182-selection-libros-destacados { --bp182-accent: #cf8053; }

.bp182-main {
  background: var(--bp182-paper);
  color: var(--bp182-ink);
}

.bp182-hero {
  position: relative;
  overflow: hidden;
  padding: 0 0 76px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(135deg, #181614 0%, #221d1a 58%, #171513 100%);
  background-size: 36px 36px, 36px 36px, auto;
  color: #fffaf5;
}

.bp182-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 0;
}

.bp182-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: rgba(255,250,245,.70) !important;
  text-decoration: none !important;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.bp182-tabs a:hover,
.bp182-tabs a.is-active {
  border-color: rgba(255,255,255,.26);
  background: rgba(255,255,255,.075);
  color: #fffaf5 !important;
}

.bp182-tabs a.is-active::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--bp182-accent);
}

.bp182-hero-grid {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 42px;
  padding-top: 52px;
}

.bp182-hero-copy {
  max-width: 760px;
}

.bp182-hero-copy h1 {
  margin: 0;
  color: #fffaf5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 7vw, 108px);
  line-height: .92;
  font-weight: 500;
  letter-spacing: -.055em;
}

.bp182-lede {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255,250,245,.72);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.65;
}

.bp182-editorial-note {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 10px;
  max-width: 700px;
  margin-top: 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--bp182-accent);
  background: rgba(255,255,255,.045);
  color: rgba(255,250,245,.67);
  font-size: 12px;
  line-height: 1.55;
}

.bp182-editorial-note strong {
  color: #fffaf5;
}

.bp182-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 30px;
}

.bp182-stat {
  padding: 17px 18px 16px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 9px;
  background: rgba(255,255,255,.04);
}

.bp182-stat strong,
.bp182-stat span {
  display: block;
}

.bp182-stat strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.5vw, 35px);
  line-height: 1;
  font-weight: 500;
}

.bp182-stat span {
  margin-top: 7px;
  color: rgba(255,250,245,.52);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp182-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.bp182-actions .bp132-primary-button,
.bp182-actions .bp132-secondary-button {
  min-height: 46px;
}

.bp182-hero-covers {
  min-width: 0;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp182-hero-covers .bp132-cover-stack {
  width: min(520px, 100%);
  max-width: 100%;
  transform: scale(1.05);
  transform-origin: center;
}

.bp182-fallback-cover {
  position: absolute;
  width: 220px;
  height: auto;
  box-shadow: 0 24px 48px rgba(0,0,0,.3);
}

.bp182-context {
  padding: 78px 0 84px;
  background: var(--bp182-bg-soft);
  color: #fffaf5;
}

.bp182-section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.bp182-section-heading h2 {
  margin: 0 0 12px;
  color: #fffaf5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 3.7vw, 55px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -.035em;
}

.bp182-section-heading > div > p:last-child {
  margin: 0;
  max-width: 720px;
  color: rgba(255,250,245,.58);
  font-size: 15px;
  line-height: 1.7;
}

.bp182-context-grid {
  display: grid;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: 18px;
}

.bp182-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--bp182-line);
  border-radius: 11px;
  background: rgba(255,255,255,.03);
}

.bp182-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.bp182-kicker {
  margin: 0 0 6px;
  color: var(--bp182-accent);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bp182-panel-head h3 {
  margin: 0;
  color: #fffaf5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.05;
  font-weight: 500;
}

.bp182-panel-head > span {
  flex: 0 0 auto;
  color: rgba(255,250,245,.42);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bp182-author-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.bp182-author {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 68px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 8px;
  background: rgba(255,255,255,.024);
  color: inherit !important;
  text-decoration: none !important;
}

.bp182-author:hover,
.bp182-collection:hover {
  background: rgba(255,255,255,.065);
  border-color: rgba(255,255,255,.14);
}

.bp182-author-monogram {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #efe1d5;
  color: #3a2b22;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.bp182-author-copy {
  min-width: 0;
}

.bp182-author-copy strong,
.bp182-author-copy small,
.bp182-collection strong,
.bp182-collection small {
  display: block;
}

.bp182-author-copy strong {
  overflow: hidden;
  color: #fffaf5;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bp182-author-copy small,
.bp182-collection small {
  margin-top: 3px;
  color: rgba(255,250,245,.43);
  font-size: 10px;
}

.bp182-arrow {
  color: rgba(255,250,245,.35);
  font-size: 15px;
}

.bp182-collection-list {
  display: grid;
  gap: 9px;
}

.bp182-collection {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 65px;
  padding: 11px 13px 11px 15px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 8px;
  background: rgba(255,255,255,.024);
  color: inherit !important;
  text-decoration: none !important;
}

.bp182-collection strong {
  color: #fffaf5;
  font-size: 14px;
}

.bp182-books {
  clear: both;
  padding-top: 82px;
  background: var(--bp182-paper);
}

.bp182-books-heading {
  align-items: end;
}

.bp182-books .bp132-pagination-wrap {
  clear: both;
  width: 100%;
}

.bp182-route-nav {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid #d6cbc1;
}

.bp182-route-link,
.bp182-route-center {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 17px;
  border: 1px solid #cfc4ba;
  border-radius: 8px;
  background: #fff;
  color: #2c2723 !important;
  text-decoration: none !important;
}

.bp182-route-link > span {
  color: #8a7a6e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.bp182-route-link strong {
  display: block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 500;
}

.bp182-route-link--next {
  align-items: flex-end;
  text-align: right;
}

.bp182-route-center {
  min-width: 165px;
  align-items: center;
  text-align: center;
  background: transparent;
  color: #5c5148 !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bp182-route-link:hover,
.bp182-route-center:hover {
  border-color: #a99789;
  background: #fffaf5;
}

.bp182-context-links {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.bp182-main a:focus-visible,
.bp182-main button:focus-visible,
.bp182-main select:focus-visible {
  outline: 3px solid var(--bp182-accent) !important;
  outline-offset: 3px !important;
}

@media (min-width: 821px) {
  .bp182-hero-covers .bp132-stack-cover--4 {
    left: auto !important;
    right: 4px !important;
  }
}

@media (max-width: 1080px) {
  .bp182-hero-grid {
    grid-template-columns: minmax(0,1fr) minmax(300px,.8fr);
    gap: 28px;
  }

  .bp182-context-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .bp182-hero {
    padding-bottom: 58px;
  }

  .bp182-tabs {
    padding-top: 18px;
  }

  .bp182-hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .bp182-hero-copy {
    max-width: none;
  }

  .bp182-hero-covers {
    min-height: 360px;
  }

  .bp182-context {
    padding: 62px 0 68px;
  }

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

  .bp182-route-nav {
    grid-template-columns: 1fr 1fr;
  }

  .bp182-route-center {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 54px;
  }
}

@media (max-width: 560px) {
  .bp182-hero {
    padding-bottom: 46px;
  }

  .bp182-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .bp182-tabs a {
    justify-content: center;
    min-height: 44px;
    padding: 0 10px;
    text-align: center;
    font-size: 9px;
    letter-spacing: .025em;
  }

  .bp182-hero-grid {
    padding-top: 32px;
  }

  .bp182-hero-copy h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .bp182-lede {
    font-size: 16px;
    line-height: 1.62;
  }

  .bp182-stats {
    gap: 7px;
  }

  .bp182-stat {
    padding: 13px 9px 12px;
  }

  .bp182-stat strong {
    font-size: 23px;
  }

  .bp182-stat span {
    font-size: 8px;
    letter-spacing: .04em;
  }

  .bp182-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bp182-actions a {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .bp182-hero-covers {
    min-height: 300px;
  }

  .bp182-hero-covers .bp132-cover-stack {
    transform: scale(.86);
  }

  .bp182-context {
    padding: 54px 0 58px;
  }

  .bp182-panel {
    padding: 18px;
  }

  .bp182-panel-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .bp182-author-grid {
    grid-template-columns: 1fr;
  }

  .bp182-route-nav {
    grid-template-columns: 1fr;
  }

  .bp182-route-link,
  .bp182-route-link--next {
    min-height: 70px;
    align-items: flex-start;
    text-align: left;
  }

  .bp182-route-center {
    grid-column: auto;
    grid-row: auto;
  }

  .bp182-context-links {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bp182-main *,
  .bp182-main *::before,
  .bp182-main *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
