/* CLIP Ingeniería — sitio institucional
   Paleta: grafito, blanco cálido, acero; acento azul tomado de los logos oficiales.
   Superficies: escena (imagen), papel (clara), grafito (oscura) y cristal. */

:root {
  --graphite-950: #08090b;
  --graphite-900: #0e1013;
  --graphite-800: #16191d;
  --graphite-700: #20242a;
  --steel-500: #8a939d;
  --steel-300: #b9c0c7;
  --warm-white: #f4f0e9;
  --paper: #f3efe8;
  --paper-2: #e9e4db;
  --ink: #111417;
  --ink-2: #4d555d;
  --accent: #2b7cff;
  --accent-ink: #1a5fd6;      /* azul con contraste sobre papel */
  --accent-soft: #6fb4ff;
  --danger: #ff8d7a;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(20px, 4.6vw, 84px);
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --sheet-r: clamp(18px, 2.4vw, 34px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--graphite-950);
  color: var(--warm-white);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2a2f36 var(--graphite-950);
  scroll-padding-top: calc(var(--nav-h) + 28px);
  color-scheme: dark;
  -webkit-tap-highlight-color: transparent;
}
html.motion { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  background: var(--graphite-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a, button, summary, select, input, textarea { touch-action: manipulation; }

.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: 16px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--warm-white); color: #0b0c0e; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }
.sheet--paper :focus-visible { outline-color: var(--accent-ink); }

abbr[title] { text-decoration: none; cursor: help; border-bottom: 1px dotted currentColor; }

/* ───────── Escena fija (WebGL) ───────── */
.stage, .stage-veil { position: fixed; inset: 0; width: 100%; height: 100%; }
.stage { z-index: 0; display: none; background: var(--graphite-950); }
.stage-veil { z-index: 1; pointer-events: none; display: none; background: var(--graphite-950); transition: opacity 1.1s var(--ease); }
html.immersive .stage, html.immersive .stage-veil { display: block; }
html.is-ready .stage-veil { opacity: 0; }

/* ───────── Navegación (vidrio sutil) ───────── */
.nav {
  position: fixed; z-index: 40;
  top: max(14px, env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter);
  height: var(--nav-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 10px 0 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 25, 29, .72), rgba(14, 16, 19, .62));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 40px -22px rgba(0, 0, 0, .7);
  transition: transform .5s var(--ease);
}
.nav__brand { display: block; flex: none; border-radius: 8px; }
.nav__brand img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 9px 13px; border-radius: 12px;
  font-size: 14.5px; font-weight: 450; text-decoration: none; color: rgba(244, 240, 233, .72);
  transition: color .2s, background-color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--warm-white); background: rgba(255, 255, 255, .06); }
