/*
 * Bebelplatz — FASE 8.2
 * Landing de colecciones y rutas de descubrimiento.
 */

:root {
  --bp82-ink: #171511;
  --bp82-text: #3d3933;
  --bp82-muted: #81796e;
  --bp82-paper: #f7f3eb;
  --bp82-paper-deep: #eee6d9;
  --bp82-line: rgba(23,21,17,.12);
  --bp82-orange: #ef7d2d;
  --bp82-orange-dark: #ad551d;
  --bp82-dark: #171512;
  --bp82-dark-soft: #221f1a;
  --bp82-serif: Georgia, "Times New Roman", serif;
  --bp82-ui: "Montserrat", Arial, sans-serif;
  --bp82-shadow: 0 26px 70px -48px rgba(22,18,13,.75);
}

body.bp82-collections-page .site-content,
body.bp82-collections-page #content {
  margin: 0 !important;
  padding: 0 !important;
}

.bp82-collections-main {
  background: #fff;
  color: var(--bp82-text);
}

.bp82-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.bp82-eyebrow,
.bp82-kicker {
  margin: 0 0 14px;
  color: var(--bp82-orange-dark);
  font-family: var(--bp82-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bp82-collections-hero {
  position: relative;
  padding: 92px 0 68px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(239,125,45,.12), transparent 32%),
    linear-gradient(180deg, #fbfaf7 0%, #f5f0e8 100%);
  border-bottom: 1px solid var(--bp82-line);
}

.bp82-collections-hero::after {
  content: "B";
  position: absolute;
  right: max(24px, calc((100vw - 1180px)/2));
  top: 2px;
  color: rgba(23,21,17,.035);
  font-family: var(--bp82-serif);
  font-size: clamp(180px, 25vw, 360px);
  line-height: .9;
  pointer-events: none;
}

.bp82-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) 190px;
  gap: 64px;
  align-items: end;
}

.bp82-hero-grid h1 {
  margin: 0;
  color: var(--bp82-ink);
  font-family: var(--bp82-serif);
  font-size: clamp(54px, 7vw, 104px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .95;
}

.bp82-hero-lede {
  max-width: 670px;
  margin: 26px 0 0;
  color: #4a453e;
  font-family: var(--bp82-serif);
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.45;
}

.bp82-hero-stat {
  padding: 22px 0 9px 24px;
  border-left: 1px solid rgba(23,21,17,.2);
}

.bp82-hero-stat strong {
  display: block;
  color: var(--bp82-ink);
  font-family: var(--bp82-serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .95;
}

.bp82-hero-stat span {
  display: block;
  margin-top: 8px;
  color: var(--bp82-muted);
  font-family: var(--bp82-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp82-hero-routes {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 48px;
}

.bp82-hero-routes a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--bp82-text);
  font-family: var(--bp82-ui);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .025em;
  text-decoration: none;
}

.bp82-hero-routes a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: var(--bp82-orange);
  transform: scaleX(.28);
  transform-origin: left;
  transition: transform .18s ease;
}

.bp82-hero-routes a:hover::after,
.bp82-hero-routes a:focus-visible::after {
  transform: scaleX(1);
}

.bp82-collections-grid-section {
  padding: 86px 0 104px;
  background: #fff;
}

.bp82-section-heading {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 22px 64px;
  align-items: end;
  margin-bottom: 48px;
}

.bp82-section-heading .bp82-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.bp82-section-heading h2 {
  margin: 0;
  color: var(--bp82-ink);
  font-family: var(--bp82-serif);
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.03;
}

.bp82-section-heading > p:last-child {
  max-width: 650px;
  margin: 0;
  color: var(--bp82-muted);
  font-family: var(--bp82-ui);
  font-size: 14px;
  line-height: 1.75;
}

.bp82-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.bp82-collection-card {
  min-width: 0;
}

.bp82-collection-card-link {
  position: relative;
  display: flex;
  min-height: 330px;
  height: 100%;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--bp82-line);
  background: #fbfaf7;
  color: var(--bp82-text);
  text-decoration: none !important;
  box-shadow: var(--bp82-shadow);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.bp82-collection-card:nth-child(3n+2) .bp82-collection-card-link {
  background: #f7f3eb;
}

.bp82-collection-card:nth-child(3n) .bp82-collection-card-link {
  background: #f2ede4;
}

.bp82-collection-card-link::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--bp82-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}

