@font-face {
  font-family: "SkModernist";
  src: url("/static/assets/Sk-Modernist-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SkModernist";
  src: url("/static/assets/Sk-Modernist-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/static/assets/Figtree-VF.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bk-blue: #0a4255;
  --bk-blue-deep: #02151f;
  --bk-green: #00b77e;
  --bk-green-2: #3fe4b6;
  --bk-green-3: #67f3ca;
  --bk-ink: #03111a;
  --bk-light: #eaf7fb;
  --bk-soft: #9fc5d3;
  --bk-border: rgba(119, 186, 207, 0.25);
  --bk-border-strong: rgba(147, 216, 237, 0.4);
  /* El borde de lo acentuado (verde). Mismo caso que los `h3`: había cuatro
     verdes distintos marcando la misma idea —0,24 en el diálogo de IA, 0,28 en
     la píldora de precio, 0,31 en `.accent`, 0,35 en el botón sólido—. Este
     toma el valor de `.accent`, que ya vive en cinco páginas y por eso es el
     que no se puede mover. */
  --bk-border-accent: rgba(95, 235, 190, 0.31);
  --bk-glass: rgba(6, 24, 36, 0.74);
  /* El blanco de texto fuerte. Estaba escrito de siete formas
     —#eefbff #e3f8ff #e4fbff #e8fdff #e8fbff #effcff #e9fbff— para el mismo color. El token toma la
     más clara: colapsar hacia arriba sólo puede subir el contraste sobre
     fondo oscuro. */
  --tx-fuerte: #effcff;
  /* Los tres niveles de texto bajo el fuerte, más el tenue de la línea de
     fuente. Cada uno sale de un racimo perceptual (ΔE < 4) y toma el miembro
     más claro: sobre fondo oscuro aclarar sólo puede subir el contraste.
     Los racimos NO se juntan entre sí — son roles distintos, y fundirlos
     aplanaría la jerarquía en vez de ordenarla. */
  --tx-cuerpo: #b7d8e4;
  --tx-apagado: #87b9c9;
  --tx-claro: #d9eef6;
  --tx-tenue: #6fa6b8;

  /* POR QUÉ FALTAN DOS EN ESTA ESCALA, para quien venga a «terminarla».
     `#03271f` y `#042920` forman un racimo perceptual con los de arriba y aun
     así quedan fuera a propósito: son texto OSCURO sobre el degradado verde de
     los botones. La regla que hace segura esta fusión —dentro de un racimo
     gana el más claro, porque sobre fondo oscuro aclarar sube el contraste— se
     INVIERTE ahí: aclarar lo bajaría.
     Y la trampa general, que es lo que conviene llevarse: agrupar por distancia
     perceptual junta los colores que se parecen, NO los que están sobre el
     mismo fondo. Dos literales casi idénticos pueden vivir uno sobre oscuro y
     otro sobre claro, y la regla correcta para uno es la equivocada para el
     otro. Antes de fusionar un racimo hay que mirar sobre qué se pinta cada
     miembro, no sólo cuánto se parecen. */
  /* La superficie oscura, con escalones.
     Medido: este color aparece 67 veces en la hoja, con veinte opacidades y
     una docena de grafías de RGB entre (3,20,30) y (9,34,46) — un color que
     cada componente volvió a escribir. El RGB no se inventa: es el de
     `--bk-glass`, que ya estaba acá. Esta tanda convierte las doce
     declaraciones que viven SÓLO en páginas públicas; las que comparte el
     portal quedan sin tocar hasta coordinarlo con ese carril. */
  --sup-1: rgba(6, 24, 36, 0.58);
  --sup-2: rgba(6, 24, 36, 0.76);
  --sup-3: rgba(6, 24, 36, 0.88);
  --radius-xl: 28px;
  --radius-md: 18px;
  --shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.42);
  --shadow-card: 0 14px 34px rgba(0, 0, 0, 0.28);
  --shadow-button: 0 10px 26px rgba(0, 0, 0, 0.18);
  --space-section: clamp(1rem, 2vw, 1.5rem);
  --space-card: clamp(1rem, 1.8vw, 1.4rem);
  --shell-max: 1280px;
  --text-strong: #f2fbff;

  /* Escala tipográfica — medida, no inventada.
     Había tokens de radio y de sombra pero ninguno de tamaño, así que cada
     componente escribió su propio `rem` y la landing llegó a 23 tamaños
     distintos: trece `h3` repartidos entre 18,9 / 18,7 / 18,4 y cuatro valores
     de texto secundario en 0,6px de rango. A 0,2px nadie ve una jerarquía; ve
     una página ensamblada.
     Los pasos de abajo NO son un diseño nuevo: son los cuatro anclas que ya no
     se podían mover —`.eyebrow` y `.btn` están en diez páginas, el cuerpo a
     1rem en 49 elementos y `.section-head` en siete— más los intermedios a los
     que viajó todo lo exclusivo de la landing. Declararlos es lo que evita que
     el próximo componente vuelva a inventar el suyo. */
  --type-h2: clamp(1.25rem, 1.75vw, 1.6rem);
  /* Un paso entre el titular de sección y los de tarjeta. Existe por un caso
     concreto: el `h3` del spotlight es «BackUp Financial Intelligence Starter
     Kit» —el producto insignia— y vive DENTRO de #productos, debajo de su `h2`.
     Igualarlo al `h2` no es jerarquía, es jerarquía plana; bajarlo a `--type-h3`
     lo confunde con las etiquetas internas de la tarjeta. Abajo de 1024 colapsa
     contra `--type-h3` a propósito: con menos ancho, menos escalones. */
  --type-subhead: clamp(1.05rem, 1.45vw, 1.28rem);
  --type-h3: 1.17rem;
  --type-body: 1rem;
  --type-ui: 0.96rem;
  --type-small: 0.89rem;
  --type-micro: 0.7rem;
}

* {
  box-sizing: border-box;
}

/* Foco visible en todo control interactivo (UI_SPEC §5/§6: ring 2px visible,
   nunca outline:none sin reemplazo). :focus-visible no interfiere con el click. */
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--bk-green-2);
  outline-offset: 2px;
  border-radius: 6px;
}

/* [hidden] debe ganar a las clases con display propio (.section-block, .quote-result, etc.) */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "SkModernist", "Trebuchet MS", sans-serif;
  color: var(--bk-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  background:
    radial-gradient(1120px 620px at 95% -10%, rgba(41, 240, 185, 0.1), transparent 58%),
    radial-gradient(980px 560px at -12% 2%, rgba(10, 112, 150, 0.16), transparent 60%),
    linear-gradient(136deg, #020b13 0%, #041420 51%, #072132 100%);
}

.landing-body,
.portal-body {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}

/* Aquí vivía una trama de puntos de 3px al 9% de opacidad con
   `mix-blend-mode: soft-light`, fija sobre el viewport de las siete superficies
   `landing-body` y también del portal. No la listaba ningún inventario porque
   es un pseudo-elemento y `grep bg-grid` no la encuentra; se notó al verificar
   la 404, donde la página casi vacia la deja sin nada que la tape. */




.bg-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 154, 171, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 154, 171, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.35));
}

.bg-orb {
  position: fixed;
  z-index: -1;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(74px);
  opacity: 0.2;
  pointer-events: none;
  will-change: transform;
}

.bg-orb-a {
  background: #0fdf9e;
  top: -220px;
  right: -180px;
}

.bg-orb-b {
  background: #0a769f;
  bottom: -250px;
  left: -220px;
}

.shell {
  width: min(var(--shell-max), calc(100% - 2rem));
  margin-inline: auto;
}

.landing-main,
.portal-main {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.3rem);
}

.landing-main {
  padding-bottom: 1.5rem;
}

.portal-main {
  padding-bottom: 1.8rem;
}

.landing-main > .hero-grid,
.landing-main > .section-block,
.landing-main > .contact-strip,
.portal-main > .section-block,
.portal-main > .flow-nav {
  margin-top: 0;
}

.top-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.76rem 0.92rem;
  position: sticky;
  top: 0.45rem;
  z-index: 25;
  border: 1px solid rgba(141, 205, 224, 0.31);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(2, 14, 23, 0.9), rgba(3, 15, 25, 0.62));
  backdrop-filter: blur(18px) saturate(126%);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
}

.top-nav + .shell {
  padding-top: 0.36rem;
}

.brand img {
  width: clamp(130px, 16vw, 178px);
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(119, 186, 207, 0.42);
  background: var(--sup-2);
  color: var(--bk-light);
  border-radius: 11px;
  padding: 0.44rem 0.72rem;
  /* Target táctil mínimo 40px (UI_SPEC_BACKUP accesibilidad) */
  min-height: 40px;
  min-width: 40px;
  cursor: pointer;
  font: inherit;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-links a {
  color: var(--bk-light);
  text-decoration: none;
  font-size: 0.89rem;
  letter-spacing: 0.01em;
  opacity: 0.92;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 0.44rem 0.74rem;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--tx-fuerte);
  border-color: rgba(119, 186, 207, 0.32);
  background: var(--sup-2);
}

.nav-links a[aria-current="true"] {
  color: var(--tx-fuerte);
  border-color: rgba(148, 222, 245, 0.45);
  background: rgba(10, 39, 54, 0.82);
  box-shadow: inset 0 0 0 1px rgba(150, 230, 251, 0.15);
}

.nav-cta {
  justify-self: end;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 18px;
  font: inherit;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.1;
  cursor: pointer;
  padding: 0.78rem 1.08rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  transition: transform 0.2s ease, box-shadow 0.22s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-solid {
  background: linear-gradient(138deg, var(--bk-green-3), var(--bk-green));
  color: #03271f;
  border-color: rgba(169, 255, 227, 0.35);
  box-shadow: var(--shadow-button);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.035);
  color: var(--bk-light);
  border-color: rgba(142, 198, 216, 0.4);
}

.btn-outline:hover {
  border-color: var(--bk-border-strong);
  background: rgba(14, 40, 53, 0.7);
}

.btn-ghost {
  background: transparent;
  color: var(--bk-light);
  border-color: rgba(142, 198, 216, 0.18);
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: rgba(142, 198, 216, 0.38);
  background: rgba(14, 40, 53, 0.45);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 0.9rem;
  margin-top: 0;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0.32rem;
  min-height: 446px;
}

.card {
  border: 1px solid var(--bk-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(4, 25, 37, 0.95), rgba(4, 20, 30, 0.86));
  box-shadow: var(--shadow-card);
  padding: var(--space-card);
  position: relative;
  transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
  overflow: clip;
}

/* Aquí vivía `.card::before`: dos resplandores radiales en esquinas opuestas,
   al 9% y al 12%, sobre TODA tarjeta de ocho superficies — incluido el portal
   autenticado y /ops. Era la mayor reserva de decoración de la hoja: 27 de los
   36 gradientes en pseudo-elementos de `index.html` salían de esta sola regla.
   Decoración por UI_SPEC §9.

   `.card` conserva `position: relative`: lo usan hijos posicionados y quitarlo
   sería otro cambio. */

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(146, 216, 236, 0.42);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

.glass {
  backdrop-filter: blur(14px) saturate(118%);
}

.eyebrow {
  margin: 0;
  color: #9eeacf;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
}

.hero-copy h1,
.section-head h1,
.section-head h2,
.contact-strip h2,
.kpi-card h3,
.card h3,
.card h4 {
  font-family: "SkModernist", "Trebuchet MS", sans-serif;
  color: var(--text-strong);
  text-wrap: balance;
}

.hero-copy h1 {
  margin: 0.68rem 0 0.64rem;
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  max-width: 13ch;
}

.hero-copy .lead {
  max-width: 44rem;
}

.lead,
.muted,
.card p {
  color: var(--bk-soft);
  line-height: 1.55;
  margin: 0;
}

.hero-cta-row {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.hero-copy .hero-cta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.hero-copy .hero-cta-row .btn {
  width: 100%;
}

#contacto .hero-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  align-items: stretch;
  max-width: 760px;
  margin-inline: auto;
}

#contacto .hero-cta-row .btn {
  width: 100%;
}

.hero-cta-row.center {
  justify-content: center;
}









.token-rack {
  margin-top: 0.84rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: start;
}

.hero-layer-strip {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.58rem;
  padding-top: 0.96rem;
}

.hero-layer-strip article {
  border: 1px solid rgba(119, 186, 207, 0.24);
  border-radius: 16px;
  padding: 0.74rem 0.78rem;
  background: linear-gradient(156deg, var(--sup-3), var(--sup-1));
}

.hero-layer-strip strong {
  display: block;
  margin-top: 0.26rem;
  color: var(--tx-fuerte);
  font-size: 0.9rem;
  line-height: 1.28;
}

.token-rack span {
  border: 1px solid var(--bk-border);
  border-radius: 14px;
  padding: 0.36rem 0.64rem;
  font-size: 0.7rem;
  color: var(--tx-cuerpo);
  background: var(--sup-1);
}































.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 440px;
}

/* El `radial-gradient(circle at top right, rgba(66,224,184,.16))` que estaba
   aquí era un resplandor sobre el fondo del panel, no parte de él: el
   `linear-gradient` de abajo es la superficie, y el borde la delimita.
   Decoración por UI_SPEC §9, decidido el 2026-10-08.

   OJO AL APLICAR ESTO EN OTRA PARTE: el mismo patrón —un radial encima de un
   fondo sólido o lineal— está en otras cuatro reglas, tres de ellas en el
   portal autenticado (`#portal-overview`, las tarjetas de `#portal-resumen` y
   `#client-deliverables`, y `.portal-brief-card`). La quinta es `body`, que
   #313 declara sistema y se queda. Aplicar la regla al resto es una decisión de
   producto que no se ha tomado: está medida y propuesta, no ejecutada. */
.system-panel {
  padding: 1.2rem;
  display: grid;
  align-content: start;
  gap: 1rem;
  min-height: 100%;
  background: linear-gradient(180deg, rgba(4, 21, 31, 0.96), rgba(4, 23, 34, 0.82));
}

/* Aquí vivía `.system-panel::after`: una trama de líneas a 36px, al 8% de
   opacidad, sobre el panel del hero de index.html. Decoración por UI_SPEC §9,
   y de arrastre acotado: `.system-panel` solo se instancia en esa página.

   Las reglas de `z-index: 1` de abajo existían para que el contenido quedara
   por encima de esa capa. Se dejan: `.hero-side-rail` es `position: absolute`
   en otro punto de la hoja y cambiarlas sería adivinar.

   Lo que NO se retiró y es candidato: `.system-panel` conserva en su
   `background` un `radial-gradient(circle at top right, rgba(66,224,184,.16))`
   — un resplandor sobre el fondo del panel. Dónde termina la superficie y
   empieza la decoración es decisión de producto, no mía. */

