/* ============================================================
   ASHRAM LOGISTICS · Design System
   Navy industrial · Editorial type · Controlled red
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --ink-950: #060a16;
  --ink-900: #0a1022;
  --ink-800: #101a33;
  --ink-700: #1a2545;
  --brand-600: #2e3192;   /* logo navy */
  --brand-400: #5a5fd0;
  --red-600: #c3292b;     /* logo red */
  --red-500: #df5052;     /* 4.87:1 sobre ink-900, cumple AA */
  --steel-600: #5c6470;
  --steel-500: #626a7a;   /* 4.93:1 sobre paper, cumple AA */
  /* Gemelo del anterior para fondo oscuro. El 500 sobre ink-950 solo
     llega a 3.63:1 y reprueba AA: en oscuro va SIEMPRE este. */
  --steel-400: #747e90;   /* 4.81:1 sobre ink-950 */
  --steel-300: #c2c8d2;
  --steel-200: #dde0e6;
  --paper: #f4f4f1;
  --white: #ffffff;

  --line-dark: rgba(255, 255, 255, 0.14);
  --line-light: rgba(10, 16, 34, 0.14);

  /* Type */
  --font-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  /* Fluid display scale */
  --display-xl: clamp(2.6rem, 1.2rem + 7.4vw, 8.25rem);
  --display-lg: clamp(2.2rem, 1rem + 5.6vw, 6.25rem);
  --display-md: clamp(1.8rem, 1rem + 3.6vw, 4.25rem);
  --display-sm: clamp(1.45rem, 1rem + 2vw, 2.6rem);
  --body-lg: clamp(1.06rem, 1rem + 0.4vw, 1.3rem);
  --body: 1rem;
  --label: 0.72rem;

  /* Space */
  --space-section: clamp(5.5rem, 4rem + 8vw, 12rem);
  --space-block: clamp(2.5rem, 2rem + 3vw, 5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max-w: 90rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  --header-h: 4.75rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, picture, video { display: block; max-width: 100%; }

/* <picture> no estira solo: sin esto la imagen se calcula contra la altura
   intrínseca del wrapper y no contra la del contenedor (hero, statement, marcos). */
.hero-media picture,
.statement-media picture,
.frame picture,
.wms-shot picture { display: block; width: 100%; height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

::selection { background: var(--brand-600); color: var(--white); }

a, button, input, select, textarea, summary {
  -webkit-tap-highlight-color: rgba(195, 41, 43, 0.16);
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 3px;
}
.on-dark :focus-visible, .site-header :focus-visible, .mobile-nav :focus-visible {
  outline-color: var(--white);
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--ink-900);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: var(--label);
  transform: translateY(-300%);
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Typography helpers ---------- */
.display-xl, .display-lg, .display-md, .display-sm {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.display-xl { font-size: var(--display-xl); }
.display-lg { font-size: var(--display-lg); }
.display-md { font-size: var(--display-md); }
.display-sm { font-size: var(--display-sm); line-height: 1.05; }

.lede {
  font-size: var(--body-lg);
  line-height: 1.65;
  font-weight: 400;
  max-width: 34em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.overline-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.75rem);
}
.overline-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-light);
}
.on-dark .overline-row::after { background: var(--line-dark); }
.overline-row .idx { color: var(--red-600); }

.accent-dot { color: var(--red-600); }

/* Encabezado necesario para la jerarquía, no para la composición visual */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.overline-title { font-weight: 500; margin: 0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-section); }
.section--flush-top { padding-top: 0; }

.on-dark {
  background: var(--ink-900);
  color: var(--white);
}
.on-paper { background: var(--paper); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.4rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.btn .btn-arrow {
  width: 1rem; height: 1rem;
  flex: none;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn--solid {
  background: var(--red-600);
  color: var(--white);
}
.btn--solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink-950);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}
.btn--solid:hover::before { transform: scaleX(1); }
.btn--solid > * { position: relative; z-index: 1; }
.btn--solid > span { position: relative; z-index: 1; }

.on-dark .btn--solid::before, .hero .btn--solid::before { background: var(--white); }
.on-dark .btn--solid:hover, .hero .btn--solid:hover { color: var(--ink-900); }

