/* ============================================================
   Proyecto La Esperanza — Sistema de Diseño Institucional
   Anclado al logo de marca: verde bosque (#2c572a),
   amarillo cosecha (#fca700), marrón tierra (#79401e).
   Acento funcional: teal río Meche (agua).
   Display: Archivo · Cuerpo: Inter
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Núcleo de marca (mapeados sobre los nombres del sistema) */
  --blue-900: #14300f;   /* verde muy oscuro — fondos oscuros, footer */
  --blue-800: #1d3f18;
  --blue-700: #2c572a;   /* PRIMARIO — verde bosque, autoridad */
  --blue-600: #3a6f34;
  --teal-500: #1f8a7a;   /* ACENTO agua — río Meche / ambiental */
  --teal-400: #37b39c;
  --green-600: #d1930a;
  --green-500: #fca700;  /* ACENTO cosecha — amarillo, CTA y cifras */

  /* Tierra */
  --earth-700: #79401e;  /* marrón — cacao, ganadería, secciones cálidas */
  --earth-600: #925025;

  /* Neutrals */
  --ink-900: #22301c;    /* verde-tinta casi negro, titulares */
  --ink-700: #33402c;    /* cuerpo */
  --ink-500: #5c6653;
  --ink-300: #97a08d;
  --line: #e2e0d5;
  --sand-50: #f4f1ea;    /* hueso del logo — fondo cálido alterno */
  --sand-100: #ebe7db;
  --paper: #ffffff;

  /* Functional */
  --bg: var(--paper);
  --bg-alt: var(--sand-50);

  /* Type */
  --display: "Archivo", "Segoe UI", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Scale */
  --step--1: clamp(0.78rem, 0.74rem + 0.2vw, 0.85rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.6rem);
  --step-5: clamp(3.2rem, 2.2rem + 5vw, 6rem);

  /* Layout */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 4px;
  --radius-lg: 10px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}
.eyebrow {
  font-family: var(--display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earth-700);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--green-500);
  display: inline-block;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 7.5rem); }
.section--alt { background: var(--bg-alt); }
.section--ink { background: var(--blue-900); color: #cfdde6; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 500; font-size: var(--step--1);
  letter-spacing: 0.04em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--green-500); color: var(--ink-900); }
.btn--primary:hover { background: #ffb92e; }
.btn--solidblue { background: var(--blue-700); color: #fff; }
.btn--solidblue:hover { background: var(--blue-600); }
.btn--ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--outline { border-color: var(--line); color: var(--ink-900); }
.btn--outline:hover { border-color: var(--blue-700); color: var(--blue-700); }

/* ============================================================
   HEADER  (injected by site.js)
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.1rem;
}
.site-header.scrolled {
  background: rgba(20,48,15, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  padding-block: 0.7rem;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; }
.brand-chip {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 13px;
  background: var(--sand-50);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(0,0,0,0.04);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.brand-chip img { width: 40px; height: 40px; object-fit: contain; }
.brand:hover .brand-chip { transform: translateY(-1px); }
.site-header.scrolled .brand-chip { width: 46px; height: 46px; border-radius: 11px; }
.site-header.scrolled .brand-chip img { width: 35px; height: 35px; }
.brand img { height: 38px; width: auto; }
.brand-word {
  font-family: var(--display); font-weight: 700; font-size: 1.25rem;
  letter-spacing: 0.01em; color: #fff; line-height: 1;
}
.brand-word { text-transform: uppercase; letter-spacing: 0.06em; }
.brand-word .v { color: var(--green-500); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--display); font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.82); letter-spacing: 0.01em;
  position: relative; padding-block: 0.3rem;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--teal-400); transition: width 0.3s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .nav-cta {
  padding: 0.6em 1.1em; border: 1px solid rgba(255,255,255,0.3); border-radius: var(--radius);
  color: #fff;
}
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { background: var(--green-500); border-color: var(--green-500); color: var(--ink-900); }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; z-index: 110; }
.burger span { width: 26px; height: 2px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--blue-900); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.6rem; padding: 2rem var(--gutter);
    transform: translateX(100%); transition: transform 0.4s var(--ease);
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.1rem; color: #fff; }
}

/* ============================================================
   FOOTER  (injected by site.js)
   ============================================================ */
.site-footer { background: var(--blue-900); color: #aebecb; font-size: var(--step--1); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 5rem); }
.footer-brand .brand-word { color: #fff; font-size: 1.4rem; }
.footer-brand p { margin-top: 1rem; max-width: 38ch; color: #8ba0b0; line-height: 1.6; }
.footer-col h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 1rem; }
.footer-col a { display: block; padding-block: 0.35rem; color: #aebecb; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-block: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #6f8494; }
.footer-bottom .disclaimer { max-width: 70ch; line-height: 1.5; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ============================================================
   HERO  — signature value-chain
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(0,172,172,0.18), transparent 60%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, #1d3f18 100%);
  color: #fff; overflow: hidden;
  padding-top: 6rem;
}
/* Photo-backed hero */
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(20,48,15,0.94) 0%, rgba(20,48,15,0.82) 38%, rgba(20,48,15,0.45) 70%, rgba(20,48,15,0.30) 100%),
    linear-gradient(180deg, rgba(20,48,15,0.55) 0%, transparent 25%, transparent 55%, rgba(20,48,15,0.75) 100%);
}
.hero--photo .wrap { position: relative; z-index: 2; }
.hero--photo .scroll-cue { z-index: 2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: 0.5;
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { max-width: 44ch; }
.hero h1 {
  font-size: var(--step-5); color: #fff; margin-top: 1.5rem;
}
.hero h1 .accent { color: var(--green-500); }
.hero-lede { margin-top: 1.5rem; font-size: var(--step-1); color: #c4d6e2; line-height: 1.45; max-width: 42ch; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 2; margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  max-width: 940px;
}
.hero-stat { background: rgba(20,48,15,0.55); padding: 1.4rem 1.5rem; }
.hero-stat .num { font-family: var(--display); font-size: var(--step-2); font-weight: 600; color: #fff; }
.hero-stat .num .unit { color: var(--teal-400); }
.hero-stat .lbl { font-size: var(--step--1); color: #c4d2dc; margin-top: 0.3rem; letter-spacing: 0.02em; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 3.5rem; }
  .hero { padding-top: 7.5rem; padding-bottom: 3rem; min-height: 92svh; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .hero-stat { padding: 1.1rem 1.2rem; }
  .hero-stat .num { font-size: var(--step-1); }
}
@media (max-width: 420px) {
  .hero-stats { grid-template-columns: 1fr; }
}

/* ---------- Scroll cue ---------- */
.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.5); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--display); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(rgba(255,255,255,0.5), transparent); animation: cue 2s var(--ease) infinite; }
@media (max-width: 900px) { .scroll-cue { display: none; } }
@keyframes cue { 0% { opacity: 0; transform: scaleY(0.3); transform-origin: top; } 50% { opacity: 1; } 100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; } }

/* ============================================================
   THESIS  — single-line proposition + supporting
   ============================================================ */
.thesis-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.thesis-statement { font-family: var(--display); font-size: var(--step-3); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-900); }
.thesis-statement .hl { color: var(--blue-700); }
.thesis-body p { color: var(--ink-500); margin-bottom: 1.1rem; }
.thesis-body p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .thesis-grid { grid-template-columns: 1fr; gap: 1.8rem; } .thesis-statement { font-size: var(--step-2); } }

