/* Abasto Selecto premium navigation & editorial motion — desktop + mobile. */
/* JS owns the easing: disable native smooth scroll to prevent double animations. */
html { scroll-behavior: auto !important; }
/* Navigation: one moving indicator, no shifting text or reloads. */
.nav {
  transition: box-shadow .42s cubic-bezier(.22,1,.36,1),
              background-color .42s ease,
              border-color .42s ease;
}
.nav.is-scrolled {
  box-shadow: 0 12px 34px rgba(17,29,48,.07);
  border-bottom-color: rgba(17,29,48,.055);
}
.nav-links {
  position: relative;
  align-items: center;
  gap: clamp(20px,2.3vw,36px);
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  white-space: nowrap;
  transition: color .35s ease, opacity .35s ease;
}
.nav-links a.is-active,
.nav-links a[aria-current="location"] {
  color: var(--olive);
}
.nav-indicator {
  position: absolute;
  pointer-events: none;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 100px;
  background: var(--gold);
  width: var(--nav-indicator-width,0px);
  transform: translate3d(var(--nav-indicator-x,0px),0,0);
  opacity: 0;
  transition: width .6s cubic-bezier(.22,1,.36,1),
              transform .6s cubic-bezier(.22,1,.36,1),
              opacity .25s ease;
}
.nav-links.has-active .nav-indicator { opacity: 1; }

/* Consistent optical centering across the four major destinations. */
.section {
  padding-top: clamp(70px,6.2vw,96px);
  padding-bottom: clamp(72px,6.7vw,100px);
}
.brand {
  padding-top: clamp(78px,7vw,108px);
  padding-bottom: clamp(84px,7.4vw,112px);
  min-height: 0;
}
.brand-grid {
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr);
  gap: clamp(40px,5vw,74px);
  align-items: center;
}
.brand h2 {
  max-width: 680px;
  line-height: .99;
}
.brand .lead { max-width: 560px; }
.brand .copy { max-width: 560px; }
.brand-rule { margin-top: 26px; }
.section-head {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: clamp(36px,5.3vw,76px);
  align-items: center;
  margin-bottom: clamp(32px,3.4vw,52px);
}
.section-head h2 {
  font-size: clamp(40px,4.9vw,68px);
  line-height: .99;
  max-width: 670px;
}
.section-head > p {
  max-width: 570px;
  margin: 0;
}
#soluciones .supply-grid {
  gap: clamp(18px,2vw,26px);
}
#soluciones .supply-card {
  min-height: clamp(410px,34vw,470px);
}
.supply-card .photo {
  transform: scale(1);
  transition: transform 1.1s cubic-bezier(.22,1,.36,1);
  will-change: auto;
}
@media (hover:hover) and (pointer:fine) {
  .supply-card:hover .photo { transform: scale(1.055); }
}

/* One unified, staged reveal system: content remains visible if JS is off. */
html.motion-ready .editorial-reveal {
  opacity: 0;
  transform: translate3d(0,25px,0);
  filter: blur(3px);
  transition:
    opacity .82s cubic-bezier(.22,1,.36,1),
    transform .92s cubic-bezier(.22,1,.36,1),
    filter .7s ease;
  transition-delay: var(--reveal-delay,0ms);
}
html.motion-ready .editorial-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0,0,0);
  filter: blur(0);
}
@media (hover:hover) and (pointer:fine) {
  html.motion-ready .editorial-reveal.is-visible.supply-card:hover {
    transform: translate3d(0,-5px,0);
  }
  html.motion-ready .editorial-reveal.is-visible.reason:hover,
  html.motion-ready .editorial-reveal.is-visible.sector:hover {
    transform: translate3d(0,-3px,0);
  }
}

/* Tablet: centered editorial columns, readable line lengths. */
@media (max-width:980px) {
  .brand-grid, .section-head {
    grid-template-columns: minmax(0,1fr);
    gap: clamp(18px,3.5vw,34px);
    align-items: start;
  }
  .brand h2, .section-head h2 { max-width: 760px; }
  .section-head > p { max-width: 680px; }
  #soluciones .supply-card { min-height: 420px; }
}
@media (max-width:620px) {
  .section { padding: 68px 0 74px; }
  .brand { padding: 70px 0 80px; }
  .brand-grid { gap: 26px; }
  .section-head { gap: 18px; margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(38px,10vw,48px); line-height: 1.01; }
  .section-head > p { font-size: 15px; line-height: 1.65; }
  #soluciones .supply-card { min-height: 350px; }
  html.motion-ready .editorial-reveal { filter: none; transform: translate3d(0,17px,0); }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  .nav,.nav-indicator,.nav-links a,.supply-card .photo {
    transition: none !important;
  }
  html.motion-ready .editorial-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
