/* YAD Studio — agencia de software. Marca final (oct 2026).
   Todo sale de los tokens de :root: para cambiar la marca, tocar SÓLO este bloque.
   Monocroma: grafito #181818 · sombra #373A3C · gris #8C8F92 · hueso #F3F1EC.
   Acento ámbar #F2A65A sólo en puntos y hover (nunca en el logo). Tipografía: Inter. */

:root {
  /* ── Primitivos de color (marca final) ── */
  --c-graphite: #181818;
  --c-graphite-2: #1f1f1f;
  --c-graphite-3: #282828;
  --c-shadow: #373a3c;      /* sello tono sobre tono: sólo decorativo y en grande */
  --c-gray: #8c8f92;        /* 5.46:1 sobre grafito */
  --c-bone: #f3f1ec;        /* 15.7:1 sobre grafito */
  --c-white: #ffffff;
  --c-amber: #f2a65a;       /* acento · 8.77:1 sobre grafito */
  --c-amber-hover: #f6bd84;
  --c-error: #ff8a80;

  /* ── Semánticos (tema oscuro por defecto) ── */
  --bg: var(--c-graphite);
  --surface: var(--c-graphite-2);
  --surface-2: var(--c-graphite-3);
  --fg: var(--c-bone);
  --fg-muted: #b4b5b6;      /* 8.6:1 sobre bg */
  --fg-dim: var(--c-gray);  /* 5.46:1 sobre bg */
  --line: rgba(243, 241, 236, 0.09);
  --line-strong: rgba(243, 241, 236, 0.18);
  --accent: var(--c-amber);
  --accent-hover: var(--c-amber-hover);
  --accent-ink: var(--c-graphite);
  --accent-soft: rgba(242, 166, 90, 0.10);
  --error: var(--c-error);
  --nav-bg: rgba(24, 24, 24, 0.78);

  /* ── Tipografía ── */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: var(--font-sans);
  --font-mono: var(--font-sans);   /* rótulos: Inter en mayúsculas con interletrado, como el kit */
  --fs-hero: min(clamp(2.7rem, 1.1rem + 6.4vw, 7.25rem), 10svh);
  --fs-h2: clamp(2.1rem, 1.2rem + 3.4vw, 4.5rem);
  --fs-h3: clamp(1.25rem, 1rem + 1vw, 1.875rem);
  --fs-lede: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-label: 0.75rem;
  --track-tight: -0.045em;

  /* ── Forma y ritmo ── */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1360px;
  --sec-y: clamp(96px, 12vw, 184px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --nav-h: 68px;
}

/* Banda (proceso + modelos): un escalón más claro dentro de la familia grafito. */
.band {
  --bg: var(--c-graphite-2);
  --surface: var(--c-graphite-3);
  --surface-2: #333333;
  --line: rgba(242, 241, 237, 0.09);
  background: var(--bg);
  color: var(--fg);
  border-block: 1px solid var(--line);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 var(--fs-body)/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 500; transition: top .2s; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-s { width: .95em; height: .95em; }
em { font-style: normal; font-weight: inherit; color: var(--c-gray); }

/* ── Tipos ── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-muted); }
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero-eyebrow::before { display: none; }
.h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1; letter-spacing: var(--track-tight); text-wrap: balance; }
.h2 em { color: var(--c-gray); }
.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--fg-muted); max-width: 46ch; text-wrap: pretty; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w > span { display: inline-block; }

/* ── Botones ── */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: var(--r-pill); border: 1px solid transparent; background: transparent;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn .ico { transition: transform .35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: var(--fs-small); }
.btn-accent { background: var(--fg); color: var(--bg); }
.btn-accent:hover { background: var(--accent); color: var(--accent-ink); }
.btn-light { background: var(--fg); color: var(--bg); }
.btn-light:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--surface-2); }
.btn-ghost:hover .ico { transform: translateY(2px); }

