/* =========================================================
   ALGO ECOSYSTEM — Home Layout Visual
   Fuente: Documento 5 + Checklist Figma
   ========================================================= */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  /* Color base */
  --ink:            #0D0D0D;
  --paper:          #F9F8F6;
  --neutral-light:  #F0EEE9;
  --neutral-deep:   #111111;
  --surface-diff-a: #1A1A1A;
  --surface-diff-b: #EFEDE8;

  /* Accent */
  --accent-purple:   #6D28D9;
  --accent-magenta:  #A21CAF;
  --accent-gradient: linear-gradient(135deg, #7C3AED 0%, #C026D3 100%);
  --accent-light:    rgba(109, 40, 217, 0.12);

  /* Text */
  --text-on-light:   #0D0D0D;
  --text-sub-light:  #444444;
  --text-on-dark:    #F5F3EF;
  --text-sub-dark:   #A8A49D;

  /* Borders */
  --border-light:    rgba(13, 13, 13, 0.10);
  --border-dark:     rgba(245, 243, 239, 0.12);

  /* Grid */
  --col-max:   1280px;
  --mg-desk:   80px;
  --mg-tab:    40px;
  --mg-mob:    20px;

  /* Spacing */
  --s8:   8px;   --s12:  12px;  --s16:  16px;
  --s20:  20px;  --s24:  24px;  --s32:  32px;
  --s40:  40px;  --s48:  48px;  --s64:  64px;
  --s72:  72px;  --s88:  88px;  --s96:  96px;
  --s104: 104px; --s120: 120px;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--paper);
  color: var(--text-on-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--mg-desk);
}

/* ─── TYPOGRAPHY SCALE ────────────────────────────────────── */
.body-l {
  font-size: 20px;
  line-height: 32px;
  color: var(--text-sub-light);
  font-weight: 400;
}
.body-m {
  font-size: 16px;
  line-height: 26px;
  color: var(--text-sub-light);
  font-weight: 400;
}
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-sub-light);
  display: block;
  margin-bottom: var(--s16);
}
.section-label--light { color: var(--text-sub-dark); }

/* ─── CTA ─────────────────────────────────────────────────── */
.cta {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.18s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.cta:hover  { opacity: 0.74; }
.cta:active { opacity: 0.55; }

.cta--dark {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta--light {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.cta--full { width: 100%; text-align: center; justify-content: center; }

/* ─── BLOCK LABEL (Figma annotation) ─────────────────────── */
.block-label {
  position: absolute;
  bottom: 12px;
  right: var(--mg-desk);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(13,13,13,0.14);
  pointer-events: none;
  user-select: none;
}
.block-label--light { color: rgba(245,243,239,0.18); }
.block-label--dark  { color: rgba(13,13,13,0.14); }

.section { position: relative; }

/* ═══════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--neutral-deep);
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--mg-desk);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s8);
  color: var(--text-on-dark);
}
.nav__logo-mark {
  font-size: 20px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__logo-text {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.nav__logo-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-sub-dark);
  display: block;
  margin-top: -2px;
}
.nav__links {
  display: flex;
  gap: var(--s32);
}
.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-sub-dark);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text-on-dark); }
.nav__link--active {
  color: var(--text-on-dark) !important;
  border-bottom: 1.5px solid var(--accent-purple);
  padding-bottom: 2px;
}

/* Logo imagen en nav */
.nav__logo-link { display: flex; align-items: center; }
.nav__logo-img {
  height: 96px;
  width: auto;
  display: block;
}

/* Footer logo */
.footer__logo {
  height: 28px;
  width: auto;
  opacity: 0.60;
  filter: brightness(0.7) contrast(0.8);
}

/* Mobile menu button */
.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-sub-dark);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

/* Mobile nav open state */
@media (max-width: 960px) {
  .nav__menu-btn { display: block; }
  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    background: var(--neutral-deep);
    padding: var(--s24) var(--mg-tab);
    gap: var(--s20);
    border-top: 1px solid var(--border-dark);
    z-index: 99;
  }
  .nav--open .nav__links a {
    font-size: 14px;
    color: var(--text-sub-dark);
  }
}

/* ═══════════════════════════════════════════════════════════
   B01 · HERO  — ajuste v2: declaración institucional
   · H1 sube a 104px, tracking más cerrado, line-height 0.88
   · Visual derecho se vuelve abstracto (campo de líneas puro)
   · Satélites y nodo central suprimidos
   · Grid se abre a 6fr / 6fr para dar más aire al H1
═══════════════════════════════════════════════════════════ */
.b01-hero {
  background: var(--neutral-deep);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 80px; /* nav offset */
  overflow: hidden;
}
.b01-hero__bg-grid {
  position: absolute;
  inset: 0;
  /* grilla más sutil — cadencia mayor */
  background-image:
    linear-gradient(rgba(109,40,217,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109,40,217,0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  pointer-events: none;
}
.b01-hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 6fr 6fr;
  align-items: center;
  padding-top: var(--s88);
  padding-bottom: var(--s88);
  gap: var(--s64);
  position: relative;
  z-index: 1;
}
.b01-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
}
.b01-hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub-dark);
  opacity: 0.60;
}
/* ─ H1: declaración institucional — v3 ─ */
.b01-hero__h1 {
  font-size: 112px;
  font-weight: 900;
  line-height: 0.86;
  color: var(--text-on-dark);
  letter-spacing: -0.045em;
}
.b01-hero__sub {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-sub-dark);
  font-weight: 400;
  opacity: 0.55;
  margin-top: var(--s4, 4px);
}

