/* ==========================================================================
   OUTERWILDS ENGINES — Sitio web
   Concepto: "Instrumento de lectura". Las líneas horizontales del logotipo
   (la O rayada y los trazos de velocidad) son el lenguaje gráfico del sitio:
   persianas en las transiciones, escáner en las fotos y lectura de medidor.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0b0b;
  --ink-2: #131616;
  --paper: #efece5;
  --paper-2: #e3dfd4;
  --teal: #1b3a3f;          /* tono de la O rayada del logotipo */
  --signal: #ff5b1f;        /* acento de seguridad industrial */
  --muted: #5a5f5d;
  --muted-light: rgba(239, 236, 229, .62);
  --line: rgba(10, 11, 11, .2);
  --line-light: rgba(239, 236, 229, .22);

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "DM Mono", ui-monospace, Consolas, monospace;

  --gutter: clamp(1.25rem, 3.4vw, 3.5rem);
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5rem;
  --space-xl: clamp(6rem, 13vw, 12rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --stripe: 56px;           /* paso de las persianas */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
address { font-style: normal; }
::selection { background: var(--signal); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200; padding: .7rem 1rem;
  background: var(--signal); color: var(--ink); font-weight: 600; transition: top .2s;
}
.skip:focus { top: 1rem; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

html { scrollbar-width: thin; scrollbar-color: var(--teal) var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--teal); }

.wrap { width: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografía ---------- */
.label {
  display: flex; gap: .7rem; align-items: center;
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
}
.label span { color: var(--muted); }
.label--light { color: var(--paper); }
.label--light span { color: var(--signal); }

.h1, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 100%;
  text-transform: uppercase;
  letter-spacing: -.035em;
  line-height: .92;
}
.h1 { font-size: clamp(2.6rem, 6.4vw, 7rem); }
.h2 { font-size: clamp(2.3rem, 5vw, 5rem); }
.h1 em, .h2 em, .slide__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: -.01em;
  font-size: 1.1em;
  line-height: .8;
}