.system-panel-head,
.system-grid,
.system-timeline,
.hero-side-rail {
  position: relative;
  z-index: 1;
}













































.signal-card {
  border: 1px solid rgba(136, 205, 224, 0.22);
  border-radius: 18px;
  padding: 0.78rem;
  background: linear-gradient(165deg, rgba(7, 30, 44, 0.78), rgba(3, 18, 27, 0.68));
  backdrop-filter: blur(10px);
}

.signal-card span {
  display: block;
  color: #8ec5d5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}

.signal-card strong {
  display: block;
  margin-top: 0.28rem;
  color: #effcff;
  font-family: "SkModernist", "Trebuchet MS", sans-serif;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.signal-card p {
  margin-top: 0.32rem;
  color: #b4d8e5;
  font-size: 0.79rem;
}























.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.04) brightness(0.78);
}

.hero-grid-expanded .hero-visual {
  min-height: 446px;
}










.system-panel .hero-side-rail {
  position: static;
  top: auto;
  right: auto;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}










.matrix-card p {
  margin: 0;
  color: var(--tx-apagado);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.matrix-card strong {
  display: block;
  margin-top: 0.26rem;
  color: var(--tx-fuerte);
  font-family: "Figtree", sans-serif;
  font-size: 1rem;
  line-height: 1.08;
}

















.stack-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.stack-form label {
  display: grid;
  gap: 0.36rem;
  color: #d9edf6;
  font-size: 0.94rem;
}

.stack-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stack-form input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--bk-green);
}

input,
select {
  border: 1px solid rgba(145, 206, 225, 0.31);
  background: rgba(5, 24, 36, 0.92);
  color: var(--bk-light);
  font: inherit;
  border-radius: 13px;
  padding: 0.66rem 0.78rem;
}

textarea {
  border: 1px solid rgba(145, 206, 225, 0.31);
  background: rgba(5, 24, 36, 0.92);
  color: var(--bk-light);
  font: inherit;
  border-radius: 13px;
  padding: 0.66rem 0.78rem;
  resize: vertical;
  min-height: 82px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(0, 183, 126, 0.45);
  outline-offset: 1px;
}

.tiny {
  font-size: 0.82rem;
}

.status-text {
  min-height: 1.2rem;
  margin: 0.4rem 0 0;
  color: #8bf4c8;
}

.section-block {
  margin-top: var(--space-section);
  padding: var(--space-card);
  border: 1px solid rgba(116, 185, 206, 0.19);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(3, 22, 33, 0.58), rgba(3, 20, 30, 0.28));
  box-shadow: inset 0 1px 0 rgba(187, 236, 252, 0.04);
  position: relative;
  overflow: clip;
  display: grid;
  gap: 1rem;
}

/* Aquí vivía `.section-block::before`: un resplandor radial al 7% en la esquina
   superior derecha de cada bloque de sección, en seis superficies. La regla de
   abajo, `.section-block > * { position: relative }`, existía para que el
   contenido quedara encima; se deja porque otros estilos pueden depender de
   ella y cambiarla sería adivinar. */

.section-block > * {
  position: relative;
}

/* Las secciónes son grid items de .landing-main/.portal-main: sin esto, el
   min-content interno (tablas, grids con mínimos en px) ensancha la columna
   del main y toda la página desborda en 375px. El scroll de contenido ancho
   pertenece a .table-scroll, no al documento. */
.landing-main > .section-block,
.portal-main > .section-block {
  min-width: 0;
}

/* Mismo principio un nivel adentro: los cards son grid items y su min-content
   (formularios, tablas envueltas en .table-scroll) no debe ensanchar el grid. */
.card-grid > * {
  min-width: 0;
}

/* Error de período: visible y accionable, nunca texto tiny enterrado. */
.period-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(255, 138, 155, 0.45);
  border-radius: 12px;
  background: rgba(122, 28, 42, 0.28);
  color: #ffd7dd;
  font-size: 0.85rem;
}

.period-error .period-retry {
  min-height: 40px;
  padding: 0.35rem 0.85rem;
}

/* Fuente financiera (UI_SPEC §3): IBM Plex Mono autohospedada para toda cifra
   comparable. SkModernist no tiene dígitos tabulares (la declaración
   tabular-nums era inerte); Plex Mono es mono, así que los valores no bailan
   al cambiar de período. Adelanto aprobado de la migración Fase 1b. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/assets/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/static/assets/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Dos superficies que publican cifras comparables y no estaban en esta lista,
   medidas sobre `web/portal.js` el 2026-10-07:

   - `.highlight-pill strong`: las tres píldoras de gobierno ($349,3M del
     ingreso, $158,3M de caja, $67,4M de rentabilidad) se leen una al lado de
     otra, que es justo el caso que la fuente financiera resuelve.
   - `.ranking-item p`: los montos de los tres rankings, que se leen en columna
     y de arriba abajo.

   No se agregó `.highlight-note`, que también lleva una cifra: va dentro de una
   frase ("Caja neta del mes: $X") y ahí el mono rompe la lectura del texto. La
   regla es para cifras que se comparan entre sí, no para toda cifra. */
.hero-kpi-value,
.hero-kpi-sub,
.kpi-value,
.metric-pill strong,
.highlight-pill strong,
.ranking-item p,
.table th,
.table td,
.plan-price,
.simulator-stat-grid strong {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums lining-nums;
}

.hero-kpi-value,
.metric-pill strong,
.plan-price,
.simulator-stat-grid strong {
  font-weight: 600;
}

.section-head {
  margin-bottom: 0;
  display: grid;
  gap: 0.22rem;
}

.section-head h1,
.section-head h2 {
  margin: 0.48rem 0 0;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-size: clamp(1.38rem, 2.55vw, 2.28rem);
  max-width: 30ch;
}

.section-title-sm {
  margin: 0.42rem 0 0.6rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-size: 1.3rem;
}

.section-head .lead {
  max-width: 48rem;
}

.card-grid {
  display: grid;
  gap: 0.75rem;
}



.flow-nav {
  margin-top: 1rem;
  padding: 0.76rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  border-color: rgba(121, 192, 213, 0.28);
  background: linear-gradient(160deg, rgba(4, 25, 36, 0.78), rgba(4, 20, 30, 0.46));
  border-radius: 22px;
}

.flow-link {
  text-decoration: none;
  color: #d7edf6;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.52rem 0.76rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 14px;
  border: 1px solid rgba(130, 194, 214, 0.28);
  background: rgba(6, 28, 40, 0.62);
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.flow-link:hover,
.flow-link:focus-visible {
  color: #f0fcff;
  border-color: rgba(152, 225, 248, 0.44);
  background: rgba(10, 39, 54, 0.8);
}

.flow-link.is-active {
  color: #03271f;
  border-color: rgba(169, 255, 227, 0.45);
  background: linear-gradient(138deg, var(--bk-green-3), var(--bk-green));
  box-shadow: 0 10px 22px rgba(0, 193, 133, 0.26);
}


@keyframes sectionJumpPulse {
  0% {
    box-shadow: 0 0 0 rgba(89, 243, 195, 0);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(89, 243, 195, 0.24);
  }
  100% {
    box-shadow: 0 0 0 rgba(89, 243, 195, 0);
  }
}

.portal-period-controls {
  margin: 0.7rem 0 0.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 0.6rem;
}

.period-field {
  display: grid;
  gap: 0.24rem;
}

.period-field label {
  color: #a7cedb;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.period-field select {
  width: 100%;
}





.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}





.feature-list,
.bullet-stack {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: #c0dfe9;
  display: grid;
  gap: 0.42rem;
}

.accent {
  border-color: rgba(95, 235, 190, 0.31);
  background: linear-gradient(158deg, rgba(4, 39, 40, 0.95), rgba(3, 30, 31, 0.72));
}












.flow-step {
  min-height: 100%;
  padding: 0.86rem;
  display: grid;
  align-content: start;
  gap: 0.34rem;
}

.flow-step h3 {
  margin: 0.1rem 0 0;
  font-size: 1.22rem;
}

.assistant-grid,
.operation-grid {
  align-items: stretch;
}

.assistant-card,
.operation-card {
  min-height: 100%;
  display: grid;
  align-content: start;
  gap: 0.58rem;
}

.assistant-card h3,
.operation-card h3 {
  margin: 0;
  font-size: 1.17rem;
  letter-spacing: -0.03em;
}

.assistant-link {
  margin-top: 0.16rem;
  width: fit-content;
}

.product-spotlight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.86rem;
  align-items: stretch;
}

.product-spotlight-copy,
.product-support-stack {
  min-width: 0;
}

.product-spotlight h3 {
  margin: 0.44rem 0 0.5rem;
  font-size: var(--type-subhead);
  line-height: 1.02;
}

.pricing-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0.1rem;
}

.pricing-pill,
.pricing-note {
  border-radius: 14px;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--bk-border-accent);
}

.pricing-pill {
  background: linear-gradient(138deg, var(--bk-green-3), var(--bk-green));
  color: #03271f;
  font-weight: 700;
}

.pricing-note {
  color: #d5f4e8;
  background: rgba(4, 31, 32, 0.62);
  font-size: 0.89rem;
}

.product-support-stack {
  display: grid;
  align-content: start;
  gap: 0.72rem;
}

.matrix-card {
  border: 1px solid var(--bk-border);
  border-radius: 18px;
  padding: 0.88rem;
  background: var(--sup-2);
}

.matrix-card strong {
  font-size: 1.17rem;
}

.matrix-note {
  display: block;
  margin-top: 0.24rem;
  color: #8fe0c2;
  font-size: var(--type-micro);
}

.product-lane {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.72rem;
}

.product-mini-card h3 {
  margin: 0.38rem 0 0.18rem;
  font-size: 1.17rem;
  letter-spacing: -0.03em;
}





.baku-card {
  min-height: 100%;
}

















.platform-flow {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.72rem;
}

.platform-flow article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.68rem;
  align-items: start;
  border: 1px solid rgba(119, 186, 207, 0.22);
  border-radius: 15px;
  padding: 0.74rem;
  background: var(--sup-2);
}

.platform-flow p {
  overflow-wrap: anywhere;
}

.platform-flow span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-weight: 700;
  color: #042920;
  background: linear-gradient(138deg, var(--bk-green-3), var(--bk-green));
}

.platform-flow strong {
  display: block;
  color: var(--tx-fuerte);
  margin-bottom: 0.2rem;
}


















.section-note {
  margin-top: 0.9rem;
}

.baku-transcript {
  display: grid;
  gap: 0.72rem;
  align-content: start;
}

.dialog-line {
  border: 1px solid var(--bk-border);
  border-radius: 18px;
  padding: 0.84rem 0.88rem;
  background: var(--sup-2);
}

.dialog-line span {
  display: block;
  margin-bottom: 0.3rem;
  color: #8ec5d5;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dialog-line p {
  color: var(--tx-claro);
}

.dialog-line.ai {
  border-color: var(--bk-border-accent);
  background: rgba(4, 38, 38, 0.72);
}

.dialog-line.soft {
  background: var(--sup-1);
}
































.mission-list {
  display: grid;
  gap: 0.68rem;
}

.mission-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid var(--bk-border);
  border-radius: 14px;
  padding: 0.72rem;
  background: var(--sup-2);
}

.mission-item h4 {
  margin: 0;
  font-size: 0.96rem;
}

.mission-item p {
  margin: 0.35rem 0 0;
}

/* La opacidad es deliberada: `c2f9987` (2026-04-17) la bajó a 0.7 «para no
   competir visualmente». Se conserva la intención y se corrige el número,
   porque a 0.7 el texto quedaba **bajo AA**.

   Medido el 2026-10-13, componiendo alfa y opacidad contra el fondo real
   —`body` pinta su color en un gradiente, así que ningún ancestro tiene
   `background-color` opaco y un medidor que lo busque cae a blanco—:

     opacidad   peor contraste (extremo oscuro del gradiente)
       0.70        4.37   ← bajo el umbral de 4.5
       0.75        4.81
       0.80        5.28   ← elegido
       1.00        7.45

   Son 11,52 px en peso 700: no califica como texto grande, así que el umbral
   es 4.5 y no 3.0. Cinco insignias en dos páginas públicas (`index.html` y
   `simulators.html`) estaban debajo.

   POR QUÉ NO SE OSCURECIÓ EL TEXTO, que era la otra salida: llevar `#03271f`
   a `rgb(3,34,26)` da 4.52 y pasa por 0.02. Pero **la opacidad pone un techo**
   —con el texto en negro puro, a 0.7 el máximo posible es 5.35—, así que
   oscurecer el texto trabaja contra ese techo en vez de moverlo. Y `#03271f`
   aparece en otras cinco reglas de esta hoja: cambiarlo sólo aquí forkea un
   valor de marca para ganar dos centésimas. */
.mission-badge {
  align-self: center;
  border-radius: 999px;
  /* Se queda en 0.72rem: `portal.js:3384` lo usa para el chip «+N XP» del
     portal, y el encargo acota lo nuevo a la landing. El paso a la escala va
     abajo, acotado a `.landing-body`. */
  font-size: 0.72rem;
  font-weight: 700;
  color: #03271f;
  background: linear-gradient(135deg, #56f2c2, #12c991);
  padding: 0.36rem 0.58rem;
  white-space: nowrap;
  opacity: 0.8;
}

.provenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.62rem;
  margin-top: 0.4rem;
  white-space: nowrap;
  border: 1px solid transparent;
}

.provenance-badge[hidden] {
  display: none;
}

/* Los colores anteriores (#056a52, #8a6410) son de la paleta para fondo CLARO
   y el badge vive sobre la tarjeta oscura del hero: daban 2,4:1 y 3,0:1. Estos
   superan 9:1 contra el mismo fondo. */
.provenance-badge.is-audited {
  color: #3fe4b6;
  background: rgba(0, 183, 126, 0.12);
  border-color: rgba(0, 183, 126, 0.45);
}

.provenance-badge.is-agent {
  color: #f8c85f;
  background: rgba(227, 167, 42, 0.14);
  border-color: rgba(227, 167, 42, 0.5);
}

.provenance-badge.is-derived {
  color: var(--bk-soft);
  background: var(--bk-border);
  border-color: var(--bk-border-strong);
}

/* Tercer estado del canon: la ausencia de declaración no es un dato
   preliminar, así que no comparte el ámbar. Borde punteado = no declarado. */
