/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: clamp(180px, 22vh, 280px) var(--section-pad-x) clamp(80px, 10vw, 140px);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center 62%;
  transform-origin: center;
  will-change: transform;
  filter: brightness(.46) contrast(1.06) saturate(1.35) sepia(.32) hue-rotate(-12deg);
}
:root.light .hero__bg { filter: brightness(.72) contrast(1.06) saturate(1.35) sepia(.32) hue-rotate(-12deg); }
.hero__overlay {
  position: absolute; inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 62% 58%, rgba(214,158,58,.38) 0%, rgba(214,158,58,.10) 45%, transparent 72%),
    radial-gradient(ellipse 85% 60% at 30% 55%, transparent 0%, rgba(0,0,0,.55) 100%),
    linear-gradient(180deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.22) 35%, rgba(0,0,0,.55) 100%);
}
:root.light .hero__overlay {
  background:
    radial-gradient(ellipse 90% 60% at 30% 55%, transparent 0%, rgba(246,245,241,.30) 100%),
    linear-gradient(180deg, rgba(246,245,241,.30) 0%, rgba(246,245,241,.10) 35%, rgba(246,245,241,.55) 100%);
}

/* Top strip — location left / regions right.
   Sits below the fixed nav (which lives at top:0 ~58px tall). */
.hero__topbar {
  position: absolute;
  top: clamp(82px, 9vw, 110px);
  left: var(--section-pad-x);
  right: var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-2);
  z-index: 5;
  pointer-events: none;
}
.hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.hero__loc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero__regions {
  display: inline-flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  color: var(--text-3);
}
.hero__regions span { color: var(--text); }

.hero__inner {
  width: 100%;
  max-width: var(--container-w);
  margin: 0;
  position: relative;
  z-index: 1;
}
.hero__content {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.5vw, 36px);
}

/* Partner pill */
.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 9px 18px 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text);
  transition: border-color .2s ease, background-color .2s ease;
}
.hero__pill:hover { border-color: var(--text-4); background: color-mix(in oklab, var(--bg) 70%, transparent); }
.hero__pill span { white-space: nowrap; }
.hero__pill-mark { width: 18px; height: 18px; flex-shrink: 0; border-radius: 4px; object-fit: contain; }

