:root {
  --navy:   #001F3F;
  --green:  #00804C;
  --white:  #F6F7ED;
  --lime:   #DBE64C;
  --blue:   #1E488F;
  --mantis: #74C365;
  --f-inter: 'Inter', sans-serif;
  --f-serif: 'DM Serif Display', serif;
  --f-mono:  'IBM Plex Mono', monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--navy); font-family: var(--f-inter); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* ─── NAVBAR ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 64px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-bottom-color: rgba(0,31,63,0.08); box-shadow: 0 2px 16px rgba(0,31,63,0.06); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 38px; width: auto; flex-shrink: 0; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0,31,63,0.55); transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; }

/* ─── HERO (home) ─── */
.hero {
  height: 100vh; min-height: 640px;
  display: flex; align-items: center;
  padding: 72px 64px 0;
  background:
    radial-gradient(ellipse 70% 65% at 72% 35%, rgba(0,128,76,0.13) 0%, transparent 68%),
    radial-gradient(ellipse 45% 45% at 18% 72%, rgba(30,72,143,0.18) 0%, transparent 58%),
    var(--navy);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,247,237,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,247,237,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero-content { position: relative; max-width: 680px; }
.hero h1 { font-size: clamp(48px, 6vw, 84px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; color: var(--white); margin-bottom: 28px; }
.hero-sub { font-size: 18px; font-weight: 400; line-height: 1.65; color: rgba(246,247,237,0.65); max-width: 560px; margin-bottom: 44px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); color: rgba(246,247,237,0.3); font-size: 11px; letter-spacing: 0.12em; font-family: var(--f-mono); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-scroll-line { width: 1px; height: 40px; background: rgba(246,247,237,0.2); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 164px 64px 104px;
  background:
    radial-gradient(ellipse 60% 70% at 80% 50%, rgba(0,128,76,0.11) 0%, transparent 65%),
    var(--navy);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(246,247,237,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,247,237,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero-content { position: relative; max-width: 720px; }
.page-hero h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; color: var(--white); margin-bottom: 24px; margin-top: 16px; }
.page-hero p { font-size: 18px; line-height: 1.65; color: rgba(246,247,237,0.6); max-width: 580px; }

/* ─── MICRO LABEL ─── */
.micro-label {
  font-family: var(--f-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.20em; text-transform: uppercase; color: var(--mantis);
  display: flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.micro-label::before { content: ''; display: block; width: 32px; height: 1px; background: currentColor; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime); color: var(--navy);
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0 28px; height: 48px;
  border: none; cursor: pointer; transition: background 0.2s, transform 0.15s;
  font-family: var(--f-inter);
}
.btn-primary:hover { background: #c8d344; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0 28px; height: 48px;
  border: 1px solid rgba(246,247,237,0.35); cursor: pointer;
  transition: border-color 0.2s, color 0.2s; font-family: var(--f-inter);
}
.btn-ghost:hover { border-color: var(--white); }
.btn-link { font-size: 13px; font-weight: 600; color: var(--green); letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.btn-link:hover { gap: 10px; }
.btn-link-white { font-size: 13px; font-weight: 600; color: rgba(246,247,237,0.65); letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s, color 0.2s; }
.btn-link-white:hover { gap: 10px; color: var(--white); }

/* ─── SECTION WRAPPERS ─── */
.s-light { background: var(--white); padding: 120px 64px; }
.s-dark  { background: var(--navy);  padding: 120px 64px; }
.s-inner { max-width: 1200px; margin: 0 auto; }
.s-header { margin-bottom: 64px; }
.s-header h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-top: 16px; margin-bottom: 16px; }
.s-dark .s-header h2 { color: var(--white); }
.s-header p { font-size: 17px; line-height: 1.7; color: rgba(0,31,63,0.65); max-width: 600px; }
.s-dark .s-header p { color: rgba(246,247,237,0.55); }

/* ─── PILARES ─── */
.pilares { background: var(--white); padding: 120px 64px; }
.pilares-grid { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1200px; margin: 0 auto; }
.pilar { padding: 0 48px; border-left: 0.5px solid rgba(0,31,63,0.15); opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.pilar:first-child { padding-left: 0; border-left: none; }
.pilar.visible { opacity: 1; transform: none; }
.pilar-num { font-family: var(--f-mono); font-size: 44px; font-weight: 500; color: var(--green); line-height: 1; margin-bottom: 20px; opacity: 0.25; }
.pilar-title { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 12px; }
.pilar-text { font-size: 15px; line-height: 1.65; color: rgba(0,31,63,0.65); }

/* ─── BRECHA ─── */
.brecha { background: var(--navy); padding: 140px 64px; position: relative; overflow: hidden; }
.brecha::after { content: ''; position: absolute; top: 0; right: 80px; width: 1px; height: 100%; background: rgba(246,247,237,0.06); }
.brecha-inner { max-width: 900px; margin: 0 auto; }
.brecha .micro-label { margin-bottom: 40px; }
.brecha-quote { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3.5vw, 38px); line-height: 1.3; color: var(--white); margin-bottom: 40px; max-width: 780px; opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.brecha-quote.visible { opacity: 1; transform: none; }
.brecha-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-bottom: 64px; }
.brecha-text { font-size: 17px; line-height: 1.7; color: rgba(246,247,237,0.6); }
.brecha-stat-block { text-align: right; }
.brecha-stat { font-family: var(--f-mono); font-size: clamp(64px, 8vw, 96px); font-weight: 500; color: var(--lime); line-height: 1; opacity: 0; transform: translateY(20px); transition: opacity 0.7s 0.2s ease, transform 0.7s 0.2s ease; }
.brecha-stat.visible { opacity: 1; transform: none; }
.brecha-stat-caption { font-size: 13px; color: rgba(246,247,237,0.45); line-height: 1.5; margin-top: 12px; max-width: 220px; margin-left: auto; text-align: right; }

/* ─── G-TREG (home section) ─── */
.gtreg { background: var(--white); padding: 120px 64px; }
.gtreg-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 5fr 1fr 6fr; gap: 0; align-items: center; }
.gtreg-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.gtreg-left.visible { opacity: 1; transform: none; }
.gtreg-left .micro-label { color: var(--green); }
.gtreg-left h2 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 20px; margin-top: 16px; }
.gtreg-left p { font-size: 16px; line-height: 1.7; color: rgba(0,31,63,0.65); margin-bottom: 32px; }
.gtreg-metrics { display: flex; flex-direction: column; gap: 0; margin-bottom: 36px; }
.gtreg-metric { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 0.5px solid rgba(0,31,63,0.1); }
.gtreg-metric:first-child { border-top: 0.5px solid rgba(0,31,63,0.1); }
.gtreg-metric-icon { font-family: var(--f-mono); font-size: 16px; font-weight: 500; color: var(--green); width: 20px; flex-shrink: 0; }
.gtreg-metric-text { font-size: 14px; color: rgba(0,31,63,0.75); line-height: 1.4; }
.gtreg-right { opacity: 0; transform: translateX(20px); transition: opacity 0.6s 0.15s ease, transform 0.6s 0.15s ease; display: flex; align-items: center; justify-content: center; }
.gtreg-right.visible { opacity: 1; transform: none; }
.gtreg-diagram { width: 100%; max-width: 420px; background: rgba(0,128,76,0.04); border: 0.5px solid rgba(0,128,76,0.15); padding: 40px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.gtreg-diagram svg { width: 100%; height: 100%; }

/* ─── NEXUS INTELLIGENCE (home section) ─── */
.ni { background: var(--navy); padding: 120px 64px; }
.ni-inner { max-width: 1200px; margin: 0 auto; }
.ni-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 0.5px solid rgba(246,247,237,0.12); }
.ni-header-left h2 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.ni-header-left p { font-size: 14px; color: rgba(246,247,237,0.4); margin-top: 6px; letter-spacing: 0.06em; }
.ni-header-right { font-family: var(--f-mono); font-size: 11px; color: var(--lime); letter-spacing: 0.14em; text-transform: uppercase; transition: opacity 0.2s; }
.ni-header-right:hover { opacity: 0.75; }
.ni-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.ni-card { border-top: 2px solid var(--green); padding: 24px 0; opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; cursor: pointer; }
.ni-card.visible { opacity: 1; transform: none; }
.ni-card:nth-child(2) { transition-delay: 0.1s; }
.ni-card:nth-child(3) { transition-delay: 0.2s; }
.ni-card:hover .ni-card-title { color: var(--lime); }
.ni-card:hover { border-top-color: var(--lime); }
.ni-card-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ni-cat { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mantis); }
.ni-time { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.10em; color: rgba(246,247,237,0.3); }
.ni-card-title { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--white); margin-bottom: 14px; transition: color 0.2s; }
.ni-card-abstract { font-size: 13px; line-height: 1.65; color: rgba(246,247,237,0.5); }
.ni-card-footer { margin-top: 20px; padding-top: 16px; border-top: 0.5px solid rgba(246,247,237,0.08); font-size: 11px; color: rgba(246,247,237,0.3); font-family: var(--f-mono); letter-spacing: 0.06em; }