.btn--ghost {
  border-color: var(--line-light);
  color: var(--ink-900);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink-900); }
.on-dark .btn--ghost, .hero .btn--ghost {
  border-color: var(--line-dark);
  color: var(--white);
}
.on-dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: var(--white); }

/* Text link with arrow */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 0.35rem;
  position: relative;
}
.arrow-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.arrow-link:hover::after { transform: scaleX(1); transform-origin: left; }
.arrow-link svg { width: 0.95rem; height: 0.95rem; transition: transform 0.35s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 130; /* por encima del overlay móvil para que logo y cierre queden accesibles */
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 2rem;
}
.site-header.scrolled {
  background: rgba(6, 10, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-header.hidden { transform: translateY(-100%); }

.header-logo {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 2.75rem;
}
.header-logo img { height: 1.9rem; width: auto; }

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.header-nav a:not(.btn) {
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s;
}
.header-nav a:not(.btn):hover,
.header-nav a:not(.btn)[aria-current="page"] { color: var(--white); }
.header-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--red-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.header-nav a:not(.btn):hover::after,
.header-nav a:not(.btn)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.header-nav .btn { min-height: 2.9rem; padding: 0.65rem 1.5rem; }

/* Burger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 3rem; height: 3rem;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 1.7rem; height: 2px;
  margin-inline: auto;
  background: var(--white);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink-950);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1rem) var(--gutter) 3rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.mobile-nav.open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}
.mobile-nav ul { display: grid; gap: 0.4rem; }
.mobile-nav li {
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav li a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.15rem 0;
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  transform: translateY(110%);
  transition: transform 0.6s var(--ease-out);
}
.mobile-nav.open li a { transform: none; }
.mobile-nav li:nth-child(1) a { transition-delay: 0.08s; }
.mobile-nav li:nth-child(2) a { transition-delay: 0.16s; }
.mobile-nav li:nth-child(3) a { transition-delay: 0.24s; }
.mobile-nav li:nth-child(4) a { transition-delay: 0.32s; }
.mobile-nav li a .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--red-500);
  letter-spacing: 0;
}
.mobile-nav .mobile-nav-foot {
  margin-top: 3rem;
  display: grid;
  gap: 1.25rem;
}
.mobile-nav .mobile-nav-foot .mono-label { color: var(--steel-400); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background: var(--ink-950);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.08);
  animation: heroZoom 2.8s var(--ease-out) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
  pointer-events: none;
}
.hero-video.playing { opacity: 1; }

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 10, 22, 0.96) 0%, rgba(6, 10, 22, 0.55) 42%, rgba(6, 10, 22, 0.38) 70%, rgba(6, 10, 22, 0.62) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: clamp(2.5rem, 5vh, 4.5rem);
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: clamp(1.25rem, 3vh, 2.5rem);
}
.hero-kicker::before {
  content: '';
  width: 2.6rem; height: 1px;
  background: var(--red-500);
}

.hero-title {
  font-size: var(--display-xl);
  margin-left: -0.04em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title .line > span {
  display: block;
  transform: translateY(112%);
  animation: riseUp 1s var(--ease-out) forwards;
}
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-title .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes riseUp { to { transform: none; } }
.hero-title .ghost {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55);
}

.hero-sub {
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  max-width: 36em;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--body-lg);
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.65s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.hero-rail {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line-dark);
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.85s forwards;
}
.hero-rail .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem clamp(1.5rem, 4vw, 4rem);
  padding-block: 1.1rem;
}
.hero-rail .rail-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  white-space: nowrap;
}
.hero-rail .rail-item strong {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0;
  color: var(--white);
}
.hero-rail .rail-item strong .plus { color: var(--red-500); }
.hero-rail .rail-spacer { flex: 1; }
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.hero-scroll .scroll-line {
  width: 1px; height: 2.4rem;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--red-500);
  animation: scrollHint 2.2s var(--ease-inout) infinite;
}
@keyframes scrollHint {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* ============================================================
   Reveal system
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

.reveal-img {
  position: relative;
  overflow: hidden;
}
.reveal-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ink-900);
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 0.9s var(--ease-inout);
  transition-delay: var(--d, 0s);
  z-index: 2;
}
.on-paper .reveal-img::after, .on-light .reveal-img::after { background: var(--paper); }
.reveal-img img {
  transform: scale(1.12);
  transition: transform 1.2s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal-img.in::after { transform: scaleY(0); transform-origin: bottom; }
.reveal-img.in img { transform: none; }

/* ============================================================
   Intro / trust
   ============================================================ */
.intro { position: relative; }
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--space-block) clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.intro-copy .display-md { margin-bottom: clamp(1.75rem, 3vw, 3rem); }
.intro-copy .display-md em {
  font-style: normal;
  color: var(--brand-600);
}
.intro-paras {
  display: grid;
  gap: 1.25rem;
  max-width: 34em;
  color: var(--steel-600);
}
.intro-paras strong { color: var(--ink-900); font-weight: 600; }
.intro-figure { position: relative; }
.intro-figure .frame {
  aspect-ratio: 3 / 4;
}
.intro-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.figure-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}