.bp82-collection-card-link:hover,
.bp82-collection-card-link:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(173,85,29,.28);
  background: #fff;
}

.bp82-collection-card-link:hover::before,
.bp82-collection-card-link:focus-visible::before {
  transform: scaleX(1);
}

.bp82-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 38px;
}

.bp82-card-number,
.bp82-card-count {
  font-family: var(--bp82-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bp82-card-number {
  color: var(--bp82-orange-dark);
}

.bp82-card-count {
  color: var(--bp82-muted);
}

.bp82-collection-card h3 {
  margin: 0 0 16px;
  color: var(--bp82-ink);
  font-family: var(--bp82-serif);
  font-size: 31px;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.bp82-collection-card p {
  margin: 0 0 24px;
  color: #625c53;
  font-family: var(--bp82-ui);
  font-size: 13px;
  line-height: 1.68;
}

.bp82-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--bp82-orange-dark);
  font-family: var(--bp82-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.bp82-selections {
  padding: 88px 0 92px;
  background:
    radial-gradient(circle at 16% 0%, rgba(239,125,45,.08), transparent 34%),
    var(--bp82-dark);
}

.bp82-section-heading-light h2 {
  color: #f7f1e7;
}

.bp82-section-heading-light > p:last-child {
  color: #aaa093;
}

.bp82-section-heading-light .bp82-kicker {
  color: #f29a5e;
}

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

.bp82-selection-card {
  display: grid;
  min-height: 190px;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  gap: 10px 18px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  color: #f7f1e7 !important;
  text-decoration: none !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.bp82-selection-card:hover,
.bp82-selection-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(242,154,94,.45);
  background: rgba(255,255,255,.07);
}

.bp82-selection-card > span {
  align-self: start;
  font-family: var(--bp82-serif);
  font-size: 24px;
  line-height: 1.18;
}

.bp82-selection-card strong {
  align-self: end;
  font-family: var(--bp82-serif);
  font-size: 44px;
  font-weight: 400;
  line-height: .9;
}

.bp82-selection-card small {
  grid-column: 2;
  justify-self: end;
  color: #aaa093;
  font-family: var(--bp82-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bp82-final-route {
  padding: 72px 0 80px;
  background: var(--bp82-paper);
  border-top: 1px solid var(--bp82-line);
}

.bp82-final-route-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: end;
}

.bp82-final-route h2 {
  max-width: 620px;
  margin: 0;
  color: var(--bp82-ink);
  font-family: var(--bp82-serif);
  font-size: clamp(34px,4vw,54px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.bp82-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bp82-button-primary,
.bp82-button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--bp82-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.bp82-button-primary {
  background: var(--bp82-ink);
  color: #fff !important;
}

.bp82-button-secondary {
  border: 1px solid var(--bp82-line);
  background: #fff;
  color: var(--bp82-ink) !important;
}

/* Catalog and archive discovery */
.bp82-discovery-strip,
.bp82-context-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 34px;
}

.bp82-discovery-strip {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border: 1px solid var(--bp82-line);
  background: #faf8f3;
}

.bp82-discovery-label {
  flex: 0 0 auto;
  color: var(--bp82-orange-dark);
  font-family: var(--bp82-ui);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.bp82-discovery-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 9px;
}

.bp82-discovery-links a,
.bp82-context-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--bp82-text);
  font-family: var(--bp82-ui);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
}

.bp82-discovery-links a {
  border: 1px solid transparent;
  background: #fff;
}

.bp82-discovery-links a.is-primary {
  border-color: rgba(239,125,45,.28);
  color: var(--bp82-orange-dark);
}

.bp82-discovery-links a:hover,
.bp82-discovery-links a:focus-visible,
.bp82-context-nav a:hover,
.bp82-context-nav a:focus-visible {
  color: var(--bp82-orange-dark);
  border-color: rgba(239,125,45,.28);
}

.bp82-context-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.bp82-context-nav a {
  min-height: 40px;
  border: 1px solid var(--bp82-line);
  background: #fff;
}

/* Collections split navigation: text goes to landing, arrow opens submenu. */
@media (min-width: 1400px) {
  .bp81-nav > .bp81-collections {
    gap: 0 !important;
  }

  .bp81-nav > .bp81-collections > .bp82-collections-link {
    padding-right: 7px !important;
  }

  .bp81-nav > .bp81-collections > .bp82-collections-link::after {
    right: 0;
  }

  .bp81-nav > .bp81-collections > .bp82-collections-toggle {
    width: 30px;
    min-width: 30px;
    min-height: 44px;
    padding: 0 3px !important;
  }

  .bp81-nav > .bp81-collections > .bp82-collections-toggle::after {
    display: none !important;
  }

  .bp81-nav > .bp81-collections.current-menu-item > .bp82-collections-link,
  .bp81-nav > .bp81-collections.current-menu-ancestor > .bp82-collections-link {
    color: var(--bp82-ink) !important;
  }
}

@media (max-width: 1399px) {
  #book-mobile-menu .bp81-collections {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 54px;
    align-items: stretch;
  }

  #book-mobile-menu .bp81-collections > .bp82-collections-link {
    grid-column: 1;
    width: 100% !important;
    min-height: 52px !important;
    padding-right: 8px !important;
  }

  #book-mobile-menu .bp81-collections > .bp82-collections-toggle {
    grid-column: 2;
    width: 54px !important;
    min-width: 54px;
    min-height: 52px !important;
    justify-content: center !important;
    padding: 0 !important;
    border-left: 1px solid rgba(255,255,255,.08) !important;
  }

  #book-mobile-menu .bp81-collections > .bp82-collections-toggle .bp81-caret {
    margin-left: 0;
    margin-right: 0;
  }

  #book-mobile-menu .bp81-collections > .bp81-submenu {
    grid-column: 1 / -1;
  }
}