/* Divisor de palabras (reveal) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .1em; margin: -.08em -.02em -.1em; }
.w > span { display: inline-block; will-change: transform; }
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-imgreveal] { clip-path: inset(0 0 100% 0); }

.fw { opacity: .14; transition: opacity .25s linear; }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .9rem;
  padding: 1.05rem 1.7rem 1.05rem 1.9rem;
  border: 1px solid currentColor; border-radius: 999px; overflow: hidden;
  color: var(--paper); font-weight: 600; font-size: .88rem; letter-spacing: .07em; text-transform: uppercase;
  isolation: isolate; will-change: transform;
}
.btn__bg {
  position: absolute; inset: -1px; background: var(--signal); z-index: -1;
  transform: translateY(102%); border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  transition: transform .6s var(--ease-out), border-radius .6s var(--ease-out);
}
.btn__label { position: relative; transition: color .35s; }
.btn__arrow { transition: transform .5s var(--ease-out); }
.btn:hover .btn__bg, .btn:focus-visible .btn__bg { transform: translateY(0); border-radius: 0; }
.btn:hover { color: var(--ink); border-color: var(--signal); }
.btn:hover .btn__arrow { transform: translateX(5px); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--signal .btn__bg { background: var(--paper); }
.btn--signal:hover { border-color: var(--paper); }

.link {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .95rem;
  letter-spacing: .04em; text-transform: uppercase; padding-bottom: .35rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link svg { transition: transform .5s var(--ease-out); }
.link:hover { background-size: 0% 1px; background-position: right bottom; }
.link:hover svg { transform: translateX(5px); }
.link--light { color: var(--paper); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  --h: var(--stripe);
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0, #000 var(--h), transparent var(--h), transparent var(--stripe));
          mask-image: repeating-linear-gradient(to bottom, #000 0, #000 var(--h), transparent var(--h), transparent var(--stripe));
}
.preloader__inner { width: min(560px, 74vw); }
.preloader__logo { width: 100%; height: auto; clip-path: inset(0 100% 0 0); }
.preloader__meta {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.4rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-light);
}
.preloader__count b { font-weight: 500; color: var(--paper); }
.preloader__line { height: 1px; background: var(--line-light); margin-top: 1rem; overflow: hidden; }
.preloader__line i { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }
html:not(.js) .preloader { display: none; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__ring {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1px solid var(--paper); mix-blend-mode: difference;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background .3s, border-color .3s;
}
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); opacity: 0; white-space: nowrap;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  transition: opacity .25s;
}
.cursor.is-view .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--signal); border-color: transparent; mix-blend-mode: normal; }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-link .cursor__ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Grano: textura de impresión, muy sutil */
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--gutter);
  color: var(--paper); transition: color .5s var(--ease-io);
}
.site-header[data-theme="light"] { color: var(--ink); }
/* tras el hero, la barra se vuelve sólida para que el logotipo nunca choque con el contenido */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: rgba(10, 11, 11, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .5s var(--ease-io), background .5s var(--ease-io);
}
.site-header.is-solid::before { opacity: 1; }
.site-header[data-theme="light"]::before { background: rgba(239, 236, 229, .9); }
.brand { position: relative; display: block; width: clamp(138px, 14vw, 190px); aspect-ratio: 789 / 170; }
.brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s var(--ease-io); }
.brand__logo--dark { opacity: 0; }
.site-header[data-theme="light"] .brand__logo--light { opacity: 0; }
.site-header[data-theme="light"] .brand__logo--dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.6vw, 2.6rem); }
.nav a {
  position: relative; display: inline-flex; align-items: baseline; gap: .45rem;
  font-weight: 600; font-size: .82rem; letter-spacing: .09em; text-transform: uppercase; padding: .5rem 0;
}
.nav__n { font-family: var(--font-mono); font-weight: 400; font-size: .62rem; color: var(--signal); letter-spacing: .05em; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .15rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { padding: .65rem 1.2rem !important; border: 1px solid currentColor; border-radius: 999px; }
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* ---------- HERO ---------- */
.hero { --ui-h: 11.5rem; position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero__stage { position: absolute; inset: 0; will-change: transform; }
.slide { position: absolute; inset: 0; visibility: hidden; }
.slide.is-active { visibility: visible; }
.slide.is-entering {
  z-index: 3; --h: 0px;
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0, #000 var(--h), transparent var(--h), transparent var(--stripe));
          mask-image: repeating-linear-gradient(to bottom, #000 0, #000 var(--h), transparent var(--h), transparent var(--stripe));
}
.slide__media { position: absolute; inset: 0; overflow: hidden; }
.slide__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero__veil {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,11,11,.62) 0%, rgba(10,11,11,0) 26%, rgba(10,11,11,.1) 48%, rgba(10,11,11,.82) 100%),
    repeating-linear-gradient(0deg, rgba(10,11,11,.14) 0 2px, transparent 2px 6px);
}
.slide__copy {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--ui-h) + clamp(1.5rem, 4vh, 3.5rem));
}
.slide__kicker {
  display: flex; align-items: center; gap: .9rem; margin-bottom: clamp(.8rem, 2vh, 1.6rem);
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
.slide__kicker span { color: var(--ink); background: var(--signal); padding: .15rem .5rem; }
.slide__title {
  font-weight: 800; text-transform: uppercase; letter-spacing: -.04em; line-height: .88;
  font-size: clamp(2.9rem, 10.2vw, 11.5rem);
}
.slide__title em { color: var(--signal); font-size: 1.12em; }
.ln { display: block; overflow: hidden; padding: .06em .04em .1em; margin: -.06em -.04em -.1em; }
.ln > span { display: block; will-change: transform; }

.hero__ui {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: 0; height: var(--ui-h);
  padding: 0 var(--gutter) clamp(1rem, 2.6vh, 2rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem; align-items: end;
}
.hero__lead { display: flex; align-items: center; gap: 2rem; justify-content: flex-start; }
.hero__lead p { max-width: 30ch; font-size: .98rem; line-height: 1.45; color: rgba(239,236,229,.86); }
.hero__lead strong { font-weight: 600; color: var(--paper); }
.hero__lead .btn { flex: none; }

.hero__controls { display: grid; grid-template-columns: auto 1fr auto; gap: 1.8rem; align-items: end; }
.hero__count { display: flex; align-items: center; gap: .8rem; font-family: var(--font-mono); font-size: .9rem; }
.hero__cur { display: inline-block; min-width: 2ch; color: var(--paper); }
.hero__sep { width: 2.4rem; height: 1px; background: var(--line-light); }
.hero__tot { color: var(--muted-light); }
.segs { display: flex; gap: .6rem; }
.segs li { flex: 1; }
.seg { display: block; width: 100%; text-align: left; padding: .6rem 0 0; }
.seg i { display: block; position: relative; height: 2px; background: rgba(239,236,229,.28); overflow: hidden; }
.seg i::after {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  transform: scaleX(var(--p, 0)); transform-origin: left;
}
.seg span {
  display: block; margin-top: .55rem; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-light); transition: color .3s;
}
.seg:hover span, .seg.is-current span { color: var(--paper); }
.hero__arrows { display: flex; gap: .6rem; }
.arrow {
  width: 3.1rem; height: 3.1rem; border-radius: 50%; border: 1px solid rgba(239,236,229,.4);
  display: grid; place-items: center; color: var(--paper); transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease-out);
}
.arrow:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: scale(1.06); }

