/* ============================================================
   ARE Trüst — Polish Layer
   Additive refinements loaded AFTER the Webflow base stylesheet.
   Aesthetic: refined editorial luxury — emerald + Libre Baskerville.
   Safe to remove; touches nothing in the generated CSS.
   ============================================================ */

:root {
  --ar-emerald:        #015d3a;
  --ar-emerald-deep:   #012e1d;
  --ar-emerald-bright: #0a7a4d;
  --ar-forest:         #172d1b;
  --ar-mint:           #e7f2ee;
  --ar-gold:           #c9a44c;

  /* Slow, expressive easings for a luxury cadence */
  --ar-ease:      cubic-bezier(.22, 1, .36, 1);   /* ease-out-expo */
  --ar-ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ar-ease-io:   cubic-bezier(.65, 0, .35, 1);   /* ease-in-out */
}

/* ---- 1. Global type & rendering refinements --------------- */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}
@supports (scrollbar-color: auto) {
  html { scrollbar-color: var(--ar-emerald) #00000010; }
}
body {
  font-feature-settings: "liga" 1, "kern" 1;
}

/* Headlines: balanced wrapping + tighter optical tracking */
.display-heading-1,
.heading-h2,
.heading-h3,
.heading-4,
.heading-4-inverse {
  text-wrap: balance;
  letter-spacing: -.012em;
  font-feature-settings: "liga" 1, "dlig" 1, "kern" 1;
}
p, .paragraph-18, .paragraph-16, .paragraph-14 {
  text-wrap: pretty;
}

/* ---- 2. Selection, focus, accessibility ------------------- */
::selection      { background: var(--ar-emerald); color: #fff; }
::-moz-selection { background: var(--ar-emerald); color: #fff; }

:where(a, button, [role="button"], input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--ar-emerald);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- 3. Scroll progress indicator ------------------------- */
.ar-progress {
  position: fixed;
  inset: 0 auto auto 0;
  height: 2px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--ar-emerald), var(--ar-emerald-bright) 60%, var(--ar-gold));
  box-shadow: 0 0 12px rgba(10, 122, 77, .5);
  pointer-events: none;
  transform-origin: 0 50%;
}

/* ============================================================
   4. Reveal system (page-load orchestration + scroll-reveal)
   Initial hidden state applies ONLY under html.ar-js (set by JS),
   so the site is fully visible if JS is disabled or fails.
   `.ar-fail` (reduced-motion / failsafe) instantly disables hiding.
   ============================================================ */
html.ar-js:not(.ar-fail) .section-hp-hero .display-heading-1,
html.ar-js:not(.ar-fail) .section-hp-hero .hero-text-wrapper,
html.ar-js:not(.ar-fail) .section-hp-hero .hp-hero-buttons-container,
html.ar-js:not(.ar-fail) .section-hp-hero .hp-hero-image-wrapper,
html.ar-js:not(.ar-fail) .heading-max-width-wrapper,
html.ar-js:not(.ar-fail) .card,
html.ar-js:not(.ar-fail) .faq-accordion,
html.ar-js:not(.ar-fail) .cta-wrapper,
html.ar-js:not(.ar-fail) .footer-newsletter-wrapper,
html.ar-js:not(.ar-fail) [data-ar-reveal] {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}
/* Hero image gets an extra micro-scale for a settling feel */
html.ar-js:not(.ar-fail) .section-hp-hero .hp-hero-image-wrapper {
  transform: translateY(30px) scale(.985);
}

/* The transition + revealed state (specificity beats the hide rule). */
html.ar-js .section-hp-hero .display-heading-1,
html.ar-js .section-hp-hero .hero-text-wrapper,
html.ar-js .section-hp-hero .hp-hero-buttons-container,
html.ar-js .section-hp-hero .hp-hero-image-wrapper,
html.ar-js .heading-max-width-wrapper,
html.ar-js .card,
html.ar-js .faq-accordion,
html.ar-js .cta-wrapper,
html.ar-js .footer-newsletter-wrapper,
html.ar-js [data-ar-reveal] {
  transition:
    opacity 1s var(--ar-ease),
    transform 1.1s var(--ar-ease);
  transition-delay: var(--ar-d, 0s);
}
html.ar-js .ar-in {
  opacity: 1 !important;
  transform: none !important;
}

/* ---- 5. Hero emerald photo: gentle float (parallax via JS) - */
.hp-hero-image {
  animation: ar-float 11s var(--ar-ease-soft) infinite;
  transition: translate .6s var(--ar-ease-soft);
  will-change: transform, translate;
}
@keyframes ar-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-13px) rotate(.45deg); }
}

