/* Kycevo Technologies — sitio oficial
   Paleta y tipografía: kycevo-brand / references/visual-identity.md
   Movimiento: conservado del diseño original por decisión del owner de marca.
   Ver README.md § Excepción de marca registrada. */

/* ------------------------------------------------------------------ fuentes

   IBM Plex auto-hospedada. No se carga nada de fonts.googleapis.com ni de
   fonts.gstatic.com: el Aviso de Privacidad declara que el sitio no recaba
   datos de navegación, y un tercero sirviendo las fuentes recibe la IP de cada
   visitante. Ver LICENCIAS.md § 1.

   Los archivos los copia tools/fonts.mjs desde los paquetes de IBM. Añadir un
   peso aquí exige añadirlo también allá, o cae a la fuente del sistema.

   Los unicode-range son los que define IBM para sus propios subsets. Latin1
   cubre español e inglés; Pi aporta las flechas — el único carácter del
   contenido fuera de Latin1 es ↓ en la señal de scroll, compuesta en Mono. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSans-Regular-Latin1.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSans-Medium-Latin1.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSans-SemiBold-Latin1.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSerif-Regular-Latin1.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Serif';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexSerif-LightItalic-Latin1.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexMono-Regular-Latin1.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2013-2014, U+2018-201A, U+201C-201E, U+2020-2022, U+2026, U+2030, U+2039-203A, U+2044, U+20AC, U+2122, U+2212, U+FB01-FB02;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/IBMPlexMono-Regular-Pi.woff2') format('woff2');
  unicode-range: U+03C0, U+0E3F, U+2000-200D, U+2010-2012, U+2015, U+2028-2029, U+202F, U+2032-2033, U+203E, U+205F, U+2070, U+2074-2079, U+2080-2089, U+2113, U+2116, U+2126, U+212E, U+2150-2151, U+2153-215E, U+2190-2199, U+21A9-21AA, U+21B0-21B3, U+21B6-21B7, U+21BA-21BB, U+21C4, U+21C6, U+2202, U+2206, U+220F, U+2211, U+2215, U+2219-221A, U+221E, U+222B, U+2236, U+2248, U+2260, U+2264-2265, U+2400-2421, U+2500-259F, U+25CA, U+2713, U+274C, U+2B0E-2B11, U+3000, U+FEFF, U+FFFD;
}

:root {
  /* Primario y acento */
  --graphite: #16181A;
  --blueprint: #1F4FD8;
  /* Neutros de apoyo */
  --carbon: #2A2E33;
  --slate: #3C4147;
  --mist: #6B7076;
  --rule: #DCDCD8;
  --paper: #E8E8E6;
  --ground: #FFFFFF;
  /* Estados y superficies oscuras */
  --deep: #0F2A7A;
  --dark: #163AA0;
  --wash: #EEF1FC;
  --ink: #0E1013;
  --panel: #1A1D20;
  --edge: #2F3439;
  --chalk: #C9CED3;

  --sans: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --serif: 'IBM Plex Serif', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(24px, 8vw, 120px);
  --hdr-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--graphite);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blueprint); text-decoration: none; }
a:hover { color: var(--dark); }
::selection { background: var(--blueprint); color: var(--ground); }

img, svg { max-width: 100%; }

section[id], div[id] { scroll-margin-top: 104px; }

/* Radio 0 en todas partes; 2 px sólo en controles interactivos (visual-identity.md) */
button, input, select { border-radius: 0; font: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ground);
  color: var(--graphite);
  padding: 12px 16px;
  font-size: 15px;
  line-height: 24px;
}
.skip-link:focus {
  left: 0;
  color: var(--graphite);
}

/* ---------------------------------------------------------------- tipografía */

.eyebrow,
.note,
.label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 19px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow { margin-bottom: 16px; }

/* Pie de un bloque (las tarjetas, la lista de fases). Las tarjetas tienen 28 px
   de padding inferior: por debajo de eso el pie lee como parte del bloque en vez
   de como nota al pie. 32 es el primer paso de la escala que lo despega. */
