/* Hub de Guías: dirección editorial promovida desde la referencia aprobada. */

.guides-hub {
  --guides-paper: #fff;
  --guides-ink: #1b1d1b;
  --guides-muted: #5d625f;
  --guides-green: #173e35;
  --guides-blue: #5366b8;
  --guides-sky: #eaf0fc;
  --guides-mint: #edf3ee;
  --guides-rose: #fbeef0;
  --guides-peach: #fbf2ed;
  --guides-yellow: #f4ce55;
  --guides-line: rgba(27, 29, 27, .15);
  --guides-shell: 1240px;
  --guides-gutter: clamp(22px, 4.2vw, 62px);
  overflow: clip;
  background: var(--guides-paper);
  color: var(--guides-ink);
  font-family: "Montserrat Navigation", "Segoe UI", Arial, sans-serif;
}

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

.guides-hub__shell {
  width: min(100%, var(--guides-shell));
  margin-inline: auto;
  padding-inline: var(--guides-gutter);
}

.guides-hub img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.guides-hub a {
  color: inherit;
}

.guides-hub :is(a, button):focus-visible {
  outline: 3px solid var(--guides-blue);
  outline-offset: 4px;
}

.guides-hub :is(h1, h2, h3, p) {
  margin-top: 0;
  overflow-wrap: break-word;
}

.guides-hub__eyebrow {
  margin: 0 0 13px;
  color: var(--guides-green);
  font-size: 13px;
  font-weight: 730;
  letter-spacing: .105em;
  line-height: 1.35;
  text-transform: uppercase;
}

.guides-hub__hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--guides-sky);
}

.guides-hub__hero-word {
  position: absolute;
  z-index: -1;
  top: 64px;
  left: -24px;
  color: rgba(83, 102, 184, .075);
  font-size: clamp(160px, 22vw, 318px);
  font-weight: 770;
  line-height: .8;
  letter-spacing: -.09em;
  pointer-events: none;
}

.page-hub-guides .guides-hub__hero .breadcrumbs {
  width: 100%;
  min-height: 46px;
  padding-inline: 0;
  background: transparent;
  font-family: "Montserrat Navigation", Arial, sans-serif;
}

.page-hub-guides .guides-hub__hero .breadcrumbs ol {
  min-height: 46px;
  padding-block: 13px 6px;
  color: #595d5a;
  font-size: 13px;
  font-weight: 520;
}

.page-hub-guides .guides-hub__hero .breadcrumbs li {
  gap: 12px;
}

.page-hub-guides .guides-hub__hero .breadcrumbs li > span[aria-hidden="true"] {
  color: var(--guides-yellow);
  font-weight: 800;
}

.page-hub-guides .guides-hub__hero .breadcrumbs [aria-current="page"] {
  color: var(--guides-green);
  font-weight: 600;
}

.guides-hub__hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(460px, 1.06fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
  min-height: 525px;
  padding-block: 22px 48px;
}

.guides-hub__hero-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
}

.guides-hub__hero-copy .guides-hub__eyebrow {
  color: var(--guides-blue);
}

.guides-hub__hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(52px, 5.3vw, 72px);
  font-weight: 650;
  letter-spacing: -.06em;
  line-height: .98;
  text-wrap: balance;
}

.guides-hub__lead {
  max-width: 590px;
  margin: 27px 0 0;
  color: #303331;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 455;
  line-height: 1.58;
}

.guides-hub__hero-link {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  margin-top: 30px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--guides-yellow);
  color: var(--guides-green);
  font-size: 13px;
  font-weight: 680;
  text-decoration: none;
}

.guides-hub__hero-link span {
  font-size: 17px;
}

.guides-hub__hero-library {
  position: relative;
  min-width: 0;
  height: 470px;
}

.guides-hub .guides-hub__hero-card {
  position: absolute;
  z-index: 1;
  display: block;
  overflow: hidden;
  color: #fff;
  background: var(--guides-green);
  box-shadow: 0 20px 42px rgba(43, 55, 89, .16);
  text-decoration: none;
}

.guides-hub__hero-card::after {
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(transparent, rgba(13, 20, 18, .78));
  content: '';
}

.guides-hub__hero-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.guides-hub__hero-card:hover img {
  transform: scale(1.03);
}

.guides-hub__hero-card > span {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  gap: 4px;
}

