/* ===================================================
   MUDANZAS LS — Design System
   Palette: Black · White · Colombian Red
   Display: Barlow Condensed 900 · Body: Barlow 400/500
   =================================================== */

/* ─── Tokens ──────────────────────────────────────── */
:root {
  /* Background & Surface */
  --color-bg:         oklch(0.07 0.006 256);
  --color-surface:    oklch(0.11 0.005 256);
  --color-surface-2:  oklch(0.15 0.005 256);
  --color-border:     oklch(0.22 0.005 256);
  --color-border-sub: oklch(0.17 0.004 256);

  /* Text */
  --color-ink:        oklch(0.97 0.000 0);
  --color-muted:      oklch(0.62 0.006 256);
  --color-subtle:     oklch(0.38 0.005 256);

  /* Brand Red — Colombian flag accent */
  --color-red:        oklch(0.48 0.215 22);
  --color-red-hover:  oklch(0.54 0.215 22);
  --color-red-dim:    oklch(0.48 0.215 22 / 0.12);
  --color-red-glow:   oklch(0.48 0.215 22 / 0.25);

  /* WhatsApp — muted corporate green for contact CTA */
  --color-whatsapp:       oklch(0.76 0.20 147);
  --color-whatsapp-hover: oklch(76.566% 0.21991 145.089);
  --color-whatsapp-glow:  oklch(0.46 0.085 162 / 0.25);

  /* Utility */
  --color-white:      oklch(1.000 0.000 0);
  --color-on-red:     oklch(1.000 0.000 0);

  /* ── Typography ──────────────────────────────────── */
  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'Barlow', system-ui, -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  clamp(2.25rem, 5vw, 3.5rem);
  --text-hero: clamp(3.25rem, 8vw, 5.75rem);

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;
  --weight-black:    900;

  --leading-tight:   1.05;
  --leading-snug:    1.25;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --tracking-tight:  -0.025em;
  --tracking-normal:  0em;
  --tracking-wide:    0.06em;
  --tracking-wider:   0.12em;

  /* ── Spacing ─────────────────────────────────────── */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --section-gap:      clamp(5rem, 10vw, 8rem);
  --container-max:    1280px;
  --container-pad:    clamp(1.25rem, 5vw, 4rem);

  /* ── Shape ───────────────────────────────────────── */
  --radius-sm:   3px;
  --radius-md:   6px;
  --radius-lg:  10px;
  --radius-full: 9999px;

  /* ── Motion ──────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.87, 0, 0.13, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);

  --dur-fast:   120ms;
  --dur-normal: 240ms;
  --dur-slow:   480ms;
  --dur-enter:  700ms;

  /* ── Z-index ─────────────────────────────────────── */
  --z-below:    -1;
  --z-base:      0;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ─── Reset ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Layout Utilities ────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-gap);
}

/* ─── Typography Utilities ────────────────────────── */
.display-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  line-height: var(--leading-tight);
  text-wrap: balance;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-5xl);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  line-height: var(--leading-tight);
  text-wrap: balance;
}

/* ─── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  transition:
    background var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-on-red);
}
.btn-primary:hover {
  background: var(--color-red-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--color-red-glow);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  border-color: var(--color-muted);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--color-white);
  border: 1px solid oklch(1 0 0 / 0.3);
}
.btn-outline-white:hover {
  border-color: var(--color-white);
  background: oklch(1 0 0 / 0.05);
}

/* ─── Navbar ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background: var(--color-bg);
  transition:
    background var(--dur-slow) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out);
}

.nav.menu-open {
  z-index: 350;
}

.nav.scrolled {
  background: oklch(0.04 0.006 256);
  box-shadow: 0 1px 0 var(--color-border-sub);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100px;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Branding */
