/* Responsive and accessibility hardening for the WordPress theme. */
html {
  scroll-padding-top: 96px;
}

body {
  overflow-x: clip;
}

main,
main > section,
.header__inner,
.footer-three__grid {
  min-width: 0;
}

main section[id],
footer[id] {
  scroll-margin-top: 96px;
}

.header__inner {
  position: relative;
}

.site-header .nav a,
.footer a {
  text-underline-offset: 4px;
}

.site-header .nav a,
.site-header .button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-header .nav a:focus-visible,
.footer a:focus-visible,
.home-four a:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.menu-toggle {
  cursor: pointer;
}

.menu-toggle > span:not(.screen-reader-text) {
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-active > span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active > span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active > span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.home-five-workflow__step {
  background: rgba(250, 248, 242, 0.9);
  mix-blend-mode: normal;
}

.home-four-essence__visual figcaption span,
.home-four-connections__services article > div span {
  font-size: 0.75rem;
}

.home-five-workflow__step:hover,
.home-five-workflow__step:focus-within {
  background: #fff;
}

.home-four-producer__content h2,
.home-four-producer__content > p:not(.eyebrow) {
  text-shadow: none;
}

.home-four-producer__metrics article {
  background: #fff;
}

.home-four-producer__metrics span {
  color: var(--green);
}

.home-five-route__point:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}

.footer-three__social a,
.footer-three__services a,
.footer-three__contact a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: 86px;
  }

  .site-header--home-two.is-at-top {
    background: #171717;
    box-shadow: none;
    backdrop-filter: none;
  }

  main section[id],
  footer[id] {
    scroll-margin-top: 86px;
  }

  .site-header--home-two .header__inner {
    min-height: 82px;
    gap: 16px;
    padding: 10px 12px;
  }

  .site-header .custom-logo-link {
    width: 142px;
  }

  .site-header .nav {
    display: none;
  }

  .site-header .button {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 44px;
  }

  .site-header .nav.is-open {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: block;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 12px;
    border: 1px solid rgba(181, 140, 64, 0.35);
    border-radius: 14px;
    background: rgba(17, 17, 17, 0.98);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
  }

  .site-header .nav.is-open ul {
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
  }

  .site-header .nav.is-open a {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
  }

  .site-header .nav.is-open a:hover,
  .site-header .nav.is-open a:focus-visible {
    background: rgba(181, 140, 64, 0.18);
  }

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

  .home-four-transition__branch {
    right: -180px;
    width: 440px;
    opacity: 0.68;
  }

  .home-five-world:nth-child(4) {
    border-left: 0;
  }

  .home-five-world:nth-child(n + 4) {
    border-top: 1px solid var(--gold);
  }

  .home-four-story__inner,
  .home-four-connections__layout {
    gap: 46px;
  }
}