.provenance-badge.is-undeclared {
  color: #9fc5d3;
  background: rgba(159, 197, 211, 0.1);
  border-color: rgba(159, 197, 211, 0.45);
  border-style: dashed;
}

.ai-provenance-warning {
  color: #8a6410;
  background: rgba(227, 167, 42, 0.14);
  border: 1px solid rgba(227, 167, 42, 0.5);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

@media (max-width: 480px) {
  .provenance-badge {
    white-space: normal;
    text-align: left;
  }
}



























.contact-strip {
  margin-bottom: 0;
  display: grid;
  gap: 0.72rem;
  text-align: center;
  padding-block: 1.5rem;
  align-items: center;
}

.contact-strip h2,
.contact-strip p {
  max-width: 58rem;
  margin-inline: auto;
}





.portal-user-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
  width: 100%;
}

.portal-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.portal-user-name {
  margin: 0;
  font-weight: 700;
}

.portal-user-company {
  margin: 0;
  color: var(--bk-soft);
  font-size: 0.92rem;
}

.kpi-card {
  border: 1px solid rgba(145, 203, 221, 0.27);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(6, 32, 45, 0.95), rgba(3, 20, 31, 0.86));
  padding: 0.88rem;
  box-shadow: inset 0 1px 0 rgba(206, 242, 255, 0.04);
}

.compact-grid .kpi-card {
  padding: 0.7rem;
}

.kpi-card h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  color: #8eb8c7;
}

.kpi-value {
  margin-top: 0.28rem;
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.compact-grid .kpi-value {
  font-size: 1.2rem;
}

.kpi-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #8fbccc;
  font-weight: 700;
}

.kpi-helper {
  margin: 0.42rem 0 0;
  color: #afd2de;
  line-height: 1.42;
  font-size: 0.87rem;
}

.financial-card.negative .kpi-value {
  color: #ff8f95;
}

.financial-card.positive .kpi-value {
  color: #76f1c4;
}

.kpi-delta {
  display: inline-block;
  margin: 0.28rem 0 0.12rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
}

.delta-up {
  color: #042e22;
  background: linear-gradient(135deg, #6ef5c4, #28d494);
}

.delta-down {
  color: #3a0810;
  background: linear-gradient(135deg, #ffb3ba, #ff6b7a);
}

.report-governance {
  margin-top: 0.58rem;
}








.highlight-pill {
  border: 1px solid rgba(137, 206, 224, 0.29);
  border-radius: 16px;
  background: rgba(5, 26, 37, 0.82);
  padding: 0.75rem;
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-height: 132px;
}

.highlight-pill .eyebrow {
  font-size: 0.62rem;
  margin-bottom: 0.24rem;
}

.highlight-pill strong {
  display: block;
  color: #ddf2f9;
  font-size: 0.92rem;
  line-height: 1.28;
}

.highlight-note {
  margin: 0.28rem 0 0;
  color: #97c3d3;
  font-size: 0.77rem;
  line-height: 1.38;
}

.traffic-card {
  position: relative;
  overflow: hidden;
}

.traffic-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  opacity: 0.95;
}

.traffic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}










.traffic-tone {
  margin: 0.5rem 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.traffic-green {
  border-color: rgba(85, 227, 166, 0.34);
}

.traffic-green::after {
  background: linear-gradient(90deg, rgba(32, 218, 137, 0.2), #2be3a6);
}

.traffic-green .traffic-pill {
  color: #043023;
  background: linear-gradient(135deg, #50f4be, #1fd190);
}

.traffic-green .traffic-tone {
  color: #74f0c8;
}

.traffic-yellow {
  border-color: rgba(248, 200, 95, 0.34);
}

.traffic-yellow::after {
  background: linear-gradient(90deg, rgba(248, 195, 71, 0.2), #f8c24c);
}

.traffic-yellow .traffic-pill {
  color: #2f2100;
  background: linear-gradient(135deg, #ffd36d, #f8b737);
}

.traffic-yellow .traffic-tone {
  color: #ffe49a;
}

.traffic-yellow .kpi-title {
  color: #ffe4a0;
}

.traffic-yellow .kpi-helper {
  color: #ffd98a;
}

.traffic-red {
  border-color: rgba(244, 116, 128, 0.34);
}

.traffic-red::after {
  background: linear-gradient(90deg, rgba(245, 104, 123, 0.2), #fa7282);
}

.traffic-red .traffic-pill {
  color: #350b16;
  background: linear-gradient(135deg, #ff9aa5, #ff6f82);
}

.traffic-red .traffic-tone {
  color: #ffc8cf;
}

.traffic-red .kpi-title {
  color: #ffbcc4;
}

.traffic-red .kpi-helper {
  color: #ffb4bc;
}

.traffic-neutral {
  border-color: rgba(158, 190, 200, 0.3);
}

.traffic-neutral::after {
  background: linear-gradient(90deg, rgba(130, 159, 176, 0.2), #8fa9b7);
}

.traffic-neutral .traffic-pill {
  color: #0c2733;
  background: linear-gradient(135deg, #b3c8d2, #8ba7b4);
}

.traffic-neutral .traffic-tone {
  color: #d3e6ee;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: stretch;
}

.inline-form input {
  min-height: 54px;
}

.ai-answer {
  margin-top: 0.85rem;
  color: #d3edf6;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.ai-answer-shell {
  border: 1px solid rgba(140, 202, 220, 0.24);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(6, 30, 43, 0.9), rgba(4, 22, 31, 0.78));
  padding: 0.88rem;
}

.ai-answer-shell > p {
  margin: 0;
}

.ai-answer-header {
  margin: 0 0 0.72rem;
  color: #96cfd8;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ai-answer-reading {
  margin-bottom: 0.78rem;
}

.ai-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.62rem;
}

.ai-answer-card {
  border: 1px solid rgba(133, 195, 214, 0.24);
  border-radius: 14px;
  background: rgba(5, 24, 35, 0.78);
  padding: 0.72rem;
}

.ai-answer-card span {
  display: block;
  color: #8fdcc4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  font-weight: 700;
}

.ai-answer-card strong {
  display: block;
  margin-top: 0.28rem;
  color: #eefaff;
  font-size: 0.9rem;
  line-height: 1.42;
}

.ai-answer-card.emphasis {
  background: linear-gradient(145deg, rgba(6, 40, 49, 0.92), rgba(4, 26, 34, 0.82));
  border-color: rgba(81, 235, 187, 0.28);
}

.ai-answer-extra {
  margin-top: 0.72rem;
  display: grid;
  gap: 0.36rem;
}

.ai-answer-extra p {
  margin: 0;
  color: #a8cfdb;
  font-size: 0.83rem;
}

.metrics-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.62rem;
  margin-bottom: 0.78rem;
}

.metric-pill {
  border: 1px solid rgba(141, 198, 218, 0.24);
  border-radius: 16px;
  padding: 0.62rem;
  background: rgba(5, 28, 40, 0.8);
}

.metric-pill strong {
  display: block;
  font-size: 1.03rem;
  margin-top: 0.2rem;
}







.intranet-guide {
  display: grid;
  gap: 0.8rem;
}

.ops-stage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ops-stage-btn {
  border: 1px solid rgba(141, 198, 218, 0.24);
  background: rgba(7, 31, 43, 0.72);
  color: #d8edf5;
  border-radius: 999px;
  padding: 0.58rem 0.86rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ops-stage-btn:hover {
  background: rgba(18, 55, 70, 0.88);
  border-color: rgba(141, 198, 218, 0.35);
  transform: translateY(-1px);
}

.ops-stage-btn.active {
  background: linear-gradient(135deg, rgba(14, 117, 89, 0.95), rgba(6, 71, 91, 0.95));
  border-color: rgba(118, 231, 194, 0.45);
  color: #f2fffb;
}

.table-scroll {
  overflow: auto;
  margin-top: 0.55rem;
}




.client-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.client-logo-card {
  border: 1px solid rgba(119, 186, 207, 0.24);
  border-radius: 18px;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: var(--sup-2);
}

.client-logo-card img {
  max-width: 100%;
  max-height: 38px;
  object-fit: contain;
  filter: brightness(1.06) saturate(0.98);
}

.client-logo-card.text-only span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--tx-fuerte);
}

.quote-detail-card {
  min-height: 100%;
}


@media (max-width: 768px) {
}




#client-deliverables .card-grid.two-col {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
}

#client-deliverables .card:first-child {
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

#client-deliverables .hero-cta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
}

#client-deliverables .hero-cta-row .btn {
  width: 100%;
}


.client-summary-panel {
  width: 100%;
  min-height: 0;
  border: 1px solid rgba(143, 200, 220, 0.3);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(6, 29, 42, 0.98), rgba(3, 21, 31, 0.96));
  padding: 0.62rem;
  overflow: hidden;
}

.summary-layout {
  display: grid;
  gap: 0.58rem;
}

.summary-layout.compact {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.summary-layout.premium {
  gap: 0.72rem;
}

.summary-section {
  border: 1px solid rgba(129, 195, 214, 0.28);
  border-radius: 12px;
  background: rgba(6, 30, 42, 0.76);
  padding: 0.62rem;
  min-width: 0;
  overflow: hidden;
  align-self: start;
}

.summary-section.span-12 {
  grid-column: span 12;
}

.summary-section.span-7 {
  grid-column: span 7;
}

.summary-section.span-6 {
  grid-column: span 6;
}

.summary-section.span-5 {
  grid-column: span 5;
}

.summary-section.span-4 {
  grid-column: span 4;
}

.summary-section h3 {
  margin: 0.34rem 0 0;
  font-size: 1rem;
}

.summary-hero-block h3 {
  line-height: 1.04;
  font-size: 1.18rem;
}

.story-bullet-list {
  margin: 0.72rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.42rem;
  color: #d3ebf5;
}

.story-bullet-list li {
  line-height: 1.45;
}

.summary-callout {
  margin-top: 0.8rem;
  border: 1px solid rgba(132, 198, 216, 0.28);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(5, 34, 46, 0.9), rgba(4, 24, 34, 0.74));
  padding: 0.74rem 0.8rem;
}

.summary-callout span {
  display: block;
  color: #8fdcc4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  font-weight: 700;
}

.summary-callout strong {
  display: block;
  margin-top: 0.28rem;
  color: #eefbff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.summary-callout p {
  margin: 0.28rem 0 0;
  color: #99c3d1;
  font-size: 0.82rem;
  line-height: 1.4;
}

.summary-grid {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}

.summary-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.summary-metrics-tight {
  margin-bottom: 0.64rem;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.44rem;
}

.ranking-item {
  border: 1px solid rgba(131, 191, 210, 0.24);
  border-radius: 11px;
  background: rgba(3, 19, 29, 0.68);
  padding: 0.5rem 0.56rem;
}

.ranking-item strong {
  display: block;
  color: #e6f7fc;
  font-size: 0.84rem;
  line-height: 1.3;
}

.ranking-item p {
  margin: 0.18rem 0 0;
  color: #9fc9d6;
  font-size: 0.79rem;
}

.summary-grid li {
  border: 1px solid rgba(136, 191, 208, 0.25);
  border-radius: 10px;
  padding: 0.42rem 0.5rem;
  background: rgba(3, 19, 29, 0.72);
}

.summary-grid span {
  display: block;
  color: #89b7c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.64rem;
  margin-bottom: 0.22rem;
}

.summary-grid strong {
  font-size: 0.79rem;
  color: #d8edf5;
  overflow-wrap: anywhere;
  word-break: normal;
}

.summary-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.38rem;
}

.summary-list-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  border: 1px solid rgba(130, 191, 210, 0.25);
  border-radius: 10px;
  padding: 0.48rem 0.54rem;
  background: rgba(3, 19, 29, 0.7);
  min-width: 0;
}

.summary-list-item > div {
  min-width: 0;
  flex: 1 1 auto;
}