/* ── Nav ── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-scrolled, .nav-open .nav { background: var(--nav-bg); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--fg); line-height: 0; }
.logo-svg { height: 22px; width: auto; display: block; }
.logo:hover .logo-light { fill: var(--fg); transition: fill .3s; }
.nav-client { font-size: var(--fs-small); color: var(--fg-muted); padding: 8px 4px; transition: color .2s; }
.nav-client:hover { color: var(--accent); }
.nav-links-client { display: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: var(--fs-small); color: var(--fg-muted); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links-cta { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .06em; }
.lang span { padding: 7px 9px; border-radius: var(--r-pill); color: var(--fg-dim); transition: color .2s; }
.lang span.on { background: var(--fg); color: var(--bg); }
.lang:hover span:not(.on) { color: var(--fg); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .35s var(--ease); }
.nav-toggle i:first-of-type { top: 17px; }
.nav-toggle i:last-of-type { top: 25px; }
.nav-open .nav-toggle i:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-open .nav-toggle i:last-of-type { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-right { margin-left: auto; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0; flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-open .nav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav-links a { padding: 16px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.25rem; color: var(--fg); }
  .nav-links a:hover { background: none; color: var(--accent); }
  .nav-links .nav-links-cta { display: block; border: 0; color: var(--accent); }
  .nav-links .nav-links-client { display: block; color: var(--fg-muted); }
  .nav-client { display: none; }
}

/* ── Hero ── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--nav-h) + 40px); overflow: hidden; isolation: isolate; }
.hero-seal { position: absolute; z-index: -2; width: min(40vw, 70svh, 600px); aspect-ratio: 1; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); top: 50%; translate: 0 -54%; }
.hero-seal svg, .foot-seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hero-seal .seal-ring { fill: var(--c-gray); opacity: .62; }
.hero-seal .seal-y { fill: var(--fg); }
.seal-ring { transform-box: view-box; transform-origin: 50% 50%; }
.no-gsap .seal-ring { animation: seal-spin 20s linear infinite; }
@keyframes seal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .seal-ring { animation: none !important; } }
.foot-seal { width: 132px; aspect-ratio: 1; margin-bottom: 28px; }
.foot-seal .seal-ring { fill: var(--c-gray); }
.foot-seal .seal-y { fill: var(--fg); }
.hero::before { content: ""; position: absolute; z-index: -3; pointer-events: none; width: min(70vw, 980px); aspect-ratio: 1; right: -6vw; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--fg) 5%, transparent), transparent 72%); filter: blur(10px); }
.hero-fade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 38%, transparent 62%),
              linear-gradient(0deg, var(--bg) 0%, transparent 28%); }
.hero-in { position: relative; padding-bottom: clamp(36px, 4.5vh, 56px); }
.hero-eyebrow { margin-bottom: clamp(20px, 2.6vh, 30px); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
.hero-title { font-size: var(--fs-hero); font-weight: 300; line-height: .98; letter-spacing: -0.045em; max-width: 12.5ch; }
.hero-title em { color: var(--c-gray); }
.hero-sub { margin-top: clamp(18px, 2.4vh, 28px); font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem); font-weight: 300; letter-spacing: -0.025em; line-height: 1.2; }
.hero-lede { margin-top: 14px; max-width: 52ch; color: var(--fg-muted); font-size: var(--fs-lede); line-height: 1.5; }
.hero .ctas { margin-top: clamp(28px, 3vw, 40px); }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; border-top: 1px solid var(--line); position: relative; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 5px; height: 5px; background: var(--accent); border-radius: 1px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.scroll-cue i { position: relative; width: 1px; height: 36px; background: var(--line-strong); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--fg); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* Estado inicial del intro (sólo con JS + motion; main.js lo revela o un timeout lo libera). */
.motion .hero-title .w > span { transform: translateY(105%); }
.motion [data-hero] { opacity: 0; }
.motion .hero-seal { opacity: 0; }

/* ── Secciones ── */
.sec { padding-block: var(--sec-y); position: relative; }
.sec--tight { padding-top: 0; }
.sec--line { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 22px; align-content: start; margin-bottom: clamp(48px, 6vw, 88px); }
.sec-head--row { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
.sec-head--row .lede { justify-self: end; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
.split > .sec-head { margin-bottom: 0; }
.sticky { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }

/* ── Servicios (acordeón) ── */
.svcs { border-bottom: 1px solid var(--line); }
.svc { border-top: 1px solid var(--line); }
.svc-h { font: inherit; }
.svc-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(22px, 2.4vw, 32px) 0; background: none; border: 0; cursor: pointer; text-align: left; }
.svc-title { font-size: var(--fs-h3); font-weight: 450; letter-spacing: -0.03em; line-height: 1.15; transition: transform .45s var(--ease), color .3s; }
.svc-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .45s var(--ease), background-color .3s, border-color .3s, color .3s; }
.svc-btn:hover .svc-title { transform: translateX(8px); }
.svc-btn:hover .svc-icon { border-color: var(--fg); }
.svc.is-open .svc-icon { transform: rotate(45deg); background: var(--fg); border-color: var(--fg); color: var(--bg); }
.js .svc-panel { height: 0; overflow: hidden; }
.js .svc.is-open .svc-panel { height: auto; }
.svc-body { display: grid; gap: 20px; padding: 0 64px clamp(26px, 2.6vw, 36px) 0; }
.svc-body p { color: var(--fg-muted); font-size: 1.0625rem; max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .02em; color: var(--fg-muted); }