.nav__links a[aria-current="true"] { color: var(--warm-white); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__menu { display: none; }

.progress { position: fixed; z-index: 41; left: 0; right: 0; top: 0; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }

/* ───────── Botones ───────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  font: 550 15px/1 var(--font); letter-spacing: .005em; text-decoration: none; white-space: nowrap;
  transition: transform .16s ease-out, background-color .2s, box-shadow .25s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 14px; }
.btn--glass {
  color: var(--warm-white);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04) 46%, rgba(255, 255, 255, .09));
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .38) inset, 0 -1px 0 rgba(255, 255, 255, .08) inset, 0 10px 28px -14px rgba(0, 0, 0, .8);
}
.btn--glass:hover { background-color: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .38); }
.btn--solid {
  color: #fff; background: var(--accent-ink);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 34px -18px rgba(43, 124, 255, .9);
}
.btn--solid:hover { background: #2a70ec; }
.btn--ink { color: var(--paper); background: var(--ink); }
.btn--ink:hover { background: #23282e; }
.btn--line { color: inherit; background: transparent; border: 1px solid currentColor; }
.btn--line:hover { background: rgba(127, 127, 127, .12); }
.btn[disabled] { opacity: .6; cursor: progress; }
.nav__cta { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: 14.5px; }

/* Enlace de texto con subrayado que se dibuja */
.link {
  display: inline-block; font-weight: 550; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ───────── Capítulos inmersivos ───────── */
main { position: relative; z-index: 10; }
.chapter { position: relative; }
.chapter__bg { position: absolute; inset: 0; z-index: 0; }
.chapter__bg img { width: 100%; height: 100%; object-fit: cover; }

.panel {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 56px) var(--gutter) clamp(44px, 8vh, 96px);
}
/* Velo de lectura local: sólo detrás del texto, no sobre toda la escena */
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .88) 0%, rgba(8, 9, 11, .62) 30%, rgba(8, 9, 11, 0) 62%),
    linear-gradient(0deg, rgba(8, 9, 11, .72) 0%, rgba(8, 9, 11, 0) 42%),
    linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, 0) 22%);
}
.panel--right { align-items: flex-end; }
.panel--right::before {
  background:
    linear-gradient(270deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .66) 32%, rgba(8, 9, 11, 0) 64%),
    linear-gradient(0deg, rgba(8, 9, 11, .72) 0%, rgba(8, 9, 11, 0) 42%),
    linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, 0) 22%);
}
.panel--top { justify-content: flex-start; padding-top: calc(var(--nav-h) + clamp(60px, 12vh, 130px)); }
.panel--top::before {
  background:
    linear-gradient(180deg, rgba(8, 9, 11, .8) 0%, rgba(8, 9, 11, .5) 40%, rgba(8, 9, 11, 0) 64%),
    linear-gradient(0deg, rgba(8, 9, 11, .5) 0%, rgba(8, 9, 11, 0) 20%);
}
.panel__body { max-width: min(50vw, 800px); }
.panel--right .panel__body { max-width: min(42vw, 700px); }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0 0 clamp(18px, 2.6vh, 30px);
  font: 500 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--steel-300);
}
.eyebrow__n { color: var(--accent-soft); }
.eyebrow__n::after { content: ""; display: inline-block; width: 34px; height: 1px; margin-left: 14px; vertical-align: middle; background: rgba(255, 255, 255, .35); }

.display {
  font-weight: 520;
  font-variation-settings: "wdth" 108;
  font-size: clamp(2.6rem, 5.9vw, 6.6rem);
  line-height: .97;
  letter-spacing: -.038em;
  text-wrap: balance;
  color: var(--warm-white);
}
.chapter--hero .display { font-size: clamp(2.4rem, 4.9vw, 5.6rem); }
.chapter--hero .panel__body { max-width: min(66vw, 1040px); }
.chapter--hero .lead { max-width: 40em; }
.lead {
  margin-top: clamp(18px, 2.8vh, 32px); max-width: 36em;
  font-size: clamp(1.04rem, 1.3vw, 1.32rem); line-height: 1.45; font-weight: 380;
  color: rgba(244, 240, 233, .86);
  text-wrap: pretty;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3.6vh, 38px); }
.pampa-lockup { height: clamp(46px, 5vw, 70px); width: auto; margin-bottom: clamp(18px, 3vh, 30px); }
.byline { font: 500 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 18px; }

/* Títulos por líneas: máscara fija, sin saltos de layout */
.ln { display: block; overflow: hidden; overflow: clip; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > span { display: block; }
html.immersive .panel .ln > span,
html.motion [data-reveal] .ln > span { transform: translate3d(0, 112%, 0); }
html.immersive .panel.is-on .ln > span,
html.motion [data-reveal].in .ln > span {
  transform: none;
  transition: transform .95s var(--ease) calc(var(--i, 0) * 80ms);
}
html.immersive .panel .after-ln, html.motion [data-reveal] .after-ln { opacity: 0; transform: translate3d(0, 14px, 0); }
html.immersive .panel.is-on .after-ln, html.motion [data-reveal].in .after-ln {
  opacity: 1; transform: none;
  transition: opacity .7s ease-out calc(var(--d, 3) * 80ms), transform .9s var(--ease) calc(var(--d, 3) * 80ms);
}

/* ───────── Capa de información PAMPA (vidrio sutil) ───────── */
.tag { position: relative; z-index: 3; margin-top: 30px; width: max-content; max-width: 100%; }
.tag__dot, .tag__stem { display: none; }
.tag__card {
  width: 318px; max-width: 100%;
  padding: 14px 16px 12px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 27, 32, .7), rgba(12, 14, 17, .62));
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 24px 50px -24px rgba(0, 0, 0, .85);
}
.tag__card header {
  display: flex; align-items: center; gap: 9px; padding-bottom: 10px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warm-white);
}
.tag__card header img { width: 20px; height: 20px; object-fit: contain; }
.tag__card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 7px 0; }
.tag__card dl div + div { border-top: 1px solid rgba(255, 255, 255, .06); }
.tag__card dt { font-size: 13px; color: var(--steel-300); white-space: nowrap; }
.tag__card dd { font: 500 13px/1.2 var(--mono); font-variant-numeric: tabular-nums; color: var(--warm-white); text-align: right; white-space: nowrap; }
.tag__card footer {
  margin-top: 8px; padding-top: 9px; border-top: 1px solid rgba(255, 255, 255, .1);
  font: 400 10.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--steel-300);
}