.nav-brand-group {
  justify-self: start;
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-logo-img {
  height: 90px;
  width: auto;
  display: block;
  flex-shrink: 0;
  transform-origin: left center;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}

.nav.scrolled .nav-logo-img {
  transform: scale(0.84);
}

.nav-brand-text {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-brand-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}

.nav-brand-line:last-child {
  align-self: flex-end;
}

.nav-brand-line {
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-brand:hover .nav-brand-line {
  color: oklch(0.82 0.000 0);
}

.nav-brand-ls {
  font-family: 'Black Ops One', system-ui, sans-serif;
  font-size: 2rem;
  color: var(--color-red);
  letter-spacing: 0.04em;
  line-height: 1;
  font-style: normal;
  flex-shrink: 0;
}

/* Vertical separator */
.nav-sep {
  width: 1px;
  height: 26px;
  background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
  margin-inline: var(--space-6);
  flex-shrink: 0;
}

/* Nav links — centered column */
.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(var(--space-6), 2.5vw, var(--space-10));
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  letter-spacing: 0.025em;
  white-space: nowrap;
  position: relative;
  padding-block: var(--space-1);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-normal) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Nav actions */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

/* CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  background: var(--color-whatsapp);
  color: var(--color-on-red);
  padding: 0.6rem var(--space-5);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.nav-cta:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--color-whatsapp-glow);
}

.nav-cta:active {
  transform: translateY(0);
}

.nav-cta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.nav-hamburger:hover {
  border-color: var(--color-muted);
  background: oklch(1 0 0 / 0.04);
}

.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--color-ink);
  border-radius: 99px;
  transition:
    transform var(--dur-normal) var(--ease-out),
    opacity var(--dur-normal) var(--ease-out);
}

.nav-hamburger span:nth-child(2) {
  width: 65%;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── Mobile Menu ─────────────────────────────────── */
.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: oklch(0.02 0.006 256 / 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    visibility 0s var(--dur-slow);
}

.nav-mobile.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition:
    opacity var(--dur-slow) var(--ease-out),
    visibility 0s 0s;
}

.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: oklch(0.05 0.006 256 / 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 92px var(--container-pad) var(--space-6);
  border-bottom: 1px solid var(--color-border-sub);
  box-shadow: 0 24px 48px oklch(0 0 0 / 0.35);
  gap: var(--space-5);
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
}

.nav-mobile-link {
  display: block;
  font-family: var(--font-body);
  font-weight: var(--weight-semibold);
  font-size: var(--text-2xl);
  letter-spacing: var(--tracking-normal);
  color: var(--color-muted);
  line-height: 1;
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--color-border-sub);
  opacity: 0;
  transform: translateY(14px);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav-mobile-link:first-child {
  border-top: 1px solid var(--color-border-sub);
}

.nav-mobile-link:hover {
  color: var(--color-white);
}

.nav-mobile.open .nav-mobile-link {
  animation: mobileNavIn var(--dur-slow) var(--ease-out) forwards;
}

.nav-mobile.open .nav-mobile-link:nth-child(1) { animation-delay: 60ms; }
.nav-mobile.open .nav-mobile-link:nth-child(2) { animation-delay: 120ms; }
.nav-mobile.open .nav-mobile-link:nth-child(3) { animation-delay: 180ms; }
.nav-mobile.open .nav-mobile-link:nth-child(4) { animation-delay: 240ms; }

@keyframes mobileNavIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-mobile.open .nav-mobile-link {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.nav-mobile-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border-sub);
  opacity: 0;
  transform: translateY(14px);
}

.nav-mobile.open .nav-mobile-footer {
  animation: mobileNavIn var(--dur-slow) var(--ease-out) forwards;
  animation-delay: 260ms;
}

@media (prefers-reduced-motion: reduce) {
  .nav-mobile.open .nav-mobile-footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.nav-mobile-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.nav-mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.nav-mobile-social-link svg {
  width: 15px;
  height: 15px;
}

.nav-mobile-social-link:hover {
  color: var(--color-white);
  border-color: var(--color-red);
  background: var(--color-red-dim);
}

.nav-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  background: var(--color-whatsapp);
  color: var(--color-on-red);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px var(--color-whatsapp-glow);
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.nav-mobile-cta:hover {
  background: var(--color-whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px var(--color-whatsapp-glow);
}

.nav-mobile-cta:active {
  transform: translateY(0);
}

/* ─── Navbar Responsive ───────────────────────────── */
@media (max-width: 900px) {
  .nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 76px;
  }

  .nav-brand-text,
  .nav-sep,
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-logo-img {
    height: 68px;
  }

  .nav.scrolled .nav-logo-img {
    transform: none;
  }
}

/* ─── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background-color: var(--color-bg);
  background-image: url('../Images/IMAGEN_HERO.png');
  background-size: cover;
  background-position: 62% center;
  background-repeat: no-repeat;
}

/* Cinematic background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-below);
  pointer-events: none;
}

/* Left-to-right gradient: keeps text legible, blends image into bg color */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.07 0.006 256) 0%,
    oklch(0.07 0.006 256 / 0.90) 22%,
    oklch(0.07 0.006 256 / 0.50) 52%,
    oklch(0.07 0.006 256 / 0.08) 100%
  );
  pointer-events: none;
}

/* Grid lines overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.022) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Perspective floor grid */
.hero-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 100px 60px;
  transform: perspective(600px) rotateX(55deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, oklch(0 0 0) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, oklch(0 0 0) 0%, transparent 100%);
}