/* ============================================================
   6. Micro-interactions
   ============================================================ */

/* Buttons — refined lift + emerald glow (base only animates bg-color) */
.button-primary,
.button-secondary,
.button-tertiary,
.button-white,
.primary-button {
  transition:
    background-color .5s var(--ar-ease),
    color .5s var(--ar-ease),
    border-color .5s var(--ar-ease),
    transform .5s var(--ar-ease),
    box-shadow .5s var(--ar-ease) !important;
  will-change: transform;
}
.button-primary:hover,
.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -10px rgba(1, 93, 58, .5);
}
.button-secondary:hover,
.button-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -12px rgba(1, 93, 58, .28);
}
.button-primary:active,
.button-secondary:active,
.button-white:active,
.primary-button:active { transform: translateY(0); }

/* The hero "Descubra Nuestro Ecosistema ↗" tertiary link */
.inline-link-image {
  transition: transform .5s var(--ar-ease);
}
.button-tertiary { position: relative; }
.button-tertiary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: currentColor;
  opacity: .55;
  transition: width .55s var(--ar-ease);
}
.button-tertiary:hover::after        { width: 100%; }
.button-tertiary:hover .inline-link-image { transform: translate(5px, -5px); }

/* Nav links — underline grows from the center; active page stays lit */
.nav-link { position: relative; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 12px;
  height: 1.5px;
  background: var(--ar-emerald);
  transition: left .42s var(--ar-ease), right .42s var(--ar-ease);
}
.nav-link:hover::after,
.nav-link.w--current::after { left: 0; right: 0; }
.nav-link.w--current { color: var(--ar-emerald); }

/* Cards — soft lift with emerald shadow + slow image zoom */
.card {
  transition:
    transform .6s var(--ar-ease),
    box-shadow .6s var(--ar-ease) !important;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px -30px rgba(1, 93, 58, .4);
}
.card img,
.card-image-full {
  transition: transform 1.3s var(--ar-ease);
  backface-visibility: hidden;
}
.card:hover img,
.card:hover .card-image-full { transform: scale(1.045); }

/* Logo wordmark — quiet hover */
.nav-logo, .nav-logo-image {
  transition: opacity .4s var(--ar-ease), transform .5s var(--ar-ease);
}
.nav-logo:hover .nav-logo-image { transform: translateY(-1px); opacity: .85; }

/* Strategic-ally / partner logos — desaturate at rest, bloom on hover */
.aliados-logo-image,
.partner-logo,
.aliados-logo {
  transition: filter .5s var(--ar-ease), opacity .5s var(--ar-ease), transform .5s var(--ar-ease);
}

/* Footer + generic links: gentle emerald shift */
.footer-link,
.footer-menu-link,
.text-link {
  transition: color .35s var(--ar-ease), opacity .35s var(--ar-ease);
}
.footer-link:hover,
.footer-menu-link:hover { color: var(--ar-emerald); }

/* ---- 7. FAQ accordion — smoother icon + question affordance - */
.faq-question { transition: color .4s var(--ar-ease); cursor: pointer; }
.faq-question:hover { color: var(--ar-emerald); }
.accordion-vertical-line,
.accordion-horizontal-line,
.accordion-icon {
  transition: transform .5s var(--ar-ease), opacity .5s var(--ar-ease);
}
.faq-accordion {
  transition:
    opacity 1s var(--ar-ease),
    transform 1.1s var(--ar-ease),
    box-shadow .5s var(--ar-ease),
    border-color .5s var(--ar-ease);
}

/* ---- 8. Form fields — emerald focus affordance ------------- */
.text-field,
.text-area,
input.w-input,
textarea.w-input,
.input,
.form-input {
  transition:
    border-color .4s var(--ar-ease),
    box-shadow .4s var(--ar-ease),
    background-color .4s var(--ar-ease) !important;
}
.text-field:focus,
.text-area:focus,
input.w-input:focus,
textarea.w-input:focus,
.input:focus,
.form-input:focus {
  border-color: var(--ar-emerald) !important;
  box-shadow: 0 0 0 3px rgba(1, 93, 58, .12) !important;
}