.bp82-collections-page a:focus-visible,
.bp82-discovery-strip a:focus-visible,
.bp82-context-nav a:focus-visible {
  outline: 3px solid var(--bp82-orange) !important;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .bp82-shell,
  .bp82-discovery-strip,
  .bp82-context-nav {
    width: min(100% - 34px, 1180px);
  }

  .bp82-collections-hero {
    padding: 70px 0 54px;
  }

  .bp82-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bp82-hero-stat {
    max-width: 190px;
  }

  .bp82-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

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

  .bp82-final-route-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .bp82-discovery-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
}

@media (max-width: 560px) {
  .bp82-shell,
  .bp82-discovery-strip,
  .bp82-context-nav {
    width: min(100% - 26px, 1180px);
  }

  .bp82-collections-hero {
    padding: 54px 0 44px;
  }

  .bp82-collections-hero::after {
    right: -24px;
    font-size: 190px;
  }

  .bp82-hero-grid h1 {
    font-size: clamp(48px,16vw,66px);
  }

  .bp82-hero-lede {
    font-size: 18px;
  }

  .bp82-hero-routes {
    gap: 4px 18px;
    margin-top: 34px;
  }

  .bp82-collections-grid-section {
    padding: 62px 0 72px;
  }

  .bp82-section-heading {
    margin-bottom: 32px;
  }

  .bp82-collections-grid {
    grid-template-columns: 1fr;
  }

  .bp82-collection-card-link {
    min-height: 0;
    padding: 22px;
  }

  .bp82-card-topline {
    margin-bottom: 30px;
  }

  .bp82-selections {
    padding: 64px 0 70px;
  }

  .bp82-selection-grid {
    grid-template-columns: 1fr;
  }

  .bp82-selection-card {
    min-height: 150px;
  }

  .bp82-final-route {
    padding: 58px 0 64px;
  }

  .bp82-final-actions {
    width: 100%;
    flex-direction: column;
  }

  .bp82-button-primary,
  .bp82-button-secondary {
    width: 100%;
  }

  .bp82-discovery-links {
    gap: 5px;
  }

  .bp82-discovery-links a {
    min-height: 40px;
  }
}