/* ── Trabajos ── */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.case {
  --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; gap: 10px; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .4s var(--ease);
}
.case:hover { border-color: var(--line-strong); }
.case-glow { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(243, 241, 236, 0.05), transparent 60%); }
.case:hover .case-glow { opacity: 1; }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 4vw, 64px); }
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.status i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--fg-dim); }
.status.is-live { color: var(--fg-muted); }
.status.is-live i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.case-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font: 500 var(--fs-small)/1 var(--font-mono); transition: background-color .3s, color .3s, border-color .3s; }
a.case-link:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.case-link.is-off { color: var(--fg-dim); border-style: dashed; }
.case-name { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.75rem); font-weight: 300; letter-spacing: -0.05em; line-height: .95; }
.case-kind { font-size: 1.0625rem; color: var(--fg-muted); letter-spacing: -0.01em; }
.case-dl { display: grid; gap: 22px; margin-top: clamp(24px, 3vw, 40px); padding-top: clamp(22px, 2.4vw, 30px); border-top: 1px solid var(--line); }
.case-dl dt { margin-bottom: 8px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-dim); }
.case-dl dd { color: var(--fg-muted); line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font: 500 var(--fs-label)/1.3 var(--font-mono); color: var(--fg); }
/* Destacados a todo el ancho: Shopia y ArcaKit */
.case:nth-child(1), .case:nth-child(4) { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); align-items: start; }
.case:nth-child(1) .case-top, .case:nth-child(4) .case-top { grid-column: 1 / -1; }
.case:nth-child(1) .case-name, .case:nth-child(1) .case-kind, .case:nth-child(4) .case-name, .case:nth-child(4) .case-kind { grid-column: 1; }
.case:nth-child(1) .case-dl, .case:nth-child(4) .case-dl { grid-column: 2; grid-row: 2 / span 2; margin-top: 0; padding-top: 0; border-top: 0; }
.case:nth-child(1) .case-name, .case:nth-child(4) .case-name { font-size: clamp(2.8rem, 1.6rem + 5vw, 7rem); }
.case--wip { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.case--wip .case-name { color: var(--fg-muted); }

/* ── Proceso (claro) ── */
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.steps-line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); }
.steps-line i { position: absolute; inset: 0; background: var(--fg-dim); transform-origin: left center; }
.motion .steps-line i { transform: scaleX(0); }
.step { position: relative; padding-top: 36px; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent); }
.step-n { display: block; margin-bottom: 16px; font: 500 var(--fs-small)/1 var(--font-mono); color: var(--fg-dim); letter-spacing: .08em; }
.step h3 { font-size: var(--fs-h3); font-weight: 400; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.step p { color: var(--fg-muted); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(64px, 8vw, 120px); }
.pillar { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.pillar h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025em; margin-bottom: 10px; }
.pillar h3::before { content: ""; display: block; width: 28px; height: 1px; margin-bottom: 22px; background: var(--fg-dim); }
.pillar p { color: var(--fg-muted); }

/* ── Modelos ── */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.model { display: flex; flex-direction: column; gap: 16px; padding: clamp(26px, 3vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.model h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.05; }
.model > p { color: var(--fg-muted); }
.model ul { display: grid; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.model li { display: flex; gap: 10px; align-items: baseline; font-size: .9375rem; }
.model li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.model-cta { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 8px; width: fit-content; font-weight: 500; color: var(--fg); }
.model-cta:hover { color: var(--accent); }
.model-cta .ico { transition: transform .35s var(--ease); }
.model-cta:hover .ico { transform: translateX(4px); }
.model--feature { position: relative; border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(243, 241, 236, 0.05), transparent 70%), var(--surface); }

/* ── Stack ── */
.stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 3vw, 48px); }
.stack-g h3 { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.stack-g ul { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-g li { padding: 9px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); font-size: .9375rem; letter-spacing: -0.01em; transition: border-color .3s, color .3s; }
.stack-g li:hover { border-color: var(--accent); color: var(--accent); }

/* ── Por qué ── */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.why-i { position: relative; padding-top: 28px; }
.why-i::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--line-strong); }
.why-i::after { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 1px; background: var(--accent); }
.why-i h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 14px; }
.why-i p { color: var(--fg-muted); }