/* ─── VALUE GRID ─── */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.value-card { padding: 32px 32px 32px 0; border-top: 2px solid var(--green); }
.s-dark .value-card { border-top-color: rgba(0,128,76,0.45); }
.value-card-num { font-family: var(--f-mono); font-size: 10px; color: var(--green); letter-spacing: 0.14em; margin-bottom: 20px; opacity: 0.7; }
.s-dark .value-card-num { color: var(--mantis); }
.value-card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
.s-dark .value-card-title { color: var(--white); }
.value-card-text { font-size: 14px; line-height: 1.65; color: rgba(0,31,63,0.65); }
.s-dark .value-card-text { color: rgba(246,247,237,0.5); }

/* ─── STAT BAND ─── */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat-item { padding: 48px; border-left: 0.5px solid rgba(246,247,237,0.1); }
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: var(--f-mono); font-size: clamp(40px, 5vw, 64px); font-weight: 500; color: var(--lime); line-height: 1; margin-bottom: 12px; }
.stat-label { font-size: 13px; color: rgba(246,247,237,0.5); line-height: 1.6; max-width: 200px; }

/* ─── TWO COL ─── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col-rev { grid-template-columns: 1fr 1fr; }
.two-col-text h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; margin-bottom: 20px; margin-top: 16px; }
.s-dark .two-col-text h2 { color: var(--white); }
.two-col-text p { font-size: 16px; line-height: 1.7; color: rgba(0,31,63,0.65); margin-bottom: 20px; }
.two-col-text p:last-of-type { margin-bottom: 0; }
.s-dark .two-col-text p { color: rgba(246,247,237,0.6); }
.two-col-visual { background: rgba(0,128,76,0.04); border: 0.5px solid rgba(0,128,76,0.15); display: flex; align-items: center; justify-content: center; min-height: 320px; padding: 40px; }
.s-dark .two-col-visual { background: rgba(0,128,76,0.08); border-color: rgba(0,128,76,0.2); }

/* ─── TEAM GRID ─── */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 64px; }
.team-card-img { width: 100%; aspect-ratio: 1; background: rgba(0,128,76,0.05); border: 0.5px solid rgba(0,128,76,0.15); margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.team-card-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.team-card-role { font-family: var(--f-mono); font-size: 10px; color: var(--green); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.team-card-bio { font-size: 14px; line-height: 1.65; color: rgba(0,31,63,0.6); }

/* ─── PIPELINE ─── */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); }
.pipeline-step { padding-right: 32px; }
.pipeline-step + .pipeline-step { padding-left: 32px; padding-right: 32px; border-left: 0.5px solid rgba(246,247,237,0.12); }
.pipeline-step:last-child { padding-right: 0; }
.pipeline-phase { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mantis); margin-bottom: 16px; }
.pipeline-name { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.3; }
.pipeline-text { font-size: 13px; line-height: 1.65; color: rgba(246,247,237,0.5); margin-bottom: 20px; }
.pipeline-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.pipeline-status::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; }
.pipeline-status.done { color: var(--green); }
.pipeline-status.done::before { background: var(--green); }
.pipeline-status.active { color: var(--lime); }
.pipeline-status.active::before { background: var(--lime); }
.pipeline-status.pending { color: rgba(246,247,237,0.3); }
.pipeline-status.pending::before { background: rgba(246,247,237,0.2); }