/* Scan lines — cinematic */
.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    oklch(0 0 0 / 0.06) 3px,
    oklch(0 0 0 / 0.06) 4px
  );
  pointer-events: none;
}

/* Radial glow — shifts right toward truck */
.hero-glow {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 65%;
  height: 90%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.48 0.215 22 / 0.05) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* ─── Hero Inner ──────────────────────────────────── */
.hero-inner {
  position: relative;
  z-index: var(--z-base);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  width: 100%;
  padding-top: 100px;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin-top: auto;
  margin-bottom: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  padding-top: 0;
  padding-bottom: var(--space-6);
  max-width: clamp(340px, 46%, 580px);
  transform: translate(-22px, 12px);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-3);
  opacity: 0;
  transform: translateY(12px);
}

.hero-label-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-red);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(3.00rem, 6.5vw, 5.10rem);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  line-height: 0.98;
  color: var(--color-white);
  max-width: 16ch;
  margin-bottom: var(--space-3);
}

.hero-title-line {
  display: block;
  overflow: hidden;
}

.hero-title-word {
  display: inline-block;
  transform: translateY(110%);
}

.hero-title-accent {
  color: var(--color-red);
}

.hero-sub {
  font-size: var(--text-base);
  font-weight: var(--weight-light);
  color: var(--color-muted);
  max-width: 46ch;
  line-height: 1.6;
  margin-bottom: var(--space-5);
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(12px);
}

.hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(12px);
}

.hero-cta-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}

.btn-primary:hover .hero-cta-arrow {
  transform: translateX(2px);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
}

.hero-scroll-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-subtle);
}

.hero-scroll-track {
  width: 1px;
  height: 48px;
  background: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.hero-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--color-red);
  border-radius: 99px;
  animation: scrollThumb 1.8s var(--ease-in-out) infinite;
}

@keyframes scrollThumb {
  0%   { top: 0; opacity: 1; }
  70%  { top: 60%; opacity: 1; }
  100% { top: 60%; opacity: 0; }
}

/* ─── Trust Bar ───────────────────────────────────── */
.trust-bar {
  border-top: 1px solid var(--color-border-sub);
  border-bottom: 1px solid var(--color-border-sub);
  background: var(--color-surface);
  overflow: hidden;
  padding-block: var(--space-5);
}

.trust-bar-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.trust-bar-track:hover {
  animation-play-state: paused;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-inline: var(--space-10);
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-bar-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

.trust-bar-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
  color: var(--color-muted);
}

.trust-bar-text strong {
  color: var(--color-ink);
  font-weight: var(--weight-semibold);
}

/* ─── Services Transition: dark trust-bar → light section ── */
.services-transition {
  position: relative;
  height: 120px;
  background: var(--color-surface);
  overflow: hidden;
  margin-top: -1px;
}

.services-transition-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.services-wave-fill {
  fill: oklch(0.96 0.004 256);
}

/* ─── Services — Light Section ──────────────────────────── */
.services {
  background: oklch(0.96 0.004 256);
  position: relative;

  --svc-ink:     oklch(0.12 0.008 256);
  --svc-muted:   oklch(0.40 0.012 256);
  --svc-subtle:  oklch(0.58 0.008 256);
  --svc-border:  oklch(0.82 0.007 256);
  --svc-surface: oklch(0.90 0.005 256);
}

.services .section-heading {
  color: var(--svc-ink);
}

.services-header {
  margin-bottom: var(--space-16);
  max-width: 600px;
}

.services-header-pre {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-4);
}

.services-header p {
  margin-top: var(--space-4);
  color: var(--svc-muted);
  font-size: var(--text-lg);
  max-width: 48ch;
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

/* ─── Showcase Layout ────────────────────────────────────── */
.services-showcase {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(var(--space-10), 4vw, var(--space-20));
  align-items: center;
  margin-bottom: var(--space-12);
}

/* ─── Video Placeholder ──────────────────────────────────── */
.showcase-video-wrap {
  position: relative;
}

.showcase-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid oklch(0.18 0.008 256);
  background: #0a0a0a;
  box-shadow:
    0 2px 8px   oklch(0.04 0.008 256 / 0.45),
    0 16px 48px oklch(0.04 0.008 256 / 0.55),
    0 48px 80px oklch(0.04 0.008 256 / 0.30);
  overflow: hidden;
}

.showcase-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background:
    radial-gradient(ellipse at 50% 105%, oklch(0.04 0.008 256 / 0.60) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%,  oklch(0.48 0.215 22 / 0.14) 0%, transparent 45%);
  pointer-events: none;
}