html.immersive .chapter { height: 225vh; }
html.immersive .chapter--hero { height: 175vh; }
html.immersive .chapter--end { height: 205vh; }
html.immersive .chapter__bg { display: none; }
html.immersive .panel { position: fixed; inset: 0; min-height: 0; height: 100%; opacity: 0; pointer-events: none; will-change: opacity; }
html.immersive .panel.is-on { pointer-events: auto; }
html.immersive .panel__body { will-change: transform; }
html.immersive .tag { position: absolute; left: 0; top: 0; margin: 0; width: 0; max-width: none; will-change: transform; }
html.immersive .tag__card { max-width: none; position: absolute; left: -34px; bottom: 62px; }
html.immersive .tag--right .tag__card { left: auto; right: -34px; }
html.immersive .tag__dot {
  display: block; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(43, 124, 255, .22), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}
html.immersive .tag__dot::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(111, 180, 255, .55);
  animation: ping 2.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
html.immersive .tag__stem {
  display: block; position: absolute; left: -.5px; bottom: 8px; width: 1px; height: 54px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .25));
}
html.static .chapter { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
html.static .panel { flex: 1; }

/* ───────── Superficies editoriales ───────── */
.sheet { position: relative; z-index: 5; }
.sheet--paper { background: var(--paper); color: var(--ink); }
.sheet--graphite { background: var(--graphite-900); color: var(--warm-white); }
.sheet--lift { border-radius: var(--sheet-r) var(--sheet-r) 0 0; margin-top: calc(var(--sheet-r) * -1); }
.sheet--drop { border-radius: 0 0 var(--sheet-r) var(--sheet-r); }
.sheet + .sheet--lift { box-shadow: 0 -30px 60px -40px rgba(0, 0, 0, .55); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--gutter); }
.block { padding-block: clamp(84px, 13vh, 170px); }
.block--tight { padding-block: clamp(56px, 8vh, 110px); }

.kicker { font-size: 15px; font-weight: 550; color: var(--accent-ink); margin-bottom: 18px; }
.sheet--graphite .kicker { color: var(--accent-soft); }
.h2 {
  font-weight: 520; font-variation-settings: "wdth" 108;
  font-size: clamp(2.1rem, 4.5vw, 4.6rem); line-height: 1; letter-spacing: -.034em; text-wrap: balance;
}
.h2--m { font-size: clamp(1.9rem, 3.5vw, 3.5rem); }
.h3 { font-weight: 560; font-size: clamp(1.25rem, 1.7vw, 1.6rem); line-height: 1.15; letter-spacing: -.015em; }
.statement {
  font-weight: 480; font-variation-settings: "wdth" 104;
  font-size: clamp(1.55rem, 2.9vw, 3rem); line-height: 1.12; letter-spacing: -.026em; text-wrap: balance; max-width: 24em;
}
.prose { max-width: 62ch; font-size: clamp(1.02rem, 1.15vw, 1.16rem); color: var(--ink-2); text-wrap: pretty; }
.prose + .prose { margin-top: 1em; }
.sheet--graphite .prose { color: rgba(244, 240, 233, .78); }
.prose strong { color: inherit; font-weight: 600; }
.note { font-size: 14.5px; color: var(--ink-2); max-width: 60ch; }
.sheet--graphite .note { color: var(--steel-300); }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.head { display: grid; gap: 22px; margin-bottom: clamp(40px, 7vh, 84px); }