.hero__scroll {
  position: absolute; z-index: 6; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl;
  color: var(--muted-light);
}
.hero__scroll i { width: 1px; height: 64px; background: var(--line-light); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--paper); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- NOSOTROS ---------- */
.about { background: var(--paper); padding-block: var(--space-xl) calc(var(--space-xl) * .8); }
.statement {
  margin: 3rem 0 var(--space-xl); max-width: 21em;
  font-weight: 700; font-stretch: 92%; letter-spacing: -.03em; line-height: 1.04;
  font-size: clamp(2rem, 5.2vw, 5.4rem);
}
.about__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(1rem, 2vw, 2rem); align-items: start; }
.about__figure { grid-column: 1 / span 5; }
.about__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.about__img img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 30%; }
.about__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(10,11,11,.0) 0 3px, rgba(27,58,63,.16) 3px 6px);
}
.about__figure figcaption {
  display: flex; justify-content: space-between; margin-top: .9rem;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.about__text { grid-column: 7 / span 6; padding-top: clamp(3rem, 12vw, 11rem); display: flex; flex-direction: column; gap: 1.5rem; }
.about__text .h2 { margin-bottom: 1.5rem; }
.about__text p { color: var(--muted); max-width: 40em; }
.about__text .lede { font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.42; color: var(--ink); letter-spacing: -.01em; }
.about__text .lede strong { font-weight: 700; box-shadow: inset 0 -.38em 0 rgba(255, 91, 31, .35); }
.about__text .link { align-self: flex-start; margin-top: 1rem; color: var(--ink); }

.creed { display: grid; grid-template-columns: 5fr 7fr; gap: 3rem; margin-top: var(--space-xl); }
.creed__head { align-self: start; position: sticky; top: 7rem; }
.creed__item { border-top: 1px solid var(--ink); padding: 1.6rem 0 3.4rem; display: grid; grid-template-columns: minmax(7rem, 1fr) 3fr; gap: 1.5rem; }
.creed__tag { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.8rem, 2.8vw, 2.8rem); line-height: 1; }
.creed__item p { font-size: clamp(1.1rem, 1.35vw, 1.3rem); line-height: 1.5; max-width: 34em; }