/* General mobile rhythm */
@media (max-width: 820px) {
  .section { padding-block: clamp(3rem, 11vw, 4.5rem); }
  .proof-grid { gap: 2rem 1.5rem; }
  .proof-num { font-size: var(--step-2); }
  .certs { gap: 0.8rem 1.6rem; }
}

/* ============================================================
   VALUE CHAIN  — signature element
   ============================================================ */
.chain { position: relative; margin-top: 3.5rem; }
.chain-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.chain-line { position: absolute; top: 46px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--teal-500), var(--green-500)); z-index: 0; }
.chain-line::after { content: ""; position: absolute; inset: 0; background: var(--blue-900); transform-origin: left; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { transform: scaleX(0); } }
.chain-node { position: relative; z-index: 1; text-align: center; padding-inline: 0.8rem; }
.chain-dot { width: 92px; height: 92px; margin: 0 auto 1.4rem; border-radius: 50%; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16); display: grid; place-items: center; color: var(--teal-400); }
.chain-dot svg { width: 38px; height: 38px; }
.chain-node:last-child .chain-dot { color: var(--green-500); border-color: rgba(61,169,61,0.4); }
.chain-step { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-400); }
.chain-title { font-family: var(--display); font-size: var(--step-1); font-weight: 600; color: #fff; margin-top: 0.4rem; }
.chain-desc { color: #9fb4c2; font-size: var(--step--1); margin-top: 0.5rem; line-height: 1.5; }
.chain-trace { margin-top: 2.5rem; text-align: center; font-family: var(--display); font-size: var(--step--1); letter-spacing: 0.06em; color: #7f96a6; }
.chain-trace span { color: var(--teal-400); }
@media (max-width: 820px) {
  .chain-track { grid-template-columns: 1fr; gap: 0; }
  .chain-line { display: none; }
  .chain-node {
    display: grid; grid-template-columns: 64px 1fr; gap: 1.1rem;
    text-align: left; align-items: start; padding: 1.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .chain-node:last-child { border-bottom: 0; }
  .chain-dot {
    margin: 0; width: 64px; height: 64px; grid-row: span 3;
    align-self: center;
  }
  .chain-dot svg { width: 28px; height: 28px; }
  .chain-step { grid-column: 2; }
  .chain-title { grid-column: 2; margin-top: 0.1rem; }
  .chain-desc { grid-column: 2; margin-top: 0.4rem; max-width: 38ch; }
  .chain { margin-top: 2rem; }
  .chain-trace { margin-top: 1.8rem; text-align: left; }
}

/* ============================================================
   NODES PREVIEW  cards
   ============================================================ */
.nodes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.node-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.8rem; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); position: relative; overflow: hidden; }
.node-card::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--teal-500); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.node-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(20,48,15,0.1); border-color: transparent; }
.node-card:hover::before { transform: scaleX(1); }
.node-tag { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-300); }
.node-card h3 { font-size: var(--step-1); margin-top: 0.5rem; }
.node-loc { font-size: var(--step--1); color: var(--teal-500); font-family: var(--display); margin-top: 0.2rem; }
.node-card p { color: var(--ink-500); font-size: var(--step--1); margin-top: 1rem; }
.node-role { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--display); font-size: 0.8rem; font-weight: 500; color: var(--blue-700); }
@media (max-width: 820px) { .nodes-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROOF  — credibility band
   ============================================================ */
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.proof-item { text-align: left; }
.proof-num { font-family: var(--display); font-size: var(--step-3); font-weight: 600; color: #fff; line-height: 1; }
.proof-num .unit { color: var(--teal-400); font-size: 0.55em; }
.proof-lbl { color: #9fb4c2; margin-top: 0.7rem; font-size: var(--step--1); line-height: 1.45; }
@media (max-width: 820px) { .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; } }

/* ---------- Certifications strip ---------- */
.certs { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.1); }
.certs .certs-label { font-family: var(--display); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: #6f8494; }
.cert-pill { font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: #fff; letter-spacing: 0.04em; opacity: 0.9; }

/* ============================================================
   ESG teaser
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-copy h2 { font-size: var(--step-3); }
.split-copy p { color: var(--ink-500); margin-top: 1.2rem; }
.esg-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.esg-kpi { background: var(--paper); padding: 1.6rem; }
.esg-kpi .k-num { font-family: var(--display); font-size: var(--step-2); font-weight: 600; color: var(--blue-700); }
.esg-kpi .k-lbl { font-size: var(--step--1); color: var(--ink-500); margin-top: 0.3rem; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: linear-gradient(135deg, var(--blue-700) 0%, var(--earth-700) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 90% 10%, rgba(252,167,0,0.22), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: var(--step-3); max-width: 20ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.85); margin-top: 1rem; max-width: 52ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ============================================================
   Scroll reveal
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.1s; }
[data-reveal][data-delay="2"] { transition-delay: 0.2s; }
[data-reveal][data-delay="3"] { transition-delay: 0.3s; }

/* ============================================================
   INTERNAL PAGE HERO  (compact, for sub-pages)
   ============================================================ */
.page-hero {
  position: relative; background:
    radial-gradient(110% 120% at 85% 0%, rgba(0,172,172,0.16), transparent 55%),
    linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 100%);
  color: #fff; padding-top: clamp(8rem, 14vw, 11rem); padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  opacity: 0.5;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1, .page-hero h2 { color: #fff; }
.page-hero h1 { font-size: var(--step-4); max-width: 18ch; margin-top: 1.2rem; }
.page-hero .page-lede { margin-top: 1.4rem; font-size: var(--step-1); color: #c4d6e2; max-width: 56ch; line-height: 1.5; }

/* Breadcrumb-ish position indicator */
.page-index { font-family: var(--display); font-size: var(--step--1); color: var(--teal-400); letter-spacing: 0.06em; }

/* ============================================================
   STAT ROW (reusable band of figures)
   ============================================================ */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat-cell { background: var(--paper); padding: 1.8rem; }
.stat-cell .s-num { font-family: var(--display); font-size: var(--step-3); font-weight: 600; color: var(--blue-700); line-height: 1; }
.stat-cell .s-num .unit { color: var(--teal-500); font-size: 0.5em; }
.stat-cell .s-lbl { color: var(--ink-500); margin-top: 0.6rem; font-size: var(--step--1); line-height: 1.45; }
.stat-cell .s-src { color: var(--ink-300); margin-top: 0.5rem; font-size: 0.72rem; font-family: var(--display); letter-spacing: 0.02em; }
.section--ink .stat-row { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.12); }
.section--ink .stat-cell { background: rgba(255,255,255,0.03); }
.section--ink .stat-cell .s-num { color: #fff; }
.section--ink .stat-cell .s-lbl { color: #aebecb; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; } }

/* ============================================================
   PROSE BLOCK (lede + columns)
   ============================================================ */
.lead-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lead-grid h2 { font-size: var(--step-3); }
.lead-body p { color: var(--ink-500); margin-bottom: 1.1rem; }
.lead-body p:last-child { margin-bottom: 0; }
.lead-body strong { color: var(--ink-900); font-weight: 600; }
@media (max-width: 820px) { .lead-grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ============================================================
   FEATURE LIST (advantages)
   ============================================================ */
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.feature { padding: 1.8rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature .f-icon { width: 46px; height: 46px; border-radius: 10px; background: rgba(0,172,172,0.1); display: grid; place-items: center; color: var(--teal-500); margin-bottom: 1.2rem; }
.feature .f-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: var(--step-1); }
.feature p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.6rem; }
@media (max-width: 820px) { .feature-list { grid-template-columns: 1fr; } }

/* ============================================================
   COMPARISON TABLE (moat)
   ============================================================ */
.compare { width: 100%; border-collapse: collapse; margin-top: 2.5rem; font-size: var(--step--1); }
.compare th, .compare td { text-align: left; padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,0.1); vertical-align: top; }
.compare thead th { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: #8ba0b0; font-weight: 500; }
.compare thead th:last-child { color: var(--teal-400); }
.compare tbody th { font-weight: 500; color: #cfdde6; }
.compare td { color: #9fb4c2; }
.compare td:last-child { color: #fff; }
.compare tbody tr:hover { background: rgba(255,255,255,0.03); }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) { .compare { min-width: 560px; } }

/* ============================================================
   HORIZONTAL FLOW DIAGRAM (Platform) — production-chain style
   ============================================================ */
.flowx { margin-top: 3rem; }

/* Station rail */
.flowx-rail { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; position: relative; gap: 0; }
.flowx-station {
  position: relative; text-align: center; padding: 1.6rem 1rem 1.8rem;
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 1;
}
.flowx-station + .flowx-station { margin-left: 26px; }
.flowx-station:hover { background: rgba(0,172,172,0.06); border-color: rgba(0,172,172,0.3); }
.flowx-station.active { background: rgba(0,172,172,0.1); border-color: var(--teal-400); transform: translateY(-3px); }
.flowx-station:last-child.active { border-color: var(--green-500); background: rgba(61,169,61,0.1); }

/* Arrow between stations */
.flowx-station:not(:last-child)::after {
  content: ""; position: absolute; right: -26px; top: 50%; width: 26px; height: 2px;
  background: rgba(0,172,172,0.35); z-index: 0;
}
.flowx-station:not(:last-child)::before {
  content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 8px; height: 8px; border-top: 2px solid var(--teal-400); border-right: 2px solid var(--teal-400);
  z-index: 2;
}

.flowx-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 14px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16);
  display: grid; place-items: center; color: var(--teal-400);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.flowx-icon svg { width: 30px; height: 30px; }
.flowx-station.active .flowx-icon { transform: scale(1.06); border-color: var(--teal-400); }
.flowx-station:last-child.active .flowx-icon { color: var(--green-500); border-color: var(--green-500); }
.flowx-id { font-family: var(--display); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-400); }
.flowx-name { font-family: var(--display); font-size: var(--step-1); font-weight: 600; color: #fff; margin-top: 0.5rem; line-height: 1.1; }
.flowx-loc { font-size: var(--step--1); color: #8ba0b0; margin-top: 0.25rem; }

/* Animated pulse travelling the rail */
.flowx-pulse-track { position: relative; height: 2px; margin: 1.6rem 6% 0; background: linear-gradient(90deg, var(--teal-500), var(--green-500)); border-radius: 2px; overflow: hidden; }
.flowx-pulse-track::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent); animation: pulseflow 3.2s linear infinite; }
@keyframes pulseflow { from { transform: translateX(-100%); } to { transform: translateX(350%); } }

/* Detail panel — always visible, swaps with active station */
.flowx-detail {
  margin-top: 2rem; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg);
  background: rgba(20,48,15,0.5); overflow: hidden;
}
.flowx-detail-head { padding: 1.5rem 1.8rem 0; }
.flowx-detail-summary { color: #c4d6e2; font-size: var(--step-0); line-height: 1.55; max-width: 70ch; padding: 0 1.8rem 1.5rem; }
.flowx-io { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border-top: 1px solid rgba(255,255,255,0.1); }
.flowx-io-cell { background: rgba(20,48,15,0.7); padding: 1.4rem 1.8rem; }
.flowx-io-cell h4 { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-400); margin-bottom: 0.6rem; font-weight: 500; }
.flowx-io-cell p { color: #aebecb; font-size: var(--step--1); line-height: 1.5; }
.flowx-detail.is-market .flowx-io-cell h4 { color: var(--green-500); }

/* Panels: only the active one shows */
.flowx-panel { display: none; }
.flowx-panel.show { display: block; animation: fadeUp 0.4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .flowx-rail { grid-template-columns: 1fr; gap: 2.2rem; }
  .flowx-station { display: grid; grid-template-columns: 64px 1fr; text-align: left; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; }
  .flowx-station + .flowx-station { margin-left: 0; }
  .flowx-icon { margin: 0; }
  .flowx-id { grid-column: 2; }
  .flowx-name { grid-column: 2; margin-top: 0.1rem; }
  .flowx-loc { grid-column: 2; }
  /* vertical arrow */
  .flowx-station:not(:last-child)::after { right: auto; left: 32px; top: auto; bottom: -2.2rem; width: 2px; height: 2.2rem; transform: none; }
  .flowx-station:not(:last-child)::before { right: auto; left: 28px; top: auto; bottom: -1rem; transform: rotate(135deg); }
  .flowx-pulse-track { display: none; }
  .flowx-io { grid-template-columns: 1fr; }
}

/* ============================================================
   LOGIC CARDS (why three nodes)
   ============================================================ */
.logic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.logic-card { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.logic-card .l-num { font-family: var(--display); font-size: var(--step-2); font-weight: 600; color: var(--teal-500); line-height: 1; }
.logic-card h3 { font-size: var(--step-1); margin-top: 0.8rem; }
.logic-card p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.7rem; }
@media (max-width: 760px) { .logic-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TRACE BAND (blockchain transversal)
   ============================================================ */
.trace-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 3rem; position: relative; }
.trace-line { position: absolute; top: 18px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--teal-500), var(--green-500)); }
.trace-step { text-align: center; position: relative; z-index: 1; padding-inline: 0.5rem; }
.trace-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-900); border: 2px solid var(--teal-400); display: grid; place-items: center; margin: 0 auto 1rem; color: var(--teal-400); font-family: var(--display); font-weight: 600; font-size: 0.85rem; }
.trace-step p { font-size: var(--step--1); color: #aebecb; line-height: 1.4; }
.trace-step strong { display: block; color: #fff; font-family: var(--display); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.3rem; }
@media (max-width: 760px) {
  .trace-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .trace-line { display: none; }
  .trace-step { display: flex; align-items: center; gap: 1rem; text-align: left; }
  .trace-dot { margin: 0; flex-shrink: 0; }
}

/* ============================================================
   NODE DETAIL BLOCKS (Nodes page)
   ============================================================ */
.node-block { padding-block: clamp(4rem, 8vw, 7rem); scroll-margin-top: 90px; }
.node-block + .node-block { border-top: 1px solid var(--line); }
.section--ink.node-block + .node-block, .node-block + .section--ink.node-block { border-top: 0; }

.node-head { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-bottom: 2.5rem; }
.node-emblem {
  width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(0,172,172,0.1); color: var(--teal-500); border: 1px solid rgba(0,172,172,0.25);
}
.node-emblem svg { width: 38px; height: 38px; }
.section--ink .node-emblem { background: rgba(0,172,172,0.12); border-color: rgba(0,172,172,0.3); color: var(--teal-400); }
.node-kicker { font-family: var(--display); font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-500); }
.section--ink .node-kicker { color: var(--teal-400); }
.node-h { font-size: var(--step-3); margin-top: 0.3rem; }
.node-place { font-family: var(--display); color: var(--ink-500); margin-top: 0.3rem; font-size: var(--step-0); }
.section--ink .node-place { color: #9fb4c2; }

.node-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.node-role-tag { display: inline-block; font-family: var(--display); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.04em; color: var(--blue-700); background: rgba(0,83,141,0.08); padding: 0.4em 0.9em; border-radius: 100px; margin-bottom: 1.2rem; }
.section--ink .node-role-tag { color: var(--teal-400); background: rgba(0,172,172,0.1); }
.node-lead { font-size: var(--step-1); line-height: 1.4; color: var(--ink-700); }
.section--ink .node-lead { color: #e3ecf2; }
.node-desc { margin-top: 1.2rem; }
.node-desc p { color: var(--ink-500); margin-bottom: 1rem; }
.section--ink .node-desc p { color: #aebecb; }

/* Spec list (right column) */
.node-specs { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.section--ink .node-specs { border-color: rgba(255,255,255,0.12); }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); }
.section--ink .spec-row { border-color: rgba(255,255,255,0.08); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .sk { color: var(--ink-500); font-size: var(--step--1); }
.section--ink .spec-row .sk { color: #8ba0b0; }
.spec-row .sv { font-family: var(--display); font-weight: 500; color: var(--ink-900); font-size: var(--step--1); text-align: right; }
.section--ink .spec-row .sv { color: #fff; }
.spec-head { background: var(--bg-alt); padding: 0.9rem 1.3rem; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-500); }
.section--ink .spec-head { background: rgba(255,255,255,0.04); color: #9fb4c2; }

/* Capability chips */
.node-caps { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.cap-chip { font-family: var(--display); font-size: 0.8rem; color: var(--ink-700); border: 1px solid var(--line); padding: 0.45em 0.9em; border-radius: 6px; background: var(--paper); }
.section--ink .cap-chip { color: #cfdde6; border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.03); }

/* Cert pills inline (for INZUALCA) */
.node-certs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.node-cert { font-family: var(--display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.03em; color: #fff; background: rgba(0,172,172,0.18); border: 1px solid rgba(0,172,172,0.4); padding: 0.45em 1em; border-radius: 6px; }

@media (max-width: 860px) {
  .node-layout { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 560px) {
  .node-head { grid-template-columns: 1fr; gap: 1rem; }
  .node-emblem { width: 64px; height: 64px; }
}

/* Sub-nav for jumping to nodes */
.node-jump { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.node-jump a { font-family: var(--display); font-size: var(--step--1); color: #c4d6e2; border: 1px solid rgba(255,255,255,0.2); padding: 0.55em 1.1em; border-radius: 100px; transition: all 0.25s var(--ease); }
.node-jump a:hover { border-color: var(--teal-400); color: #fff; background: rgba(0,172,172,0.1); }

/* ============================================================
   ESG PAGE COMPONENTS (Sustainability)
   ============================================================ */
/* Three pillars (TBL) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.pillar { padding: 2rem 1.8rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--paper); position: relative; overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.pillar.env::before { background: var(--green-500); }
.pillar.soc::before { background: var(--teal-500); }
.pillar.gov::before { background: var(--blue-700); }
.pillar-label { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-300); }
.pillar h3 { font-size: var(--step-1); margin-top: 0.3rem; }
.pillar-list { margin-top: 1.4rem; display: grid; gap: 1rem; }
.pillar-item { display: grid; gap: 0.2rem; }
.pillar-item .pi-k { font-family: var(--display); font-weight: 500; color: var(--ink-900); font-size: var(--step--1); }
.pillar-item .pi-v { color: var(--ink-500); font-size: var(--step--1); line-height: 1.45; }
.pillar-item .pi-kpi { color: var(--green-600); font-family: var(--display); font-weight: 600; font-size: var(--step--1); }
.pillar.soc .pi-kpi { color: var(--teal-500); }
.pillar.gov .pi-kpi { color: var(--blue-700); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Climate metrics band */
.climate-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); overflow: hidden; margin-top: 3rem; }
.climate-cell { background: rgba(255,255,255,0.03); padding: 1.8rem 1.5rem; }
.climate-cell .c-num { font-family: var(--display); font-size: var(--step-2); font-weight: 600; color: #fff; line-height: 1; }
.climate-cell .c-num .unit { color: var(--green-500); font-size: 0.55em; }
.climate-cell .c-lbl { color: #aebecb; font-size: var(--step--1); margin-top: 0.5rem; line-height: 1.4; }
@media (max-width: 860px) { .climate-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .climate-band { grid-template-columns: 1fr; } }

/* PS mapping rows */
.ps-list { margin-top: 3rem; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.ps-row { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; background: var(--paper); padding: 1.5rem 1.8rem; align-items: start; }
.ps-code { font-family: var(--display); font-weight: 600; color: var(--blue-700); font-size: var(--step-0); }
.ps-row h4 { font-family: var(--display); font-size: var(--step-0); font-weight: 600; color: var(--ink-900); margin-bottom: 0.3rem; }
.ps-row p { color: var(--ink-500); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 620px) { .ps-row { grid-template-columns: 1fr; gap: 0.5rem; } }

/* Cert table for ESG */
.esg-cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.esg-cert { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.esg-cert .ec-name { font-family: var(--display); font-weight: 600; font-size: var(--step-1); color: var(--ink-900); }
.esg-cert .ec-status { display: inline-block; font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-600); background: rgba(61,169,61,0.1); padding: 0.3em 0.7em; border-radius: 100px; margin-left: 0.6rem; vertical-align: middle; }
.esg-cert p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.8rem; line-height: 1.5; }
@media (max-width: 620px) { .esg-cert-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-aside h2 { font-size: var(--step-3); }
.contact-aside p { color: var(--ink-500); margin-top: 1.2rem; }
.contact-points { margin-top: 2rem; display: grid; gap: 1.4rem; }
.contact-point { display: grid; grid-template-columns: 40px 1fr; gap: 1rem; align-items: start; }
.contact-point .cp-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(0,172,172,0.1); display: grid; place-items: center; color: var(--teal-500); }
.contact-point .cp-icon svg { width: 20px; height: 20px; }
.contact-point h4 { font-family: var(--display); font-size: var(--step-0); color: var(--ink-900); font-weight: 600; }
.contact-point p { margin-top: 0.2rem; color: var(--ink-500); font-size: var(--step--1); }
.contact-point a { color: var(--blue-700); }
.contact-point a:hover { color: var(--teal-500); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.6rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-family: var(--display); font-size: var(--step--1); font-weight: 500; color: var(--ink-900); margin-bottom: 0.5rem; }
.field label .req { color: var(--teal-500); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0); color: var(--ink-900);
  padding: 0.85em 1em; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-alt); transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); background: var(--paper);
  box-shadow: 0 0 0 3px rgba(0,172,172,0.12);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234a5b66' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1em center; padding-right: 2.6em; }
/* Honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.form-note { font-size: 0.78rem; color: var(--ink-300); margin-top: 1.2rem; line-height: 1.5; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-size: var(--step--1); margin-bottom: 1.4rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(61,169,61,0.1); border: 1px solid rgba(61,169,61,0.3); color: var(--green-600); }
.form-status.err { background: rgba(200,60,60,0.08); border: 1px solid rgba(200,60,60,0.25); color: #b34141; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; gap: 0; } }

/* ============================================================
   INVESTORS PAGE
   ============================================================ */
/* Pillars of the thesis */
.thesis-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.thesis-pillar { padding: 2rem 1.8rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.thesis-pillar .tp-num { font-family: var(--display); font-size: var(--step-2); font-weight: 700; color: var(--teal-500); line-height: 1; }
.thesis-pillar h3 { font-size: var(--step-1); margin-top: 0.9rem; }
.thesis-pillar p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.7rem; }
@media (max-width: 860px) { .thesis-pillars { grid-template-columns: 1fr; } }

/* Moat comparison table */
.moat-wrap { margin-top: 3rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.moat-table { width: 100%; border-collapse: collapse; }
.moat-table th, .moat-table td { text-align: left; padding: 1.1rem 1.3rem; vertical-align: top; font-size: var(--step--1); }
.moat-table thead th { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; color: #8ba0b0; border-bottom: 1px solid rgba(255,255,255,0.15); }
.moat-table thead th.col-av { color: var(--teal-400); }
.moat-table tbody th { font-weight: 500; color: #cfdde6; border-bottom: 1px solid rgba(255,255,255,0.08); }
.moat-table tbody td { color: #9fb4c2; border-bottom: 1px solid rgba(255,255,255,0.08); }
.moat-table td.col-av { color: #fff; background: rgba(0,172,172,0.06); }
.moat-table tbody tr:last-child th, .moat-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 720px) { .moat-table { min-width: 620px; } }

/* Two instruments (debt / equity) */
.instruments { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; }
.instrument { padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.instrument .in-tag { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-500); }
.instrument h3 { font-size: var(--step-2); margin-top: 0.5rem; }
.instrument p { color: var(--ink-500); margin-top: 1rem; font-size: var(--step--1); }
.instrument ul { margin-top: 1.2rem; display: grid; gap: 0.7rem; }
.instrument li { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; color: var(--ink-700); font-size: var(--step--1); align-items: start; }
.instrument li svg { width: 16px; height: 16px; color: var(--teal-500); margin-top: 0.25em; }
@media (max-width: 760px) { .instruments { grid-template-columns: 1fr; } }

/* Process steps */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; counter-reset: step; }
.process-step { position: relative; padding-top: 2.5rem; }
.process-step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,172,172,0.12); color: var(--teal-500); font-family: var(--display); font-weight: 600; display: grid; place-items: center; }
.section--ink .process-step::before { background: rgba(0,172,172,0.18); color: var(--teal-400); }
.process-step h4 { font-family: var(--display); font-size: var(--step-0); color: var(--ink-900); }
.section--ink .process-step h4 { color: #fff; }
.process-step p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.4rem; }
.section--ink .process-step p { color: #aebecb; }
@media (max-width: 760px) { .process { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 440px) { .process { grid-template-columns: 1fr; } }

/* ---------- Skip link & focus ---------- */
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--blue-900); padding: 0.8rem 1.2rem; z-index: 200; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; }

/* ============================================================
   LA ESPERANZA — componentes propios del proyecto
   ============================================================ */

/* Acento amarillo en cifras del hero (sobre el teal por defecto) */
.hero-stat .num .unit { color: var(--green-500); }
.hero-stat .num[data-count] { color: #fff; }

/* Botón "Próximamente" — deshabilitado, para la Academia */
.btn--soon {
  background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75);
  border: 1px dashed rgba(255,255,255,0.4); cursor: not-allowed;
  position: relative;
}
.btn--soon:hover { transform: none; background: rgba(255,255,255,0.06); }
.btn--soon .soon-tag {
  font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--green-500); color: var(--ink-900);
  padding: 0.15em 0.5em; border-radius: 100px; margin-left: 0.1rem; font-weight: 700;
}
/* Variante sobre fondo claro */
.section:not(.section--ink) .btn--soon,
.section--alt .btn--soon {
  background: var(--sand-100); color: var(--ink-500);
  border-color: var(--line);
}
.section:not(.section--ink) .btn--soon:hover,
.section--alt .btn--soon:hover { background: var(--sand-100); }

/* Marca "próximamente" flotante sobre una card */
.soon-ribbon {
  position: absolute; top: 1.1rem; right: 1.1rem; z-index: 3;
  font-family: var(--display); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--green-500); color: var(--ink-900);
  padding: 0.3em 0.75em; border-radius: 100px;
}

/* ---------- Banda del Río Meche (activo ambiental, signature de agua) ---------- */
.river {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--blue-900) 0%, #10280c 100%);
  color: #d6e4cf;
}
.river .wrap { position: relative; z-index: 2; }
.river-flow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.9;
}
.river-flow path {
  fill: none; stroke: var(--teal-400); stroke-width: 2;
  stroke-dasharray: 8 10; opacity: 0.5;
  animation: riverflow 8s linear infinite;
}
.river-flow path.faint { stroke: var(--teal-500); opacity: 0.28; stroke-width: 1.4; animation-duration: 12s; }
@keyframes riverflow { to { stroke-dashoffset: -180; } }
.river-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.river h2 { color: #fff; font-size: var(--step-3); }
.river-lede { color: #b9cdb0; margin-top: 1.2rem; font-size: var(--step-1); line-height: 1.5; }
.river-facts { margin-top: 2rem; display: grid; gap: 1px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); overflow: hidden; }
.river-fact { background: rgba(20,48,15,0.55); padding: 1.3rem 1.5rem; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; }
.river-fact .rf-ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(55,179,156,0.14); border: 1px solid rgba(55,179,156,0.3); display: grid; place-items: center; color: var(--teal-400); }
.river-fact .rf-ic svg { width: 22px; height: 22px; }
.river-fact h4 { font-family: var(--display); color: #fff; font-size: var(--step-0); font-weight: 600; }
.river-fact p { color: #a9bfa0; font-size: var(--step--1); margin-top: 0.15rem; }
.river-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.12); aspect-ratio: 4/5; }
@media (max-width: 860px) { .river-grid { grid-template-columns: 1fr; } .river-media { aspect-ratio: 16/10; } }

/* ---------- Placeholder de imagen (para reemplazar en Hostinger) ---------- */
.imgph {
  position: relative; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, rgba(44,87,42,0.04) 0 12px, transparent 12px 24px),
    var(--sand-100);
  border: 1px dashed var(--line);
  display: grid; place-items: center; text-align: center; color: var(--ink-300);
  font-family: var(--display); border-radius: inherit; min-height: 180px; overflow: hidden;
}
/* Foto real: se superpone al placeholder. Si el archivo no existe, el navegador
   oculta el <img> roto (onerror) y queda visible el patrón de abajo. */
.imgph .ph-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 2; background: var(--sand-100);
}
.imgph .ph-img[data-broken] { display: none; }
.imgph[data-dark] { background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 12px, transparent 12px 24px),
    rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.18); color: rgba(255,255,255,0.55); }
.imgph .ph-in { padding: 1.2rem; }
.imgph .ph-ic { width: 34px; height: 34px; margin: 0 auto 0.6rem; opacity: 0.6; }
.imgph .ph-name { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--earth-700); }
.imgph[data-dark] .ph-name { color: var(--green-500); }
.imgph .ph-dim { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.3rem; opacity: 0.8; }

/* ---------- Subproyecto cards con emblema de color propio ---------- */
.sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem; }
.sub-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.sub-card:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(20,48,15,0.12); }
.sub-media { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.sub-media .imgph { min-height: 0; border: 0; border-bottom: 1px solid var(--line); }
.sub-body { padding: 1.7rem 1.8rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.sub-index { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-300); }
.sub-card h3 { font-size: var(--step-2); margin-top: 0.35rem; }
.sub-card p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.8rem; flex: 1; }
.sub-card .sub-link { margin-top: 1.4rem; font-family: var(--display); font-weight: 600; font-size: var(--step--1); color: var(--blue-700); display: inline-flex; align-items: center; gap: 0.5rem; }
.sub-card .sub-link svg { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.sub-card:hover .sub-link svg { transform: translateX(4px); }
.sub-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.sub-card:hover::before { transform: scaleX(1); }
.sub-card.s-cacao::before { background: var(--earth-700); }
.sub-card.s-gana::before { background: var(--green-500); }
.sub-card.s-agro::before { background: var(--teal-500); }
.sub-card.s-acad::before { background: var(--blue-700); }
@media (max-width: 720px) { .sub-grid { grid-template-columns: 1fr; } }

/* ---------- Bloque destacado de alianza académica ---------- */
.ally-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.ally-mark { border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); aspect-ratio: 16/10; overflow: hidden; }
.ally-copy .eyebrow { color: var(--green-500); }
.ally-copy .eyebrow::before { background: var(--green-500); }
.ally-copy h2 { color: #fff; }
.ally-copy p { color: #b9cdb0; margin-top: 1.2rem; }
.ally-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 860px) { .ally-band { grid-template-columns: 1fr; } }

/* ---------- Tira de aliados (logos) ---------- */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.2rem 2.5rem; margin-top: 2.5rem; }
.partner-slot { width: 150px; height: 64px; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--ink-300); font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.08em; text-align: center; background: var(--paper); }

/* ---------- Mapa / ubicación ---------- */
.locate { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.locate-map { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/11; }
@media (max-width: 820px) { .locate { grid-template-columns: 1fr; } }

/* Chip de marca en el footer */
.footer-brand .brand-chip { width: 56px; height: 56px; border-radius: 14px; }
.footer-brand .brand-chip img { width: 42px; height: 42px; }
.footer-brand .footer-mark { display: flex; align-items: center; gap: 0.9rem; }

/* ============================================================
   DASHBOARD — Balance de Triple Impacto
   ============================================================ */
.dash-hero { text-align: left; }
.dash-total { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 1.5rem; flex-wrap: wrap; }
.dash-total .dt-num { font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 7vw, 4.6rem); color: var(--green-500); line-height: 1; letter-spacing: -0.02em; }
.dash-total .dt-cur { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,3vw,2rem); color: rgba(255,255,255,0.85); }
.dash-total .dt-lbl { font-size: var(--step--1); color: rgba(255,255,255,0.7); width: 100%; margin-top: 0.4rem; letter-spacing: 0.02em; }

/* Etiqueta de dimensión TBL */
.tbl-tag { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4em 0.9em; border-radius: 100px; }
.tbl-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.tbl-profit { background: rgba(252,167,0,0.12); color: var(--earth-700); }
.tbl-profit::before { background: var(--green-500); }
.tbl-planet { background: rgba(31,138,122,0.12); color: var(--teal-500); }
.tbl-planet::before { background: var(--teal-500); }
.tbl-people { background: rgba(121,64,30,0.1); color: var(--earth-700); }
.tbl-people::before { background: var(--earth-700); }

/* Barras horizontales de inversión */
.invest-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem,5vw,4rem); align-items: start; margin-top: 2.5rem; }
@media (max-width: 900px) { .invest-grid { grid-template-columns: 1fr; } }
.bars { display: flex; flex-direction: column; gap: 1.1rem; }
.bar-row { display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.bar-name { font-family: var(--display); font-weight: 600; font-size: var(--step--1); color: var(--ink-700); }
.bar-val { font-family: var(--display); font-weight: 700; font-size: var(--step--1); color: var(--earth-700); white-space: nowrap; }
.bar-track { height: 12px; background: var(--sand-100); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; width: 0; transition: width 1.3s cubic-bezier(0.16,1,0.3,1); }
.bar-fill.in { /* width set inline via style, animated */ }
.bar-c1 { background: var(--green-500); }
.bar-c2 { background: var(--earth-700); }
.bar-c3 { background: var(--teal-500); }
.bar-c4 { background: var(--blue-600); }
.bar-c5 { background: var(--earth-600); }
.bar-c6 { background: var(--blue-700); }
.bar-c7 { background: var(--teal-400); }

/* Donut de financiamiento */
.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.donut { position: relative; width: 220px; height: 220px; }
.donut svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.donut circle { fill: none; stroke-width: 26; }
.donut .d-track { stroke: var(--sand-100); }
.donut .d-seg { stroke-linecap: butt; transition: stroke-dashoffset 1.4s cubic-bezier(0.16,1,0.3,1); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center .dc-num { font-family: var(--display); font-weight: 800; font-size: 1.6rem; color: var(--ink-900); }
.donut-center .dc-lbl { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-300); }
.donut-legend { display: flex; flex-direction: column; gap: 0.7rem; width: 100%; }
.dl-row { display: flex; align-items: center; gap: 0.7rem; font-size: var(--step--1); }
.dl-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.dl-name { color: var(--ink-700); flex: 1; }
.dl-pct { font-family: var(--display); font-weight: 700; color: var(--ink-900); }

/* KPI cards (Planet / People) */
.kpi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
@media (max-width: 780px) { .kpi-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .kpi-grid { grid-template-columns: 1fr; } }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.5rem; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 100%; }
.kpi.k-planet::before { background: var(--teal-500); }
.kpi.k-people::before { background: var(--earth-700); }
.kpi .k-num { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem,4vw,2.6rem); color: var(--ink-900); line-height: 1; letter-spacing: -0.01em; }
.kpi .k-num .u { color: var(--teal-500); font-size: 0.6em; }
.kpi.k-people .k-num .u { color: var(--earth-700); }
.kpi .k-lbl { margin-top: 0.7rem; font-size: var(--step--1); color: var(--ink-500); line-height: 1.4; }
.section--ink .kpi { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.1); }
.section--ink .kpi .k-num { color: #fff; }
.section--ink .kpi .k-lbl { color: #a9bfa0; }

/* Nota de patrimonio cultural */
.culture-note { margin-top: 2.5rem; display: grid; grid-template-columns: 48px 1fr; gap: 1.2rem; align-items: start; background: rgba(121,64,30,0.06); border: 1px solid rgba(121,64,30,0.16); border-radius: var(--radius-lg); padding: 1.6rem 1.8rem; }
.culture-note .cn-ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(121,64,30,0.1); display: grid; place-items: center; color: var(--earth-700); }
.culture-note h4 { font-family: var(--display); font-size: var(--step-0); color: var(--earth-700); }
.culture-note p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.4rem; }

/* Timeline de retorno */
.rtl { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; position: relative; }
@media (max-width: 780px){ .rtl { grid-template-columns: 1fr; } }
.rtl-step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; position: relative; }
.rtl-step .rtl-when { font-family: var(--display); font-weight: 700; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); }
.rtl-step h4 { font-family: var(--display); font-size: var(--step-1); margin-top: 0.6rem; color: var(--ink-900); }
.rtl-step p { color: var(--ink-500); font-size: var(--step--1); margin-top: 0.6rem; }
.rtl-step .rtl-dot { position: absolute; top: 1.8rem; right: 1.8rem; font-family: var(--display); font-weight: 800; color: var(--sand-100); font-size: 2rem; line-height: 1; }

/* Disclaimer */
.dash-disclaimer { margin-top: 2rem; font-size: 0.8rem; color: var(--ink-300); font-style: italic; max-width: 70ch; }