@media (max-width: 980px) {
  .home-five-route__heading {
    margin-bottom: 0;
  }

  .home-five-route__map {
    margin-top: 48px;
  }

  .home-four-story,
  .home-four-connections {
    padding-block: 88px;
  }

  .home-four-producer__content {
    max-width: 540px;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .home-four-transition__branch {
    display: none;
  }
}

@media (max-width: 900px) {
  .home-four-essence__intro {
    width: min(720px, calc(100% - 40px));
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-four-essence__visual {
    width: min(480px, 100%);
    min-height: 440px;
    margin-inline: auto;
  }

  .home-four-essence__visual img {
    height: 440px;
  }

  .home-four .home-four-essence__content {
    max-width: 100%;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 76px;
  }

  main section[id],
  footer[id] {
    scroll-margin-top: 76px;
  }

  .site-header--home-two .header__inner {
    width: calc(100% - 24px);
    min-height: 74px;
    gap: 10px;
    padding: 7px 4px;
  }

  .site-header .custom-logo-link {
    width: 128px;
  }

  .site-header .button {
    display: inline-flex;
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .site-header .nav.is-open {
    left: 0;
    right: 0;
    top: calc(100% + 6px);
  }

  .home-four-hero {
    min-height: max(620px, 100svh);
    padding: 108px 18px 104px;
  }

  .home-four-hero__content {
    width: 100%;
    max-width: 100%;
  }

  .home-four-hero__content p {
    margin-bottom: 14px;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
  }

  .home-four-hero__content h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 11.5vw, 4.25rem);
    line-height: 0.88;
    overflow-wrap: break-word;
  }

  .home-four-hero__content > span {
    width: min(290px, 100%);
    margin: 28px auto 0;
    font-size: 0.75rem;
    line-height: 1.55;
    letter-spacing: 0.16em;
  }

  .home-four-hero__cherries {
    left: -54px;
    top: 18%;
    width: min(180px, 46vw);
    opacity: 0.72;
  }

  .home-four-transition__branch {
    right: -165px;
    width: 300px;
    opacity: 0.54;
  }

  .home-four .home-four-essence {
    padding: 48px 0 58px;
  }

  .home-four-essence__intro {
    width: calc(100% - 32px);
    gap: 26px;
  }

  .home-four .home-four-essence__content h2,
  .home-five-journey__intro h2,
  .home-five-worlds__heading h2,
  .home-five-route__heading h2,
  .home-five-workflow__heading h2 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
    line-height: 0.96;
    overflow-wrap: break-word;
  }

  .home-four-essence__visual,
  .home-four-essence__visual img {
    min-height: 270px;
    height: 270px;
  }

  .home-four-essence__visual {
    width: min(340px, 100%);
  }

  .home-four-essence__visual figcaption {
    right: 0;
    bottom: -8px;
  }

  .home-four .home-four-essence__content .eyebrow {
    align-items: flex-start;
    margin-bottom: 20px;
    font-size: 0.75rem;
    line-height: 1.55;
    letter-spacing: 0.22em;
  }

  .home-four .home-four-essence__content .eyebrow::after {
    display: none;
  }

  .home-four .home-four-essence__content h2 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
    line-height: 0.9;
  }

  .home-four .home-four-essence__content > .home-four-essence__subtitle {
    font-size: 0.75rem;
    line-height: 1.55;
    letter-spacing: 0.2em;
  }

  .home-four-essence__copy {
    font-size: 1rem;
  }

  .home-four-essence__highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
  }

  .home-four-essence__highlights li + li::before {
    display: none;
  }

  .home-five-journey {
    padding-top: 54px;
  }

  .home-five-journey__intro,
  .home-five-worlds__heading {
    width: calc(100% - 28px);
  }

  .home-five-journey__step figure {
    border-radius: 20px;
    aspect-ratio: 4 / 3;
  }

  .home-five-worlds {
    width: calc(100% - 28px);
    padding-block: 58px 72px;
  }

  .home-five-worlds__grid {
    grid-template-columns: 1fr;
  }

  .home-five-world,
  .home-five-world:nth-child(4) {
    min-height: 0;
    border-left: 0;
    padding: 26px 24px;
  }

  .home-five-world:nth-child(n + 2) {
    border-top: 1px solid var(--gold);
  }

  .home-five-world span {
    margin-bottom: 16px;
  }

  .home-five-experience-route {
    padding: 94px 14px 82px;
  }

  .home-five-workflow {
    width: 100%;
    padding: 22px 0;
  }

  .home-five-workflow__heading {
    margin-bottom: 36px;
  }

  .home-five-workflow__grid {
    gap: 14px;
  }

  .home-five-workflow__step,
  .home-five-workflow__step:nth-child(3) {
    padding: 28px 24px;
    border-radius: 22px;
    background: rgba(250, 248, 242, 0.92);
  }

  .home-five-workflow__number {
    margin-bottom: 18px;
  }

  .home-five-route {
    padding-block: 76px;
  }

  .home-five-route__map {
    gap: 18px;
    margin-top: 38px;
  }

  .home-five-route__point,
  .home-five-route__point figure {
    border-radius: 22px;
  }

  .home-five-route__point figure {
    aspect-ratio: 4 / 4.4;
  }

  .home-five-route__caption {
    left: 16px;
    right: 16px;
    bottom: 14px;
    padding: 15px 18px;
  }

  .home-four-story,
  .home-four-connections {
    padding-block: 72px;
  }

  .home-four-story__gallery {
    height: 500px;
    gap: 10px;
  }

  .home-four-story__content h2,
  .home-four-connections__content > h3,
  .home-four-featured__content h2 {
    font-size: clamp(2.4rem, 11.5vw, 3.1rem);
    line-height: 0.98;
    overflow-wrap: break-word;
  }

  .home-four-producer,
  .home-four-producer__inner {
    min-height: 760px;
  }

  .home-four-producer::before,
  .home-four-producer::after {
    height: 54px;
  }

  .home-four-producer__content {
    padding: 74px 0 330px;
  }

  .home-four-producer__content h2 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
    line-height: 1.06;
  }

  .home-four-producer__metrics {
    gap: 10px;
    margin-top: 28px;
  }

  .home-four-producer__metrics article {
    min-height: 112px;
    padding: 16px 12px;
    border-radius: 18px;
  }

  .home-four-producer__metrics span {
    font-size: 0.78rem;
  }

  .home-four-producer__person {
    right: -96px;
    bottom: 6px;
    width: 460px;
    max-height: 390px;
  }

  .home-four-connections__main-image,
  .home-four-connections__main-image > img {
    min-height: 330px;
    height: 330px;
  }

  .home-four-connections__services article {
    padding-inline: 0;
  }

  .home-four-featured__inner {
    width: calc(100% - 28px);
  }

  .footer-three__grid {
    padding-block: 68px 52px;
  }

  .footer-three__bottom {
    padding-right: 66px;
  }

  .woocommerce-page main {
    width: calc(100% - 28px);
    margin-block: 98px 58px;
  }

  .woocommerce ul.products[class*="columns-"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .woocommerce ul.products[class*="columns-"] li.product {
    float: none;
    width: 100%;
    margin: 0;
  }

  .woocommerce form .form-row-first,
  .woocommerce form .form-row-last {
    float: none;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .site-header--home-two .header__inner {
    width: calc(100% - 16px);
    gap: 7px;
    padding-inline: 0;
  }

  .site-header .custom-logo-link {
    width: 108px;
  }

  .site-header .button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.62rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
}

@media (hover: none), (pointer: coarse) {
  .home-five-route__overlay {
    display: none;
  }

  .home-four-product:hover,
  .home-four-connections__services article:hover,
  .home-five-world:hover,
  .home-five-workflow__step:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Escala tipográfica unificada para todos los encabezados de segundo nivel. */
body h2 {
  font-size: clamp(2.5rem, 2.8vw, 3.2rem) !important;
}