/* Imagen con revelado por máscara y paralaje moderado */
.shot { position: relative; overflow: hidden; border-radius: 10px; background: var(--graphite-800); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--wide { aspect-ratio: 21 / 9; }
.shot--land { aspect-ratio: 16 / 10; }
.shot--tall { aspect-ratio: 4 / 5; }
html.motion .shot img { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }
/* la máscara va en la imagen: el contenedor conserva su caja para detectar la entrada en pantalla */
html.motion .shot[data-reveal] { background: transparent; }
html.motion .shot[data-reveal] img { clip-path: inset(0 0 100% 0); }
html.motion .shot[data-reveal].in img { clip-path: inset(0 0 0 0); transition: clip-path 1.25s var(--ease-io); }
html.motion .shot[data-reveal] figcaption { opacity: 0; }
html.motion .shot[data-reveal].in figcaption { opacity: 1; transition: opacity .6s ease-out .9s; }
.shot figcaption {
  position: absolute; left: 14px; bottom: 12px; padding: 6px 10px; border-radius: 8px;
  font-size: 12px; color: var(--warm-white); background: rgba(10, 12, 14, .6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* Especialidades: filas editoriales, sin tarjetas */
.rows { border-top: 1px solid rgba(17, 20, 23, .16); }
.sheet--graphite .rows { border-top-color: rgba(255, 255, 255, .14); }
.row {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 10px clamp(24px, 5vw, 90px);
  padding: clamp(22px, 3.4vh, 36px) 0; border-bottom: 1px solid rgba(17, 20, 23, .16);
}
.sheet--graphite .row { border-bottom-color: rgba(255, 255, 255, .14); }
.row p { color: var(--ink-2); max-width: 60ch; }
.sheet--graphite .row p { color: rgba(244, 240, 233, .76); }
.row .h3 small { display: block; margin-top: 6px; font: 400 13.5px/1.35 var(--font); letter-spacing: 0; color: var(--ink-2); }
.sheet--graphite .row .h3 small { color: var(--steel-300); }
html.motion .rows[data-reveal] .row { opacity: 0; transform: translate3d(0, 18px, 0); }
html.motion .rows[data-reveal].in .row {
  opacity: 1; transform: none;
  transition: opacity .6s ease-out calc(var(--i, 0) * 60ms), transform .8s var(--ease) calc(var(--i, 0) * 60ms);
}

/* Ingeniería en cada etapa: verbos que se encienden con el scroll */
.verbs {
  font-weight: 540; font-variation-settings: "wdth" 110;
  font-size: clamp(2.3rem, 7.2vw, 7.6rem); line-height: .98; letter-spacing: -.04em;
}
.verbs span { display: block; color: var(--ink); transition: color .45s ease-out; }
html.motion .verbs span { color: rgba(17, 20, 23, .16); }
html.motion .verbs span.on { color: var(--ink); }

/* ───────── PAMPA: presentación ───────── */
.pampa-intro { position: relative; overflow: hidden; }
.pampa-intro::after {
  content: ""; position: absolute; right: -12%; top: -30%; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(43, 124, 255, .16), rgba(43, 124, 255, 0));
}

/* ───────── Recorrido de la gestión: capítulo fijado ───────── */
.flow { position: relative; }
.flow__pin { padding-block: clamp(70px, 10vh, 120px); }
.flow__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 110px); align-items: center; }
.flow__steps { position: relative; padding-left: 34px; }
.flow__track { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; overflow: hidden; }
.flow__track i { display: block; width: 100%; height: 100%; background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--p, 1)); }
.flow__step { position: relative; padding: clamp(10px, 1.7vh, 18px) 0; }
.flow__step::before {
  content: ""; position: absolute; left: -33px; top: calc(clamp(10px, 1.7vh, 18px) + .5em); width: 12px; height: 12px; border-radius: 50%;
  background: var(--graphite-900); border: 2px solid rgba(255, 255, 255, .28); transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.flow__step h3 { font-size: clamp(1.15rem, 1.8vw, 1.7rem); font-weight: 560; letter-spacing: -.02em; line-height: 1.15; }
.flow__step h3 b { font: 500 12px/1 var(--mono); letter-spacing: .1em; color: var(--accent-soft); margin-right: 12px; vertical-align: .25em; }
.flow__step p { margin-top: 4px; color: rgba(244, 240, 233, .78); max-width: 46ch; }
.flow__step small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--steel-300); max-width: 50ch; }
.flow__close { margin-top: clamp(22px, 4vh, 44px); }
.flow .h2 { text-wrap: pretty; max-width: 13em; }