.intro-stats {
  margin-top: var(--space-block);
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.intro-stats .stat {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--line-light);
}
.intro-stats .stat:last-child { border-right: 0; }
.intro-stats .stat:first-child { padding-left: 0; }
.stat-value {
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(2.4rem, 2rem + 2.6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-value .plus { color: var(--red-600); }
.stat-label {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}

/* ============================================================
   Services index (home)
   ============================================================ */
.services-index .services-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.services-split {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.service-list { border-top: 1px solid var(--line-light); }
.service-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1.25rem;
  padding: clamp(1.2rem, 2.4vw, 1.9rem) 0;
  border-bottom: 1px solid var(--line-light);
  position: relative;
  transition: padding-left 0.4s var(--ease-out);
}
.service-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--red-600);
  transform: scaleY(0);
  transition: transform 0.4s var(--ease-out);
  transform-origin: top;
}
.service-row:hover { padding-left: 1.25rem; }
.service-row:hover::before { transform: scaleY(1); }
.service-row .num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel-500);
  transition: color 0.3s;
}
.service-row:hover .num { color: var(--red-600); }
.service-row h3 {
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.15rem, 1rem + 1.1vw, 1.8rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.service-row p {
  grid-column: 2;
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--steel-600);
  max-width: 30em;
}
.service-row .row-arrow {
  width: 1.15rem; height: 1.15rem;
  color: var(--steel-300);
  transition: transform 0.35s var(--ease-out), color 0.3s;
  align-self: center;
}
.service-row:hover .row-arrow {
  transform: translate(3px, -3px);
  color: var(--ink-900);
}

.services-visual {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.services-visual .visual-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink-900);
}
.services-visual .visual-frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.55s var(--ease-out), transform 0.9s var(--ease-out);
}
.services-visual .visual-frame img.active {
  opacity: 1;
  transform: scale(1);
}
.services-visual .visual-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-500);
}

/* ============================================================
   Statement — NOSOTROS OPERAMOS. TÚ CRECES.
   ============================================================ */
.statement {
  position: relative;
  overflow: hidden;
  padding-block: clamp(7rem, 6rem + 10vw, 16rem);
}
.statement-media {
  position: absolute;
  inset: 0;
}
.statement-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.statement-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(6, 10, 22, 0.94) 30%, rgba(6, 10, 22, 0.72) 70%, rgba(16, 26, 51, 0.55) 100%);
}
.statement .container { position: relative; z-index: 1; }
.statement-title { color: var(--white); }
.statement-title .line {
  display: block;
  overflow: hidden;
}
.statement-title .line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 0.95s var(--ease-out);
}
.statement-title .line:nth-child(2) > span { transition-delay: 0.14s; }
.statement.in .statement-title .line > span { transform: none; }
.statement-title .tu { color: var(--red-500); }
.statement-note {
  margin-top: clamp(1.75rem, 3vw, 3rem);
  max-width: 30em;
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--body-lg);
}
/* animated route line */
.statement-route {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
.statement-route path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.2;
  stroke-dasharray: 6 10;
}
.statement-route .route-dot { fill: var(--red-500); }
.statement.in .statement-route path {
  animation: routeDash 30s linear infinite;
}
@keyframes routeDash { to { stroke-dashoffset: -320; } }