/* ─ Hero visual: campo abstracto de líneas ─ */
.b01-hero__visual {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  height: 100%;
}
/* Reemplazamos el orbit por un campo SVG de líneas puras.
   El HTML existente (sys-diagram, sys-node, sys-orbit, sys-sat)
   queda ocultado; solo el SVG base se usa como canvas abstracto. */
.b01-hero__sys-diagram {
  position: relative;
  width: 480px;
  height: 480px;
  opacity: 0.22;
}
.b01-hero__sys-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Nodo central y satélites: opacos al mínimo — ya no son protagonistas */
.b01-hero__sys-node--center {
  display: none;
}
.b01-hero__sys-mark {
  display: none;
}
.b01-hero__sys-orbit {
  display: none;
}
.b01-hero__sys-sat {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   B02 · QUÉ ES ALGO
═══════════════════════════════════════════════════════════ */
.b02-que {
  background: var(--paper);
  padding-top: var(--s120);
  padding-bottom: var(--s120);
}
.b02-que__inner {
  display: grid;
  grid-template-columns: 3fr 6fr;
  gap: var(--s64);
  align-items: start;
}
.b02-que__h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  margin-top: var(--s8);
}
.b02-que__body-col {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
}

/* ═══════════════════════════════════════════════════════════
   B03 · ESCALA OPERATIVA — ajuste v2: más técnico
   · Padding vertical compactado de 104 → 72
   · Header comprimido: H2 baja de 40 a 28px (role técnico, no titular)
   · Cifras suben de 72 → 88px — son el único protagonista visual
   · Padding de stat-module comprimido
   · Gap interno de header comprimido a s8
═══════════════════════════════════════════════════════════ */
.b03-scale {
  background: var(--surface-diff-a);
  padding-top: var(--s72);
  padding-bottom: var(--s72);
}
.b03-scale__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s32);
}
.b03-scale__header {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  max-width: 760px;
  /* header en fila: H2 + sub en horizontal */
  flex-direction: row;
  align-items: baseline;
  gap: var(--s32);
}
.b03-scale__h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  white-space: nowrap;
  flex-shrink: 0;
}
.b03-scale__sub {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-sub-dark);
  opacity: 0.70;
}
.b03-scale__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245,243,239,0.08);
  border: 1px solid rgba(245,243,239,0.08);
}

/* Stat module — más compacto, cifra dominante */
.stat-module {
  background: var(--surface-diff-a);
  padding: var(--s32) var(--s24);
  display: flex;
  flex-direction: column;
  gap: var(--s12);
  border-right: 1px solid rgba(245,243,239,0.06);
}
.stat-module:last-child { border-right: none; }
.stat-module__value {
  font-size: 88px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text-on-dark);
  display: flex;
  align-items: flex-start;
}
.stat-module__plus {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-purple);
  margin-top: 10px;
  margin-left: 2px;
}
.stat-module__label {
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  color: var(--text-sub-dark);
  letter-spacing: 0.01em;
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════
   B04 · CÓMO FUNCIONA EL ECOSISTEMA
═══════════════════════════════════════════════════════════ */
.b04-how {
  background: var(--paper);
  padding-top: var(--s120);
  padding-bottom: var(--s120);
}
.b04-how__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s64);
  align-items: start;
}
.b04-how__h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  margin-top: var(--s8);
  margin-bottom: var(--s32);
}
.b04-how__text-col {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
}