@media (min-width: 900px) and (min-height: 640px) {
  html.motion .flow { height: 380vh; }
  html.motion .flow__pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-block: calc(var(--nav-h) + 30px) 30px; }
  html.motion .flow__step { opacity: .26; transition: opacity .45s ease-out; }
  html.motion .flow__step.on { opacity: 1; }
  html.motion .flow__step.on::before { border-color: var(--accent); background: var(--accent); transform: scale(1.15); }
  html.motion .flow__step p, html.motion .flow__step small { transition: opacity .4s; }
  html.motion .flow__close { opacity: .2; transition: opacity .6s ease-out; }
  html.motion .flow__close.on { opacity: 1; }
}

/* ───────── Capacidades: exploración progresiva ───────── */
.caps { border-top: 1px solid rgba(17, 20, 23, .2); }
.cap { border-bottom: 1px solid rgba(17, 20, 23, .2); }
.cap > summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 96px minmax(0, 5fr) minmax(0, 6fr) 36px; gap: 8px 24px; align-items: baseline;
  padding: clamp(18px, 2.8vh, 30px) 0; border-radius: 8px;
  transition: padding-left .4s var(--ease);
}
.cap > summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .cap > summary:hover { padding-left: 10px; } }
.cap__abbr { font: 500 13px/1 var(--mono); letter-spacing: .08em; color: var(--accent-ink); }
.cap__name { font-weight: 560; font-size: clamp(1.3rem, 2.3vw, 2.2rem); letter-spacing: -.025em; line-height: 1.08; }
.cap__tag { color: var(--ink-2); font-size: clamp(1rem, 1.1vw, 1.1rem); }
.cap__plus { position: relative; width: 22px; height: 22px; justify-self: end; align-self: center; }
.cap__plus::before, .cap__plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 2px;
  transition: transform .35s var(--ease);
}
.cap__plus::after { transform: rotate(90deg); }
.cap[open] .cap__plus::after { transform: rotate(0deg); }
.cap__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px 24px; padding: 0 60px clamp(24px, 3.6vh, 40px) 120px; }
html.motion .cap[open] .cap__body { animation: capIn .5s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translate3d(0, -8px, 0); } }
.cap__body p { color: var(--ink-2); max-width: 54ch; }
.cap__body .note { margin-top: 10px; }
.more { grid-column: 2; }
.cap__body > .more:only-child, .cap__body > .more--full { grid-column: 1 / -1; }
.more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; padding: 6px 0;
  font-size: 15px; font-weight: 560; color: var(--accent-ink); border-radius: 6px;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+"; display: inline-block; width: 1em; font-weight: 400; font-size: 1.2em; line-height: 1; transition: transform .3s var(--ease); }
.more[open] > summary::before { transform: rotate(45deg); }
.defs { margin-top: 10px; display: grid; gap: 0; }
.defs--2 { grid-template-columns: 1fr 1fr; column-gap: 40px; }
.defs div { padding: 11px 0; border-top: 1px solid rgba(17, 20, 23, .12); }
.sheet--graphite .defs div { border-top-color: rgba(255, 255, 255, .12); }
.defs dt { font-weight: 600; font-size: 15px; }
.defs dt abbr, .defs dt b { font: 500 12.5px/1 var(--mono); letter-spacing: .06em; color: var(--accent-ink); margin-right: 8px; border: 0; }
.sheet--graphite .defs dt abbr, .sheet--graphite .defs dt b { color: var(--accent-soft); }
.defs dd { font-size: 15px; color: var(--ink-2); margin-top: 2px; }
.sheet--graphite .defs dd { color: rgba(244, 240, 233, .74); }
.defs__h { font-size: 13.5px; font-weight: 600; margin-top: 22px; color: var(--ink-2); }
.more > summary + .defs__h { margin-top: 12px; }