/* ---- 9. Atmospheric depth for the dark CTA band ----------- */
.section--cta { position: relative; isolation: isolate; overflow: hidden; }
.section--cta::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 140%;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 18% 0%, rgba(10,122,77,.30), transparent 60%),
    radial-gradient(50% 70% at 88% 100%, rgba(201,164,76,.12), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   11. "Tiendas" nav dropdown — smooth, hover-aware menu
   Webflow toggles display:none/block with no animation and only
   opens on click. We render the panel so it can fade/rise, open it
   on hover + keyboard focus + Webflow's own click state, and bridge
   the toggle→panel gap so the cursor can cross without it snapping shut.
   ============================================================ */
@media (min-width: 992px) {
  /* Keep the panel rendered (so it animates) but out of the a11y tree when closed. */
  .nav-bar .dropdown-list.w-dropdown-list {
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .3s var(--ar-ease), transform .3s var(--ar-ease), visibility .3s;
    box-shadow: 0 18px 44px -20px rgba(1, 93, 58, .28), 0 2px 6px rgba(23, 45, 27, .06);
    will-change: opacity, transform;
  }
  /* Transparent bridge across the gap between toggle and panel. */
  .nav-bar .dropdown-list.w-dropdown-list::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 18px;
  }
  /* Open on hover, keyboard focus, or Webflow's click state. */
  .nav-bar .dropdown:hover > .dropdown-list.w-dropdown-list,
  .nav-bar .dropdown:focus-within > .dropdown-list.w-dropdown-list,
  .nav-bar .dropdown.w--open > .dropdown-list.w-dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  /* Chevron rotates to signal open. */
  .nav-bar .w-icon-dropdown-toggle { transition: transform .35s var(--ar-ease); }
  .nav-bar .dropdown:hover .w-icon-dropdown-toggle,
  .nav-bar .dropdown:focus-within .w-icon-dropdown-toggle,
  .nav-bar .dropdown.w--open .w-icon-dropdown-toggle { transform: rotate(180deg); }
  /* Toggle label warms to emerald, matching the nav links. */
  .nav-bar .dropdown-toggle .text-block-9 { transition: color .3s var(--ar-ease); }
  .nav-bar .dropdown:hover .text-block-9,
  .nav-bar .dropdown:focus-within .text-block-9 { color: var(--ar-emerald); }
}
/* Dropdown links — refined emerald hover (all widths). */
.nav-bar .w-dropdown-link {
  transition: color .3s var(--ar-ease), background-color .3s var(--ar-ease), padding-left .35s var(--ar-ease);
  border-radius: 6px;
}
.nav-bar .w-dropdown-link:hover,
.nav-bar .w-dropdown-link:focus-visible {
  color: var(--ar-emerald);
  background-color: var(--ar-mint);
  padding-left: 26px;
}

/* ============================================================
   12. Mobile menu redesign — "Immersive Emerald" full-screen nav
   Scope: ≤991px (Webflow data-collapse="medium"). Keyed off the
   [data-nav-menu-open] attribute Webflow writes on the panel when
   open, and :has(.w-nav-button.w--open) for the floating header
   (logo + close button) that stacks ABOVE the panel.
   We animate the panel's CHILDREN, never the panel itself, so we
   never fight Webflow's inline transform/transition on the panel.
   Desktop (≥992px) is completely untouched.
   ============================================================ */