/* ── Contacto ── */
.contact { border-top: 1px solid var(--line); background: radial-gradient(900px 500px at 15% 0%, rgba(243, 241, 236, 0.035), transparent 70%); }
.direct { display: grid; gap: 4px; margin-top: 16px; }
.direct-l { margin-bottom: 8px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.direct a { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding: 6px 0; font-size: 1.0625rem; transition: color .2s; }
.direct a:hover { color: var(--accent); }
.brief { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: clamp(22px, 3vw, 44px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--fg); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field ::placeholder { color: var(--fg-dim); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--fg-dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg-dim); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--fg-muted); border-bottom: 1.5px solid var(--fg-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select select { padding-right: 44px; cursor: pointer; }
.select option { background: var(--c-graphite-2); color: var(--c-bone); }
.err { font-size: var(--fs-small); color: var(--error); }
.err:empty { display: none; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.brief-status { font-size: var(--fs-small); color: var(--fg); }
.brief-status.is-err { color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brief-status:empty { display: none; }

/* ── Footer ── */
.footer { padding-top: clamp(64px, 8vw, 112px); border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-tag { font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); font-weight: 450; letter-spacing: -0.03em; line-height: 1.2; max-width: 22ch; }
.foot-loc { margin-top: 14px; color: var(--fg-muted); font: 500 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.foot-col h2 { margin-bottom: 16px; font: 500 var(--fs-label)/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-dim); }
.foot-col ul { display: grid; gap: 10px; }
.foot-col a { color: var(--fg-muted); transition: color .2s; }
.foot-col a:hover, .foot-col a[aria-current] { color: var(--fg); }
/* Easter egg: hover/focus en el wordmark despliega el acrónimo. */
.foot-mark { position: relative; margin-top: clamp(56px, 8vw, 120px); font-size: clamp(5.5rem, 19vw, 17rem); font-weight: 300; letter-spacing: -0.06em; line-height: .78; cursor: default; user-select: none; width: fit-content; max-width: 100%; border-radius: var(--r-sm); }
.fm-row { display: flex; }
.fm-l { display: inline-flex; align-items: baseline; }
.fm-l b { font-weight: 300; }
.fm-x { display: inline-block; max-width: 0; overflow: hidden; opacity: 0; font-weight: 300; font-size: .2em; letter-spacing: 0; line-height: 1; color: var(--accent); white-space: nowrap; margin-left: .08em; margin-right: .12em; transition: max-width .9s var(--ease), opacity .6s var(--ease); }
.fm-egg { display: block; height: 0; overflow: hidden; opacity: 0; font: 500 clamp(.7rem, .6rem + .4vw, .95rem)/1 var(--font-mono); letter-spacing: .04em; color: var(--fg-muted); transition: opacity .6s var(--ease) .25s, height .6s var(--ease), padding .6s var(--ease); }
.foot-mark:hover .fm-x, .foot-mark:focus .fm-x { max-width: 6em; opacity: 1; }
.foot-mark:hover .fm-egg, .foot-mark:focus .fm-egg { height: 2.6em; padding-top: 1.2em; opacity: 1; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 36px; margin-top: 28px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--fg-dim); }
.foot-legal a:hover { color: var(--fg); }

/* ── 404 ── */
.nf { min-height: 100svh; display: grid; place-items: center; }
.nf-in { display: grid; gap: 24px; justify-items: start; padding-block: 64px; }
.nf-title { font-size: clamp(6rem, 25vw, 16rem); font-weight: 300; letter-spacing: -0.07em; line-height: .85; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 56px; }
  .steps-line { display: none; }
  .step::before { display: none; }
  .step { padding-top: 24px; border-top: 1px solid var(--line-strong); }
}
@media (max-width: 900px) {
  .split, .sec-head--row { grid-template-columns: 1fr; }
  .sec-head--row .lede { justify-self: start; }
  .split > .sec-head { margin-bottom: 8px; }
  .sticky { position: static; }
  .cases { grid-template-columns: 1fr; }
  .case:nth-child(1), .case:nth-child(4) { display: flex; }
  .case:nth-child(1) .case-dl, .case:nth-child(4) .case-dl { margin-top: clamp(24px, 3vw, 40px); padding-top: 22px; border-top: 1px solid var(--line); }
  .pillars, .models { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .hero-fade { background: linear-gradient(0deg, var(--bg) 18%, color-mix(in srgb, var(--bg) 72%, transparent) 60%, color-mix(in srgb, var(--bg) 30%, transparent) 100%); }
  .hero::before { width: 120vw; right: -50vw; top: 18%; }
  .hero-seal { width: min(92vw, 520px); right: -22vw; top: calc(var(--nav-h) + 8px); translate: none; }
  .hero-seal .seal-ring { opacity: .26; }
  .hero-seal .seal-y { opacity: .22; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; row-gap: 0; padding-left: 28px; }
  .steps-line { display: block; left: 5px; right: auto; top: 6px; bottom: 40px; width: 1px; height: auto; }
  .steps-line i { transform-origin: center top; }
  .motion .steps-line i { transform: scaleY(0); }
  .step { padding: 0 0 40px; border-top: 0; }
  .step::before { display: block; top: 3px; left: -28px; }
  .why, .stack { grid-template-columns: 1fr; }
  .brief { grid-template-columns: 1fr; }
  .brief-actions .btn { width: 100%; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
  .facts { flex-direction: column; gap: 10px; }
  .svc-body { padding-right: 0; }
  .svc-icon { width: 38px; height: 38px; }
  .ctas .btn { flex: 1 1 auto; }
  .lang span { padding: 7px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .scroll-cue i::after, .pulse::after { display: none; }
}