.note { margin-top: 32px; }
.on-light .eyebrow, .on-light .note, .on-light .label { color: var(--mist); }
.on-dark  .eyebrow, .on-dark  .note, .on-dark  .label { color: var(--chalk); }

.h1-display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--ground);
  text-wrap: pretty;
}

.h2-lg,
.h2-med {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  text-wrap: pretty;
}
.h2-lg  { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1;  letter-spacing: -.015em; }
.h2-med { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.14; letter-spacing: -.01em; }
.on-light .h2-lg, .on-light .h2-med { color: var(--graphite); }
.on-dark  .h2-lg, .on-dark  .h2-med { color: var(--ground); }

.body-lg { font-size: 18px; line-height: 29px; text-wrap: pretty; }
.body    { font-size: 15px; line-height: 24px; }
.on-light .body-lg, .on-light .body { color: var(--slate); }
.on-dark  .body-lg, .on-dark  .body { color: var(--chalk); }

.measure { max-width: 62ch; }

.rule-accent {
  height: 2px;
  width: 96px;
  background: var(--blueprint);
  transform-origin: left;
}

/* ---------------------------------------------------------------- estructura */

.section { padding: clamp(80px, 10vw, 128px) var(--gutter); }
.section--light { background: var(--ground); }
.section--dark  { background: var(--graphite); }
.container { max-width: 1200px; margin: 0 auto; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px 64px;
  align-items: start;
}

/* ------------------------------------------------------- barra de progreso */

.progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 50;
}
.progress-bar { height: 2px; width: 0%; background: var(--blueprint); }

/* ------------------------------------------------------------------ header */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(20px, 6vw, 120px);
  background: var(--graphite);
  border-bottom: 1px solid var(--edge);
}

.logo-link { display: block; line-height: 0; animation: k-fade .8s 2.2s both; }
.logo { width: 132px; height: auto; display: block; }

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  animation: k-fade-flat .8s 2.35s both;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  line-height: 24px;
  color: var(--chalk);
}
.nav a { color: var(--chalk); }
.nav a:hover { color: var(--ground); }

.lang-switch { display: flex; border: 1px solid var(--edge); flex: none; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: var(--chalk);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  cursor: pointer;
}
.lang-btn:hover { color: var(--ground); }
.lang-btn[aria-current='true'] { background: var(--blueprint); color: var(--ground); }

.burger {
  display: none;
  width: 44px; height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--edge);
  cursor: pointer;
  padding: 0;
}
.burger-bars { display: grid; gap: 5px; width: 18px; }
.burger-bars span { display: block; height: 1.5px; background: var(--ground); }

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  background: var(--graphite);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-top: 96px;
}

.hero-registry {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(48px, 7vh, 96px) var(--gutter);
}

.hero-copy { max-width: 60ch; }
.hero-copy .eyebrow { margin-bottom: 20px; animation: k-fade .8s 1.45s both; }
.hero-copy .rule-accent { animation: k-rule .7s 1.55s both var(--ease); margin-bottom: 28px; }
.hero-copy .h1-display { animation: k-fade 1s 1.65s both; }

.hero-body { margin: 32px 0 0; max-width: 58ch; animation: k-fade 1s 1.85s both; }
.hero-cta-wrap { margin: 32px 0 0; font-size: 18px; line-height: 29px; animation: k-fade 1s 2.05s both; }
.hero-cta {
  color: var(--ground);
  border-bottom: 2px solid var(--blueprint);
  padding-bottom: 3px;
}
.hero-cta:hover { color: var(--blueprint); }

.hero-symbol-wrap { display: flex; justify-content: center; align-items: center; }
.hero-symbol { width: 100%; max-width: 420px; height: auto; overflow: visible; }

.hero-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  padding: 0 var(--gutter) 32px;
  animation: k-fade .8s 2.5s both;
}
.hero-foot .label { color: var(--chalk); }