/* ───────── KaIA ───────── */
.chat {
  position: relative; padding: 22px; border-radius: 22px; max-width: 560px; margin-left: auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .12) inset, 0 40px 80px -50px rgba(0, 0, 0, .9);
}
.chat__label { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel-300); margin-bottom: 18px; }
.chat ul { display: grid; gap: 10px; justify-items: end; }
.chat li {
  padding: 12px 16px; border-radius: 18px 18px 4px 18px; max-width: 88%;
  font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.3;
  background: rgba(43, 124, 255, .2); border: 1px solid rgba(111, 180, 255, .3);
}
html.motion .chat[data-reveal] li { opacity: 0; transform: translate3d(0, 12px, 0) scale(.97); transform-origin: 100% 100%; }
html.motion .chat[data-reveal].in li {
  opacity: 1; transform: none;
  transition: opacity .5s ease-out calc(.25s + var(--i, 0) * .32s), transform .6s var(--ease) calc(.25s + var(--i, 0) * .32s);
}
.chat__bar {
  display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 14px;
  background: rgba(8, 9, 11, .5); border: 1px solid rgba(255, 255, 255, .1); color: var(--steel-300); font-size: 15px;
}
.chat__bar svg { margin-left: auto; flex: none; }

/* ───────── Herramientas y apartados destacados ───────── */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .14); }
.tool { padding: clamp(22px, 3.4vh, 36px) clamp(18px, 2.6vw, 40px) clamp(22px, 3.4vh, 36px) 0; }
.tool + .tool { padding-left: clamp(18px, 2.6vw, 40px); border-left: 1px solid rgba(255, 255, 255, .14); }
.tool p { margin-top: 10px; color: rgba(244, 240, 233, .76); }
.tool small { display: block; margin-top: 10px; font-size: 13.5px; color: var(--steel-300); }
.within { font: 500 11.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--steel-300); }
.within b { color: var(--accent-soft); font-weight: 500; }

.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.feature--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature--flip .feature__media { order: 2; }
.feature__name { font-weight: 560; font-variation-settings: "wdth" 110; font-size: clamp(2.2rem, 4.4vw, 4.4rem); letter-spacing: -.035em; line-height: 1; margin: 12px 0 18px; }
.feature__claim { font-size: clamp(1.2rem, 1.7vw, 1.6rem); line-height: 1.25; letter-spacing: -.012em; margin-bottom: 14px; text-wrap: balance; }
.feature__verbs { margin-top: 22px; font-weight: 560; letter-spacing: -.01em; color: var(--warm-white); }
.topics { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 14.5px; color: var(--steel-300); }
.topics a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s; }
.topics a:hover { color: var(--warm-white); text-decoration-color: currentColor; }
.feature .btn { margin-top: 26px; }
.feature + .feature { margin-top: clamp(80px, 13vh, 170px); }

/* ───────── Integraciones e industrias ───────── */
.inds { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 6vw, 110px); border-top: 1px solid rgba(17, 20, 23, .16); }
.inds li { padding: 20px 0; border-bottom: 1px solid rgba(17, 20, 23, .16); }
.inds h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.inds p { color: var(--ink-2); margin-top: 2px; }