.values { margin-top: var(--space-xl); }
.values__list { margin-top: 2.2rem; border-top: 1px solid var(--ink); }
.value {
  position: relative; display: grid; grid-template-columns: 4.5rem minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: center;
  padding: 2.1rem 0; border-bottom: 1px solid var(--ink); outline-offset: -2px;
  transition: padding .6s var(--ease-out), color .4s;
}
.value::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.value__n { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); transition: color .4s; }
.value__name { font-weight: 800; text-transform: uppercase; letter-spacing: -.035em; line-height: .95; font-size: clamp(1.8rem, 4.2vw, 4.2rem); transition: transform .6s var(--ease-out); }
.value__txt { font-size: 1rem; line-height: 1.5; max-width: 30em; color: inherit; }
@media (hover: hover) and (pointer: fine) {
  .value__txt { opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .6s var(--ease-out); }
  .value:hover, .value:focus-visible { padding-inline: 1.6rem; color: var(--paper); }
  .value:hover::before, .value:focus-visible::before { transform: scaleY(1); }
  .value:hover .value__n, .value:focus-visible .value__n { color: var(--signal); }
  .value:hover .value__txt, .value:focus-visible .value__txt { opacity: 1; transform: none; }
}
.values { isolation: isolate; }

/* ---------- SERVICIOS ---------- */
.services { background: var(--ink); color: var(--paper); position: relative; }
.services__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.services__track { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); height: 100%; width: max-content; padding: 0 var(--gutter); will-change: transform; }

.svc-intro { flex: none; width: min(52vw, 800px); padding-right: 4vw; display: flex; flex-direction: column; gap: 1.8rem; }
.svc-intro .h1 { font-size: clamp(2.6rem, 5.6vw, 6.4rem); }
.svc-intro .h1 em { color: var(--signal); }
.svc-intro__p { max-width: 32em; color: var(--muted-light); font-size: 1.1rem; }
.svc-intro__hint { display: flex; align-items: center; gap: 1rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); }
.hint-line { width: 4.5rem; height: 1px; background: var(--signal); position: relative; overflow: hidden; }
.hint-line::after { content: ""; position: absolute; inset: 0; background: var(--paper); animation: hint 1.8s var(--ease-io) infinite; }
@keyframes hint { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

.card {
  position: relative; flex: none; width: clamp(290px, 29vw, 470px); height: 66vh; max-height: 720px; min-height: 420px;
  overflow: hidden; background: var(--ink-2); isolation: isolate;
}
.card:nth-of-type(odd) { top: -3.5vh; }
.card:nth-of-type(even) { top: 3.5vh; }
.card__img { position: absolute; inset: 0; z-index: -2; }
.card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.85) contrast(1.05); transform: scale(1.06); transition: transform 1.4s var(--ease-out), filter .8s; }
/* líneas del logotipo como tratamiento de imagen: "escáner" que se abre al pasar el cursor */
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,11,11,.55) 0%, rgba(10,11,11,0) 32%, rgba(10,11,11,.2) 52%, rgba(10,11,11,.92) 100%),
    repeating-linear-gradient(0deg, rgba(27,58,63,.55) 0 3px, transparent 3px 7px);
  transition: opacity .8s;
}
.card:hover .card__img img, .card:focus-within .card__img img { transform: scale(1.0); filter: grayscale(0) contrast(1.05); }
.card:hover::before { opacity: .78; }
.card__top { position: absolute; top: 1.2rem; left: 1.3rem; right: 1.3rem; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.card__n { color: var(--ink); background: var(--signal); padding: .15rem .55rem; }
.card__tag { color: var(--paper); opacity: .85; }
.card__body { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.4rem; }
.card h3 { font-size: clamp(1.3rem, 1.85vw, 1.85rem); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; margin-bottom: .8rem; }
.card p { font-size: .96rem; line-height: 1.45; color: rgba(239,236,229,.84); max-width: 28em; }
@media (hover: hover) and (pointer: fine) {
  .card p { max-height: 0; opacity: 0; transition: max-height .7s var(--ease-out), opacity .5s; }
  .card:hover p, .card:focus-within p { max-height: 8em; opacity: 1; }
}

.svc-end { flex: none; width: min(44vw, 640px); padding-left: 3vw; padding-right: 8vw; display: flex; flex-direction: column; gap: 2rem; align-items: flex-start; }
.svc-end .h1 em { color: var(--signal); }

.services__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.8rem; display: flex; align-items: center; gap: 1.5rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; z-index: 3; mix-blend-mode: difference; color: #fff; }
.services__cnt b { font-weight: 500; }
.services__rail { flex: 1; height: 1px; background: rgba(255,255,255,.3); position: relative; }
.services__rail i { position: absolute; inset: -1px 0; background: #fff; transform: scaleX(0); transform-origin: left; height: 3px; }

/* ---------- POR QUÉ NOSOTROS ---------- */
.why { background: var(--paper-2); }
.why__wrap { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 6vw, 7rem); }
.why__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; align-self: start; }
.why__sticky .label { position: absolute; top: 7rem; }
.gauge { position: relative; width: min(100%, 520px); aspect-ratio: 1; color: var(--teal); }
.gauge__svg { width: 100%; height: 100%; overflow: visible; }
.gauge__stripes { will-change: transform; }
.gauge__read { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.gauge__num {
  background: var(--ink); color: var(--paper); font-weight: 800; letter-spacing: -.04em; line-height: .9;
  font-size: clamp(3.4rem, 7.5vw, 7rem); padding: .08em .22em .12em; font-variant-numeric: tabular-nums;
}
.gauge__unit { background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .7rem; text-align: center; }
.why__list { padding-block: 22vh; }
.reason { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; opacity: .22; transition: opacity .6s; }
.reason.is-active { opacity: 1; }
.reason .h2 { font-size: clamp(2.2rem, 4.2vw, 4.6rem); }
.reason .h2 em { color: var(--teal); }
.reason p { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.45; max-width: 26em; color: var(--muted); }

/* ---------- CONTACTO ---------- */
.contact { background: var(--ink); color: var(--paper); padding-block: var(--space-xl) calc(var(--space-xl) * .7); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: -14vw; top: -10vw; width: 46vw; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(27,58,63,.7) 0 .9vw, transparent .9vw 1.8vw);
}
.contact .wrap { position: relative; }
.contact__grid { margin-top: var(--space-lg); display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.contact__list { display: flex; flex-direction: column; gap: 2.6rem; }
.contact__list .k { display: block; margin-bottom: .6rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal); }
.big { display: inline-block; font-weight: 700; letter-spacing: -.035em; line-height: 1; font-size: clamp(2rem, 3.6vw, 3.6rem); background: linear-gradient(currentColor, currentColor) left 100% / 0% 2px no-repeat; transition: background-size .6s var(--ease-out), color .3s; padding-bottom: .2em; }
.big--sm { font-size: clamp(1.25rem, 2vw, 2.1rem); word-break: break-word; }
.big:hover { background-size: 100% 2px; color: var(--signal); }
.contact address { font-size: 1.1rem; line-height: 1.55; color: var(--muted-light); margin-bottom: 1.2rem; }