@media (max-width: 991px) {

  /* ---- Closed state: emerald pill hamburger (was flat #f4f4f4) ---- */
  .nav-bar .nav-hamburger-button {
    background-color: var(--ar-emerald) !important;
    box-shadow: 0 6px 18px -10px rgba(1, 93, 58, .8);
    transition:
      background-color .45s var(--ar-ease),
      transform .45s var(--ar-ease),
      box-shadow .45s var(--ar-ease);
  }
  .nav-bar .nav-hamburger-button:hover {
    background-color: var(--ar-emerald-bright) !important;
    transform: scale(1.06);
    box-shadow: 0 12px 26px -10px rgba(1, 93, 58, .85);
  }
  .nav-bar .nav-hamburger-button:active { transform: scale(.97); }
  /* black hamburger glyph → white on the emerald pill */
  .nav-bar .nav-hamburger-icon { filter: brightness(0) invert(1); }

  /* ---- Open state: edge-to-edge immersive dark panel ----
     The white top strip (.navigation-container, z-index 12) normally
     paints over the panel; make it transparent so the gradient runs
     full-bleed, then float a white wordmark + close ring on top. */
  .nav-bar:has(.w-nav-button.w--open),
  .nav-bar:has(.w-nav-button.w--open) .container.navigation-container {
    background-color: transparent !important;
  }
  .nav-bar:has(.w-nav-button.w--open) .nav-logo-image {
    filter: brightness(0) invert(1);
    transition: filter .5s var(--ar-ease);
  }
  /* Close affordance: translucent ring + white glyph on the dark panel */
  .nav-bar:has(.w-nav-button.w--open) .nav-hamburger-button {
    background-color: rgba(255, 255, 255, .07) !important;
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: none;
  }
  .nav-bar:has(.w-nav-button.w--open) .nav-hamburger-button:hover {
    background-color: rgba(255, 255, 255, .14) !important;
    transform: scale(1.08);
  }
  .nav-bar:has(.w-nav-button.w--open) .nav-close-ccon {
    filter: brightness(0) invert(1);
  }
  /* Deterministic icon swap keyed on the reliable .w--open class, so the
     X always shows when open and the bars when closed — independent of
     Webflow's IX2 opacity interaction (which can desync). */
  .nav-bar .nav-hamburger-icon,
  .nav-bar .nav-close-ccon { transition: opacity .3s var(--ar-ease) !important; }
  .nav-bar .nav-menu-button.w--open .nav-hamburger-icon { opacity: 0 !important; }
  .nav-bar .nav-menu-button.w--open .nav-close-ccon { opacity: 1 !important; }
  .nav-bar .nav-menu-button:not(.w--open) .nav-hamburger-icon { opacity: 1 !important; }
  .nav-bar .nav-menu-button:not(.w--open) .nav-close-ccon { opacity: 0 !important; }

  /* ---- The panel: deep forest→emerald with atmospheric glows ----
     IMPORTANT: only style appearance here — NEVER force `display`.
     Webflow hides the collapsed menu with `.w-nav[data-collapse="medium"]
     .w-nav-menu { display:none }` and shows it on open; forcing display
     here would keep the panel stuck open after close. The flex layout is
     therefore scoped to the open state ([data-nav-menu-open]) below. */
  .nav-bar .nav-links-wrapper.w-nav-menu {
    background-color: var(--ar-forest) !important;
    background-image:
      radial-gradient(115% 75% at 8% -5%, rgba(10, 122, 77, .42), transparent 55%),
      radial-gradient(95% 70% at 105% 102%, rgba(201, 164, 76, .15), transparent 55%),
      linear-gradient(168deg, var(--ar-forest) 0%, var(--ar-emerald-deep) 78%, #001710 100%);
    isolation: isolate;
  }
  /* Open-state layout only — keyed off the attribute Webflow sets/removes. */
  .nav-bar .nav-links-wrapper.w-nav-menu[data-nav-menu-open] {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding-top: 5.5rem !important;
    padding-bottom: 2rem !important;
  }
  /* Lock the page behind the menu — also removes the scrollbar gutter
     so the panel runs truly edge-to-edge. */
  html:has(.nav-bar .w-nav-button.w--open) { overflow: hidden; }
  /* fine grain of light at the very top edge for depth */
  .nav-bar .nav-links-wrapper.w-nav-menu::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 76, .55) 22%, rgba(10, 122, 77, .55) 70%, transparent);
    opacity: .7;
  }

  /* Center the link block; drop Webflow's absolute/bordered wrapper */
  .nav-bar .nav-cta--button-container {
    position: relative !important;
    border: 0 !important;
    width: 100% !important;
    margin: auto 0 !important;
    padding: 0 !important;
  }
  .nav-bar .nav-inner-container {
    counter-reset: ar-nav;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    padding: 0 clamp(1.75rem, 7vw, 3.25rem);
    overflow: visible;
  }

  /* ---- Links: large editorial type, hairlines, numbers, arrow ---- */
  .nav-bar .nav-inner-container .nav-link,
  .nav-bar .nav-inner-container .dropdown-toggle {
    counter-increment: ar-nav;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    color: rgba(244, 241, 233, .9);
    font-family: "Libre Baskerville", serif;
    font-size: clamp(1.35rem, 5.1vw, 1.62rem);
    line-height: 1.1;
    letter-spacing: -.012em;
    text-align: left;
    text-decoration: none;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    margin: 0 !important;
    padding: clamp(.72rem, 2.7vw, 1.05rem) 2.4rem clamp(.72rem, 2.7vw, 1.05rem) 2.9rem !important;
    transition:
      color .45s var(--ar-ease),
      transform .45s var(--ar-ease),
      background-color .45s var(--ar-ease) !important;
  }
  /* leading index number 01–06 (gold) */
  .nav-bar .nav-inner-container .nav-link::before,
  .nav-bar .nav-inner-container .dropdown-toggle::before {
    content: counter(ar-nav, decimal-leading-zero);
    position: absolute;
    left: .35rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--ar-gold);
    opacity: .72;
    transition: opacity .45s var(--ar-ease), color .45s var(--ar-ease);
  }
  /* trailing arrow → (repurposes the desktop ::after underline) */
  .nav-bar .nav-inner-container .nav-link::after {
    content: "";
    position: absolute;
    left: auto;
    right: 2.4rem;
    top: 50%;
    bottom: auto;
    width: 1.25rem;
    height: 1rem;
    background: center / contain no-repeat
      url("/images/687197e984fbdfc5f4b31ea4_arrow_white.svg");
    opacity: 0;
    transform: translate(-10px, -50%);
    transition: opacity .45s var(--ar-ease), transform .45s var(--ar-ease);
  }
  .nav-bar .nav-inner-container .nav-link:first-child {
    border-top: 1px solid rgba(255, 255, 255, .1) !important;
  }

  /* Hover / focus — link warms, slides, reveals the arrow */
  .nav-bar .nav-inner-container .nav-link:hover,
  .nav-bar .nav-inner-container .nav-link:focus-visible,
  .nav-bar .nav-inner-container .dropdown-toggle:hover,
  .nav-bar .nav-inner-container .dropdown:focus-within .dropdown-toggle {
    color: #fff;
    transform: translateX(8px);
    background-color: rgba(255, 255, 255, .03);
  }
  .nav-bar .nav-inner-container .nav-link:hover::after,
  .nav-bar .nav-inner-container .nav-link:focus-visible::after {
    opacity: .92;
    transform: translate(0, -50%);
  }
  .nav-bar .nav-inner-container .nav-link:hover::before,
  .nav-bar .nav-inner-container .dropdown-toggle:hover::before { opacity: 1; }

  /* Active page — gold accent bar, gold label, persistent arrow */
  .nav-bar .nav-inner-container .nav-link.w--current {
    color: #fff !important;
    text-decoration: none !important;
    background:
      linear-gradient(90deg, rgba(201, 164, 76, .14), transparent 55%);
    box-shadow: inset 3px 0 0 var(--ar-gold);
  }
  .nav-bar .nav-inner-container .nav-link.w--current::before {
    opacity: 1;
    color: var(--ar-gold);
  }
  .nav-bar .nav-inner-container .nav-link.w--current::after {
    opacity: .92;
    transform: translate(0, -50%);
  }

  /* ---- "Tiendas" dropdown — align it, make it a peer row ---- */
  .nav-bar .nav-inner-container .dropdown.w-dropdown {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
    text-align: left;
  }
  .nav-bar .nav-inner-container .dropdown-toggle {
    padding-right: 2.9rem !important;
    cursor: pointer;
  }
  .nav-bar .nav-inner-container .dropdown-toggle .text-block-9 {
    font: inherit;
    color: inherit;
  }
  /* chevron → gold, parked at the right edge, rotates when open */
  .nav-bar .nav-inner-container .w-icon-dropdown-toggle {
    left: auto;
    right: 0;
    margin: auto 0;
    color: var(--ar-gold);
    font-size: 1.1rem;
    transition: transform .4s var(--ar-ease), color .4s var(--ar-ease);
  }
  .nav-bar .nav-inner-container .dropdown-toggle.w--open .w-icon-dropdown-toggle {
    transform: rotate(180deg);
  }
  /* the open sub-list — transparent, indented, gold-on-hover items */
  .nav-bar .nav-inner-container .dropdown-list {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: .35rem 0 .65rem !important;
    margin: 0 !important;
  }
  .nav-bar .nav-inner-container .dropdown-list .w-dropdown-link {
    color: rgba(244, 241, 233, .62) !important;
    font-family: "Libre Baskerville", serif;
    font-size: 1.02rem;
    padding: .55rem 0 .55rem 2.9rem !important;
    background: transparent !important;
    border-radius: 0;
    transition: color .35s var(--ar-ease), padding-left .35s var(--ar-ease);
  }
  .nav-bar .nav-inner-container .dropdown-list .w-dropdown-link::before {
    content: "—";
    margin-right: .55rem;
    color: var(--ar-gold);
    opacity: .65;
  }
  .nav-bar .nav-inner-container .dropdown-list .w-dropdown-link:hover,
  .nav-bar .nav-inner-container .dropdown-list .w-dropdown-link:focus-visible {
    color: #fff !important;
    background: transparent !important;
    padding-left: 3.3rem !important;
  }

  /* ---- Decorative footer fills the dead space below the links ---- */
  .nav-bar .nav-inner-container::after {
    content: "Tejiendo desde el origen";
    display: block;
    margin: clamp(1.6rem, 5.5vw, 2.6rem) 0 0;
    padding: 1.4rem clamp(0px, 1vw, .5rem) 0 2.9rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: var(--ar-gold);
    font-family: "Libre Baskerville", serif;
    font-style: italic;
    font-size: .95rem;
    letter-spacing: .015em;
    opacity: .85;
  }

  /* ---- Staggered entrance (children only; never the panel) ----
     [data-nav-menu-open] toggles on every open → animation replays.
     fill-mode: backwards keeps items hidden through their delay, then
     reverts to base so hover transforms stay free. */
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > * {
    animation: ar-menu-item-in .6s var(--ar-ease) backwards;
  }
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *:nth-child(1) { animation-delay: .06s; }
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *:nth-child(2) { animation-delay: .11s; }
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *:nth-child(3) { animation-delay: .16s; }
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *:nth-child(4) { animation-delay: .21s; }
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *:nth-child(5) { animation-delay: .26s; }
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *:nth-child(6) { animation-delay: .31s; }
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container::after {
    animation: ar-menu-item-in .7s var(--ar-ease) .36s backwards;
  }
  @keyframes ar-menu-item-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---- 10. Respect user motion preferences ------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hp-hero-image { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  /* Drop the staggered menu entrance entirely (delays would otherwise
     keep items hidden through their backwards fill). */
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *,
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container::after {
    animation: none !important;
  }
}