/* ─── Video Elements ──────────────────────────────── */
.showcase-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity  0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter   0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
  z-index: 1;
}

.showcase-vid.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.showcase-vid.is-exit {
  opacity: 0;
  transform: scale(0.97);
  filter: blur(3px);
  z-index: 2;
}

/* ─── Progress Bar ────────────────────────────────── */
.showcase-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: oklch(1 0 0 / 0.12);
  z-index: 10;
}

.showcase-progress-fill {
  height: 100%;
  width: 0;
  background: var(--color-red);
}

@keyframes svcProgressFill {
  from { width: 0%; }
  to   { width: 100%; }
}

.showcase-progress-fill.is-running {
  animation: svcProgressFill 6s linear forwards;
}

.showcase-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  color: var(--svc-muted);
  background: oklch(0.94 0.004 256 / 0.92);
  border: 1px solid var(--svc-border);
  border-radius: var(--radius-full);
  padding: 4px var(--space-3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.showcase-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.showcase-play-area {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}

.showcase-play-ring {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: oklch(0.94 0.004 256 / 0.88);
  border: 1.5px solid oklch(0.68 0.011 256 / 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform var(--dur-normal) var(--ease-out),
    border-color var(--dur-normal) var(--ease-out);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.showcase-play-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid oklch(0.60 0.011 256 / 0.25);
  animation: playRingPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes playRingPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(1.05); }
}

.showcase-play-ring:hover {
  transform: scale(1.07);
  border-color: oklch(0.48 0.215 22 / 0.6);
}

.showcase-play-icon {
  width: 26px;
  height: 26px;
  color: oklch(0.28 0.012 256);
  margin-left: 3px;
  flex-shrink: 0;
}

.showcase-media-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--svc-subtle);
  letter-spacing: 0.025em;
  text-align: center;
}

/* ─── Service Content ────────────────────────────────────── */
.showcase-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.showcase-title-group {
  position: relative;
}

.showcase-number {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: oklch(0.48 0.215 22 / 0.07);
  pointer-events: none;
  user-select: none;
  margin-bottom: calc(-0.55 * clamp(5rem, 10vw, 8rem));
  position: relative;
  z-index: 0;
}

.showcase-name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  line-height: var(--leading-snug);
  color: var(--svc-ink);
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

.showcase-desc {
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--svc-muted);
  line-height: var(--leading-relaxed);
  max-width: 38ch;
  text-wrap: pretty;
}

.showcase-benefits {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid oklch(0.80 0.007 256 / 0.55);
  margin-top: var(--space-1);
}

.showcase-benefit {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--svc-ink);
  line-height: var(--leading-normal);
  letter-spacing: 0.005em;
}

.showcase-benefit-icon {
  width: 18px;
  height: 18px;
  color: var(--color-red);
  flex-shrink: 0;
  opacity: 0.88;
}

/* ─── Slide Indicators ───────────────────────────────────── */
.showcase-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-top: var(--space-8);
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: oklch(0.68 0.010 256 / 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition:
    width      var(--dur-normal) var(--ease-out),
    background var(--dur-normal) var(--ease-out),
    transform  var(--dur-normal) var(--ease-out);
}

.showcase-dot:hover {
  background: oklch(0.48 0.012 256 / 0.65);
  transform: scale(1.25);
}

.showcase-dot--active {
  width: 24px;
  background: var(--color-red);
}

.showcase-dot--active:hover {
  background: var(--color-red-hover);
  transform: scale(1);
}

/* ─── Coverage ────────────────────────────────────── */
.coverage {
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 4vw, 4.5rem);
}

.coverage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.coverage-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 1;
}

.coverage-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* "Colombia" — bandera premium gradient */
.colombia-flag-text {
  display: inline;
  background: linear-gradient(
    112deg,
    oklch(95.97% 0.20757 108.586)  0%,
    oklch(95.973% 0.20727 108.58)  20%,
    oklch(57.792% 0.21645 264.28) 40%,
    oklch(52.484% 0.2067 264.731) 56%,
    oklch(62.952% 0.25576 25.834)  74%,
    oklch(62.899% 0.2563 26.92)  100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: colombiaShimmer 7s ease-in-out infinite;
}

@keyframes colombiaShimmer {
  0%, 100% { background-position: 0% center; }
  50%       { background-position: 100% center; }
}

.coverage-pre {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: 0;
}

.coverage-content p {
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  max-width: 42ch;
  margin-block: 0;
  text-wrap: pretty;
}

.coverage-cities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 0;
}