.hero__title {
  font-family: var(--font-bixen);
  font-size: clamp(34px, 7vw, 92px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin: 0 0 0 -3px;
  padding-bottom: 0.28em;
  text-wrap: balance;
  background: linear-gradient(
    180deg,
    var(--text) 0%,
    var(--text) 75%,
    color-mix(in oklab, var(--text) 90%, transparent) 100%
  );
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__title em {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
}
/* Light mode: hero sits over the dark Earth image, so keep the title white */
:root.light .hero__title {
  background: none;
  -webkit-background-clip: initial;
          background-clip: initial;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
/* Title line breaks:
   desktop (>880px) → "Helping companies" / "thrive through AI."  (two lines)
   mobile  (≤880px) → "Helping companies" / "thrive" / "through AI." (3+ lines) */
.hero__title .hero__br-a { display: inline; }
.hero__title .hero__br-b { display: none; }
@media (max-width: 880px) {
  .hero__title .hero__br-b { display: inline; }
}
.hero__sub {
  font-size: clamp(14px, 1.7vw, 21px);
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
  max-width: 640px;
  text-wrap: pretty;
}
.hero__sub strong {
  color: var(--text);
  font-weight: 500;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll svg { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (max-width: 920px) {
  .hero__title { font-size: clamp(42px, 12.5vw, 76px); }
  .hero__regions { gap: clamp(12px, 3vw, 24px); }
}
@media (max-width: 580px) {
  .hero__topbar { font-size: 10px; gap: 14px; }
  .hero__loc { gap: 8px; }
  /* Drop the coordinates so "Buenos Aires" + all three regions fit one row. */
  .hero__coords { display: none; }
  .hero__regions { gap: 11px; }
  /* Keep the partner pill on a single line on phones. */
  .hero__pill { font-size: 9px; letter-spacing: 0.05em; padding: 8px 13px 8px 10px; gap: 8px; }
  .hero__pill-mark { width: 15px; height: 15px; }
  /* The planet fills the lower ~60% of a near-square image; on a tall
     portrait viewport `cover` shows the whole frame (planet as a mid-band
     with dead space above). Zoom in so the glowing terrain fills the hero. */
  .hero__bg { background-size: auto 160%; background-position: 55% 74%; }
}

/* Scroll-zoom on the hero Earth image (mobile) — JS sets the scale per frame,
   matching the services panels. Zoom toward the planet (lower-centre). */
@media (max-width: 880px) {
  .hero__bg {
    transform-origin: 55% 62%;
    will-change: transform;
  }
}

/* ────────────────────────────────────────────────────────────────
   PORTRAIT MOBILE: fit the whole intro in one screen.
   Pill + slogan + subline + the 4 KPIs all visible at once, with the
   hero flexing to fill whatever height is left above the stats.
   On phones too short to fit everything it simply scrolls (graceful).
   ──────────────────────────────────────────────────────────────── */
@media (orientation: portrait) and (max-width: 920px) {
  /* Let the hero own a full screen; the stats band flows comfortably BELOW it
     instead of being crammed into the same viewport (felt too compacted). */
  .hero-stack { display: block; }
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    /* Extra top padding so the pill clears the location / regions strip. */
    padding-top: clamp(120px, 17vh, 168px);
    padding-bottom: clamp(40px, 7vh, 80px);
  }
  .hero__scroll { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   STATS STRIP (under hero)
   ════════════════════════════════════════════════════════════════ */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-1);
}
.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
}
.stat__num sup { font-size: .5em; vertical-align: top; color: var(--accent); margin-left: 2px; }
.stat__lbl {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-3);
}
@media (max-width: 880px) {
  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 clamp(22px, 6vw, 30px);
  }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  /* Smaller numbers + roomier cells so the KPIs breathe and don't read
     edge-to-edge. */
  .stats { padding-block: clamp(8px, 3vw, 20px); }
  .stat { padding: clamp(30px, 8vw, 44px) clamp(18px, 5vw, 26px); gap: 9px; }
  .stat__num { font-size: clamp(30px, 8.5vw, 42px); }
  /* Lighter KPIs on mobile */
  .stat, .stat__num, .stat__lbl { font-weight: 300 !important; }
}

/* ════════════════════════════════════════════════════════════════
   SECTION HEADERS
   ════════════════════════════════════════════════════════════════ */
.section__hd {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section__hd--centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section__hd-title {
  font-size: clamp(36px, 4.5vw, 72px);
}
.section__hd-lead {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--text-2);
  line-height: 1.5;
  max-width: 540px;
  margin: 0;
}
@media (max-width: 880px) {
  .section__hd { grid-template-columns: 1fr; gap: 24px; }
}

/* ════════════════════════════════════════════════════════════════
   SERVICES — 4 cards, image-led
   ════════════════════════════════════════════════════════════════ */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service {
  background: var(--bg);
  padding: clamp(40px, 4vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 680px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background-color .3s ease;
}
.service:hover { background: var(--surface-1); }
.service__img {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: .14;
  transition: opacity .4s ease, transform .8s ease;
  filter: contrast(1.05) saturate(.85);
}
.service:hover .service__img { opacity: .28; transform: scale(1.04); }

/* Product logo badge (e.g. Omnia) — small mark on branded cards */
.service__logo {
  position: absolute;
  top: clamp(24px, 2.4vw, 36px);
  right: clamp(24px, 2.4vw, 36px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  user-select: none;
  z-index: 1;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service__logo:hover {
  transform: translateY(-2px) scale(1.05);
}
.service__logo--omnia {
  background: #FD366E;
  box-shadow: 0 0 15px rgba(253,54,110,.4);
}

/* Falling-particle "snow" overlay (Omnia card) */
.service__snow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: .9;
}

/* Page-wide snowfall — behind all content, only visible against the page background */
.page-snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: .4;
}
@media (min-width: 1100px) {
  .service__logo { width: 56px; height: 56px; font-size: 30px; border-radius: 14px; }
}

/* BIG practice number — solid, subtle */
.service__num {
  font-family: var(--font-display);
  font-size: clamp(120px, 14vw, 240px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: -8px 0 auto -6px;
  color: var(--text-4);
  user-select: none;
  pointer-events: none;
  transition: color .3s ease;
}
.service:hover .service__num { color: var(--accent); }

/* Small kicker label (formerly service__num) */
.service__kicker {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
/* Title row wraps the title + product badge. On desktop it's transparent
   (display:contents) so the badge keeps its absolute top-right placement;
   on mobile it becomes a flex row so the badge sits beside the title. */
.service__titlerow { display: contents; }
.service__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text);
}
.service__tagline {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 19px);
  color: var(--accent);
  line-height: 1.3;
  margin: -8px 0 0;
}
.service__body {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  max-width: 480px;
}
/* "See more" toggle — only used on mobile */
.service__more {
  display: none;
  align-items: center;
  gap: 7px;
  background: none;
  border: none;
  padding: 0;
  margin: -4px 0 0;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
}
.service__more svg {
  transition: transform .3s ease;
}
.service__more.is-open svg {
  transform: rotate(180deg);
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
}
.service__tag {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
@media (max-width: 880px) {
  /* body has overflow-x:hidden which would turn it into a scroll container
     and break position:sticky — `clip` clips horizontally without that. */
  body { overflow-x: clip; }

  /* ── WAA-style stacking panels ──────────────────────────────
     Each service pins full-screen; its background image zooms as you
     scroll, and the next panel scrolls up to cover it. */
  .services {
    display: block;
    grid-template-columns: none;
    gap: 0;
    background: var(--bg);
    border: 0;
  }
  .service {
    position: relative;
    height: 100vh;          /* fallback for browsers without svh (older Samsung Internet) */
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    border-radius: 0;
    background: var(--bg);
    justify-content: center;     /* title block sits in the vertical middle */
    align-items: flex-start;
    gap: 14px;
    padding: clamp(28px, 7vw, 44px);
  }
  /* Neutralise the reveal animation — its transform would interfere with the
     zoom behaviour. */
  .service.reveal { opacity: 1 !important; transform: none !important; }

  /* Full-bleed zooming background (JS sets the scale per scroll frame).
     Darkened with the same brightness filter the hero uses so the photo
     reads dark, not "plena". */
  .service__img {
    inset: 0;
    z-index: 0;
    opacity: 1;
    filter: brightness(.46) contrast(1.06) saturate(1.1);
    transform-origin: center center;
    will-change: transform;
    transition: none;
  }
  .service:hover .service__img { opacity: 1; }
  /* Black gradient overlay on top of the image, hero-style */
  .service::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(0,0,0,.62) 0%,
      rgba(0,0,0,.45) 38%,
      rgba(0,0,0,.50) 66%,
      rgba(0,0,0,.72) 100%);
  }
  /* Lift real content above image + scrim */
  .service > :not(.service__img) { position: relative; z-index: 2; }
  .service__logo { z-index: 3; }

  /* Simplify to the reference's clean look */
  .service__num { display: none; }
  .service__tags { display: none; }

  /* Title + badge on one line, in the middle of the panel */
  .service__titlerow {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: nowrap;
  }
  .service__title {
    font-size: clamp(38px, 10vw, 56px);
    line-height: 1.02;
    color: #fff;
    margin: 0;
    min-width: 0;          /* allow the title to wrap internally, not push the badge out */
  }
  /* Badge sits inline beside the title (not pinned to the corner) */
  .service__logo {
    position: static;
    top: auto;
    right: auto;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
  }
  .service__tagline { margin: 2px 0 0; }

  /* Description collapsed; expands on tap */
  .service__body {
    display: none;
    max-width: none;
    color: rgba(255,255,255,.9);
    margin: 4px 0 0;
  }
  .service__body.is-open { display: block; }

  /* "See more" rendered as an outlined pill, like the reference "VER MÁS" */
  .service__more {
    display: inline-flex;
    align-self: flex-start;
    margin: 16px 0 0;
    padding: 13px 26px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.05);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .service__more svg { margin-left: 3px; }
}