/* ---- 11. Language toggle (EN | ES) ------------------------ */
/* Additive: a new nav child, never alters Webflow nodes. The inactive
   side is a link to the same page in the other language; the active side
   is a non-interactive <span>. Lives at the end of .nav-inner-container. */
.ar-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: 1.25rem;
  padding: 3px;
  border: 1px solid rgba(1, 93, 58, .22);
  border-radius: 999px;
  background: rgba(1, 93, 58, .045);
  vertical-align: middle;
}
.ar-lang {
  font-family: "Jost", "Inter", sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .045em;
  line-height: 1;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ar-forest);
  text-decoration: none;
  transition: background-color .4s var(--ar-ease), color .4s var(--ar-ease);
}
a.ar-lang { cursor: pointer; }
a.ar-lang:hover { color: var(--ar-emerald); background: rgba(1, 93, 58, .09); }
a.ar-lang:focus-visible {
  outline: 2px solid var(--ar-gold);
  outline-offset: 2px;
}
.ar-lang--active {
  background: var(--ar-emerald);
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 8px -3px rgba(1, 93, 58, .5);
}

/* Desktop: the toggle has no underline/number behaviours of .nav-link,
   so nothing to undo — it simply sits inline after Contact. */

/* Mobile menu (dark immersive panel): recolour for the dark ground and
   drop it below the links, aligned to the link text indent. */
@media (max-width: 991px) {
  .nav-bar .nav-inner-container .ar-lang-toggle {
    width: auto;
    align-self: flex-start;
    margin: 1.6rem 0 0 2.9rem;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
  }
  .nav-bar .nav-inner-container .ar-lang {
    font-size: .9rem;
    padding: 7px 15px;
    color: rgba(244, 241, 233, .85);
  }
  .nav-bar .nav-inner-container a.ar-lang:hover {
    color: #fff;
    background: rgba(255, 255, 255, .1);
  }
  .nav-bar .nav-inner-container .ar-lang--active {
    background: var(--ar-emerald);
    color: #fff;
  }
  /* keep the staggered entrance going for the 7th child (the toggle) */
  .nav-links-wrapper[data-nav-menu-open] .nav-inner-container > *:nth-child(7) {
    animation-delay: .36s;
  }
  /* The decorative mobile-menu tagline (::after) is hardcoded Spanish in the
     base rule above; English pages override it to match the hero. Spanish
     pages (lang="es-CO") keep the original. */
  html[lang="en"] .nav-bar .nav-inner-container::after {
    content: "Weaving from the origin";
  }
}