.summary-list-item strong {
  display: block;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-list-item p {
  margin: 0.16rem 0 0;
  font-size: 0.8rem;
  color: #a4cbda;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.summary-list-item.compact strong {
  font-size: 0.84rem;
}

.summary-control-grid {
  margin-top: 0.58rem;
  display: grid;
  gap: 0.58rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.summary-status-row {
  margin-top: 0.52rem;
  display: grid;
  gap: 0.32rem;
}

.summary-control-grid .benchmark-card {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  overflow: hidden;
  min-width: 0;
}

.benchmark-card .summary-status {
  white-space: normal;
  word-break: break-word;
  border-radius: 8px;
}

.summary-control-grid .summary-list {
  margin-top: 0.32rem;
}

.summary-list.legal-doc-list {
  gap: 0.5rem;
}

.legal-doc-row {
  align-items: center;
  gap: 0.9rem;
  padding: 0.68rem 0.74rem;
}

.legal-doc-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.legal-doc-copy strong {
  font-size: 0.88rem;
}

.legal-doc-copy p {
  margin: 0;
  font-size: 0.76rem;
  color: #a4cbda;
  line-height: 1.38;
}

.legal-doc-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.12rem;
}

.legal-doc-row .btn,
.legal-doc-button {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 88px;
  padding-inline: 0.8rem;
  min-height: 38px;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .legal-doc-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-doc-row .btn,
  .legal-doc-row .summary-status {
    width: 100%;
    justify-content: center;
  }
}











































































.summary-chip.compact strong {
  font-size: 0.78rem;
}

.summary-status {
  border-radius: 999px;
  padding: 0.19rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

.summary-status.status-ok {
  color: #033325;
  background: linear-gradient(135deg, #81f7d1, #35ce9b);
}

.summary-status.status-risk {
  color: #421509;
  background: linear-gradient(135deg, #ffbd96, #fb8657);
}

.summary-status.status-pending {
  color: #0d2a37;
  background: linear-gradient(135deg, #bfd9e4, #92b7c4);
}








.benchmark-card {
  border: 1px solid rgba(130, 192, 211, 0.26);
  border-radius: 10px;
  background: rgba(3, 20, 30, 0.72);
  padding: 0.46rem;
}

.benchmark-card .kpi-value {
  font-size: 1rem;
}

.benchmark-card .kpi-helper {
  font-size: 0.78rem;
}

.risk-stack,
.action-stack {
  margin-top: 0.58rem;
  display: grid;
  gap: 0.4rem;
}

.plan-details {
  margin-top: 0.3rem;
}
/* `display: flex` con `min-height` lleva el área táctil a los 40px del canon
   sin tocar el tamaño de letra: medía 28px de alto, y es el control que abre
   el resto del plan en una pantalla que se usa con el pulgar. */
.plan-details > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.8rem;
  /* --bk-blue (#0a4255) es el azul de marca para fondos CLAROS: sobre la
     tarjeta oscura daba 1,63:1. El verde de acento sobre #041925 supera 4,5:1
     y es el color que el resto del portal ya usa para acciones. */
  color: var(--bk-green-2);
  padding: 0.3rem 0;
  list-style: none;
  user-select: none;
}
.plan-details > summary::-webkit-details-marker { display: none; }
.plan-details > summary::before {
  content: "▶ ";
  font-size: 0.65rem;
  opacity: 0.7;
}
.plan-details[open] > summary::before { content: "▼ "; }
.plan-details > summary:hover { color: var(--bk-green); }

.risk-item,
.action-item {
  border: 1px solid rgba(131, 194, 213, 0.25);
  border-radius: 12px;
  background: rgba(4, 25, 36, 0.84);
  padding: 0.56rem;
}

.risk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.risk-priority {
  border-radius: 999px;
  padding: 0.18rem 0.46rem;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.risk-high .risk-priority {
  color: #330c14;
  background: linear-gradient(135deg, #ffa4ad, #ff7384);
}

.risk-medium .risk-priority {
  color: #3a2805;
  background: linear-gradient(135deg, #ffe09b, #f9c55f);
}

.risk-low .risk-priority {
  color: #082a20;
  background: linear-gradient(135deg, #7ff3cd, #33cc98);
}

.risk-text {
  margin: 0.25rem 0 0;
  color: #d8edf5;
  line-height: 1.38;
  font-size: 0.88rem;
}

.risk-note {
  margin: 0.22rem 0 0;
  color: #9ec6d3;
  line-height: 1.35;
  font-size: 0.77rem;
}

/* El chip de XP era hermano horizontal del texto y le quitaba 63px de 210.
   Ahora vive en la cabecera de la tarjeta, junto al título del capítulo —el
   mismo patrón que `.risk-head` usa al lado— y el texto de la acción se queda
   con el ancho completo. */
.action-item {
  display: grid;
  gap: 0.3rem;
}

.action-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.action-head .kpi-title {
  min-width: 0;
}

.three-col .card h2 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.three-col .card .muted {
  margin-bottom: 0.55rem;
}

.baku-suggested {
  margin-top: 0.72rem;
}

/* Empty state reutilizable */
.empty-state {
  display: grid;
  place-items: center;
  gap: 0.52rem;
  padding: 2rem 1rem;
  text-align: center;
}

.empty-state-icon {
  width: 40px;
  height: 40px;
  color: #4a8fa3;
}

.empty-state-message {
  margin: 0;
  color: #9fc5d3;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 36ch;
}

.empty-state-hint {
  margin: 0;
  color: #6a9aaa;
  font-size: 0.8rem;
  line-height: 1.4;
  max-width: 40ch;
}

/* BAKU loading state */
.baku-loading {
  display: flex;
  align-items: center;
  gap: 0.88rem;
}

.baku-dots {
  display: flex;
  gap: 0.38rem;
  flex-shrink: 0;
}

.baku-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bk-green-2);
  animation: bakuDotPulse 1.2s ease-in-out infinite;
}

.baku-dots span:nth-child(2) { animation-delay: 0.2s; }
.baku-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bakuDotPulse {
  0%, 80%, 100% { opacity: 0.22; transform: scale(0.85); }
  40%           { opacity: 1;    transform: scale(1);    }
}

.baku-loading-text {
  margin: 0;
  color: #9fd8c8;
  font-size: 0.9rem;
  font-style: italic;
}

/* BAKU error state */
.baku-error {
  border-color: rgba(244, 116, 128, 0.32) !important;
  background: linear-gradient(155deg, rgba(40, 8, 14, 0.92), rgba(30, 6, 10, 0.82)) !important;
}

.baku-error-label {
  margin: 0 0 0.38rem;
  color: #ffa6b0;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.baku-error-text {
  margin: 0;
  color: #e8c0c5;
  font-size: 0.86rem;
  line-height: 1.45;
}

.suggestion-grid {
  margin-top: 0.36rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

.suggestion-chip {
  font-size: 0.82rem;
  padding: 0.65rem 0.75rem;
  text-align: left;
  justify-content: flex-start;
  line-height: 1.3;
  white-space: normal;
}

@media (max-width: 600px) {
  .suggestion-grid {
    grid-template-columns: 1fr;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(119, 186, 207, 0.18);
  padding: 0.42rem 0.44rem;
  white-space: nowrap;
}

.table th {
  text-transform: uppercase;
  color: #93bccb;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.table tbody tr:hover {
  background: rgba(22, 70, 89, 0.24);
}

.offer-list {
  display: grid;
  gap: 0.52rem;
}

.offer-item {
  border: 1px solid rgba(125, 200, 219, 0.27);
  border-radius: 18px;
  padding: 0.9rem;
  background: rgba(5, 29, 40, 0.79);
}

#ai-explainer .card,
#portal-plan .card,
#portal-overview,
#portal-resumen .card {
  border-radius: 24px;
}

#ai-explainer .card {
  padding: 1rem;
}

#portal-overview {
  background:
    linear-gradient(154deg, rgba(4, 27, 39, 0.92), rgba(4, 20, 30, 0.62)),
    radial-gradient(circle at top right, rgba(77, 235, 191, 0.08), transparent 30%);
}

#portal-overview .section-head {
  gap: 0.18rem;
}

#portal-overview .section-head h1 {
  max-width: 18ch;
}









.portal-meta-strip .muted {
  margin: 0;
}

#ai-explainer .card {
  display: grid;
  gap: 0.78rem;
}

#bakuSignalStrip {
  margin-bottom: 0.1rem;
}

#bakuSignalStrip .metric-pill strong {
  font-size: 0.92rem;
}

#portal-resumen .card,
#client-deliverables .card,
#portal-plan .card,
#ai-explainer .card {
  background:
    linear-gradient(154deg, rgba(5, 29, 42, 0.96), rgba(4, 20, 30, 0.82)),
    radial-gradient(circle at top right, rgba(77, 235, 191, 0.05), transparent 26%);
}

.portal-user-meta {
  gap: 1rem;
}

.portal-actions {
  gap: 0.56rem;
}

.flow-nav {
  position: sticky;
  top: 5.1rem;
  z-index: 12;
  margin-top: 0;
  padding: 0.64rem;
  gap: 0.44rem;
  border-color: rgba(121, 192, 213, 0.24);
  background: linear-gradient(160deg, rgba(4, 25, 36, 0.84), rgba(4, 20, 30, 0.7));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.flow-link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.56rem 0.8rem;
  border-radius: 12px;
}






.highlight-pill {
  padding: 0.75rem;
}

.highlight-pill strong {
  font-size: 0.88rem;
}














.portal-brief-card {
  border: 1px solid rgba(142, 206, 225, 0.24);
  border-radius: 22px;
  padding: 0.9rem;
  background:
    linear-gradient(155deg, rgba(6, 30, 43, 0.92), rgba(4, 22, 31, 0.78)),
    radial-gradient(circle at top right, rgba(77, 235, 191, 0.08), transparent 28%);
  box-shadow: inset 0 1px 0 rgba(214, 245, 255, 0.04);
}

.portal-brief-card h3 {
  margin: 0.34rem 0 0;
  font-size: 1.24rem;
  line-height: 1.08;
  color: #f0fbff;
}





.executive-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem;
  margin-top: 0.66rem;
}

.executive-story-item {
  border: 1px solid rgba(136, 198, 217, 0.2);
  border-radius: 14px;
  padding: 0.7rem;
  background: rgba(4, 23, 33, 0.6);
}

.executive-story-item span {
  display: block;
  color: #8fdcc4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.62rem;
  font-weight: 700;
}

.executive-story-item strong {
  display: block;
  margin-top: 0.28rem;
  color: #edf9fe;
  font-size: 0.86rem;
  line-height: 1.45;
}

.executive-bullet-list {
  margin: 0.52rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.34rem;
  color: #d5edf6;
}

.executive-bullet-list.compact {
  margin-top: 0.6rem;
  font-size: 0.83rem;
  color: #bad9e5;
}

.portal-governance-card {
  isolation: isolate;
  overflow: hidden;
}

/* ── ZONA 1: HERO OVERVIEW ─────────────────────────────────────── */

#portal-overview {
  display: grid;
  gap: 0.75rem;
}

.hero-signal {
  border: 1px solid rgba(142, 198, 216, 0.22);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background: linear-gradient(155deg, rgba(6, 32, 45, 0.95), rgba(3, 20, 31, 0.86));
  transition: background 0.35s ease, border-color 0.35s ease;
}

.hero-signal[data-state="BIEN"] {
  background: linear-gradient(155deg, rgba(10, 50, 36, 0.94), rgba(5, 32, 22, 0.88));
  border-color: rgba(85, 227, 166, 0.3);
}

.hero-signal[data-state="ATENCION"] {
  background: linear-gradient(155deg, rgba(56, 42, 6, 0.94), rgba(36, 27, 3, 0.88));
  border-color: rgba(248, 200, 95, 0.3);
}

.hero-signal[data-state="CRITICO"] {
  background: linear-gradient(155deg, rgba(62, 14, 22, 0.94), rgba(40, 8, 14, 0.88));
  border-color: rgba(244, 116, 128, 0.3);
}






.hero-signal-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-state-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 0.28rem 0.68rem;
  background: rgba(142, 198, 216, 0.14);
  color: var(--bk-light);
}

.hero-signal[data-state="BIEN"] .hero-state-badge {
  background: rgba(50, 218, 137, 0.18);
  color: #74f0c8;
}

.hero-signal[data-state="ATENCION"] .hero-state-badge {
  background: rgba(248, 195, 71, 0.18);
  color: #ffe49a;
}

.hero-signal[data-state="CRITICO"] .hero-state-badge {
  background: rgba(245, 104, 123, 0.18);
  color: #ffc8cf;
}

/* Período sin evaluar: el motor no le asigna estado (§0 del estándar BFI, la
   ausencia no es una aprobación). Neutro y con borde punteado — mismo lenguaje
   que la procedencia sin declarar — para que nunca se lea como verde. */
.hero-signal[data-state="SIN_EVALUAR"] {
  background: linear-gradient(155deg, rgba(9, 34, 46, 0.9), rgba(5, 22, 32, 0.84));
  border-color: rgba(142, 198, 216, 0.28);
}

.hero-signal[data-state="SIN_EVALUAR"] .hero-state-badge {
  background: rgba(159, 197, 211, 0.12);
  color: #cfe8f2;
  border: 1px dashed rgba(159, 197, 211, 0.5);
}

/* Acumulado anual: no tiene estado propio (los semáforos son mensuales), así
   que va neutro y nunca en colores de alarma. */
.hero-signal[data-state="ACUMULADO"] {
  background: linear-gradient(155deg, rgba(9, 34, 46, 0.9), rgba(5, 22, 32, 0.84));
  border-color: rgba(142, 198, 216, 0.28);
}

.hero-signal[data-state="ACUMULADO"] .hero-state-badge {
  background: rgba(142, 198, 216, 0.16);
  color: #cfe8f2;
}

/* Mes sin datos (contrato estado_mes): estado neutro, nunca alarma. */
.hero-signal[data-state="SIN_DATOS"] {
  background: linear-gradient(155deg, rgba(9, 34, 46, 0.9), rgba(5, 22, 32, 0.84));
  border-color: rgba(142, 198, 216, 0.28);
}

.hero-signal[data-state="SIN_DATOS"] .hero-state-badge {
  background: rgba(142, 198, 216, 0.16);
  color: #cfe8f2;
}

.gate-card {
  border: 1px dashed rgba(142, 198, 216, 0.35);
  background: rgba(8, 30, 42, 0.45);
}

.gate-card .gate-text {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--bk-light);
}

/* La causa del estado global: acompaña al badge, no compite con la lectura. */
.hero-state-cause {
  margin: -0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-strong);
  opacity: 0.92;
}

.hero-meta {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(175, 210, 222, 0.65);
}

.hero-meta-sep {
  margin: 0 0.28rem;
  opacity: 0.45;
}

.hero-insight {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.52;
  color: #e8f7fe;
  max-width: 72ch;
}

.hero-kpi-row {
  display: grid;
  /* UI_SPEC §8: minmax(168px, 1fr). La tarjeta nunca baja de 168px y el
     número de columnas lo decide el ancho disponible, así que no hacen falta
     media queries que se contradigan entre sí. `auto-fit` colapsa las pistas
     vacías para que en escritorio las tres tarjetas ocupen todo el ancho;
     `min()` evita desbordar cuando el contenedor es más angosto que 168px. */
  grid-template-columns: repeat(auto-fit, minmax(min(168px, 100%), 1fr));
  gap: 0.6rem;
}

.hero-kpi-card {
  border: 1px solid rgba(145, 203, 221, 0.22);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(6, 32, 45, 0.95), rgba(3, 20, 31, 0.86));
  padding: 1rem;
  display: grid;
  gap: 0.18rem;
}

.hero-kpi-value {
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f0fbff;
  line-height: 1.1;
}

/* Dato pendiente: nunca $0 (UI_SPEC §5). Ámbar 12.5:1 sobre el fondo oscuro actual. */
.hero-kpi-value.is-pending {
  color: #f5c842;
  font-weight: 600;
}

/* El acento iba en un `border-left` de 3px — el patrón `side-tab` que el piso
   de calidad rechaza por nombre en tarjetas y callouts. Al medirlo apareció
   algo que nadie había reportado: el borde REAL de la tarjeta, a 0,22 de
   opacidad, da 1,58 contra el fondo, por debajo del 3:1 de §1.4.11. O sea que
   la pestaña no era sólo decoración: era lo único que hacía visible el límite
   de la tarjeta. Por eso el acento no se quita, se reparte: el borde entero
   toma el tono y sube a 4,25 medido. Se gana el color por los cuatro lados y
   se gana un límite perceptible. */
.hero-action-card {
  border: 1px solid rgba(63, 228, 182, 0.55);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(6, 32, 45, 0.95), rgba(3, 20, 31, 0.86));
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.hero-action-text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.52;
  color: #e0f5ff;
}

/* ── FIN ZONA 1 ──────────────────────────────────────────────────── */

.summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.35rem 0;
  min-height: 44px;
  cursor: pointer;
  color: inherit;
  gap: 0.5rem;
  text-align: left;
}

.summary-toggle[aria-expanded="true"] .governance-chevron {
  transform: rotate(180deg);
}