/* AI STATEMENT — full-bleed below services */
.ai-statement {
  padding: clamp(80px, 10vw, 160px) var(--section-pad-x);
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Pulls the next section flush against it — no extra gap. */
  margin-bottom: 0;
}
/* Kill the bottom padding on the services section when followed by the
   AI statement, and pin the next section (Vision) flush to the bottom. */
.section:has(.ai-statement) { padding-bottom: 0; }
.section:has(.ai-statement) + .section { padding-top: clamp(72px, 8vw, 120px); }
.ai-statement::before {
  content: "AI";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(280px, 38vw, 540px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  opacity: .06;
  letter-spacing: -0.05em;
  z-index: -1;
  pointer-events: none;
}
.ai-statement__inner {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.ai-statement__lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--text);
  margin: 24px 0 0;
}
.ai-statement__lead em {
  font-family: inherit;
  font-style: normal;
  color: var(--accent);
}

/* ════════════════════════════════════════════════════════════════
   VISION — Compass split
   ════════════════════════════════════════════════════════════════ */
.vision__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 120px);
  align-items: center;
}
.vision__media {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vision__media::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.vision__media::after {
  content: "";
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  border: 1px dashed var(--border);
}
.vision__compass {
  width: 64%;
  height: auto;
  animation: spin-slow 90s linear infinite;
  filter: drop-shadow(0 0 60px rgba(1,249,198,.15));
}
:root.light .vision__compass { filter: drop-shadow(0 0 40px rgba(0,135,148,.2)); }
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.vision__title { font-size: clamp(36px, 4.5vw, 64px); }
.vision__body {
  font-size: clamp(17px, 1.3vw, 20px);
  color: var(--text-2);
  margin: 24px 0 0;
  line-height: 1.5;
  max-width: 480px;
}
@media (max-width: 880px) {
  .vision__inner { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════
   WHY BIXEN — 4 numbered features
   ════════════════════════════════════════════════════════════════ */
.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.why__item {
  padding: clamp(32px, 3vw, 48px) clamp(24px, 2.5vw, 36px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 360px;
  position: relative;
}
.why__item:last-child { border-right: 0; }
.why__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 6vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-4);
  margin: 0 0 8px;
  transition: color .3s ease;
}
.why__item:hover .why__num { color: var(--accent); }
.why__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 1.8vw, 28px);
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}
.why__body {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
}
.why__body strong { color: var(--text); font-weight: 500; }
@media (max-width: 1000px) {
  .why { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(2) { border-right: 0; }
  .why__item:nth-child(1), .why__item:nth-child(2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .why { grid-template-columns: 1fr; }
  .why__item { border-right: 0; border-bottom: 1px solid var(--border); }
  .why__item:last-child { border-bottom: 0; }
}