/* ============================================================
   Muro de clientes
   ============================================================ */
.brands .brands-note { margin-top: clamp(2rem, 4vw, 3rem); }

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  padding-block: clamp(1rem, 3vw, 2rem);
  border-block: 1px solid var(--line-light);
}
.logo-wall li { display: flex; align-items: center; }
.logo-wall img {
  /* los archivos son blancos con alfa: se invierten para fondo claro */
  filter: invert(1);
  opacity: 0.62;
  height: clamp(1.5rem, 2.6vw, 2.2rem);
  width: auto;
  transition: opacity 0.4s var(--ease-out);
}
/* equilibrio óptico: cada marca pesa distinto al mismo alto */
.logo-wall li:nth-child(1) img { height: clamp(2.1rem, 3.6vw, 3rem); }
.logo-wall li:nth-child(3) img { height: clamp(1.3rem, 2.2vw, 1.85rem); }
.logo-wall img:hover { opacity: 1; }

@media (max-width: 48rem) {
  .logo-wall {
    justify-content: center;
    gap: 2.25rem 3rem;
  }
}

/* ============================================================
   Operations editorial
   ============================================================ */
.operations .ops-head {
  max-width: 44em;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}
.operations .ops-head .display-md { margin-bottom: 1.5rem; }
.operations .ops-head p { color: var(--steel-600); max-width: 36em; }

.ops-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
}
.ops-item { position: relative; }
.ops-item img { width: 100%; height: 100%; object-fit: cover; }
.ops-item .frame { overflow: hidden; }
.ops-a { grid-column: 1 / span 7; }
.ops-a .frame { aspect-ratio: 16 / 10; }
.ops-b { grid-column: 8 / span 5; margin-top: clamp(2rem, 6vw, 6rem); }
.ops-b .frame { aspect-ratio: 4 / 5; }
.ops-c { grid-column: 2 / span 5; margin-top: calc(-1 * clamp(1rem, 4vw, 4rem)); }
.ops-c .frame { aspect-ratio: 4 / 3; }
.ops-d { grid-column: 8 / span 5; align-self: end; }
.ops-d .frame { aspect-ratio: 16 / 10; }

/* full-bleed band */
.ops-band {
  margin-top: var(--space-block);
  position: relative;
  overflow: hidden;
}
.ops-band img {
  width: 100%;
  height: clamp(16rem, 40vw, 30rem);
  object-fit: cover;
}
.ops-band .band-label {
  position: absolute;
  left: var(--gutter); bottom: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ops-band .band-label::before {
  content: '';
  width: 2rem; height: 1px;
  background: var(--red-500);
}
.ops-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 22, 0.78), rgba(6, 10, 22, 0.15) 32%, transparent 55%);
  pointer-events: none;
}

/* ============================================================
   WMS section
   ============================================================ */
.wms { position: relative; overflow: hidden; }
.wms-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.wms-copy .display-md .kw { display: block; }
.wms-copy .display-md .kw:nth-child(2) { color: var(--steel-500); }
.wms-copy .display-md .kw:nth-child(3) { color: var(--red-500); }
.wms-copy p {
  margin-top: 1.75rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 32em;
}
.wms-points {
  margin-top: 2.25rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-dark);
}
.wms-points li {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.85);
}
.wms-points li .tick {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red-500);
  flex: none;
}

/* WMS: composición fotográfica */
.wms-visual { position: relative; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.wms-shot { position: relative; margin: 0; overflow: hidden; }
.wms-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

.wms-shot--main { aspect-ratio: 16 / 9; }
.wms-shot--main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 22, 0.55), transparent 55%);
  pointer-events: none;
}

/* línea de escaneo sobre la foto de ubicaciones */
.wms-scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85), transparent);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
  opacity: 0;
  z-index: 2;
}
.wms.in .wms-scan { animation: wmsScan 5.5s var(--ease-inout) infinite; }
@keyframes wmsScan {
  0% { top: 0; opacity: 0; }
  8% { opacity: 0.9; }
  46% { opacity: 0.9; }
  54% { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

.wms-shot--inset::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 22, 0.72), transparent 45%);
  pointer-events: none;
}
.wms-shot--inset {
  position: absolute;
  right: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 2;
  border: 6px solid var(--ink-900);
  z-index: 3;
}