/* ---------------------------------------------------------- 02 · tarjetas */

.cards {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.card {
  background: var(--ground);
  border: 1px solid var(--graphite);
  padding: 20px 20px 28px;
}
.card:hover { background: var(--wash); }
.card--dark { background: var(--graphite); }
.card--dark:hover { background: var(--graphite); }

.card-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 12px;
}
.card--dark .card-label { color: var(--chalk); }

.card-value { font-size: 15px; line-height: 24px; font-weight: 500; color: var(--graphite); }
.card--dark .card-value { color: var(--ground); }

/* --------------------------------------------------- 03 · Business Units */

.units-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.units-head .h2-lg { max-width: 24ch; }

.tabs { display: flex; gap: 16px; align-items: center; }
.tab {
  height: 44px;
  padding: 0 20px;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--edge);
  color: var(--chalk);
}
.tab:hover { border-color: var(--ground); }
.tab[aria-selected='true'] {
  border-color: var(--blueprint);
  background: var(--blueprint);
  color: var(--ground);
}

.unit-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--edge);
  border: 1px solid var(--edge);
}
.unit-panel[hidden] { display: none; }

.unit-about { background: var(--panel); padding: 32px clamp(20px, 3vw, 40px) 40px; }
.unit-index { margin-bottom: 12px; }
.unit-name { margin: 0; font-size: 23px; line-height: 30px; font-weight: 600; color: var(--ground); }
.unit-tagline {
  margin: 8px 0 24px;
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 18px;
  line-height: 29px;
  color: var(--ground);
  border-left: 2px solid var(--blueprint);
  padding-left: 14px;
}
.unit-body { margin: 0; max-width: 52ch; }
.unit-method { margin-top: 24px; }

.unit-services { background: var(--graphite); padding: 32px clamp(20px, 3vw, 40px) 40px; }
.unit-services .label { margin-bottom: 16px; }
.services-list { margin: 0; padding: 0; list-style: none; display: grid; }
.service {
  border-top: 1px solid var(--edge);
  padding: 12px 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--chalk);
  display: flex;
  gap: 16px;
}
.service:hover { color: var(--ground); }
.service-n {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 24px;
  letter-spacing: .14em;
  color: var(--chalk);
}

/* ------------------------------------------------ 04 · Delivery Framework */

.framework-head { margin-bottom: 56px; }
.framework-head .h2-med { margin-bottom: 20px; max-width: 26ch; }
.framework-list { border-top: 2px solid var(--graphite); }

.fw-row {
  border-bottom: 1px solid var(--rule);
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(200px, .8fr) 2fr;
  gap: 24px;
  align-items: baseline;
}
.fw-row:hover { background: var(--wash); }
.fw-head { display: flex; gap: 16px; align-items: baseline; }
.fw-n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--blueprint);
}
.fw-phase { font-size: 18px; line-height: 29px; font-weight: 500; color: var(--graphite); }
.fw-stages { font-size: 15px; line-height: 24px; color: var(--slate); }

/* --------------------------------------------------- 05 · Diferenciador */

.problems { margin: 0; padding: 0; list-style: none; display: grid; border-bottom: 1px solid var(--edge); }
.problem {
  border-top: 1px solid var(--edge);
  padding: 16px 0;
  font-size: 18px;
  line-height: 29px;
  color: var(--chalk);
}
.problem:hover { color: var(--ground); }

/* ------------------------------------------------------- 06 · Clientes */

.client-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px 64px;
}
.client-label {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--graphite);
  padding-bottom: 8px;
}

/* ------------------------------------------------------- 07 · Contacto */

.contact {
  position: relative;
  background: var(--graphite);
  padding: clamp(80px, 10vw, 128px) var(--gutter) 48px;
  overflow: hidden;
}
.contact-ghost {
  position: absolute;
  right: -6%;
  top: 12%;
  width: min(46vw, 620px);
  height: auto;
  opacity: .06;
  pointer-events: none;
  will-change: transform;
}
.contact-inner { position: relative; }