.form { display: flex; flex-direction: column; gap: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-light); border-radius: 0;
  padding: 1.7rem 0 .7rem; font-size: 1.15rem; color: var(--paper); transition: border-color .3s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field select { cursor: pointer; padding-right: 2rem; }
.field select option { color: var(--ink); background: var(--paper); }
.field--select::after { content: ""; position: absolute; right: .3rem; bottom: 1.1rem; width: .55rem; height: .55rem; border-right: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(45deg); pointer-events: none; }
.field label {
  position: absolute; left: 0; top: 1.55rem; font-size: 1.1rem; color: var(--muted-light); pointer-events: none;
  transform-origin: left top; transition: transform .35s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select + label { transform: translateY(-1.25rem) scale(.68); color: var(--signal); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--paper); }
.field.has-error input, .field.has-error textarea { border-color: var(--signal); }
.field__err { display: block; min-height: 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--signal); }
.field.has-error .field__err { padding-top: .4rem; }
.form .btn { align-self: flex-start; margin-top: .6rem; }
.form__status { min-height: 1.5em; font-size: .98rem; color: var(--muted-light); }
.form__status.is-ok { color: var(--paper); }
.form__status.is-ok::before { content: "✓ "; color: var(--signal); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-light); padding: clamp(2rem, 4vw, 3rem) 0 2rem; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; align-items: flex-end; font-size: .88rem; color: var(--muted-light); }
.footer nav { display: flex; gap: 2rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .78rem; }
.footer nav a:hover, .footer__top:hover { color: var(--signal); }
.footer__top { display: inline-flex; gap: .6rem; align-items: center; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .78rem; color: var(--paper); transition: color .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero { --ui-h: 15rem; }
  .hero__ui { grid-template-columns: 1fr; gap: 1.2rem; align-items: end; }
  .hero__lead { gap: 1.2rem; }
  .hero__scroll { display: none; }
  .creed { grid-template-columns: 1fr; }
  .creed__head { position: static; }
}