/* Mismo caso que `.hero-action-card`: el acento pasa del borde izquierdo al
   borde entero, a 0,75 → 3,94 medido contra el degradado de la tarjeta.
   Por qué 0,75 y no 0,65: la primera medición dijo que 0,60 daba 3,13 y
   cumplía. Era falsa — la herramienta descartaba la capa del fondo en
   silencio—, y el valor real de 0,60 es 2,93, que NO cumple. Lo que evitó el
   error no fue medir bien sino rechazar un margen delgado, así que acá se deja
   holgura de verdad en vez de rozar el umbral. */
.top-risk-card {
  border: 1px solid rgba(244, 116, 128, 0.75);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(6, 32, 45, 0.95), rgba(3, 20, 31, 0.86));
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.35rem;
  margin-top: 0.6rem;
}

.top-risk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.top-risk-name {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffc8cf;
  line-height: 1.35;
}

.top-risk-desc {
  margin: 0;
  font-size: 0.84rem;
  color: #ffb4bc;
  line-height: 1.45;
}

.governance-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.35rem 0;
  min-height: 44px;
  cursor: pointer;
  color: inherit;
  gap: 0.5rem;
}

.governance-toggle:hover .eyebrow {
  color: var(--bk-light);
}

.governance-chevron {
  font-size: 0.72rem;
  color: rgba(142, 198, 216, 0.55);
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.governance-toggle[aria-expanded="true"] .governance-chevron {
  transform: rotate(180deg);
}

.governance-body {
  margin-top: 0.75rem;
}

.report-governance-grid {
  display: grid;
  gap: 0.48rem;
  margin-top: 0.44rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  position: relative;
  overflow: hidden;
}

.governance-item {
  display: grid;
  gap: 0.28rem;
  border: 1px solid rgba(132, 196, 214, 0.2);
  border-radius: 14px;
  padding: 0.62rem 0.68rem;
  background: rgba(4, 23, 33, 0.66);
  position: relative;
  z-index: 0;
  overflow: hidden;
  max-width: 100%;
}

.governance-item strong {
  color: #ecfbff;
  font-size: 0.96rem;
  line-height: 1.3;
}

.governance-item .summary-status,
.governance-item [class*="pill"],
.governance-item [class*="badge"] {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.governance-helper {
  margin: 0;
  color: #9ec7d4;
  font-size: 0.79rem;
  line-height: 1.45;
  overflow-wrap: break-word;
  word-break: break-word;
}

.client-logo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.62rem;
  margin-bottom: 0.72rem;
}

.client-logo-card {
  min-height: 88px;
  padding: 0.88rem;
}

.client-logo-card img {
  max-height: 32px;
}

#ai-explainer .section-head h2,
#client-deliverables .section-head h2 {
  max-width: 18ch;
}

.portal-main #client-deliverables .section-head h2,
.portal-main #ai-explainer .section-head h2,
.portal-main #portal-plan .section-head h2,
.portal-main #portal-summary-card .section-title-sm,
.portal-main #portal-indicadores .section-title-sm {
  max-width: 26ch;
}

#flow .section-head h2 {
  font-size: clamp(1.18rem, 2vw, 1.85rem);
  max-width: 18ch;
}

#flow .lead {
  font-size: 1rem;
}

.offer-item h4 {
  margin: 0;
}

.offer-item p {
  margin: 0.35rem 0 0;
}

.quote-result {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.68rem;
}

.simulator-layout {
  align-items: start;
}

.simulator-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
}

.simulator-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

.simulator-stat-grid .metric-pill {
  margin: 0;
}

.info-ribbon {
  margin-top: 0.68rem;
  border: 1px solid rgba(0, 183, 126, 0.32);
  border-radius: 13px;
  background: linear-gradient(148deg, rgba(3, 36, 33, 0.92), var(--sup-2));
  padding: 0.68rem 0.74rem;
  color: var(--tx-claro);
  line-height: 1.45;
}

.plan-grid {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan-card {
  display: grid;
  gap: 0.5rem;
}

.plan-price {
  margin: 0;
  font-family: "Figtree", "Trebuchet MS", sans-serif;
  font-size: 1.52rem;
  letter-spacing: -0.02em;
  color: #8ef0cf;
}

.lead-board {
  overflow: auto;
  margin-top: 0.45rem;
  border: 1px solid rgba(141, 198, 218, 0.25);
  border-radius: 13px;
}

.lead-board table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.lead-board th,
.lead-board td {
  border-bottom: 1px solid rgba(143, 196, 214, 0.18);
  padding: 0.5rem 0.45rem;
  font-size: 0.83rem;
  text-align: left;
}

.lead-board th {
  text-transform: uppercase;
  color: #93bccb;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
}

.lead-board tbody tr:hover {
  background: rgba(19, 67, 85, 0.22);
}

.lead-board select {
  min-width: 118px;
  padding: 0.38rem 0.48rem;
  border-radius: 10px;
  font-size: 0.78rem;
}

.tiny-action {
  margin-top: 0.32rem;
  min-height: 32px;
  padding: 0.34rem 0.58rem;
  border-radius: 10px;
  font-size: 0.72rem;
}

.btn-ghost {
  border: 1px solid rgba(141, 198, 218, 0.24);
  background: rgba(7, 31, 43, 0.72);
  color: #d8edf5;
}

.btn-ghost:hover {
  background: rgba(18, 55, 70, 0.88);
  border-color: rgba(141, 198, 218, 0.35);
}

.lead-tier {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.lead-tier.priority {
  color: #042218;
  background: linear-gradient(132deg, #00dc9c, #00b77e);
}

.lead-tier.filter {
  color: #d7ecf4;
  background: rgba(115, 170, 190, 0.28);
}

.insight-card h3 {
  margin: 0.44rem 0 0.4rem;
}

.insight-card p {
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1080px) {
  .landing-main,
  .portal-main {
    gap: 0.88rem;
  }

  .hero-grid,
.three-col,
.two-col {
    grid-template-columns: 1fr 1fr;
  }





  .product-spotlight {
    grid-template-columns: 1fr;
  }

  .product-lane {
    grid-template-columns: 1fr;
  }

  .hero-copy .hero-cta-row {
    grid-template-columns: 1fr;
  }

  .hero-layer-strip {
    grid-template-columns: 1fr;
  }

  #contacto .hero-cta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #client-deliverables .card-grid.two-col {
    grid-template-columns: 1fr;
  }

  .shell {
    width: min(var(--shell-max), calc(100% - 1.2rem));
  }





  .top-nav {
    top: 0.45rem;
    padding-inline: 0.8rem;
  }

  .summary-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }





  .summary-control-grid {
    grid-template-columns: 1fr;
  }

  .client-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {

  /* Transición suave: opacity+visibility en lugar de display:none */
  #portal-summary-card,
  #portal-indicadores {
    transition: opacity 200ms ease, visibility 200ms ease;
  }




}

@media (max-width: 920px) {
  .top-nav {
    grid-template-columns: auto auto;
    grid-template-areas:
      "brand toggle"
      "menu menu"
      "cta cta";
    gap: 0.58rem;
    top: 0.35rem;
    padding: 0.68rem 0.72rem;
  }

  .brand {
    grid-area: brand;
  }

  .nav-toggle {
    grid-area: toggle;
    justify-self: end;
    display: inline-flex;
  }

  .nav-links {
    grid-area: menu;
    justify-self: stretch;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    border: 1px solid rgba(119, 186, 207, 0.3);
    border-radius: 12px;
    background: rgba(2, 16, 24, 0.94);
    padding: 0.5rem;
    display: none;
  }

  .nav-links[data-open="true"] {
    display: grid;
  }

  .nav-links a {
    padding: 0.5rem 0.58rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
  }

  .nav-cta {
    grid-area: cta;
    width: auto;
  }

  .nav-actions {
    grid-area: cta;
    width: 100%;
    justify-content: space-between;
  }

  .nav-actions .btn {
    flex: 1 1 0;
  }
}

@media (max-width: 760px) {
  .landing-main,
  .portal-main {
    gap: 0.78rem;
  }

  .hero-grid,
.three-col,
.two-col {
    grid-template-columns: 1fr;
  }

















  .shell {
    width: min(var(--shell-max), calc(100% - 0.88rem));
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 8.2vw, 2.2rem);
    max-width: 16ch;
  }

  .hero-copy {
    min-height: auto;
  }





  .hero-visual {
    min-height: 300px;
  }

  .hero-grid-expanded .hero-visual {
    min-height: 360px;
  }









  .client-logo-grid {
    grid-template-columns: 1fr;
  }

  .mission-item {
    flex-direction: column;
  }

  .mission-badge {
    align-self: flex-start;
  }

  .portal-user-meta {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .portal-actions {
    width: 100%;
  }

  .portal-actions .btn {
    flex: 1 1 0;
  }

  .portal-period-controls {
    grid-template-columns: 1fr;
  }

  .flow-nav {
    position: static;
    top: auto;
    gap: 0.42rem;
  }

  .flow-link {
    width: 100%;
    text-align: center;
  }

  .stack-form .btn,
  .inline-form .btn {
    width: 100%;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .inline-form input {
    min-width: 0;
  }

  #contacto .hero-cta-row,
  #client-deliverables .hero-cta-row {
    grid-template-columns: 1fr;
  }

  .metrics-inline {
    grid-template-columns: 1fr;
  }

  .simulator-form-grid,
  .simulator-stat-grid {
    grid-template-columns: 1fr;
  }


  .client-summary-panel {
    min-height: 360px;
  }

  .summary-grid,
.summary-control-grid {
    grid-template-columns: 1fr;
  }

  .section-head h1,
  .section-head h2 {
    max-width: none;
  }





  .executive-story-grid,
  .ai-answer-grid {
    grid-template-columns: 1fr;
  }

  .summary-layout.compact {
    grid-template-columns: 1fr;
  }

  .summary-section.span-12,
  .summary-section.span-7,
  .summary-section.span-6,
  .summary-section.span-5,
  .summary-section.span-4 {
    grid-column: auto;
  }

  .summary-grid.compact {
    grid-template-columns: 1fr;
  }

  .action-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  /* aspect-ratio 4/3 + min-height fuerza ancho > viewport en móvil: la altura
     manda y el visor se sale de la pantalla. En móvil manda el ancho. */
}

/* ══════════════════════════════════════════════════════════════════
   Portal Experience v2 — shell entregables-primero
   Cabecera compacta con señal → entregables → secundario colapsable
   → BAKU como asistente persistente. Reutiliza tokens y componentes
   existentes (hero-signal, provenance-badge, cards); solo presentación.
   ══════════════════════════════════════════════════════════════════ */

.portal-v2 {
  /* La barra BAKU es fija; el contenido no debe quedar debajo. */
  padding-bottom: 96px;
}

/* ── 1. Cabecera con señal: todo en una tarjeta ── */
.signal-card-v2 {
  display: grid;
  gap: 0.85rem;
}

.signal-period-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
}

.portal-v2 .portal-period-controls {
  margin: 0;
  grid-template-columns: repeat(2, minmax(110px, 150px));
}

.portal-v2 .provenance-badge {
  margin-top: 0;
}

.signal-period-note {
  margin: -0.35rem 0 0;
}

.signal-period-note:empty {
  display: none;
}

/* Medía 117×19: el único camino de la cabecera al plan, por debajo de la mitad
   del mínimo táctil que PRODUCT.md fija en 40px para un portal que se revisa
   desde el celular. El `inline-flex` con `min-height` agranda el área sin
   agrandar la letra, y el subrayado con separación le devuelve el gesto de
   enlace que el verde solo no alcanza a dar. */
.hero-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  width: fit-content;
  color: var(--bk-green-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  text-decoration-color: rgba(63, 228, 182, 0.45);
}

.hero-action-link:hover,
.hero-action-link:focus-visible {
  text-decoration-color: currentColor;
}

.hero-action-link:visited {
  color: var(--bk-green-2);
}

/* Móvil: las columnas las decide la regla base (UI_SPEC §8). Aquí solo se
   ajusta la densidad interna de la tarjeta. Forzar 3 columnas a este ancho
   —lo que hacía esta media query— dejaba tarjetas de 88px contra los 168px
   que exige la spec, y la de utilidad desbordaba sobre su vecina. */
@media (max-width: 760px) {
  .portal-v2 .hero-kpi-row {
    gap: 0.45rem;
  }

  .portal-v2 .hero-kpi-card {
    padding: 0.7rem 0.6rem;
  }

  .portal-v2 .hero-kpi-value {
    font-size: clamp(0.98rem, 4.4vw, 1.62rem);
  }

  /* Labels de 1 o 2 líneas: los valores quedan alineados entre tarjetas. */
  .portal-v2 .hero-kpi-card > .eyebrow {
    min-height: 2em;
  }
}

.hero-kpi-sub {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(175, 210, 222, 0.75);
}

/* En la grilla de la tarjeta el chip delta se estiraría al ancho completo;
   debe leerse como chip, no como barra. */
.portal-v2 .hero-kpi-card .kpi-delta {
  justify-self: start;
  width: fit-content;
}

/* ── 2. Entregables como experiencia principal ── */
.deliverable-lead {
  margin-top: 0.2rem;
  font-size: 0.85rem;
}

.deliverable-cards {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.deliverable-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--bk-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(2, 14, 23, 0.9), rgba(3, 15, 25, 0.62));
  padding: 0.95rem 1.05rem;
  min-height: 64px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.deliverable-card:hover,
.deliverable-card:focus-visible {
  border-color: var(--bk-border-strong);
  transform: translateY(-1px);
}