.form-legend {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 8px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.field { display: grid; gap: 8px; }
.input, .select {
  height: 48px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--edge);
  color: var(--ground);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 24px;
  outline: none;
}
.input:focus, .select:focus { border-color: var(--blueprint); }
.select { appearance: none; background-image: none; }

/* Honeypot: invisible para personas, presente para bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn-primary {
  height: 48px;
  padding: 0 28px;
  background: var(--blueprint);
  border: none;
  color: var(--ground);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
}
.btn-primary:hover { background: var(--dark); }
.btn-primary:active { background: var(--deep); }
.btn-primary[disabled] { opacity: .6; cursor: default; }

.form-status { border-left: 2px solid var(--blueprint); padding: 16px 0 16px 16px; }
.form-status p { margin: 0; font-size: 18px; line-height: 29px; color: var(--ground); }
.form-status[hidden] { display: none; }
.form-status--error { border-left-color: var(--edge); }

/* Aviso simplificado. Va junto al formulario y en el pie, por handoff § 2.
   Ocupa el ancho completo de la retícula del formulario: es una declaración,
   no un campo. */
.privacy-short {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  max-width: 68ch;
  font-size: 15px;
  line-height: 24px;
  color: var(--chalk);
}
.privacy-short a { color: var(--ground); border-bottom: 1px solid var(--edge); }
.privacy-short a:hover { color: var(--blueprint); border-bottom-color: var(--blueprint); }

/* Marca de campo obligatorio. En Ground, no en Blueprint: seis asteriscos en
   azul agotarían el presupuesto de acento de la sección. */
.req {
  color: var(--ground);
  margin-left: 2px;
}

.required-note {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 19px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

/* Casilla de consentimiento. Sin premarcar y obligatoria: el navegador bloquea
   el envío si no se marca, y app.js no llega siquiera a construir el payload. */
.consent {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 24px;
  color: var(--chalk);
  cursor: pointer;
}
.consent input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--blueprint);
  cursor: pointer;
}
.consent a { color: var(--ground); border-bottom: 1px solid var(--blueprint); }
.consent a:hover { color: var(--blueprint); }

.site-footer {
  position: relative;
  max-width: 1200px;
  margin: clamp(64px, 9vw, 112px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--edge);
}
.site-footer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.site-footer img { width: 132px; height: auto; display: block; }
.privacy-short--footer { margin-top: 32px; color: var(--mist); }
.privacy-short--footer a { color: var(--chalk); }

/* --------------------------------------------- documento legal (/aviso...) */

.doc-body { background: var(--ground); color: var(--graphite); }

.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.doc-header img { width: 132px; height: auto; display: block; }
.doc-back { color: var(--mist); }
.doc-back:hover { color: var(--graphite); }

.doc { padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 9vw, 128px); }
/* Medida 62–74 caracteres (visual-identity.md § retícula). */
.doc-article { max-width: 72ch; margin: 0 auto; }

.doc-h1 {
  margin: 0 0 48px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--graphite);
}
.doc-h2 {
  margin: 48px 0 16px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 23px;
  line-height: 30px;
  color: var(--graphite);
  text-wrap: pretty;
}
.doc-p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 29px;
  color: var(--slate);
  text-wrap: pretty;
}
.doc-list { margin: 0 0 16px; padding: 0 0 0 20px; }
.doc-list li { margin-bottom: 8px; font-size: 18px; line-height: 29px; color: var(--slate); }
.doc-list li strong { color: var(--graphite); font-weight: 500; }
/* Los incisos llevan su propia letra: sin viñeta y sin sangría de lista. */
.doc-list--incisos { list-style: none; padding-left: 0; }
.doc-list--incisos li { margin-bottom: 4px; }
.doc-rule { margin: 48px 0 24px; border: 0; border-top: 1px solid var(--rule); }
.doc-article a { color: var(--blueprint); }
.doc-article a:hover { color: var(--dark); }
.doc-rule + .doc-p { font-family: var(--mono); font-size: 11px; line-height: 19px; letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }

/* ---------------------------------------------------------------- reveals */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal='left']  { transform: translateX(-28px); }
[data-reveal='right'] { transform: translateX(28px); }
[data-reveal='rule']  { opacity: 1; transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
[data-reveal].is-in   { opacity: 1; transform: none; }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-stagger].is-in > * { opacity: 1; transform: none; }

/* ------------------------------------------------------------- animaciones */

#kdatum, #kmember-1, #kmember-2, #kmember-3, #kmember-4, #kmember-5 { transform-box: view-box; }

#kdatum    { animation: k-datum 1.1s .1s  both var(--ease); }
#kmember-1 { animation: k-m1 1s .5s  both var(--ease); }
#kmember-2 { animation: k-m2 1s .64s both var(--ease); }
#kmember-3 { animation: k-m3 1s .78s both var(--ease); }
#kmember-4 { animation: k-m4 1s .92s both var(--ease); }
#kmember-5 { animation: k-m5 1.1s 1.06s both var(--ease); }

@keyframes k-datum { from { transform: translateY(2500px); } to { transform: none; } }
@keyframes k-m1 { from { transform: translate(1500px, -1100px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-m2 { from { transform: translate(-1700px, -500px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-m3 { from { transform: translate(-2100px, 260px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-m4 { from { transform: translate(1900px, 620px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-m5 { from { transform: translate(1700px, 1500px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes k-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes k-fade-flat { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-rise-s { from { transform: translateY(700px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-set { from { transform: translate(300px, -120px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ------------------------------------------------------------ breakpoints */

@media (max-width: 1180px) {
  .nav { gap: 20px; font-size: 14px; }
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-symbol { max-width: 300px; }
}

@media (max-width: 980px) {
  html { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }

  .hero-symbol { overflow: hidden; }
  .hero-copy .eyebrow,
  .hero-copy .rule-accent,
  .hero-copy .h1-display,
  .hero-body,
  .hero-cta-wrap,
  .hero-foot,
  .logo-link,
  .header-right { animation-delay: .12s; animation-duration: .6s; }

  #kdatum    { animation: k-rise-s .55s 0s   both var(--ease); }
  #kmember-1 { animation: k-set .5s  .16s both var(--ease); }
  #kmember-2 { animation: k-set .5s  .26s both var(--ease); }
  #kmember-3 { animation: k-set .5s  .36s both var(--ease); }
  #kmember-4 { animation: k-set .5s  .46s both var(--ease); }
  #kmember-5 { animation: k-set .55s .56s both var(--ease); }

  .logo { width: 104px; }
  .burger { display: flex; }

  .nav {
    display: none;
    position: fixed;
    top: var(--hdr-h, 72px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--graphite);
    border-bottom: 1px solid var(--edge);
    padding: 0 0 8px;
    font-size: 17px;
  }
  .nav.is-open { display: flex; }
  .nav > a { padding: 16px clamp(20px, 6vw, 120px); border-top: 1px solid var(--edge); }

  .hero { padding-top: calc(var(--hdr-h, 72px) + 32px); }
  section[id], div[id] { scroll-margin-top: calc(var(--hdr-h, 72px) + 8px); }

  .units-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .fw-row { grid-template-columns: 1fr; gap: 6px; }
  .hero-foot { flex-direction: column; gap: 8px; }
  .hero-symbol { max-width: 200px; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; padding-bottom: 40px; }
  .hero-symbol { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  #kdatum, #kmember-1, #kmember-2, #kmember-3, #kmember-4, #kmember-5,
  .logo-link, .header-right,
  .hero-copy .eyebrow, .hero-copy .rule-accent, .hero-copy .h1-display,
  .hero-body, .hero-cta-wrap, .hero-foot {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  [data-reveal], [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .contact-ghost, [data-parallax] { transform: none !important; }
  html { scroll-behavior: auto; }
}