.wms-tag {
  position: absolute;
  left: 0.9rem; bottom: 0.8rem;
  z-index: 4;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-shadow: 0 1px 6px rgba(6, 10, 22, 0.8);
}
.wms-tag::before {
  content: '';
  width: 1.5rem; height: 1px;
  background: var(--red-500);
  flex: none;
}
.wms-shot--inset .wms-tag {
  left: 0.7rem; bottom: 0.6rem;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}
.wms-shot--inset .wms-tag::before { display: none; }

/* ============================================================
   Zona Libre de Colón
   ============================================================ */
.zlc-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.zlc-copy p {
  margin-top: 1.75rem;
  color: var(--steel-600);
  max-width: 34em;
}
.zlc-copy .display-md em { font-style: normal; color: var(--brand-600); }

.zlc-puntos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line-light);
  border-left: 1px solid var(--line-light);
}
.zlc-puntos li {
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-right: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.zlc-puntos h3 {
  font-stretch: 108%;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-wrap: balance;
}
.zlc-puntos p {
  margin-top: 0.7rem;
  font-size: 0.93rem;
  color: var(--steel-600);
}

@media (max-width: 64rem) {
  .zlc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) {
  .zlc-puntos { grid-template-columns: 1fr; }
}

/* ============================================================
   CTA final
   ============================================================ */
.cta-final { text-align: left; position: relative; }
.cta-final .display-lg { max-width: 9em; }
.cta-final .display-lg .q { color: var(--red-600); }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.cta-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-500);
}

/* ============================================================
   Contacto directo: WhatsApp, teléfono y barra de acción
   ============================================================ */
.lang-switch {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-dark);
  padding: 0.45rem 0.7rem;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.lang-switch:hover { color: var(--white); border-color: var(--white); }
.lang-switch--movil {
  display: inline-block;
  justify-self: start;   /* el contenedor es grid: sin esto se estira */
  margin-bottom: 0.5rem;
  padding: 0.7rem 1.1rem;
}

.header-tel {
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--white);
  white-space: nowrap;
  padding: 0.5rem 0;
}
.header-tel:hover { color: var(--red-500); }

/* Botón flotante de WhatsApp */
.wa-fab {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  /* Verde claro translúcido. Se mantiene casi opaco a propósito: el botón flota
     sobre zonas claras y oscuras, y con poca opacidad el contraste del texto
     cambiaría según lo que pasara por detrás. */
  background: rgba(227, 246, 234, 0.9);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(15, 92, 51, 0.18);
  color: #0f5c33;
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(6, 10, 22, 0.16);
  transition: transform 0.35s var(--ease-out), background-color 0.35s var(--ease-out),
              box-shadow 0.35s var(--ease-out);
}
.wa-fab:hover {
  transform: translateY(-2px);
  background: rgba(219, 243, 228, 0.96);
  box-shadow: 0 10px 26px rgba(6, 10, 22, 0.2);
}
.wa-fab svg path { fill: currentColor; }
.wa-fab svg { width: 1.35rem; height: 1.35rem; flex: none; }
.wa-fab-txt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Barra fija de acción, solo en móvil */
.action-bar { display: none; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--ink-950);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.5fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(4rem, 7vw, 7rem) clamp(3rem, 5vw, 5rem);
}
.footer-brand img { height: 2.4rem; width: auto; }
.footer-brand p {
  margin-top: 1.5rem;
  color: var(--steel-400);
  font-size: 0.95rem;
  max-width: 24em;
}
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-400);
  margin-bottom: 1.4rem;
}
.footer-col ul { display: grid; gap: 0.75rem; }
.footer-col a, .footer-col li > span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.footer-col a { position: relative; transition: color 0.3s; }
.footer-col a:hover { color: var(--red-500); }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--steel-400);
}
.footer-wordmark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(1rem, 3vw, 2rem);
  user-select: none;
}
.footer-wordmark text {
  font-family: var(--font-sans);
  font-stretch: 112%;
  font-weight: 800;
  letter-spacing: -0.01em;
  fill: rgba(255, 255, 255, 0.06);
}