.city-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  padding: 5px var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.city-pill:hover {
  color: var(--color-white);
  border-color: var(--color-red);
  background: var(--color-red-dim);
}

.city-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-red);
  flex-shrink: 0;
}

/* Colombia map in coverage section */
.coverage-map {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.coverage-map-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  /* Preserve exact aspect ratio of the real colombia.svg (612.82 × 693.68) */
  aspect-ratio: 612.82 / 693.68;
}

.coverage-map-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.48 0.215 22 / 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

/* Colombia SVG silhouette — rendered as filtered white on dark background */
.colombia-map-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.2;
  filter: brightness(0) invert(1);
}

/* Overlay SVG for city nodes and routes — fills the same space as the image */
.coverage-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Routes — stroke values scaled for 612×693 coordinate system (≈3× old 200×250) */
.coverage-svg .coverage-route {
  fill: none;
  stroke: var(--color-red);
  stroke-width: 1.5;
  stroke-dasharray: 9 9;
  opacity: 0.5;
}

.coverage-svg .coverage-city {
  fill: var(--color-red);
  filter: drop-shadow(0 0 3px var(--color-red));
  cursor: pointer;
  transition: r 0.2s var(--ease-out);
}

.coverage-svg .coverage-city:hover {
  r: 10;
}

/* Bogotá main node — stroke-width scaled for 612×693 coordinate system */
.coverage-svg .coverage-city-main {
  fill: var(--color-red);
  stroke: var(--color-white);
  stroke-width: 3;
  filter: drop-shadow(0 0 5px var(--color-red));
}

/* Labels — font-size scaled so on-screen size matches original (≈10px) */
.coverage-svg .city-label {
  font-size: 15px;
  font-family: var(--font-body);
  fill: oklch(1 0 0 / 0.7);
  pointer-events: none;
}

/* City ping animations */
@keyframes cityPing {
  0%   { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0;   transform: scale(3); }
}

.city-ping {
  fill: var(--color-red);
  opacity: 0;
  animation: cityPing 2s var(--ease-out) infinite;
}

.city-ping:nth-child(1) { animation-delay: 0s; }
.city-ping:nth-child(2) { animation-delay: 0.5s; }
.city-ping:nth-child(3) { animation-delay: 1.0s; }

/* ─── Colombia Divider ────────────────────────────── */
.colombia-divider {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: linear-gradient(
    to bottom,
    var(--color-surface) 50%,
    #F8F8F8 50%
  );
  overflow: hidden;
}

.colombia-divider-line {
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: repeating-linear-gradient(
    90deg,
    oklch(95.97% 0.2076 108.59) 0px,
    oklch(50% 0.22 264)          200px,
    oklch(55% 0.24 25)           340px,
    oklch(95.97% 0.2076 108.59) 480px
  );
  background-size: 480px 100%;
  animation: colombiaDividerFlow 6s linear infinite;
  box-shadow:
    0 1px 6px oklch(95.97% 0.2076 108.59 / 0.18),
    0 1px 6px oklch(50% 0.22 264 / 0.12),
    0 1px 6px oklch(55% 0.24 25 / 0.12);
}

@keyframes colombiaDividerFlow {
  from { background-position: 0 0; }
  to   { background-position: 480px 0; }
}

/* ─── How It Works ────────────────────────────────── */
.how-it-works {
  background: #F8F8F8;
  position: relative;
}

.how-header {
  margin-bottom: var(--space-16);
  max-width: 520px;
}

.how-header-pre {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-4);
}

.how-it-works .section-heading {
  color: oklch(0.10 0.005 256);
}

/* Wrap holds the ol + truck layer in a shared positioning context */
.how-steps-wrap {
  position: relative;
  overflow: visible;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Connecting track — now acts as background track for progress fill */
.how-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: oklch(0.84 0.003 256);
  z-index: 0;
}

.how-step {
  position: relative;
  padding: 0 var(--space-6) 0 0;
  z-index: 1;
}

.how-step:last-child {
  padding-right: 0;
}

/* ── Step marker + ping ─── */
.how-step-marker {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-6);
  position: relative;
}

.how-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid oklch(0.85 0.003 256);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: oklch(0.50 0.006 256);
  flex-shrink: 0;
  transition:
    background 0.4s var(--ease-out),
    border-color 0.4s var(--ease-out),
    color 0.3s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  position: relative;
  z-index: 2;
}