.deliverable-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0, 183, 126, 0.1);
  border: 1px solid rgba(63, 228, 182, 0.28);
  color: var(--bk-green-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.deliverable-body {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.deliverable-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.deliverable-desc {
  font-size: 0.82rem;
  color: var(--bk-soft);
}

.deliverable-meta {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(175, 210, 222, 0.6);
}

.deliverable-open {
  flex-shrink: 0;
  color: var(--bk-soft);
  font-size: 1.1rem;
}

/* El entregable principal (dashboard) va destacado con CTA propio. */
.deliverable-card--featured {
  border-color: var(--bk-border-strong);
  background: linear-gradient(155deg, rgba(6, 32, 45, 0.95), rgba(3, 20, 31, 0.86));
  padding: 1.2rem;
}

.deliverable-card--featured .deliverable-title {
  font-size: 1.18rem;
}

.deliverable-card--featured .deliverable-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(138deg, var(--bk-green-3), var(--bk-green));
  color: #03271f;
  border: 1px solid rgba(169, 255, 227, 0.35);
  border-radius: 999px;
  box-shadow: var(--shadow-button);
  min-height: 44px;
  padding: 0 1.3rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* En móvil el CTA del destacado baja a su propia fila: nunca compite con el texto. */
@media (max-width: 760px) {
  .deliverable-card--featured {
    flex-wrap: wrap;
  }

  .deliverable-card--featured .deliverable-body {
    flex: 1 1 60%;
  }

  .deliverable-card--featured .deliverable-open {
    flex: 1 1 100%;
    margin-top: 0.25rem;
  }
}

@media (min-width: 761px) {
  .deliverable-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .deliverable-card--featured {
    grid-column: 1 / -1;
  }

  .deliverable-card:not(.deliverable-card--featured) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1.05rem;
  }

  .deliverable-card:not(.deliverable-card--featured) .deliverable-open {
    display: none;
  }
}

/* ── 3. Secundario colapsable ── */
.portal-folds {
  display: grid;
  gap: 0.7rem;
}

.fold-card {
  padding: 0;
  overflow: hidden;
}

.fold-toggle {
  width: 100%;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 1.05rem 1.2rem;
  min-height: 56px;
  cursor: pointer;
}

.fold-title-wrap {
  display: grid;
  gap: 0.22rem;
}

.fold-toggle .section-title-sm {
  margin: 0;
}

.fold-sub {
  font-size: 0.78rem;
  color: var(--bk-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.fold-sub:empty {
  display: none;
}

.why-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  white-space: nowrap;
}

.why-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.why-chip .dot.verde { background: var(--bk-green-2); }
.why-chip .dot.amarillo { background: #f5c842; }
.why-chip .dot.rojo { background: #ff7d8a; }

.fold-panel {
  padding: 0.9rem 1.2rem 1.2rem;
  border-top: 1px solid var(--bk-border);
  display: grid;
  gap: 0.9rem;
}

.fold-plan-grid {
  display: grid;
  gap: 1rem;
}

.fold-plan-grid > div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

@media (min-width: 761px) {
  .portal-folds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  /* `repeat(2, 1fr)` partía en dos una tarjeta que YA es media página, porque
     `.portal-folds` arriba la puso en dos columnas. Cuatro mitades encadenadas
     dejaban el texto de la acción recomendada en 116px —unos quince caracteres
     por línea, nueve líneas— mientras seis semáforos que repiten "Controlado"
     recibían 212px cada uno. Es la jerarquía al revés justo donde PRODUCT.md
     pone el producto: "qué hacer en 30 días".

     `auto-fit` con un mínimo real decide por ancho disponible y no por ancho de
     pantalla: en la tarjeta de media página cae a una columna, y solo se parte
     cuando el ancho alcanza de verdad. */
     El mínimo es 340px y no 260px porque a 260 la tarjeta de 1440px todavía se
     partía y la acción quedaba igual de ancha que un semáforo que dice
     "Controlado". Empatar no es jerarquía: el plan tiene que leerse como lo
     principal, no como lo mismo. */
  .fold-plan-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  }
}

/* ── 4. BAKU como asistente persistente ── */
.baku-bar {
  position: fixed;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 40;
  max-width: 560px;
  margin: 0 auto;
}

.baku-launch {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(180deg, rgba(2, 14, 23, 0.96), rgba(3, 15, 25, 0.92));
  color: var(--bk-light);
  border: 1px solid var(--bk-border-strong);
  border-radius: 999px;
  min-height: 52px;
  padding: 0 1.15rem;
  font-size: 0.92rem;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.baku-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(138deg, var(--bk-green-3), var(--bk-green));
  color: #03271f;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Dos hojas comparten forma y comportamiento: BAKU y la cuenta. El estilo se
   agrupa para que la segunda no herede una copia del primero. */
.baku-sheet,
.portal-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(3, 17, 26, 0.98);
  border-top: 1px solid var(--bk-border-strong);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.4);
  padding: 1.2rem 1.1rem 1.1rem;
  display: grid;
  gap: 0.8rem;
  max-width: 720px;
  margin: 0 auto;
  max-height: 82vh;
  overflow-y: auto;
}

.baku-sheet-head,
.portal-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.8rem;
}

.baku-sheet-head .section-title-sm,
.portal-sheet-head .section-title-sm {
  margin: 0.15rem 0 0;
}

.baku-close,
.portal-sheet-close {
  background: rgba(4, 25, 37, 0.8);
  border: 1px solid var(--bk-border);
  border-radius: 999px;
  min-width: 40px;
  min-height: 40px;
  font-size: 0.9rem;
  color: var(--bk-soft);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Top-nav compacto en móvil (v2) ──
   El shell legacy apila marca, usuario y acciones en 3 filas y el sticky se
   come un tercio de la pantalla. En v2 la cabecera de la señal ya muestra
   empresa y período: la barra queda en una sola fila logo + salir. */
@media (max-width: 920px) {
  .portal-v2 .top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.72rem;
  }

  .portal-v2 .portal-user-meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 0.5rem;
  }

  /* Nombre y empresa viven en la señal; aquí solo estorban. */
  .portal-v2 .portal-user-meta > div:first-child {
    display: none;
  }

  /* La barra tenía dos botones y ahora tiene tres («Tu cuenta»). A 375px el
     tercero empujaba «Cerrar sesión» 15px fuera del viewport — medido, no
     supuesto. Se aprieta el espaciado horizontal, que es lo que sobra, y
     `flex-wrap` queda de red: si una traducción o un nombre más largo vuelve a
     no caber, baja de línea en vez de salirse de la pantalla.
     El `min-height: 40px` no se toca: es el mínimo táctil del canon. */
  .portal-v2 .portal-actions {
    width: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .portal-v2 .portal-actions .btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.34rem 0.6rem;
    font-size: 0.82rem;
  }
}

/* Nota de modo de BAKU: declara qué motor está atendiendo al cliente.
   Informativa, no alarma — ámbar de dato preliminar, no rojo de error. */
.baku-mode-note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #f8c85f;
  background: rgba(248, 200, 95, 0.08);
  border: 1px solid rgba(248, 200, 95, 0.28);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}

/* El SVG traía ancho fijo de 80px y se salía de la tarjeta en móvil. Con
   viewBox declarado, escalar por ancho conserva la geometría del trazo. */
.kpi-sparkline {
  display: block;
  width: 100%;
  max-width: 80px;
  height: auto;
}

/* Título de la página: orienta, no compite. Va por debajo de los títulos de
   sección a propósito — el peso visual de la pantalla pertenece a la señal y a
   los entregables, no a una etiqueta que se lee una vez. */
.portal-page-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

/* El estado global es el elemento más grande de la pantalla y en varios
   tenants sale igual todos los meses: un semáforo que nunca cambia deja de
   ser semáforo. El estado sigue siendo el real; lo que faltaba era decir si
   cambió, que es la información que el cliente puede accionar. */
.hero-state-trend {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  border: 1px solid rgba(159, 197, 211, 0.35);
  color: #cfe8f2;
  white-space: nowrap;
}

.hero-state-trend.is-better {
  color: #3fe4b6;
  border-color: rgba(63, 228, 182, 0.45);
}

.hero-state-trend.is-worse {
  color: #ff9aa4;
  border-color: rgba(255, 125, 138, 0.45);
}

.hero-state-trend.is-pending {
  color: #f8c85f;
  border-color: rgba(248, 200, 95, 0.45);
}

/* Declaración del punto sin validar en la tendencia. Ámbar de dato
   preliminar: es una advertencia de procedencia, no un error. */
.hero-trend-caveat {
  margin: -0.2rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #f8c85f;
}

/* Sello de frescura y cobertura en las tarjetas de entregables. */
.deliverable-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}

.deliverable-coverage {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--bk-green-2);
  background: rgba(0, 183, 126, 0.12);
  border: 1px solid rgba(63, 228, 182, 0.32);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}

/* En móvil el chip cae a su propia línea: con el peso de desktop competía con
   el título en vez de calificarlo. */
@media (max-width: 760px) {
  .deliverable-coverage {
    font-size: 0.6rem;
    padding: 0.14rem 0.45rem;
    letter-spacing: 0.04em;
  }
}

/* Desfase resumen-vs-entregables: se declara, no se disimula. */
.deliverable-lag-note {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #f8c85f;
}

/* ── Páginas legales y pie del sitio ─────────────────────────── */

.top-nav + .legal-main,
.legal-main {
  padding-block: 2.5rem 3rem;
}

.legal-doc {
  max-width: 72ch;
  margin-inline: auto;
  color: var(--bk-light);
  line-height: 1.65;
}

.legal-doc h1 {
  margin: 0.4rem 0 0.3rem;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.2;
}

.legal-doc h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  scroll-margin-top: 1rem;
}

.legal-doc p,
.legal-doc li {
  color: var(--bk-light);
}

.legal-doc ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
}

.legal-doc a {
  color: var(--bk-green-3);
  text-underline-offset: 2px;
}

.legal-meta {
  margin: 0 0 1.2rem;
  color: var(--bk-soft);
  font-size: 0.9rem;
}
.legal-pending {
  padding: 0.05rem 0.4rem;
  border: 1px dashed rgba(255, 196, 87, 0.7);
  border-radius: 4px;
  color: #ffe2a8;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.legal-pending::before {
  content: "[";
}

.legal-pending::after {
  content: "]";
}

.legal-toc {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--bk-border);
  border-radius: 8px;
}

.legal-toc a {
  min-height: 32px;
  display: flex;
  align-items: center;
}

.legal-facts {
  display: grid;
  grid-template-columns: minmax(8rem, max-content) 1fr;
  gap: 0.4rem 1rem;
  margin: 0.6rem 0;
}

.legal-facts dt {
  color: var(--bk-soft);
}

.legal-facts dd {
  margin: 0;
}

.legal-related {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bk-border);
}

@media (max-width: 560px) {
  .legal-facts {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .legal-facts dd {
    margin-bottom: 0.6rem;
  }
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 1.2rem 1.6rem;
  border-top: 1px solid var(--bk-border);
  color: var(--bk-soft);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
}

.site-footer a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--bk-soft);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.site-footer a[aria-current="page"] {
  color: var(--bk-light);
  text-decoration: underline;
}

/* El lanzador de BAKU es fijo abajo: el pie deja espacio para no quedar tapado. */
.portal-body .site-footer {
  padding-bottom: 5.5rem;
}

.legal-body .top-nav .nav-actions {
  grid-column: 3;
}

/* ── Coherencia cruzada ────────────────────────────────────────────────────
   Dos cifras del libro que no cuadran entre sí. La gramática ya existía en
   este portal: punteado = hay dato, no está confirmado (badge de procedencia
   sin declarar, tramo de tendencia sin validar). Se reusa en vez de inventar
   un lenguaje nuevo para el mismo hecho. Ámbar de procedencia preliminar
   (#f8c85f, 10.26:1 sobre el fondo oscuro), nunca rojo: no es un error del
   cliente, es un corte sin cerrar. */
.hero-kpi-card.is-unreconciled {
  border-style: dashed;
  border-color: rgba(248, 200, 95, 0.5);
}

/* Donde estaba el chip verde ▲ queda dicho que no hay variación publicada, en
   vez de un hueco: un chip que desaparece se lee como "no cambió". */
.kpi-delta.is-withheld {
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: #f8c85f;
  background: rgba(248, 200, 95, 0.1);
  border: 1px dashed rgba(248, 200, 95, 0.42);
}

.hero-coherence-note,
.coherence-note {
  margin: -0.1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #f8c85f;
}

/* El resumen cliente es tema claro: ahí la nota usa el ámbar de la spec. */
.summary-layout .coherence-note {
  margin-top: 0.4rem;
  color: #9a6b15;
}

/* Ranking cuya numeración se retiró porque los montos no bajaban: sin el
   número, la lista deja de afirmar un orden que no tiene. */
.ranking-list.is-unranked > .ranking-item strong {
  font-weight: 600;
}

/* La salvedad del badge de procedencia, fuera del `title`. En celular el hover
   no existe, así que la línea que hace honesto al rótulo tampoco existía. */
.provenance-caveat {
  margin: -0.15rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #9fc5d3;
  max-width: 54ch;
}

/* La etiqueta del campo de BAKU ocupa la fila completa de la rejilla, encima
   del campo y del botón. El `placeholder` era el único nombre que tenía: se ve
   hasta que el cliente escribe, y después el campo queda anónimo. */
.inline-form-label {
  grid-column: 1 / -1;
  margin-bottom: -0.25rem;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc5d3;
}

/* -- Superficies del navegador -------------------------------------------
   Lo que no se dibuja aqui igual se ve: la selección de texto, el cursor de
   escritura y la barra de desplazamiento venían con los valores por defecto
   del navegador, que son de tema claro sobre una página oscura. En un portal
   donde el cliente copia cifras para pegarlas en un correo, la selección es
   una superficie de uso diario.

   Va acotado a `.portal-body` porque esta hoja también la usa la página
   pública, que es de tema claro. */
.portal-body {
  color-scheme: dark;
  scrollbar-color: rgba(145, 203, 221, 0.32) transparent;
}

.portal-body ::selection {
  background: rgba(63, 228, 182, 0.3);
  color: #f0fbff;
}

.portal-body input,
.portal-body textarea,
.portal-body select {
  caret-color: var(--bk-green-2);
}

.portal-body ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.portal-body ::-webkit-scrollbar-track {
  background: transparent;
}

.portal-body ::-webkit-scrollbar-thumb {
  background: rgba(145, 203, 221, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.portal-body ::-webkit-scrollbar-thumb:hover {
  background: rgba(145, 203, 221, 0.45);
  background-clip: padding-box;
}

/* -- Hoja de cuenta ------------------------------------------------------- */
.account-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #f8c85f;
  background: rgba(248, 200, 95, 0.08);
  border: 1px solid rgba(248, 200, 95, 0.28);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}

.account-form {
  display: grid;
  gap: 0.8rem;
}

.account-field {
  display: grid;
  gap: 0.3rem;
}

.account-field label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fc5d3;
}

/* 48px y no 40: es un campo que se escribe, no un control que se toca una vez,
   y en móvil el teclado ya reduce lo que queda de pantalla. */
.account-field input {
  min-height: 48px;
}

.account-hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #9fc5d3;
}

/* El estado se declara con palabra y color, nunca solo con color (PRODUCT.md).
   El texto lo escribe el servidor; aquí solo se le da tono. */
.account-status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  min-height: 1.2rem;
  color: #9fc5d3;
}

.account-status[data-tone="ok"] {
  color: #3fe4b6;
}

.account-status[data-tone="error"] {
  color: #ffb3ba;
}

.account-status[data-tone="trabajando"] {
  color: #f8c85f;
}