/* ─── CERT / FEATURE GRID ─── */
.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.cert-card { padding: 32px 28px; border: 0.5px solid rgba(0,31,63,0.1); border-right: none; }
.cert-card:last-child { border-right: 0.5px solid rgba(0,31,63,0.1); }
.s-dark .cert-card { border-color: rgba(246,247,237,0.08); }
.cert-card-icon { font-family: var(--f-mono); font-size: 22px; font-weight: 500; color: var(--green); margin-bottom: 16px; }
.s-dark .cert-card-icon { color: var(--lime); }
.cert-card-title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.s-dark .cert-card-title { color: var(--white); }
.cert-card-text { font-size: 13px; color: rgba(0,31,63,0.6); line-height: 1.6; }
.s-dark .cert-card-text { color: rgba(246,247,237,0.45); }

/* ─── PULL QUOTE ─── */
.pull-quote-wrap { padding: 80px 64px; text-align: center; }
.pull-quote-wrap blockquote { font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 3vw, 36px); line-height: 1.4; color: var(--white); max-width: 800px; margin: 0 auto 20px; }
.pull-quote-wrap cite { font-family: var(--f-mono); font-size: 10px; color: rgba(246,247,237,0.35); letter-spacing: 0.14em; text-transform: uppercase; }

/* ─── ADVANTAGE LIST ─── */
.adv-list { display: flex; flex-direction: column; gap: 0; }
.adv-item { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 24px 0; border-bottom: 0.5px solid rgba(0,31,63,0.1); align-items: start; }
.s-dark .adv-item { border-bottom-color: rgba(246,247,237,0.08); }
.adv-item:first-child { border-top: 0.5px solid rgba(0,31,63,0.1); }
.s-dark .adv-item:first-child { border-top-color: rgba(246,247,237,0.08); }
.adv-num { font-family: var(--f-mono); font-size: 12px; color: var(--green); font-weight: 500; }
.s-dark .adv-num { color: var(--mantis); }
.adv-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.s-dark .adv-title { color: var(--white); }
.adv-text { font-size: 14px; color: rgba(0,31,63,0.65); line-height: 1.6; }
.s-dark .adv-text { color: rgba(246,247,237,0.5); }