/* ─── Diagram — ajuste v2: autoridad operativa ───────────────
   · Fondo oscuro: superficie var(--surface-diff-a)
   · Border más visible — línea de 1.5px sobre oscuro
   · Layer labels en blanco sobre fondo oscuro
   · Nodos con borde blanco / texto blanco
   · Flow-line más gruesa y opaca
   · Retroalimentación: línea de retorno independiente y visible,
     con flecha ← y label en morado, no inline sino banda inferior
──────────────────────────────────────────────────────────── */
.diagram {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
  padding: var(--s40);
  border: 1.5px solid rgba(245,243,239,0.14);
  background: var(--surface-diff-a);
}

/* Layer labels row */
.diagram__layers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s16);
}
.diagram__layer-label {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  padding-bottom: var(--s12);
  border-bottom: 2px solid var(--accent-purple);
}
.diagram__layer-num {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-purple);
}
.diagram__layer-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-on-dark);
}

/* Flow track — más gruesa, más visible */
.diagram__flow-track {
  display: flex;
  align-items: center;
  gap: var(--s8);
}
.diagram__flow-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-purple) 0px,
    var(--accent-purple) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.80;
}
.diagram__flow-arrow {
  font-size: 20px;
  color: var(--accent-purple);
  font-weight: 900;
}

/* Nodes row */
.diagram__nodes {
  display: flex;
  align-items: stretch;
  gap: var(--s12);
}
.diagram__node-group {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
  flex: 1;
}
/* Nodos: borde y texto blancos sobre fondo oscuro */
.diagram__node {
  border: 1.5px solid rgba(245,243,239,0.30);
  padding: var(--s16) var(--s12);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-on-dark);
  line-height: 1.3;
  background: rgba(245,243,239,0.04);
  flex: 1;
  transition: border-color 0.15s;
}
.diagram__node:hover {
  border-color: var(--accent-purple);
  background: rgba(109,40,217,0.08);
}
/* Connector: flecha tipográfica + línea sólida */
.diagram__conn {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: var(--accent-purple);
  font-weight: 900;
  flex-shrink: 0;
  align-self: center;
  margin: 0 var(--s4, 4px);
  letter-spacing: -0.02em;
}

/* Return — banda inferior independiente */
.diagram__return {
  display: flex;
  align-items: center;
  gap: var(--s16);
  padding-top: var(--s16);
  border-top: 1px solid rgba(245,243,239,0.08);
  margin-top: var(--s8);
}
.diagram__return-line {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent-purple) 0px,
    var(--accent-purple) 5px,
    transparent 5px,
    transparent 12px
  );
  opacity: 0.60;
}
.diagram__return-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-purple);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  /* flecha de retorno ← */
}
.diagram__return-label::before {
  content: '← ';
  font-weight: 900;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════
   B05 · EMPRESAS DEL ECOSISTEMA
   · Fichas más limpias: función en 1 línea, rol en 1 línea
   · Texto función reducido a 13px / 1 línea + elipsis controlado
   · Igualdad visual absoluta entre las 5 fichas
═══════════════════════════════════════════════════════════ */
.b05-companies {
  background: var(--neutral-light);
  padding-top: var(--s104);
  padding-bottom: var(--s104);
}
.b05-companies__header {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--s48);
}
.b05-companies__h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
}
.b05-companies__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
}
.company-card {
  background: var(--paper);
  padding: var(--s40) var(--s32);
  display: flex;
  flex-direction: column;
  gap: var(--s16);
}
.company-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent-purple);
}
.company-card__name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.company-card__divider {
  width: 32px;
  height: 2px;
  background: var(--ink);
}
.company-card__function {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-sub-light);
  font-weight: 400;
  /* Máximo 3 líneas visibles — densidad controlada */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.company-card__role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent-purple);
  border-top: 1px solid var(--border-light);
  padding-top: var(--s12);
  margin-top: auto;
}
.b05-companies__cta-row {
  margin-top: var(--s48);
}

/* ═══════════════════════════════════════════════════════════
   B06 · PRESENCIA REGIONAL
═══════════════════════════════════════════════════════════ */
.b06-region {
  background: var(--surface-diff-b);
  padding-top: var(--s104);
  padding-bottom: var(--s104);
}
.b06-region__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s64);
  align-items: start;
}
.b06-region__h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  margin-top: var(--s8);
  margin-bottom: var(--s32);
}
.b06-region__text-col {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
}

/* Country list */
.country-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-light);
}
.country-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s16);
  padding: var(--s20) var(--s24);
  border-bottom: 1px solid var(--border-light);
}
.country-item:last-child { border-bottom: none; }
.country-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-sub-light);
  margin-top: 6px;
  flex-shrink: 0;
}
.country-item__dot--active { background: var(--accent-purple); }
.country-item__content {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
}
.country-item__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.country-item__desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--text-sub-light);
}