/* ============================================================
   Page hero (interior pages)
   ============================================================ */
.page-hero {
  background: var(--ink-950);
  color: var(--white);
  padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 8rem));
  padding-bottom: clamp(3rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
}
.page-hero .hero-kicker { color: var(--steel-400); }
.page-hero .display-lg { max-width: 12em; }
.page-hero .lede {
  margin-top: 1.75rem;
  color: rgba(255, 255, 255, 0.75);
}
.page-hero .hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}
.page-hero .hero-grid-bg svg { width: 100%; height: 100%; }
.page-hero .hero-grid-bg line { stroke: rgba(255, 255, 255, 0.06); }

/* ============================================================
   Services page
   ============================================================ */
.service-block {
  padding-block: clamp(3.5rem, 6vw, 6.5rem);
  border-bottom: 1px solid var(--line-light);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.service-block:last-of-type { border-bottom: 0; }
.service-block .sb-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.service-block:nth-of-type(even) .sb-grid > .sb-media { order: -1; }
.sb-index {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.sb-index .num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--red-600);
}
.sb-index::after {
  content: '';
  width: 3rem; height: 1px;
  background: var(--line-light);
}
.service-block h2 { margin-bottom: 1.4rem; }
.service-block .sb-copy p { color: var(--steel-600); max-width: 34em; }
.sb-specs {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.sb-specs li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-light);
  color: var(--steel-600);
  padding: 0.45rem 0.85rem;
}
.sb-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.75rem;
  padding: 0.8rem 1.4rem 0.8rem 0;
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-900);
  border-bottom: 1px solid var(--line-light);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.sb-cta svg { width: 1rem; height: 1rem; transition: transform 0.35s var(--ease-out); }
.sb-cta:hover { color: var(--red-600); border-bottom-color: var(--red-600); }
.sb-cta:hover svg { transform: translateX(4px); }

.sb-media .frame {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.sb-media img { width: 100%; height: 100%; object-fit: cover; }

/* complementary services */
.complementary {
  background: var(--ink-900);
  color: var(--white);
}
.complementary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.comp-cell {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
  transition: background-color 0.4s var(--ease-out);
}
.comp-cell:hover { background: var(--ink-800); }
.comp-cell .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--red-500);
}
.comp-cell h3 {
  margin-top: 1.1rem;
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.1rem, 1rem + 0.8vw, 1.5rem);
  text-transform: uppercase;
  line-height: 1.12;
}
.comp-cell p {
  margin-top: 0.8rem;
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 28em;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: start;
}
.contact-info { display: grid; gap: 2.5rem; align-content: start; }
.info-item h3 {
  font-family: var(--font-mono);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel-500);
  margin-bottom: 0.8rem;
}
.info-item p, .info-item a { font-size: 1.05rem; color: var(--ink-900); }
.info-item .muted { color: var(--steel-600); font-size: 0.92rem; margin-top: 0.3rem; }
.info-item a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--steel-300); transition: text-decoration-color 0.3s; }
.info-item a:hover { text-decoration-color: var(--red-600); }

.resenas-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.1rem;
}
.resenas-acciones .btn { min-height: 2.9rem; padding: 0.7rem 1.4rem; }

.contact-figure { margin: 0; max-width: 22rem; }
.contact-figure .frame { aspect-ratio: 3 / 4; overflow: hidden; }
.contact-figure img { width: 100%; height: 100%; object-fit: cover; }

.quote-form { display: grid; gap: 1.6rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}
.field { position: relative; display: grid; gap: 0.5rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-600);
}
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  background: transparent;
  padding: 0.65rem 0;
  font-size: 1.05rem;
  color: var(--ink-900);
  border-radius: 0;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235c6470' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.2rem center;
  padding-right: 1.6rem;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink-900);
}
.field input.error, .field select.error, .field textarea.error { border-bottom-color: var(--red-600); }
.field .field-error {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--red-600);
  display: none;
}
.field.invalid .field-error { display: block; }
.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 0.5rem;
}
.form-note { font-size: 0.85rem; color: var(--steel-500); max-width: 26em; }
.form-aviso {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: var(--red-600);
  border-left: 2px solid var(--red-600);
  padding-left: 0.9rem;
}