/* ─── LATAM MAP ─── */
.latam-map-wrap { width: 100%; max-width: 560px; margin: 0 auto; }
.latam-map-wrap svg { width: 100%; height: auto; }

/* ─── NI FULL PAGE ─── */
.ni-featured { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; padding-bottom: 64px; border-bottom: 0.5px solid rgba(0,31,63,0.1); margin-bottom: 64px; }
.ni-featured-label { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); margin-bottom: 20px; }
.ni-featured h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 20px; }
.ni-featured p { font-size: 16px; line-height: 1.7; color: rgba(0,31,63,0.65); margin-bottom: 28px; }
.ni-featured-meta { font-family: var(--f-mono); font-size: 11px; color: rgba(0,31,63,0.4); letter-spacing: 0.08em; }
.ni-featured-visual { background: rgba(0,128,76,0.04); border: 0.5px solid rgba(0,128,76,0.15); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.ni-all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.ni-all-card { border-top: 1px solid rgba(0,31,63,0.12); padding-top: 24px; cursor: pointer; }
.ni-all-card:hover .ni-all-title { color: var(--green); }
.ni-all-cat { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.ni-all-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 12px; transition: color 0.2s; }
.ni-all-abstract { font-size: 13px; line-height: 1.65; color: rgba(0,31,63,0.6); margin-bottom: 16px; }
.ni-all-meta { font-family: var(--f-mono); font-size: 10px; color: rgba(0,31,63,0.35); letter-spacing: 0.06em; }

/* ─── FOOTER ─── */
footer { background: var(--navy); border-top: 1px solid rgba(246,247,237,0.08); padding: 80px 64px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 3fr 2fr 2fr 3fr; gap: 48px; margin-bottom: 56px; }
.footer-col-title { font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,247,237,0.35); margin-bottom: 20px; }
.footer-logo { display: flex; align-items: center; margin-bottom: 20px; }
.footer-logo img { height: 32px; width: auto; }
.footer-mission { font-size: 13px; line-height: 1.7; color: rgba(246,247,237,0.45); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(246,247,237,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-address { font-family: var(--f-mono); font-size: 12px; line-height: 1.9; color: rgba(246,247,237,0.45); margin-bottom: 16px; }
.footer-email { font-size: 13px; color: var(--green); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(246,247,237,0.06); display: flex; justify-content: space-between; }
.footer-bottom span { font-family: var(--f-mono); font-size: 10px; color: rgba(246,247,237,0.25); letter-spacing: 0.08em; }

/* ─── ANIMATIONS ─── */
.reveal, .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible, .fade-up.visible { opacity: 1; transform: none; }
.fade-in { opacity: 0; transition: opacity 0.7s ease; }
.fade-in.visible { opacity: 1; }

/* ─── HAMBURGER ─── */
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); transition: transform 0.28s ease, opacity 0.28s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── TABLET ≤1024px ─── */
@media (max-width: 1024px) {
  .nav { padding: 0 32px; }
  .hero { padding: 72px 32px 0; }
  .page-hero { padding: 130px 32px 80px; }
  .s-light, .s-dark { padding: 80px 32px; }
  .pilares { padding: 80px 32px; }
  .pilar { padding: 0 28px; }
  .brecha { padding: 100px 32px; }
  .gtreg { padding: 80px 32px; }
  .gtreg-inner { grid-template-columns: 1fr 1fr; gap: 48px; }
  .gtreg-inner > div:nth-child(2) { display: none; }
  .ni { padding: 80px 32px; }
  .ni-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  footer { padding: 60px 32px 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-band { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 40px 48px; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .pipeline-step + .pipeline-step { padding-left: 32px; }
  .pipeline-step:nth-child(2n+1) { border-left: none; padding-left: 0; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
  .cert-card { border-right: none; }
  .cert-card:nth-child(2n) { border-right: 0.5px solid rgba(0,31,63,0.1); }
  .s-dark .cert-card:nth-child(2n) { border-right-color: rgba(246,247,237,0.08); }
  .two-col { gap: 48px; }
  .ni-featured { gap: 48px; }
  .ni-all-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
}

/* ─── MOBILE ≤768px ─── */
@media (max-width: 768px) {
  .nav { padding: 0 24px; height: 64px; }
  .nav-logo img { height: 30px; }
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; padding: 8px 24px 16px; border-bottom: 1px solid rgba(0,31,63,0.08); box-shadow: 0 8px 24px rgba(0,31,63,0.07); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; font-size: 13px; color: var(--navy); border-bottom: 0.5px solid rgba(0,31,63,0.07); }
  .nav-links a:last-child { border-bottom: none; }

  .hero { padding: 64px 24px 0; min-height: 100svh; }
  .hero-sub { font-size: 16px; margin-bottom: 36px; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost { justify-content: center; }
  .hero-scroll { display: none; }

  .page-hero { padding: 100px 24px 64px; }
  .page-hero h1 { font-size: 32px; }
  .page-hero p { font-size: 16px; }

  .s-light, .s-dark { padding: 64px 24px; }
  .s-header { margin-bottom: 40px; }

  .pilares { padding: 64px 24px; }
  .pilares-grid { grid-template-columns: 1fr; }
  .pilar { padding: 32px 0; border-left: none; border-top: 0.5px solid rgba(0,31,63,0.12); }
  .pilar:first-child { border-top: none; padding-top: 0; }

  .brecha { padding: 72px 24px; }
  .brecha-body { grid-template-columns: 1fr; gap: 36px; }
  .brecha-stat-block { text-align: left; }
  .brecha-stat-caption { margin-left: 0; text-align: left; max-width: 100%; }

  .gtreg { padding: 64px 24px; }
  .gtreg-inner { grid-template-columns: 1fr; }
  .gtreg-inner > div:nth-child(2) { display: none; }
  .gtreg-right { margin-top: 48px; opacity: 0; transform: none; }
  .gtreg-diagram { max-width: 100%; padding: 24px; }

  .ni { padding: 64px 24px; }
  .ni-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ni-grid { grid-template-columns: 1fr; gap: 0; }
  .ni-card { border-top: none; padding: 28px 0; border-bottom: 0.5px solid rgba(246,247,237,0.1); }
  .ni-card:first-child { border-top: 2px solid var(--green); }

  footer { padding: 48px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .footer-logo img { height: 26px; }

  .value-grid { grid-template-columns: 1fr; }
  .value-card { padding: 28px 0; }
  .stat-band { grid-template-columns: 1fr; }
  .stat-item { border-left: none; padding-left: 0; border-top: 0.5px solid rgba(246,247,237,0.1); padding-top: 32px; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline-step { padding: 0 0 24px 0; }
  .pipeline-step + .pipeline-step { padding-left: 0; border-left: none; border-top: 0.5px solid rgba(246,247,237,0.12); padding-top: 24px; }
  .cert-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .cert-card { border-right: none; }
  .cert-card:nth-child(2n) { border-right: 0.5px solid rgba(0,31,63,0.1); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-rev .two-col-visual { order: -1; }
  .two-col-visual { min-height: 220px; padding: 24px; }
  .ni-featured { grid-template-columns: 1fr; gap: 32px; }
  .ni-all-grid { grid-template-columns: 1fr; gap: 32px; }
  .pull-quote-wrap { padding: 56px 24px; }
  .adv-item { grid-template-columns: 36px 1fr; gap: 16px; }
  .latam-map-wrap { max-width: 100%; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 38px; }
  .brecha-stat { font-size: 64px; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-card { border-right: 0.5px solid rgba(0,31,63,0.1) !important; }
}