/* Map — ajuste v2: peso institucional
   · Fondo del mapa-col oscurecido para peso visual
   · Land con contraste más alto — tono más profundo
   · Marcadores primarios con halo visible
   · Tags en negrita, color ink puro
   · Líneas de conexión más opacas y definidas
   · Arco operativo más visible
──────────────────────────────────────────────────── */
.b06-region__map-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--neutral-light);
  border: 1.5px solid var(--border-light);
  padding: var(--s48) var(--s40);
}
.map-container {
  width: 100%;
  max-width: 460px;
}
.map-svg {
  width: 100%;
  height: auto;
}
/* Tierra: tono más oscuro y stroke definido */
.map-land {
  fill: #C4BDB3;
  stroke: #8B8379;
  stroke-width: 1;
}
/* Marcador base */
.map-marker {
  fill: var(--ink);
  opacity: 0.55;
}
/* Marcador primario (Costa Rica): morado + halo */
.map-marker--primary {
  fill: var(--accent-purple);
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(109,40,217,0.50));
}
/* Tags: más visibles, más institucionales */
.map-tag {
  font-size: 11px;
  font-weight: 800;
  fill: var(--ink);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
}
/* Líneas de conexión verticales */
.map-line {
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.40;
}
/* Arco de conexión operativa */
.map-arc {
  stroke: var(--accent-purple);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
  opacity: 0.50;
}

/* ═══════════════════════════════════════════════════════════
   B07 · CAPACIDADES INTEGRADAS
═══════════════════════════════════════════════════════════ */
.b07-cap {
  background: var(--paper);
  padding-top: var(--s104);
  padding-bottom: var(--s104);
  border-top: 1px solid var(--border-light);
}
.b07-cap__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s48);
}
.b07-cap__heading-row {
  display: flex;
  flex-direction: column;
}
.b07-cap__h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
}
.b07-cap__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s40);
}
.b07-cap__col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cap-item {
  font-size: 16px;
  line-height: 26px;
  font-weight: 400;
  color: var(--text-sub-light);
  padding: var(--s20) 0;
  border-bottom: 1px solid var(--border-light);
}
.cap-item:first-child { border-top: 1px solid var(--border-light); }

/* ═══════════════════════════════════════════════════════════
   B08 · PROPÓSITO — v3: peso máximo, silencio total
   · Padding 180px — pausa real antes y después
   · Titular a 96px, tracking -0.045em, line-height 0.88
   · Cuerpo a 15px, opacidad 0.38 — texto de cierre, no argumento
   · Gap 80px entre titular y cuerpo — dos capas separadas
   · Numeración oculta
═══════════════════════════════════════════════════════════ */
.b08-purpose {
  background: var(--neutral-deep);
  padding-top: 180px;
  padding-bottom: 180px;
}
.b08-purpose__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--mg-desk);
  display: flex;
  flex-direction: column;
  gap: var(--s88);
  text-align: center;
  align-items: center;
}
/* Ocultar numeración: el propósito no se numera */
.b08-purpose__inner .section-label {
  display: none;
}
.b08-purpose__headline {
  font-size: 96px;
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--text-on-dark);
  max-width: 900px;
}
/* Texto de apoyo: presencia mínima — casi inaudible */
.b08-purpose__body {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-sub-dark);
  max-width: 480px;
  opacity: 0.38;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════
   B09 · CONTACTO CORPORATIVO
═══════════════════════════════════════════════════════════ */
.b09-contact {
  background: var(--paper);
  padding-top: var(--s104);
  padding-bottom: var(--s104);
  border-top: 1px solid var(--border-light);
}
.b09-contact__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--s64);
  align-items: start;
}
.b09-contact__text-col {
  display: flex;
  flex-direction: column;
  gap: var(--s24);
}
.b09-contact__h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.10;
  letter-spacing: -0.02em;
  color: var(--text-on-light);
  margin-top: var(--s8);
}
.b09-contact__email {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent-purple);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.b09-contact__validate {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D97706;
  background: rgba(217,119,6,0.08);
  padding: 4px 10px;
  display: inline-block;
  width: fit-content;
}
.b09-contact__form-col { }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s20);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--s8);
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-sub-light);
}
.form-input {
  border: 1.5px solid var(--border-light);
  background: var(--paper);
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
  border-radius: 0;
  width: 100%;
}
.form-input:focus { border-color: var(--accent-purple); }
.form-input::placeholder { color: #ABABAB; }
.form-textarea { resize: vertical; min-height: 120px; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  background: var(--neutral-deep);
  border-top: 1px solid var(--border-dark);
  padding: var(--s32) 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-sub-dark);
}
.footer__copy {
  font-size: 12px;
  color: #4D4D4D;
}