.form-success {
  border: 1px solid var(--line-light);
  padding: clamp(2rem, 4vw, 3.5rem);
  display: none;
}
.form-success.visible { display: block; }
.form-success h3 { margin-bottom: 0.8rem; }
.form-success p { color: var(--steel-600); max-width: 30em; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 64rem) {
  .intro-grid, .wms-grid { grid-template-columns: 1fr; }
  .intro-figure { max-width: 26rem; }
  .services-split { grid-template-columns: 1fr; }
  .services-visual { display: none; }
  .service-block .sb-grid { grid-template-columns: 1fr; }
  .service-block:nth-of-type(even) .sb-grid > .sb-media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .ops-a { grid-column: 1 / span 12; }
  .ops-b { grid-column: 1 / span 7; margin-top: 0; }
  .ops-c { grid-column: 8 / span 5; margin-top: clamp(2rem, 6vw, 4rem); }
  .ops-d { grid-column: 3 / span 8; }
}

@media (max-width: 48rem) {
  :root { --header-h: 4.25rem; }
  .header-nav { display: none; }
  .nav-toggle { display: flex; }

  .hero-media img { object-position: 68% 50%; }
  .hero-rail .rail-item strong { font-size: 1.2rem; }
  .hero-rail .container { gap: 0.75rem 1.5rem; }
  .hero-scroll { display: none; }

  .intro-stats { grid-template-columns: 1fr; border-top: 0; }
  .intro-stats .stat {
    border-right: 0;
    border-top: 1px solid var(--line-light);
    padding-inline: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .stat-label { margin-top: 0; text-align: right; }

  /* A 320 px el título y "Ver todos" no caben en la misma fila y arrastraban
     el ancho de todo el documento. */
  .services-index .services-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  /* Barra fija de acción: el contacto nunca queda a más de un toque */
  .action-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 115;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: rgba(6, 10, 22, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-dark);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .action-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.4rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    border-right: 1px solid var(--line-dark);
  }
  .action-bar-item:last-child { border-right: 0; }
  .action-bar-item--wa { color: #4ade80; }
  .action-bar-item--cta { background: var(--red-600); }
  body.con-action-bar { padding-bottom: 3.4rem; }
  body.con-action-bar .wa-fab { display: none; }

  /* Objetivos táctiles: los enlaces de texto quedaban en 17 px de alto */
  .footer-col ul { gap: 0; }
  .footer-col a,
  .footer-col li > span { display: block; padding-block: 0.7rem; }
  .arrow-link { padding-block: 0.85rem; }
  .info-item a { display: inline-block; padding-block: 0.4rem; }

  .service-row { grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: 0.9rem; }
  .service-row p { display: none; }
  .service-row:hover { padding-left: 0; }

  .ops-grid { grid-template-columns: 1fr; gap: 1rem; }
  .ops-a, .ops-b, .ops-c, .ops-d { grid-column: 1 / -1; margin: 0; }
  .ops-b .frame { aspect-ratio: 4 / 5; }

  /* WMS: en pantallas chicas el inset superpuesto queda apretado, se apila */
  .wms-visual { padding-bottom: 0; display: grid; gap: 0.6rem; }
  .wms-shot--inset {
    position: static;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
  }
  .wms-shot--inset .wms-tag {
    left: 0.9rem; bottom: 0.8rem;
    font-size: var(--label);
    letter-spacing: 0.18em;
  }
  .wms-shot--inset .wms-tag::before { display: block; }

  .complementary-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-actions { align-items: flex-start; flex-direction: column; }

  .btn { width: 100%; }
  .hero-ctas .btn { width: auto; flex: 1 1 12rem; }
  .form-foot .btn { width: 100%; }
}

@media (max-width: 26rem) {
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; flex: 0 0 auto; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal, .hero-sub, .hero-ctas, .hero-rail { opacity: 1; transform: none; }
  .hero-title .line > span, .statement-title .line > span { transform: none; }
  .reveal-img::after { display: none; }
  .reveal-img img { transform: none; }
  .services-visual .visual-frame img { transition: opacity 0.001s; }
}