.guides-hub__hero-card small {
  color: var(--guides-yellow);
  font-size: 13px;
  font-weight: 730;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guides-hub__hero-card strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.guides-hub__hero-card--1 {
  top: 38px;
  left: 0;
  width: 57%;
  height: 365px;
  border-radius: 58px 13px 58px 58px;
}

.guides-hub__hero-card--2 {
  top: 0;
  right: 8px;
  width: 39%;
  height: 210px;
  border-radius: 14px 46px 46px 46px;
}

.guides-hub__hero-card--3 {
  right: 0;
  bottom: 0;
  width: 42%;
  height: 224px;
  border-radius: 46px 46px 12px 46px;
}

.guides-hub__filters {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(64px, 7vw, 92px) clamp(46px, 5vw, 66px);
  background: var(--guides-mint);
}

.guides-hub__filters-layout {
  display: grid;
  grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 7vw, 100px);
  align-items: center;
}

.guides-hub__filters-copy h2 {
  max-width: 490px;
  margin: 0;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 640;
  letter-spacing: -.05em;
  line-height: 1.08;
}

.guides-hub__filters-copy > p:last-child {
  max-width: 450px;
  margin: 20px 0 0;
  color: #4a4f4c;
  font-size: 14px;
  font-weight: 440;
  line-height: 1.65;
}

.guides-hub__filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.guides-hub__filter-controls {
  display: grid;
  gap: 17px;
}

.guides-hub__filter {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 15px;
  border: 0;
  border-radius: 22px 6px 22px 22px;
  color: var(--guides-ink);
  background: #fff;
  box-shadow: 0 9px 22px rgba(31, 54, 47, .07);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guides-hub__filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 27px rgba(31, 54, 47, .1);
}

.guides-hub__filter[aria-pressed="true"] {
  color: #fff;
  background: var(--guides-green);
  box-shadow: 0 0 0 3px var(--guides-yellow), 0 14px 30px rgba(23, 62, 53, .16);
}

.guides-hub__filter-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px 5px 16px 16px;
  background: var(--guides-sky);
}

.guides-hub__filter--rose .guides-hub__filter-icon {
  background: var(--guides-rose);
}

.guides-hub__filter--mint .guides-hub__filter-icon {
  background: #dceae0;
}

.guides-hub__filter--peach .guides-hub__filter-icon {
  background: var(--guides-peach);
}

.guides-hub__filter--yellow .guides-hub__filter-icon {
  background: var(--guides-yellow);
}

.guides-hub__filter[aria-pressed="true"] .guides-hub__filter-icon {
  color: var(--guides-green);
  background: var(--guides-yellow);
}

.guides-hub__filter-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.guides-hub__filter-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.guides-hub__filter-label strong {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.guides-hub__filter-label small {
  color: var(--guides-muted);
  font-size: 13px;
  font-weight: 540;
  line-height: 1.3;
}

.guides-hub__filter[aria-pressed="true"] .guides-hub__filter-label small {
  color: rgba(255, 255, 255, .72);
}

.guides-hub__filter-status {
  justify-self: end;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--guides-green);
  background: rgba(255, 255, 255, .66);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.guides-hub__no-script {
  grid-column: 2;
  margin: 0;
  color: var(--guides-muted);
  font-size: 13px;
}

.guides-hub__catalogue {
  scroll-margin-top: 90px;
  padding-top: clamp(38px, 4vw, 54px);
  padding-bottom: clamp(102px, 11vw, 154px);
}

.guides-hub__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 66px) clamp(18px, 2.2vw, 30px);
}

.guides-hub__card {
  min-width: 0;
}

.guides-hub__card-image {
  display: block;
  overflow: hidden;
  margin-bottom: 19px;
  border-radius: 25px 7px 25px 25px;
  background: var(--guides-sky);
}

.guides-hub__card-image img {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform 360ms ease;
}

.guides-hub__card-image:hover img {
  transform: scale(1.025);
}

.guides-hub__card-copy {
  padding-inline: 3px;
}

.guides-hub__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 0 10px;
  color: var(--guides-blue);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: .065em;
  line-height: 1.4;
  text-transform: uppercase;
}

.guides-hub__card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 630;
  letter-spacing: -.038em;
  line-height: 1.18;
}

.guides-hub__card h3 a {
  text-decoration: none;
}

.guides-hub__card h3 a:hover {
  color: var(--guides-blue);
}

.guides-hub__card h3 + .guides-hub__card-excerpt {
  margin: 18px 0 0;
  color: #4b4f4c;
  font-size: 14px;
  font-weight: 435;
  line-height: 1.58;
}

.guides-hub__load-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(48px, 6vw, 72px);
}

.guides-hub__load-more[hidden] {
  display: none;
}