/* ===================================================================
   Landing · la página muestra el producto
   -------------------------------------------------------------------
   Todo lo de aquí abajo cuelga de `.landing-body`. `web/styles.css` lo
   comparten diez superficies (portal, /ops, cotizador, simuladores,
   legales) y ninguna de ellas instancia estas clases, pero el alcance
   se escribe igual: sin él, el día que alguien reutilice el nombre de
   una clase el arrastre no se ve hasta producción.

   Medido el 2026-10-09: la portada tenía 43 tarjetas y una sola forma.
   Lo que sigue no agrega decoración — cambia la silueta de tres
   secciones para que al hacer scroll se note el corte sin leer.
   =================================================================== */

/* --- El hero muestra el tablero real ------------------------------- */

.landing-body .hero-visual.product-shot {
  padding: 0;
  display: grid;
  align-content: stretch;
  background: rgba(4, 21, 31, 0.92);
}

.landing-body .product-shot figure {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.landing-body .product-shot picture {
  display: block;
  height: 100%;
  min-height: 0;
}

/* `.hero-visual img` global trae `object-fit: cover` y `brightness(.78)`.
   Sobre una foto ambiental eso es tono; sobre una captura de producto es
   texto ilegible y cifras recortadas. Aquí manda la captura. */
.landing-body .product-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  filter: none;
  border-bottom: 1px solid var(--bk-border);
}

.landing-body .product-shot figcaption {
  padding: 0.85rem 1rem 0.95rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #a9cfdd;
}

.landing-body .product-shot figcaption strong {
  color: #e3f8ff;
}

/* --- Un solo botón primario ---------------------------------------- */

.landing-body .hero-cta-secondary {
  align-self: center;
  padding: 0.3rem 0;
  color: #9fd9ea;
  font-size: 0.89rem;
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(159, 217, 234, 0.45);
}

.landing-body .hero-cta-secondary:hover,
.landing-body .hero-cta-secondary:focus-visible {
  color: var(--tx-fuerte);
  text-decoration-color: currentColor;
}

/* --- FORMA 1 · una sola afirmación --------------------------------- */

.landing-body .section-block.landing-statement {
  border: 0;
  background: none;
  box-shadow: none;
  padding: clamp(1.6rem, 5vw, 3.4rem) 0;
  gap: 0.9rem;
  justify-items: start;
}

.landing-body .landing-statement__kicker {
  margin: 0;
  font-size: var(--type-micro);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7fb3c4;
}

.landing-body .landing-statement__line {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--tx-fuerte);
}

.landing-body .landing-statement__line em {
  font-style: normal;
  color: var(--bk-green, #42e0b8);
}

.landing-body .landing-statement__steps {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 1.4rem;
  width: 100%;
  border-top: 1px solid var(--bk-border);
}

.landing-body .landing-statement__steps li {
  padding: 0.85rem 0 0;
  font-size: 0.89rem;
  line-height: 1.45;
  color: var(--tx-cuerpo);
}

.landing-body .landing-statement__steps span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--tx-tenue);
}

/* --- FORMA 2 · densa ------------------------------------------------ */

.landing-body .section-block.landing-dense {
  border: 0;
  background: none;
  box-shadow: none;
  padding: clamp(1.2rem, 3vw, 2rem) 0 0;
  gap: 1.1rem;
}

.landing-body .landing-dense__list {
  margin: 0;
  display: grid;
  border-top: 1px solid var(--bk-border);
}

.landing-body .landing-dense__list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.34fr) minmax(0, 1fr);
  gap: 0.4rem 1.6rem;
  padding: 0.82rem 0;
  border-bottom: 1px solid rgba(119, 186, 207, 0.16);
}

.landing-body .landing-dense__list dt {
  margin: 0;
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--tx-fuerte);
}

.landing-body .landing-dense__list dd {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.52;
  color: var(--tx-cuerpo);
}

/* --- FORMA 3 · banda con la imagen del producto --------------------- */

/* El sangrado del borde y el margen negativo de la figura salen del MISMO
   valor. Escritos por separado se desincronizan en el primer `clamp` que
   alguien ajuste, y la imagen queda flotando a seis píxeles del borde sin que
   nadie sepa por qué. */
.landing-body .section-block.landing-band {
  --banda-sangrado: clamp(1.2rem, 3vw, 2rem);
  padding: var(--banda-sangrado) var(--banda-sangrado) 0;
  border: 0;
  border-radius: var(--radius-md);
  background: rgba(3, 20, 30, 0.72);
  gap: clamp(1.1rem, 3vw, 1.9rem);
}

.landing-body .landing-band__copy {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  max-width: 66ch;
}

.landing-body .landing-band__copy h2 {
  margin: 0;
}

.landing-body .landing-band__shot {
  margin: 0 calc(-1 * var(--banda-sangrado));
  display: grid;
  gap: 0.6rem;
}

.landing-body .landing-band__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-top: 1px solid var(--bk-border);
}

.landing-body .landing-band__shot figcaption {
  padding: 0 var(--banda-sangrado) 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #8fb9c8;
}

@media (max-width: 760px) {
  .landing-body .landing-dense__list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.22rem;
  }

  .landing-body .product-shot img {
    object-fit: contain;
    height: auto;
  }

  .landing-body .product-shot picture {
    height: auto;
  }

  .landing-body .product-shot figure {
    grid-template-rows: auto auto;
  }
}

/* ===================================================================
   Landing · hero de una columna (2026-10-14)
   -------------------------------------------------------------------
   El hero era `hero-grid` de dos columnas con un panel de producto a la
   derecha. Ese panel concentraba la mayor densidad de la página y la
   crítica de Sebastián —«se siente densa»— empieza ahí. Ahora la copia
   ocupa el ancho, respira, y el producto es una franja ancha debajo.

   `.hero-visual`, `.product-shot` y `.hero-grid-expanded` quedan en la
   hoja sin instanciarse en `index.html`. No se borran acá: `.hero-visual`
   la usan otras superficies y retirarla sería un cambio de alcance
   distinto al de este PR.
   =================================================================== */

.landing-body .hero-solo {
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.8rem);
  padding: clamp(1.4rem, 4vw, 2.6rem) 0 0;
}

/* El tope de esta columna servía a dos cosas que quieren anchos distintos.
   Medido a 1280: con `54ch` (518px) el `h1` de 67px caía en CUATRO líneas de
   catorce caracteres —una columna de fragmentos, que es de lo que está hecha la
   sensación de hero vacío— mientras el párrafo de 16px quedaba en 67 caracteres
   por línea, que es la medida correcta. El mismo número estaba bien para uno y
   mal para el otro.
   Y el `h1` ya declaraba su propio `max-width: 699px`: no podía usarlo porque
   el padre lo recortaba. Así que el tope del padre sube hasta ahí y cada hijo
   gobierna su propia medida — el párrafo conserva la suya (595px) y no se
   ensancha. */
.landing-body .hero-solo__copy {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  max-width: 44rem;
}

/* El h1 crece: en una sola columna hay ancho para que la frase sea la
   jerarquía y no la caja que la contiene. §9 pide que el rigor se note en
   tipografía y contraste, no en efectos. */
.landing-body .hero-solo h1 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  /* En `ch` el tope se encoge con la fuente: al bajar el titular de 64px a
     41,6px, `17ch` pasó de 699px a 433px y la frase seguía cayendo en tres
     líneas pese a la escala menor. El tope va en el mismo `rem` que la
     columna para que el titular quepa en DOS líneas, que es la medida que
     se pidió. */
  max-width: 100%;
}

.landing-body .hero-solo .lead {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--bk-green, #42e0b8);
}

.landing-body .hero-solo__sub {
  margin: 0.1rem 0 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.62;
  color: var(--tx-cuerpo);
}

.landing-body .hero-solo .hero-cta-row {
  margin-top: 0.5rem;
}

/* La franja de producto: ancho completo de la columna, sin marco de tarjeta.
   Es lo único de la portada que muestra el producto, así que no compite con
   un borde. */
.landing-body .hero-solo__shot {
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.landing-body .hero-solo__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--bk-border);
  border-radius: 8px;
}

.landing-body .hero-solo__shot figcaption {
  max-width: 50ch;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #a9cfdd;
}

.landing-body .hero-solo__shot figcaption strong {
  color: #e3f8ff;
}

/* La tabla está DIBUJADA a 1170 px de ancho. Encogerla por debajo de eso la
   vuelve ilegible —medido en 375: 361 px de caja, densidad 6,5×, una mancha
   gris— y una imagen ilegible del producto no muestra el producto.
   Se deja a escala legible y se desplaza dentro de su propia caja, que es lo
   que hace el tablero real en el teléfono.

   SIN MEDIA QUERY A PROPÓSITO: `min-width` en la imagen más `overflow-x` en la
   figura resuelven la condición real —«la caja es más angosta que el dibujo»—
   en vez de adivinarla con un ancho de pantalla. Un breakpoint fijado a 760
   habría dejado la tablet de 768 con la tabla al 63 % y nadie lo habría visto.

   El scroll pertenece a la figura, NUNCA al documento: de ahí `min-width: 0`
   en el contenedor. Verificado: desborde del documento 0 en 1280, 768 y 375, y
   el único elemento que pasa el borde es la propia imagen, recortada por su
   figura. */
.landing-body .hero-solo__scroller {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.landing-body .hero-solo__shot img {
  min-width: 1170px;
}

/* ===================================================================
   Landing · medida de línea (2026-10-14)
   -------------------------------------------------------------------
   La banda legible es 45–75 caracteres por línea. Medido a 1280 sobre
   esta rama: 11 bloques por encima de 75, y los tres peores de la lista
   densa iban sin `max-width` — 100, 101 y 106 cpl. Son míos, de #360.

   Los otros dos topes que existían no son decisiones de medida: llegaron
   en `5c5c9f3`, un sync masivo de archivos de producción.
   `.section-head .lead` quedó en 48rem (768 px ≈ 110 caracteres a 16 px)
   y `.contact-strip p` en 58rem (928 px). Ninguno tiene prueba que lo
   fije — lo verifiqué antes de tocarlos.

   NO SE CAMBIAN ESOS VALORES: `styles.css` lo comparten diez superficies
   y el tope ancho puede estar sosteniendo algo en el portal o en /ops.
   Se acota con alcance de landing y se deja dicho que el valor compartido
   sigue siendo ancho para prosa.

   La unidad es `ch` y no px porque el tope tiene que seguir al tamaño de
   letra: uno en px se desincroniza con el primer `clamp()` que alguien
   ajuste.

   PERO `ch` NO ES UN CARÁCTER. Es el avance del glifo «0», y en esta
   fuente mide 9,6 px contra 7,1 px del carácter promedio — razón 1,352,
   medida en la página. O sea que `68ch` deja pasar **92 caracteres**, no
   68. El primer intento puso 68ch, no movió ningún bloque fuera de banda
   y el `max-width` computado decía 652,8 px: la regla aplicaba y el
   número seguía mal. Los topes de abajo están en `ch` ya convertidos:
   50ch ≈ 68 caracteres, 46ch ≈ 62.
   =================================================================== */

.landing-body .landing-dense__list dd {
  max-width: 50ch;
}

/* Todos los `.lead` de la landing, no sólo los de `.section-head`: los de
   §baku y §productos quedaban fuera del selector y eran de los peores. */
.landing-body .lead {
  max-width: 50ch;
}

/* Pies de figura y copia de la banda: mismos topes, misma razón. */
.landing-body figcaption,
.landing-body .landing-band__copy li,
.landing-body .landing-band__copy p,
.landing-body .product-spotlight-copy p {
  max-width: 50ch;
}

.landing-body .contact-strip h2 {
  max-width: 26ch;
  justify-self: center;
}

.landing-body .contact-strip p {
  max-width: 46ch;
  justify-self: center;
}

/* ===================================================================
   Dos titulares de sección quedaron fuera de `.section-head`
   -------------------------------------------------------------------
   #plataforma y #contacto abren con un `<h2>` sin clase, así que caían
   al tamaño base del navegador: 24px contra los 32,6 de los otros seis.
   Es el salto que se siente al bajar por la página — la mitad de abajo
   parece de otro sitio. Se corrige con el token, no repitiendo el
   `clamp`: duplicar el literal es el mecanismo que produjo la deriva.
   =================================================================== */

.landing-body .landing-band__copy > h2,
.landing-body .contact-strip > h2 {
  font-size: var(--type-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* `.mission-badge` también viste el chip «+N XP» del portal (portal.js:3384),
   así que la regla compartida se queda donde estaba y el paso a la escala se
   acota acá. */
.landing-body .mission-badge {
  font-size: var(--type-micro);
}

/* ===================================================================
   El tablero de la primera pantalla
   -------------------------------------------------------------------
   Recrea la estructura del entregable real (`web/client_reports/<slug>/
   dashboard.html`): pregunta de negocio como titular, la unidad en su
   `tag`, cromo de sistema —año, mes, pestañas— y al pie la línea de
   procedencia. Todo con alcance `.landing-body`: la hoja la comparten
   diez páginas.
   =================================================================== */

.landing-body .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.landing-body .hero-tab {
  margin: 1.5rem 0 0;
  border: 1px solid var(--bk-border);
  border-radius: var(--radius-md);
  background: rgba(3, 20, 30, 0.72);
  overflow: hidden;
}

.landing-body .hero-tab__chrome {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid var(--bk-border);
}

.landing-body .hero-tab__id { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }

.landing-body .hero-tab__marca {
  font-family: "Figtree", sans-serif;
  font-size: var(--type-small);
  font-weight: 700;
  color: var(--text-strong);
}

.landing-body .hero-tab__sello {
  padding: 0.14rem 0.5rem;
  border: 1px solid var(--bk-border-accent);
  border-radius: 999px;
  font-size: var(--type-micro);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8fe0c2;
}

.landing-body .hero-tab__mandos { display: flex; gap: 0.4rem; }

.landing-body .hero-tab__sel {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--bk-border);
  border-radius: 6px;
  font-size: var(--type-micro);
  color: var(--tx-cuerpo);
}

/* La flecha del selector, dibujada y no tipografiada: un glifo cambia de
   forma segun la fuente que cargue. */
.landing-body .hero-tab__sel i {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid #7fb3c4;
}

/* La ultima pestana queda cortada por el borde a proposito: asi se ve que
   hay mas tablero del que cabe en la portada. */
.landing-body .hero-tab__pestanas {
  display: flex;
  gap: 1.25rem;
  padding: 0 0.95rem;
  border-bottom: 1px solid var(--bk-border);
  overflow: hidden;
  white-space: nowrap;
}

.landing-body .hero-tab__pestanas span {
  padding: 0.5rem 0 0.45rem;
  font-size: var(--type-micro);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tx-apagado);
  border-bottom: 2px solid transparent;
}

.landing-body .hero-tab__pestanas .is-activa {
  color: var(--text-strong);
  border-bottom-color: #5febbe;
}

.landing-body .hero-tab__cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
}