@media (max-width: 900px) {
  .about__grid { display: flex; flex-direction: column; gap: 3rem; }
  .about__text { padding-top: 0; }
  .value { grid-template-columns: 2.6rem 1fr; gap: .6rem 1rem; padding: 1.6rem 0; }
  .value__txt { grid-column: 2; }
  .creed__item { grid-template-columns: 1fr; gap: .8rem; }

  /* servicios: pila vertical, sin pin */
  .services__pin { height: auto; overflow: visible; padding-block: 6rem 4rem; }
  .services__track { flex-direction: column; align-items: stretch; width: 100%; height: auto; gap: 1.2rem; transform: none !important; }
  .svc-intro, .svc-end { width: 100%; padding: 0; }
  .svc-intro { margin-bottom: 2rem; }
  .svc-intro__hint { display: none; }
  .card { width: 100%; height: 62vh; min-height: 400px; }
  .card:nth-of-type(odd), .card:nth-of-type(even) { top: 0; }
  .card p { max-height: none; opacity: 1; }
  .card__img img { filter: none; }
  .svc-end { margin-top: 3rem; }
  .services__bar { display: none; }

  .why__wrap { grid-template-columns: 1fr; gap: 0; padding-block: 4rem 2rem; }
  .why__sticky { position: sticky; top: 0; z-index: 3; height: 42vh; padding-top: 4.8rem; gap: 0; justify-content: flex-start; background: var(--paper-2); align-items: center; }
  .why__sticky .label { display: none; }
  .gauge { width: min(46vw, 230px); }
  .gauge__num { font-size: clamp(2rem, 11vw, 3.4rem); }
  .gauge__unit { font-size: .6rem; padding: .25rem .5rem; }
  .why__list { padding-block: 2rem 4rem; }
  .reason { min-height: 62vh; }

  .contact__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: 1rem var(--gutter); }
  .nav { gap: .75rem; }
  .nav a { font-size: .64rem; letter-spacing: .05em; }
  .nav__n { display: none; }
  .nav__cta { padding: .45rem .7rem !important; }
  .brand { width: 92px; }

  .hero { --ui-h: 17.5rem; min-height: 600px; }
  .hero__lead { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero__lead p { font-size: .92rem; }
  .hero__controls { grid-template-columns: 1fr auto; gap: 1rem 1rem; }
  .hero__count { grid-column: 1; grid-row: 1; }
  .hero__arrows { grid-column: 2; grid-row: 1; }
  .segs { grid-column: 1 / -1; grid-row: 2; }
  .seg span { display: none; }
  .arrow { width: 2.7rem; height: 2.7rem; }
  .slide__title { font-size: clamp(2.3rem, 11.6vw, 4.2rem); }

  .statement { font-size: clamp(1.7rem, 7.4vw, 2.6rem); }
  .footer__row { flex-direction: column; align-items: flex-start; }
  .footer nav { flex-wrap: wrap; gap: 1rem 1.6rem; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}
.reduce .services__pin { height: auto; overflow-x: auto; padding-block: 5rem; }
.reduce .services__track { height: 72vh; }
.reduce .card:nth-of-type(odd), .reduce .card:nth-of-type(even) { top: 0; }
.reduce .services__bar { display: none; }
.reduce .why__sticky { position: sticky; }