/* ───────── Contacto ───────── */
.contact { position: relative; overflow: hidden; background: var(--graphite-950); color: var(--warm-white); }
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
html.motion .contact__bg img { transform: translate3d(0, var(--py, 0px), 0) scale(1.12); }
.contact__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, rgba(8, 9, 11, .1) 40%, rgba(8, 9, 11, .1) 70%, rgba(8, 9, 11, .8) 100%);
}
.contact .wrap { position: relative; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.contact__mail { margin-top: 28px; font-size: 1.05rem; }

.form {
  padding: clamp(20px, 2.6vw, 34px); border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 23, 27, .78), rgba(12, 14, 17, .72));
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .1) inset, 0 40px 90px -50px rgba(0, 0, 0, .95);
}
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 560; }
.field label span { font-weight: 400; color: var(--steel-300); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: rgba(8, 9, 11, .55); border: 1px solid rgba(255, 255, 255, .18); color: var(--warm-white);
  font-size: 16px; line-height: 1.3;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.field textarea { min-height: 124px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel-300) 50%), linear-gradient(135deg, var(--steel-300) 50%, transparent 50%);
  background-position: calc(100% - 21px) 55%, calc(100% - 15px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { color: #111; background: #fff; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .34); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent-soft); box-shadow: 0 0 0 3px rgba(43, 124, 255, .35); background-color: rgba(8, 9, 11, .75);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { font-size: 13.5px; color: var(--danger); min-height: 0; }
.field__err:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.form__foot small { font-size: 13px; color: var(--steel-300); flex: 1 1 200px; }
.form__status { margin-top: 16px; padding: 14px 16px; border-radius: 14px; font-size: 15px; line-height: 1.45; }
.form__status:empty { display: none; }
.form__status[data-kind="pending"] { background: rgba(255, 200, 120, .1); border: 1px solid rgba(255, 200, 120, .35); }
.form__status[data-kind="error"] { background: rgba(255, 141, 122, .1); border: 1px solid rgba(255, 141, 122, .4); }
.form__status[data-kind="ok"] { background: rgba(120, 220, 160, .1); border: 1px solid rgba(120, 220, 160, .4); }
.form__status[data-kind="sending"] { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); }
.form__status .btn { margin-top: 12px; min-height: 42px; }
.form__status strong { display: block; margin-bottom: 2px; }

/* ───────── Pie ───────── */
.foot { position: relative; z-index: 5; background: var(--graphite-950); color: var(--steel-300); font-size: 14.5px; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 30px clamp(24px, 4vw, 70px); padding-block: clamp(44px, 7vh, 80px) 30px; }
.foot img { height: 34px; width: auto; margin-bottom: 14px; }
.foot h2 { font-size: 13.5px; font-weight: 600; color: var(--warm-white); margin-bottom: 12px; }
.foot li + li { margin-top: 7px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--warm-white); text-decoration: underline; text-underline-offset: 4px; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 30px; padding-block: 18px 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; color: var(--steel-500); }

/* ───────── Páginas internas ───────── */
.page-hero { position: relative; z-index: 5; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--graphite-900); }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .72) 34%, rgba(8, 9, 11, 0) 68%), linear-gradient(0deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .3) 40%, rgba(8, 9, 11, 0) 70%, rgba(8, 9, 11, .5) 100%); }
.page-hero__bg img { object-position: 78% 50%; }
@media (max-width: 860px) { .page-hero__bg::after { background: linear-gradient(0deg, rgba(8, 9, 11, .96) 0%, rgba(8, 9, 11, .8) 55%, rgba(8, 9, 11, .35) 100%); } }
.page-hero .wrap { position: relative; padding-block: calc(var(--nav-h) + 70px) clamp(40px, 7vh, 80px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--steel-300); margin-bottom: 22px; }
.crumbs a { text-underline-offset: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.review-note {
  margin-top: 26px; padding: 12px 16px; border-radius: 12px; max-width: 70ch; font-size: 14px; line-height: 1.45;
  background: rgba(255, 200, 120, .1); border: 1px solid rgba(255, 200, 120, .35); color: var(--warm-white);
}
.toc { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; padding-block: 22px; border-bottom: 1px solid rgba(17, 20, 23, .16); }
.toc a { text-underline-offset: 4px; text-decoration-color: rgba(17, 20, 23, .3); }
.toc a:hover { text-decoration-color: currentColor; }
.row p + p { margin-top: .8em; }
.row .eg { margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--accent-ink); font-size: 15.5px; }
.row .eg b { display: block; font-size: 13px; font-weight: 600; color: var(--accent-ink); margin-bottom: 2px; }