/* Radar ping ring — fires once on activation */
.how-step-ping {
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-red);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.how-step.is-active .how-step-ping {
  animation: stepPing 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stepPing {
  0%   { transform: scale(1);   opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Active step — num turns red */
.how-step.is-active .how-step-num {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 0 20px oklch(0.48 0.215 22 / 0.30);
}

/* Hover always available */
.how-step:hover .how-step-num {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 0 20px oklch(0.48 0.215 22 / 0.25);
}

/* ── Step content — initial (hidden) state ─── */
.how-step-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  color: oklch(0.12 0.005 256);
  margin-bottom: var(--space-3);
  line-height: var(--leading-snug);
  text-wrap: balance;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}

.how-step-desc {
  font-size: var(--text-sm);
  color: oklch(0.42 0.006 256);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
  transition-delay: 0.1s;
}

/* Active: reveal content */
.how-step.is-active .how-step-title {
  opacity: 1;
  transform: translateY(0);
}

.how-step.is-active .how-step-desc {
  opacity: 1;
  transform: translateY(0);
}

/* Fading-out state (before loop reset) */
.how-step.is-fading .how-step-title,
.how-step.is-fading .how-step-desc {
  transition: opacity 0.4s ease;
  opacity: 0;
}

/* ── Truck layer ─── */
.how-truck-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

/* Animated progress fill — expands from step 1 toward current step */
.how-progress-fill {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 0;
  height: 2px;
  background: var(--color-red);
  border-radius: 1px;
  transform-origin: left center;
  will-change: width;
  opacity: 0;
  box-shadow: 0 0 6px oklch(0.48 0.215 22 / 0.40);
}

/* The truck */
.how-truck {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.how-truck-img {
  display: block;
  width: 160px;
  height: auto;
  filter: drop-shadow(0 4px 10px oklch(0 0 0 / 0.22));
  user-select: none;
  pointer-events: none;
}

/* Red glow that appears under the truck when moving */
.how-truck-glow {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 10px;
  background: radial-gradient(ellipse, oklch(0.48 0.215 22 / 0.20) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.how-truck.is-moving .how-truck-glow {
  opacity: 1;
}

/* Subtle lean when truck is moving */
.how-truck.is-moving .how-truck-img {
  transform: rotate(-0.5deg) scaleX(1.01);
  transition: transform 0.3s ease;
}

.how-truck:not(.is-moving) .how-truck-img {
  transform: rotate(0deg) scaleX(1);
  transition: transform 0.5s ease;
}


/* ─── Why Choose Us — Cinematic Collage Reveal ───── */

/*
  CSS sticky + GSAP scrub strategy:
  .why-us is 240vh tall — provides 140vh of scroll distance
  while .why-sticky stays pinned at the top of the viewport.
  GSAP ScrollTrigger scrubs the timeline across that distance.
*/
.why-us {
  height: 290vh;
  position: relative;
  background: oklch(0.05 0.003 256);
}

/* Sticky viewport — stays fixed while user scrolls through the section */
.why-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collage container — clips the zoomed-in image. Top offset = navbar height so
   the collage is never covered by the fixed nav at its final expanded state. */
.why-collage-wrap {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image — fully contained at scale 1, zoomed in at start */
.why-collage {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  pointer-events: none;
}

/* Text overlay — two lines stacked, center-aligned */
.why-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05em;
  z-index: 2;
  pointer-events: none;
}

.why-line {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: clamp(3rem, 13vw, 9.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 0.88;
  text-align: center;
  white-space: nowrap;
  will-change: transform, opacity;
  text-shadow:
    0 2px 24px oklch(0.05 0.003 256 / 0.7),
    0 0  48px oklch(0.05 0.003 256 / 0.5);
}

/* Reduced motion: static full collage, text always visible */
@media (prefers-reduced-motion: reduce) {
  .why-us {
    height: auto;
  }
  .why-sticky {
    position: relative;
    height: auto;
    padding-block: clamp(4rem, 10vh, 8rem);
    flex-direction: column;
    gap: 2rem;
  }
  .why-collage-wrap {
    position: relative;
    inset: auto;
    width: min(90vw, 800px);
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .why-collage {
    width: 100%;
    height: 100%;
    transform: none !important;
  }
  .why-text {
    position: relative;
    inset: auto;
  }
  .why-line {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Mobile: navbar is 76px tall instead of 100px */
@media (max-width: 900px) {
  .why-collage-wrap {
    top: 76px;
  }
}

/* ─── Testimonials — Light 3D Marquee ──────────────── */
.testimonials {
  background: oklch(0.97 0.003 256);
  overflow: hidden;
  padding-block: 0;
}

.testimonials .section-heading {
  color: oklch(0.10 0.008 256);
}

/* Split two-column layout — fixed height so animation never overflows */
.testi-split {
  display: grid;
  grid-template-columns: 37% 1fr;
  height: clamp(520px, 76vh, 740px);
}

.testi-panel-left {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 7rem) clamp(2.5rem, 5vw, 6rem);
  /* Very subtle dark gradient — provides contrast behind text without looking dark */
  background: linear-gradient(
    to right,
    oklch(0.92 0.005 256) 0%,
    oklch(0.97 0.003 256) 100%
  );
  z-index: 2;
}

.testi-panel-right {
  position: relative;
  overflow: hidden;
}

/* Soft left-edge blend from panel into animation field */
.testi-panel-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80px;
  background: linear-gradient(to right, oklch(0.93 0.005 256) 0%, transparent 100%);
  z-index: 20;
  pointer-events: none;
}

.testimonials-header-pre {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-4);
}

.testimonials-header-sub {
  margin-top: var(--space-4);
  color: oklch(0.45 0.010 256);
  font-size: var(--text-lg);
  max-width: 36ch;
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

/* 3D Scene Wrapper — fills right panel; mask handles top/bottom fades cleanly */
.testi-3d-wrap {
  position: relative;
  height: 100%;
  overflow: hidden;
  perspective: 350px;
  margin-block: 0;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 14%,
    black 86%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 14%,
    black 86%,
    transparent 100%
  );
}

/* 3D Stage — isometric tilt matching the reference */
.testi-3d-stage {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: flex-start;
  height: 100%;
  position: relative;
  transform:
    translateX(-120px)
    translateY(10px)
    translateZ(-80px)
    rotateX(20deg)
    rotateY(-10deg)
    rotateZ(20deg);
}

/* Marquee Columns */
.testi-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
  animation: testi-scroll var(--col-dur, 40s) linear infinite;
}

.testi-col--up {
  animation-direction: reverse;
}

/* Per-column hover pause handled via JS — individual columns are targeted */

@keyframes testi-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* Fade overlays — hidden; top/bottom handled by mask-image on .testi-3d-wrap */
.testi-fade { display: none; }

/* Testimonial Card — light premium design */
.testi-card {
  width: 210px;
  background: #FFFFFF;
  border: 1px solid oklch(0.89 0.004 256);
  border-radius: 12px;
  padding: 18px;
  box-shadow:
    0 1px 3px oklch(0.12 0.005 256 / 0.05),
    0 4px 16px oklch(0.12 0.005 256 / 0.07);
  flex-shrink: 0;
  cursor: default;
}

.testi-card-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
}

.testi-card-star {
  width: 12px;
  height: 12px;
  color: var(--color-red);
  flex-shrink: 0;
}

.testi-card-body {
  font-size: 0.8125rem;
  font-weight: var(--weight-regular);
  color: oklch(0.38 0.006 256);
  line-height: 1.6;
  margin-bottom: 14px;
  text-wrap: pretty;
}

.testi-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-card-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-red-dim);
  border: 1px solid oklch(0.89 0.004 256);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 0.7rem;
  color: var(--color-red);
  flex-shrink: 0;
  letter-spacing: 0;
}

.testi-card-name {
  font-weight: var(--weight-semibold);
  font-size: 0.8125rem;
  color: oklch(0.18 0.008 256);
  line-height: 1.25;
}

.testi-card-role {
  font-size: 0.6875rem;
  color: oklch(0.55 0.005 256);
  margin-top: 2px;
}


/* ─── Final CTA ───────────────────────────────────── */
.final-cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: var(--color-bg);
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.018) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    oklch(0.48 0.215 22 / 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

.final-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.final-cta-pre {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-red);
  margin-bottom: var(--space-6);
}

.final-cta-title {
  font-family: var(--font-display);
  font-weight: var(--weight-black);
  font-size: var(--text-hero);
  letter-spacing: var(--tracking-tight);
  text-transform: uppercase;
  line-height: var(--leading-tight);
  color: var(--color-white);
  text-wrap: balance;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.final-cta-subtitle {
  font-size: var(--text-lg);
  font-weight: var(--weight-light);
  color: var(--color-muted);
  max-width: 44ch;
  margin-inline: auto;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-10);
  text-wrap: pretty;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn-cta-large {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-lg);
}

/* ─── Footer ──────────────────────────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/Fondo_Footer.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 7, 10, 0.82) 0%,
    rgba(7, 7, 10, 0.56) 38%,
    rgba(7, 7, 10, 0.68) 72%,
    rgba(7, 7, 10, 0.90) 100%
  );
  z-index: 1;
}

.footer > .container {
  position: relative;
  z-index: 2;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-block: var(--space-16);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: var(--leading-relaxed);
  max-width: 32ch;
  margin-bottom: var(--space-6);
  text-wrap: pretty;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  transition:
    color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.footer-social-link:hover {
  color: var(--color-white);
  border-color: var(--color-red);
  background: var(--color-red-dim);
}

.footer-social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-muted);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  line-height: var(--leading-relaxed);
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  color: var(--color-red);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-block: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-subtle);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-subtle);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-legal a:hover {
  color: var(--color-muted);
}

/* ─── Reveal Animations (GSAP targets) ───────────────*/
.reveal {
  opacity: 1; /* visible by default — JS enhances */
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile { display: flex; }

  .hero {
    height: auto;
    min-height: auto;
    padding-bottom: var(--space-12);
    background-position: 72% center;
  }

  .hero-inner {
    height: auto;
    min-height: 100svh;
    padding-top: 0;
  }

  .hero-bg::after {
    background: linear-gradient(
      to right,
      oklch(0.07 0.006 256) 0%,
      oklch(0.07 0.006 256 / 0.92) 30%,
      oklch(0.07 0.006 256 / 0.55) 60%,
      oklch(0.07 0.006 256 / 0.15) 100%
    );
  }

  .hero-content {
    padding-top: calc(72px + var(--space-8));
    padding-bottom: var(--space-6);
    align-items: flex-start;
  }

  .services-transition {
    height: 80px;
  }

  .services-showcase {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .coverage-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .coverage-map {
    order: -1;
  }

  .how-steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .how-steps::before {
    display: none;
  }

  /* Hide truck on tablet — steps animate sequentially without it */
  .how-truck-layer {
    display: none;
  }

  .testi-split {
    grid-template-columns: 40% 1fr;
    height: clamp(480px, 70vh, 680px);
  }

  .testi-3d-stage {
    transform:
      translateX(-80px)
      translateY(10px)
      translateZ(-60px)
      rotateX(18deg)
      rotateY(-8deg)
      rotateZ(18deg);
  }
  .testi-col--hide-tablet {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: url('../Images/IMAGEN_HERO_MOVIL.png');
    background-position: 78% center;
  }

  .hero-bg::after {
    background: linear-gradient(
      to right,
      oklch(0.07 0.006 256) 0%,
      oklch(0.07 0.006 256 / 0.95) 35%,
      oklch(0.07 0.006 256 / 0.65) 65%,
      oklch(0.07 0.006 256 / 0.25) 100%
    );
  }

  .hero-content {
    padding-top: calc(72px + var(--space-8));
    padding-bottom: var(--space-6);
    padding-left: var(--container-pad);
    max-width: 100%;
  }

  .hero-title {
    max-width: 100%;
  }

  .services-transition {
    height: 60px;
  }

  .why-collage {
    content: url('../Images/Collage_MOVIL.png');
  }

  .hero-content {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: calc(72px + var(--space-4) + 8px);
    padding-right: var(--container-pad);
    align-items: center;
    text-align: center;
    transform: none;
  }

  .hero-ctas {
    justify-content: center;
  }

  .services-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .showcase-number {
    font-size: clamp(4rem, 18vw, 6rem);
    margin-bottom: calc(-0.55 * clamp(4rem, 18vw, 6rem));
  }

  .showcase-play-ring {
    width: 58px;
    height: 58px;
  }

  .showcase-play-icon {
    width: 20px;
    height: 20px;
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .testi-split {
    grid-template-columns: 1fr;
    height: auto;
  }

  .testi-panel-left {
    padding: var(--space-12) var(--space-6);
    background: linear-gradient(
      to bottom,
      oklch(0.92 0.005 256) 0%,
      oklch(0.97 0.003 256) 100%
    );
  }

  .testi-panel-right {
    height: 400px;
  }

  .testi-3d-stage {
    transform:
      translateX(-50px)
      translateY(10px)
      translateZ(-50px)
      rotateX(15deg)
      rotateY(-6deg)
      rotateZ(15deg);
  }
  .testi-card {
    width: 188px;
    padding: 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .why-wave-divider svg {
    height: clamp(50px, 7vw, 80px);
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: center;
  }

}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .nav-cta span {
    display: none;
  }

  .testi-panel-left {
    padding: var(--space-10) var(--space-5);
  }

  .testi-panel-right {
    height: 360px;
  }

  .testi-3d-stage {
    gap: 10px;
    transform:
      translateX(-28px)
      translateY(8px)
      translateZ(-40px)
      rotateX(12deg)
      rotateY(-5deg)
      rotateZ(12deg);
  }
  .testi-card {
    width: 172px;
    padding: 12px;
  }
  .testi-card-body {
    font-size: 0.75rem;
  }
}