/* ═══════════════════════════════════════════════════════════
   TABLET  834px
═══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .container { padding: 0 var(--mg-tab); }

  /* Nav */
  .nav__links { display: none; }

  /* B01 */
  .b01-hero__inner {
    grid-template-columns: 1fr;
    padding-top: var(--s88);
    padding-bottom: var(--s88);
  }
  .b01-hero__h1 { font-size: 76px; line-height: 0.88; }
  .b01-hero__visual { display: none; }

  /* B02 */
  .b02-que__inner { grid-template-columns: 1fr; gap: var(--s32); }
  .b02-que { padding-top: var(--s88); padding-bottom: var(--s88); }

  /* B03 */
  .b03-scale__grid { grid-template-columns: repeat(3, 1fr); }
  .b03-scale { padding-top: var(--s64); padding-bottom: var(--s64); }
  .b03-scale__header { flex-direction: column; gap: var(--s8); }
  .stat-module__value { font-size: 64px; }

  /* B04 */
  .b04-how__inner { grid-template-columns: 1fr; gap: var(--s40); }
  .b04-how { padding-top: var(--s88); padding-bottom: var(--s88); }

  /* B05 */
  .b05-companies__grid { grid-template-columns: repeat(3, 1fr); }
  .b05-companies { padding-top: var(--s88); padding-bottom: var(--s88); }

  /* B06 */
  .b06-region__inner { grid-template-columns: 1fr; gap: var(--s40); }
  .b06-region { padding-top: var(--s88); padding-bottom: var(--s88); }

  /* B07 */
  .b07-cap { padding-top: var(--s88); padding-bottom: var(--s88); }

  /* B08 */
  .b08-purpose__headline { font-size: 64px; line-height: 0.90; }
  .b08-purpose__inner { padding: 0 var(--mg-tab); }
  .b08-purpose { padding-top: 140px; padding-bottom: 140px; }
  .b08-purpose__body { font-size: 14px; opacity: 0.36; }

  /* B09 */
  .b09-contact__inner { grid-template-columns: 1fr; gap: var(--s40); }
  .b09-contact { padding-top: var(--s88); padding-bottom: var(--s88); }

  .block-label { right: var(--mg-tab); }
}


/* ═══════════════════════════════════════════════════════════
   MOBILE  390px
═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .container { padding: 0 var(--mg-mob); }

  /* B01 */
  .b01-hero__h1 { font-size: 52px; line-height: 0.88; }
  .b01-hero__sub { font-size: 15px; }
  .b01-hero__inner { padding-top: var(--s72); padding-bottom: var(--s72); }

  /* B02 */
  .b02-que { padding-top: var(--s72); padding-bottom: var(--s72); }
  .body-l { font-size: 17px; line-height: 28px; }

  /* B03 */
  .b03-scale__grid { grid-template-columns: 1fr; }
  .b03-scale { padding-top: var(--s48); padding-bottom: var(--s48); }
  .b03-scale__header { flex-direction: column; gap: var(--s8); }
  .stat-module__value { font-size: 80px; }

  /* B04 */
  .b04-how { padding-top: var(--s72); padding-bottom: var(--s72); }
  .diagram { padding: var(--s24); }
  .diagram__layers { grid-template-columns: repeat(2, 1fr); }
  .diagram__nodes { flex-direction: column; }
  .diagram__conn { display: none; }
  .diagram__node-group { flex-direction: row; }
  .diagram__node { font-size: 12px; }

  /* B05 */
  .b05-companies__grid { grid-template-columns: 1fr; }
  .b05-companies { padding-top: var(--s72); padding-bottom: var(--s72); }

  /* B06 */
  .b06-region { padding-top: var(--s72); padding-bottom: var(--s72); }

  /* B07 */
  .b07-cap { padding-top: var(--s72); padding-bottom: var(--s72); }
  .b07-cap__columns { grid-template-columns: 1fr; gap: var(--s24); }

  /* B08 */
  .b08-purpose__headline { font-size: 44px; line-height: 0.88; }
  .b08-purpose__body { font-size: 14px; opacity: 0.35; }
  .b08-purpose__inner { padding: 0 var(--mg-mob); }
  .b08-purpose { padding-top: 100px; padding-bottom: 100px; }

  /* B09 */
  .b09-contact { padding-top: var(--s72); padding-bottom: var(--s72); }

  .block-label { right: var(--mg-mob); }
}