/* ───────── Tablet / móvil: se recompone ───────── */
@media (max-width: 1080px) {
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0;
    display: grid; gap: 2px; padding: 10px; border-radius: 18px;
    background: rgba(14, 16, 19, .985); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translate3d(0, -8px, 0);
    transition: opacity .2s ease-out, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__links a { padding: 14px 14px; font-size: 16px; }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="true"] { background: rgba(255, 255, 255, .07); }
  .nav__menu {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; min-height: 44px; padding: 0 12px;
    background: transparent; border: 0; border-radius: 12px; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--warm-white);
  }
  .nav__menu i { position: relative; width: 18px; height: 10px; }
  .nav__menu i::before, .nav__menu i::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease); }
  .nav__menu i::before { top: 0; } .nav__menu i::after { bottom: 0; }
  .nav.is-open .nav__menu i::before { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__menu i::after { transform: translateY(-4px) rotate(-45deg); }
  .panel__body, .panel--right .panel__body { max-width: min(80vw, 720px); }
  .cap > summary { grid-template-columns: 70px minmax(0, 1fr) 30px; }
  .cap__tag { grid-column: 2; }
  .cap__plus { grid-row: 1; grid-column: 3; }
  .cap__body { grid-template-columns: 1fr; padding: 0 0 26px 94px; }
  .more { grid-column: 1; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .split, .split--even, .feature, .feature--flip, .contact__grid, .flow__grid { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .row { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .tool { padding-right: 0; }
  .tool + .tool { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .inds, .defs--2 { grid-template-columns: 1fr; }
  .chat { margin-left: 0; }
  .shot--wide { aspect-ratio: 4 / 3; }
  .shot--tall { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px), (orientation: portrait) and (max-width: 1080px) {
  :root { --nav-h: 56px; }
  body { font-size: 16px; }
  .nav { gap: 6px; padding: 0 8px 0 14px; border-radius: 16px; left: 12px; right: 12px; top: max(10px, env(safe-area-inset-top)); }
  .nav__brand img { height: 25px; }
  .nav__cta { min-height: 40px; padding: 0 14px; font-size: 14px; }

  .panel { padding: calc(var(--nav-h) + 40px) 22px max(30px, env(safe-area-inset-bottom)); }
  .panel--right { align-items: flex-start; }
  .panel::before, .panel--right::before {
    background:
      linear-gradient(0deg, rgba(8, 9, 11, .96) 0%, rgba(8, 9, 11, .88) 30%, rgba(8, 9, 11, .5) 50%, rgba(8, 9, 11, 0) 66%),
      linear-gradient(180deg, rgba(8, 9, 11, .6) 0%, rgba(8, 9, 11, 0) 20%);
  }
  .panel--top::before {
    background: linear-gradient(180deg, rgba(8, 9, 11, .9) 0%, rgba(8, 9, 11, .74) 44%, rgba(8, 9, 11, 0) 66%);
  }
  .panel--top { padding-top: calc(var(--nav-h) + 44px); }
  .panel__body, .panel--right .panel__body { max-width: 100%; }
  .display, .chapter--hero .display { font-size: clamp(2.1rem, 9.4vw, 3.6rem); line-height: 1; letter-spacing: -.034em; }
  .lead { font-size: 1rem; margin-top: 14px; }
  .eyebrow { font-size: 10.5px; margin-bottom: 12px; letter-spacing: .1em; }
  .actions { gap: 8px; margin-top: 18px; }
  .actions .btn { min-height: 44px; padding: 0 16px; font-size: 14.5px; }

  .tag__card { width: 262px; padding: 11px 13px 10px; border-radius: 14px; }
  .tag__card dl div { padding: 5px 0; }
  .tag__card dt, .tag__card dd { font-size: 12px; }
  .tag__card header { font-size: 10px; }
  .tag__card footer { font-size: 9.5px; }
  html.immersive .tag__stem { height: 34px; }
  html.immersive .tag__card { bottom: 42px; left: -28px; }
  html.immersive .tag--compact dl div:nth-child(n+3) { display: none; }

  .cap > summary { grid-template-columns: minmax(0, 1fr) 30px; }
  .cap__abbr { grid-column: 1; }
  .cap__name { grid-column: 1; }
  .cap__tag { grid-column: 1; }
  .cap__plus { grid-row: 1 / span 2; grid-column: 2; }
  .cap__body { padding-left: 0; }
  .form__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .display, .chapter--hero .display { font-size: clamp(1.9rem, 4.6vw, 3.2rem); }
  .lead { font-size: 1rem; margin-top: 10px; }
  .panel { padding-bottom: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