.landing-body .hero-tab__panel {
  padding: 0.75rem 0.85rem 0.7rem;
  border: 1px solid var(--bk-border);
  border-radius: 14px;
  background: var(--sup-1);
}

.landing-body .hero-tab__lado { display: grid; gap: 0.75rem; align-content: start; }

.landing-body .hero-tab__panel h3 {
  margin: 0 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  font-size: var(--type-small);
  line-height: 1.3;
  color: var(--text-strong);
}

.landing-body .hero-tab__tag {
  padding: 0.1rem 0.42rem;
  border: 1px solid var(--bk-border);
  border-radius: 999px;
  font-size: var(--type-micro);
  font-weight: 400;
  color: var(--tx-cuerpo);
}

.landing-body .hero-tab__svg { display: block; width: 100%; height: auto; }
.landing-body .ht-guia line { stroke: rgba(119, 186, 207, 0.18); stroke-width: 1; }
.landing-body .ht-guia text { fill: #6f9fb0; font-size: 9px; text-anchor: end; }
.landing-body .ht-barra rect { fill: #0f8a66; }
.landing-body .ht-barra .is-foco { fill: #5febbe; }
.landing-body .ht-linea { fill: none; stroke: #f0c04a; stroke-width: 2; stroke-linejoin: round; }
.landing-body .ht-punto circle { fill: #f0c04a; }
.landing-body .ht-punto .is-foco { fill: #ff9f9f; }

.landing-body .hero-tab__meses {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0.1rem 0 0.7rem;
  padding: 0 0 0 7%;
  list-style: none;
  font-size: var(--type-micro);
  color: var(--tx-apagado);
  text-align: center;
}

.landing-body .hero-tab__tabla {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--type-micro);
  font-variant-numeric: tabular-nums;
}

.landing-body .hero-tab__tabla th,
.landing-body .hero-tab__tabla td {
  padding: 0.3rem 0.35rem;
  text-align: right;
  border-top: 1px solid rgba(119, 186, 207, 0.14);
  color: var(--tx-claro);
}

.landing-body .hero-tab__tabla thead th {
  border-top: 0;
  font-weight: 400;
  color: var(--tx-apagado);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.landing-body .hero-tab__tabla th[scope="row"] { text-align: left; font-weight: 400; color: var(--tx-cuerpo); }
.landing-body .hero-tab__tabla .is-foco td,
.landing-body .hero-tab__tabla .is-foco th { color: var(--text-strong); background: rgba(95, 235, 190, 0.07); }
.landing-body .hero-tab__tabla .es-total td,
.landing-body .hero-tab__tabla .es-total th {
  border-top: 1px solid var(--bk-border-accent);
  font-weight: 700;
  color: var(--text-strong);
}
.landing-body .hero-tab__tabla--mini th[scope="row"] { text-transform: none; }

.landing-body .hero-tab__pend {
  padding: 0.05rem 0.4rem;
  border: 1px dashed rgba(240, 192, 74, 0.5);
  border-radius: 4px;
  color: #f0c04a;
}

.landing-body .hero-tab__exp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.25rem;
  margin: 0 0 0.55rem;
  padding: 0;
  list-style: none;
  text-align: center;
}

.landing-body .hero-tab__exp li { display: grid; gap: 0.15rem; }
.landing-body .hero-tab__exp span { font-size: var(--type-micro); color: var(--tx-apagado); }
.landing-body .hero-tab__exp b {
  padding: 0.16rem 0;
  border-radius: 4px;
  font-size: var(--type-micro);
  font-weight: 700;
}
.landing-body .hero-tab__exp .e3 { background: rgba(95, 235, 190, 0.17); color: #8fe0c2; }
.landing-body .hero-tab__exp .e2 { background: rgba(240, 192, 74, 0.15); color: #f0c04a; }

.landing-body .hero-tab__nota,
.landing-body .hero-tab__riesgo { margin: 0 0 0.5rem; font-size: var(--type-micro); line-height: 1.5; color: var(--tx-cuerpo); }
.landing-body .hero-tab__riesgo b { color: var(--text-strong); }

.landing-body .hero-tab__accion { display: grid; grid-template-columns: auto 1fr; gap: 0.2rem 0.55rem; margin: 0 0 0.5rem; }
.landing-body .hero-tab__accion dt {
  font-size: var(--type-micro);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tx-apagado);
}
.landing-body .hero-tab__accion dd { margin: 0; font-size: var(--type-micro); line-height: 1.5; color: var(--tx-claro); }

/* La linea de procedencia es el argumento entero: ninguna herramienta de
   BI dice de donde sale la cifra. Por eso va en cada panel, no una vez. */
.landing-body .hero-tab__src {
  margin: 0.55rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(119, 186, 207, 0.14);
  font-size: var(--type-micro);
  line-height: 1.45;
  color: var(--tx-tenue);
  word-break: break-word;
}
.landing-body .hero-tab__src b { color: var(--tx-cuerpo); font-weight: 400; }

@media (max-width: 860px) {
  .landing-body .hero-tab__cuerpo { grid-template-columns: minmax(0, 1fr); }
}

/* ===================================================================
   Condensación: la página deja de pedir una pantalla por frase
   -------------------------------------------------------------------
   Medido a 1280 antes de tocar: 7,2 pantallas en nueve secciones tras
   el hero, y el peor caso era §flow — una sola frase a 41,6px sobre
   cuatro líneas, 0,45 pantallas para decir una cosa.

   Lo que se aprieta es el AIRE entre bloques, no la medida de lectura:
   el párrafo sigue a 67 caracteres por línea. Un afiche y un producto
   se distinguen en la densidad, no en el tamaño de la letra.
   =================================================================== */

.landing-body .section-block {
  padding-top: clamp(1.1rem, 2.2vw, 1.6rem);
  padding-bottom: clamp(1.1rem, 2.2vw, 1.6rem);
}

.landing-body .landing-statement__line {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  line-height: 1.14;
  max-width: 34ch;
}

.landing-body .landing-statement__steps {
  gap: 0.5rem 1.5rem;
}

/* El hero no necesita 41,6px de respiro antes del contenido: el titular
   ya es la jerarquía. */
.landing-body .hero-solo {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.landing-body .hero-tab {
  margin-top: 1.1rem;
}

/* La salida hacia /simuladores: una línea donde había una sección. */
.landing-body .landing-salida {
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--bk-border);
  font-size: var(--type-small);
  color: var(--tx-cuerpo);
}

.landing-body .landing-salida a {
  color: #5febbe;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Los dos titulares que quedaron de fusionar secciones. Son `h3` y no `h2`
   a propósito: son la segunda mitad de un tema, no un tema nuevo — que es
   justamente lo que hacía leer dos arranques para una sola cosa. */
.landing-body .landing-dense__capa,
.landing-body .landing-band__capa {
  grid-column: 1 / -1;
  margin: 1.4rem 0 0.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--bk-border);
  font-size: var(--type-subhead);
  line-height: 1.2;
  color: var(--text-strong);
}

/* A 375 la tabla de resultado tiene cinco columnas de pesos exactos y no
   cabe: medí 14 desbordes. No se achican las cifras —el punto del tablero es
   que sean exactas— así que la tabla rueda dentro de su panel y el resto de
   la página no se mueve. */
/* Hay una regla global `.landing-body figcaption { max-width: 50ch }`, correcta
   para un pie de foto en prosa y equivocada para esto: el cromo del tablero ES
   un `figcaption`, y quedaba capado en 480px dentro de una figura de 1248. La
   medida de lectura se conserva donde hay prosa; acá no la hay. */
.landing-body .hero-tab__chrome { max-width: none; }

/* A 375 la tabla de resultado no cabe. La primera versión la hacía rodar, y
   rodar esconde columnas detrás de un gesto que nadie descubre en una portada.
   Se retira la columna de CONTEXTO —el costo de ventas— y quedan las tres que
   sostienen la pregunta: ingresos, utilidad bruta y margen.
   Ojo con medir esto: una tabla CONTENIDA y una tabla RECORTADA dan el mismo
   cero de desborde de página. Lo que distingue es `scrollWidth` contra
   `clientWidth` del elemento, no del documento. */
@media (max-width: 60rem) {
  .landing-body .hero-tab__tabla thead th:nth-child(3),
  .landing-body .hero-tab__tabla tbody td:nth-child(2) {
    display: none;
  }
}

/* ===================================================================
   El ritmo entre secciones, y por qué el hueco estaba sólo arriba
   -------------------------------------------------------------------
   Sebastián señaló un hueco en vivo. Medido a 1280 sobre producción, la
   separación que el OJO ve —entre cosas visibles, no entre border-box—
   era ésta:

       hero       -> flow          75    ninguna de las dos es caja
       flow       -> servicios    107    ninguna de las dos es caja
       servicios  -> productos     21
       productos  -> plataforma    21
       plataforma -> baku          21
       baku       -> contacto      21

   Entre CAJAS el ritmo ya era perfecto: 21 en los cuatro bordes, que es
   el `gap` de la grilla de `main`. Los dos huecos grandes están donde no
   hay caja — y están arriba, que es donde se mira primero.

   La causa: `#productos`, `#baku` y `#contacto` tienen borde y
   `#plataforma` tiene fondo, así que su padding está DENTRO de algo que
   se ve y lee como interior. `#flow` y `#servicios` no tienen ni borde
   ni fondo: su padding no delimita nada, así que lee como vacío. Medir
   border-box contra border-box mezcla las dos cosas y da 2,33; medir
   entre lo visible da 5,1.

   El arreglo no es un único valor para todas: es que una frontera SIN
   borde necesita más aire que una CON borde, y que cada clase sea
   uniforme consigo misma. Queda 41 entre secciones sueltas y 21 entre
   cajas — una razón de 1,95 que es una decisión, no una suma de tres
   decisiones tomadas por separado.
   =================================================================== */

.landing-body {
  /* lo que aporta CADA LADO de una sección sin caja; el `gap` de la
     grilla (20,8px) pone el resto */
  --aire-suelto: 0.62rem;
}

.landing-body .hero-solo { padding-bottom: var(--aire-suelto); }

/* Con `.section-block.landing-statement`, no `.landing-statement` a secas:
   la regla de §forma-1 declara `padding: clamp(1.6rem, 5vw, 3.4rem) 0` con
   especificidad (0,3,0) y le gana a (0,2,0). La regla que escribí en #425 para
   esto NUNCA aplicó — lo que bajó la sección fue el tamaño de letra, no el
   padding que declaré. Una regla perdida en la cascada se ve igual que una que
   funciona: el computado es el único que lo dice. */
.landing-body .section-block.landing-statement {
  padding-top: var(--aire-suelto);
  padding-bottom: var(--aire-suelto);
}

.landing-body .section-block.landing-dense { padding-top: var(--aire-suelto); }

/* Las tres reglas del calibrador de quest se van con él: su HTML salió de
   la portada y su JavaScript se retiró en #425. Ningún HTML de `web/` usa
   `.quest-slider-wrap` ni `.quest-level`. */

/* ===================================================================
   Las superficies que no dibujé
   -------------------------------------------------------------------
   Selección, cursor, barra de scroll, anillo de foco y los numerales
   vienen con el default del navegador, que no pertenece a ningún sistema
   de diseño. Es lo más barato que distingue una página construida de una
   ensamblada, y es lo que nadie hace.
   =================================================================== */

.landing-body ::selection {
  background: rgba(95, 235, 190, 0.26);
  color: var(--text-strong);
}

.landing-body {
  caret-color: #5febbe;
  scrollbar-color: rgba(119, 186, 207, 0.32) transparent;
  scrollbar-width: thin;
}

.landing-body ::-webkit-scrollbar { width: 11px; height: 11px; }
.landing-body ::-webkit-scrollbar-track { background: transparent; }
.landing-body ::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(119, 186, 207, 0.32) padding-box;
}
.landing-body ::-webkit-scrollbar-thumb:hover { background: rgba(119, 186, 207, 0.5) padding-box; }

.landing-body :focus-visible {
  outline: 2px solid #5febbe;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Cada cifra de la página es dinero o un mes: los numerales van tabulares
   en todo, no sólo en la tabla del tablero. Una columna de pesos que no
   alinea es lo primero que delata un informe mal hecho. */
.landing-body {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* El subrayado de los enlaces de texto, separado de la letra lo justo
   para que no toque las descendentes. */
.landing-body main a:not(.btn):not(.hero-cta-secondary) {
  text-underline-offset: 0.22em;
  text-decoration-thickness: from-font;
}

/* ===================================================================
   El momento
   -------------------------------------------------------------------
   Uno solo, y en lo único que vale la pena mirar: la línea de margen del
   tablero se dibuja al cargar. Arranca desde un estado YA VISIBLE —las
   barras, los ejes y las cifras están ahí desde el primer frame— así que
   nada del contenido depende de la animación, que es la regla de
   `PRODUCT.md` y de UI_SPEC §7.
   =================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .landing-body .ht-linea {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: ht-trazo 820ms cubic-bezier(0.22, 1, 0.36, 1) 160ms forwards;
  }

  .landing-body .ht-punto circle {
    opacity: 0;
    animation: ht-aparece 240ms ease-out forwards;
  }

  .landing-body .ht-punto circle:nth-child(1) { animation-delay: 300ms; }
  .landing-body .ht-punto circle:nth-child(2) { animation-delay: 420ms; }
  .landing-body .ht-punto circle:nth-child(3) { animation-delay: 540ms; }
  .landing-body .ht-punto circle:nth-child(4) { animation-delay: 660ms; }
  .landing-body .ht-punto circle:nth-child(5) { animation-delay: 780ms; }
  .landing-body .ht-punto circle:nth-child(6) { animation-delay: 900ms; }
}

@keyframes ht-trazo { to { stroke-dashoffset: 0; } }
@keyframes ht-aparece { to { opacity: 1; } }

/* ===================================================================
   El tablero deja de tener un hueco
   -------------------------------------------------------------------
   Medido en la captura: la columna derecha lleva tres paneles y la
   izquierda uno, así que el panel del resultado se estiraba y dejaba un
   vacío grande debajo de su tabla — justo en el hero, que es lo primero
   que se ve. Las dos columnas pasan a tener altura propia.
   =================================================================== */

.landing-body .hero-tab__cuerpo { align-items: start; }