.guides-hub__load-button {
  min-height: 48px;
  padding: 13px 24px;
  border: 0;
  border-radius: 18px 5px 18px 18px;
  color: #fff;
  background: var(--guides-green);
  box-shadow: 0 0 0 3px transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.3;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.guides-hub__load-button:hover {
  box-shadow: 0 0 0 3px var(--guides-yellow);
  transform: translateY(-2px);
}

.guides-hub__empty {
  margin: 0;
  padding: 28px;
  border-radius: 24px 7px 24px 24px;
  background: var(--guides-sky);
  font-size: 15px;
}

@media (max-width: 1100px) {
  .guides-hub__hero-grid {
    grid-template-columns: minmax(0, .9fr) minmax(410px, 1.1fr);
    gap: 36px;
  }

  .guides-hub__filters-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .guides-hub__filters-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr);
    gap: 22px 60px;
    align-items: end;
  }

  .guides-hub__filters-copy .guides-hub__eyebrow {
    grid-column: 1 / -1;
    margin-bottom: -9px;
  }

  .guides-hub__filters-copy > p:last-child {
    margin: 0 0 3px;
  }

  .guides-hub__no-script {
    grid-column: 1;
  }
}

@media (max-width: 900px) {
  .guides-hub__hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 46px;
  }

  .guides-hub__hero-copy {
    max-width: 700px;
  }

  .guides-hub__hero-library {
    width: min(100%, 660px);
    height: 400px;
  }

  .guides-hub__hero-card--1 {
    height: 315px;
  }

  .guides-hub__hero-card--2 {
    height: 180px;
  }

  .guides-hub__hero-card--3 {
    height: 190px;
  }

  .guides-hub__filters-copy {
    display: block;
  }

  .guides-hub__filters-copy .guides-hub__eyebrow {
    margin-bottom: 13px;
  }

  .guides-hub__filters-copy > p:last-child {
    margin-top: 18px;
  }

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

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

@media (max-width: 650px) {
  .guides-hub {
    --guides-gutter: 18px;
  }

  .guides-hub__hero-word {
    top: 75px;
    left: -10px;
    font-size: 112px;
  }

  .page-hub-guides .guides-hub__hero .breadcrumbs ol {
    font-size: 13px;
  }

  .guides-hub__hero-grid {
    gap: 24px;
    padding-block: 16px 30px;
  }

  .guides-hub__hero h1 {
    font-size: clamp(38px, 10.8vw, 47px);
  }

  .guides-hub__lead {
    margin-top: 21px;
    font-size: 16px;
    line-height: 1.54;
  }

  .guides-hub__hero-link {
    margin-top: 23px;
  }

  .guides-hub__hero-library {
    height: clamp(198px, 58vw, 270px);
  }

  .guides-hub__hero-card::after,
  .guides-hub__hero-card > span {
    display: none;
  }

  .guides-hub .guides-hub__hero-card {
    box-shadow: 0 16px 34px rgba(43, 55, 89, .18);
    transform-origin: center;
  }

  .guides-hub .guides-hub__hero-card--1 {
    z-index: 3;
    top: 18px;
    left: 0;
    width: 58%;
    height: clamp(172px, 50vw, 235px);
    border-radius: 38px 9px 38px 38px;
    transform: rotate(-1.2deg);
  }

  .guides-hub .guides-hub__hero-card--2 {
    z-index: 2;
    top: 0;
    right: auto;
    left: 34%;
    width: 50%;
    height: clamp(156px, 44vw, 210px);
    border-radius: 9px 30px 30px 30px;
    transform: rotate(1deg);
  }

  .guides-hub .guides-hub__hero-card--3 {
    z-index: 1;
    top: 30px;
    right: 0;
    bottom: auto;
    width: 38%;
    height: clamp(132px, 37vw, 180px);
    border-radius: 30px 30px 8px 30px;
    transform: rotate(-.7deg);
  }

  .guides-hub__filters {
    padding-block: 58px 48px;
  }

  .guides-hub__filters-copy h2 {
    font-size: 33px;
  }

  .guides-hub__filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .guides-hub__filter {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    min-height: 82px;
    padding: 11px;
  }

  .guides-hub__filter-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px 4px 14px 14px;
  }

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

  .guides-hub__filter-label strong {
    font-size: 14px;
  }

  .guides-hub__catalogue {
    padding-top: 38px;
    padding-bottom: 96px;
  }

  .guides-hub__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .guides-hub__card-image {
    margin-bottom: 20px;
    border-radius: 27px 7px 27px 27px;
  }

  .guides-hub__card-excerpt {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guides-hub__hero-card img,
  .guides-hub__filter,
  .guides-hub__card-image img,
  .guides-hub__load-button {
    transition: none;
  }
}

@media print {
  .page-hub-guides .site-header,
  .page-hub-guides .site-footer,
  .guides-hub__filters,
  .guides-hub__load-more {
    display: none !important;
  }

  .guides-hub,
  .guides-hub__hero {
    color: #000;
    background: #fff !important;
  }

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