/* ═══════════════════════════════════════════════════════════════════════════
   FUNGEOMINE — sistema visual propio
   Paleta derivada del logo: verde lima (wordmark), azul (mango), oro (base),
   magenta (destellos) sobre negro-verde profundo.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #f5f7f3;
  --surface: #ffffff;
  --surface-2: #edf1ea;
  --ink: #0d1511;
  --ink-2: #3f4b44;
  --ink-3: #6b766f;
  --line: #e1e6de;
  --line-2: #cbd3c8;

  --green: #22a03a;
  --green-600: #1b8630;
  --green-700: #136a25;
  --green-100: #ddf5e1;
  --green-bright: #3ddc5b;
  --blue: #2f63c9;
  --gold: #d9a63a;
  --gold-100: #fbf1d9;
  --gold-700: #8f6512;
  --magenta: #ff4fa3;

  --dark: #0b1410;
  --dark-2: #111c16;
  --dark-3: #182620;
  --dark-line: rgba(255, 255, 255, .1);
  --dark-ink: #e9efe9;
  --dark-ink-2: rgba(233, 239, 233, .68);

  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(13, 21, 17, .05), 0 2px 8px rgba(13, 21, 17, .05);
  --shadow: 0 10px 30px -10px rgba(13, 21, 17, .18), 0 1px 3px rgba(13, 21, 17, .06);
  --shadow-lg: 0 30px 60px -20px rgba(13, 21, 17, .3);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: max(80%, 1400px);   /* 80 % del ancho, con piso de 1400 px */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
svg { flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--green-100); color: var(--green-700); }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
@media (max-width: 1480px) { :root { --max: 1400px; } }
.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── Tipografía ─────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
h1 em {
  font-style: normal;
  color: var(--green-bright);
  background: linear-gradient(120deg, var(--green-bright), #9be15d 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  max-width: 18ch;
}
h3 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--dark-ink-2); max-width: 64ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green-600);
}
.eyebrow--light { color: var(--green-bright); }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(61, 220, 91, .6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 91, .55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 220, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 91, 0); }
}

/* ── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(34, 160, 58, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn--primary:hover { background: var(--green-600); box-shadow: 0 14px 28px -10px rgba(34, 160, 58, .8); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--line-2); }
.btn--outline-light { border-color: rgba(255, 255, 255, .22); color: var(--dark-ink); background: rgba(255, 255, 255, .04); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.btn--whatsapp { background: #25d366; color: #05321a; }
.btn--whatsapp:hover { background: #1fc65b; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
}
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--glass {
  background: rgba(11, 20, 16, .55);
  border-color: rgba(255, 255, 255, .18);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.tags--light li { background: rgba(255, 255, 255, .08); color: var(--dark-ink-2); border: 1px solid var(--dark-line); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 14px 0 auto;
  z-index: 50;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-inline: 16px;
  pointer-events: none;
}
.nav__bar, .nav__mobile { pointer-events: auto; }
.nav__bar {
  width: min(100%, var(--max));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(11, 20, 16, .82);
  color: var(--dark-ink);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 255, 255, .06) inset;
  transition: box-shadow .3s, background .3s;
}
.nav.is-scrolled .nav__bar { background: rgba(11, 20, 16, .92); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .06) inset; }
.nav__brand { display: block; }
.nav__brand img { height: 58px; width: auto; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--dark-ink-2);
  transition: background .2s, color .2s;
}
.nav__links a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__actions .btn--ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: var(--dark-ink); box-shadow: none; }
.nav__actions .btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__toggle span { width: 16px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .25s; }
.nav.is-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.nav__mobile {
  display: none;
  width: min(100%, var(--max));
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(11, 20, 16, .94);
  color: var(--dark-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}
.nav__mobile a:not(.btn) { padding: 12px 14px; border-radius: var(--r-sm); font-weight: 600; }
.nav__mobile a:not(.btn):hover { background: rgba(255, 255, 255, .08); }
.nav__mobile .btn { margin-top: 8px; }
.nav.is-open .nav__mobile { display: flex; animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
  padding: 170px 0 80px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.hero__glow--a { width: 640px; height: 640px; left: -220px; top: -180px; background: radial-gradient(circle, rgba(61, 220, 91, .35), transparent 65%); }
.hero__glow--b { width: 560px; height: 560px; right: -140px; bottom: -220px; background: radial-gradient(circle, rgba(217, 166, 58, .3), transparent 65%); }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 { margin: 0 0 22px; max-width: 17ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--dark-line);
}
.hero__stats li { padding: 20px 18px 0 0; }
.hero__stats li + li { padding-left: 18px; border-left: 1px solid var(--dark-line); }
.hero__stats b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero__stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--dark-ink-2); }

.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(.85) contrast(1.05); }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 20, 16, .96) 0%, rgba(11, 20, 16, .82) 42%, rgba(11, 20, 16, .45) 72%, rgba(11, 20, 16, .6) 100%),
    linear-gradient(180deg, rgba(11, 20, 16, .75), rgba(11, 20, 16, .15) 35%, rgba(11, 20, 16, .35) 80%, var(--dark) 100%);
}
.hero__contours { opacity: .7; }
.hero__visual {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: end;
  align-self: end;
  padding-bottom: 8px;
}
.hero__chip { margin-bottom: 8px; }
.hero__card {
  display: grid;
  gap: 6px;
  width: min(100%, 340px);
  padding: 18px 20px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(17, 28, 22, .62);
  color: var(--dark-ink);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.hero__card .mono { color: var(--green-bright); }
.hero__card strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.hero__card small { display: block; font-size: 12px; color: var(--dark-ink-2); }
.hero__card--vault {
  grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  transition: transform .3s var(--ease), background .3s;
}
.hero__card--vault > svg { width: 18px; height: 18px; color: var(--green-bright); }
.hero__card--vault:hover { transform: translateY(-3px); background: rgba(17, 28, 22, .8); }
.hero__card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(61, 220, 91, .16); color: var(--green-bright);
}
.hero__card-icon svg { width: 20px; height: 20px; }
.hero__dots { display: flex; gap: 5px; margin-top: 6px; }
.hero__dots li { height: 5px; flex: 1; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.hero__dots li:nth-child(-n+3) { background: var(--green-bright); }
.hero__dots li:nth-child(4) { background: var(--gold); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ── Marquee ────────────────────────────────────────────────────────────── */


/* ── Secciones ──────────────────────────────────────────────────────────── */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--tint { background: var(--surface-2); }
.section__head { margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section__intro { max-width: 40ch; color: var(--ink-2); font-size: 17px; }

/* ── Bento ──────────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento__card {
  position: relative;
  grid-column: span 4;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.bento__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.bento__card h3 { margin: 14px 0 10px; }
.bento__card p { color: var(--ink-2); }
.bento__card .mono { display: block; margin-bottom: 14px; }
.bento__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--green-100); color: var(--green-700);
}
.bento__icon svg { width: 22px; height: 22px; }
.bento__card--purpose { grid-column: span 7; padding: 36px; }
.bento__card--purpose p { font-size: clamp(20px, 2vw, 26px); line-height: 1.4; font-weight: 600; letter-spacing: -.02em; color: var(--ink); max-width: 30ch; }
.bento__card--photo { grid-column: span 5; padding: 0; overflow: hidden; min-height: 280px; }
.bento__card--photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform 1.2s var(--ease); }
.bento__card--photo:hover img { transform: scale(1.04); }
.bento__card--photo figcaption {
  position: absolute; inset: auto 0 0;
  padding: 60px 24px 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(180deg, transparent, rgba(11, 20, 16, .85));
}
.bento__card--photo figcaption .mono { color: var(--green-bright); margin-bottom: 6px; }
.bento__card--leader .avatar {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-3), var(--dark));
  color: var(--green-bright);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .05em;
  border: 2px solid var(--gold);
}
.bento__card--leader h3 { font-size: 18px; }
.bento__card--motto {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: end;
  padding: 44px;
  background: var(--dark);
  border-color: var(--dark);
  color: var(--dark-ink);
  overflow: hidden;
}
.bento__card--motto::before {
  content: "";
  position: absolute; right: -80px; top: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 166, 58, .28), transparent 65%);
}
.bento__card--motto .mono { color: var(--gold); }
.bento__card--motto blockquote { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.bento__card--motto p { color: var(--dark-ink-2); max-width: 40ch; }

/* ── Metodología ────────────────────────────────────────────────────────── */
.method {
  display: grid;
  grid-template-columns: minmax(200px, .6fr) minmax(0, 1.5fr) minmax(300px, .95fr);
  gap: 16px;
  align-items: stretch;
}
.method__list { align-content: start; }
.agentmap { display: flex; flex-direction: column; }
.agentmap__svg { flex: 1; }

/* Mapa neural de agentes */
.agentmap {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 20% 0%, #16271e, var(--dark) 60%);
  border: 1px solid var(--dark-3);
  color: var(--dark-ink);
  box-shadow: var(--shadow-lg);
}
.agentmap::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(80% 80% at 50% 50%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 40%, transparent 100%);
}
.agentmap__bar, .agentmap__foot {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px;
}
.agentmap__bar { border-bottom: 1px solid var(--dark-line); }
.agentmap__bar .mono { display: inline-flex; align-items: center; gap: 8px; color: var(--green-bright); }
.agentmap__bar b { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.agentmap__foot { border-top: 1px solid var(--dark-line); font-size: 14px; color: var(--dark-ink-2); }
.agentmap__foot b { font-size: 22px; font-weight: 800; color: #fff; margin-right: 6px; letter-spacing: -.02em; }
.agentmap__foot .mono { color: var(--dark-ink-2); text-transform: none; letter-spacing: 0; font-size: 12px; max-width: 52ch; }
.agentmap__svg { position: relative; display: block; width: 100%; height: auto; }
.agentmap__link { fill: none; stroke: rgba(61, 220, 91, .28); stroke-width: 1.5; stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
.agentmap__link.is-active { stroke: rgba(61, 220, 91, .85); stroke-width: 2.5; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.agentmap__pulse { fill: var(--gold); filter: url(#glow); }
.agentmap__node { cursor: pointer; }
.agentmap__halo { fill: rgba(61, 220, 91, .08); stroke: rgba(61, 220, 91, .18); stroke-width: 1; transition: all .4s var(--ease); }
.agentmap__core { fill: var(--dark-3); stroke: var(--green-bright); stroke-width: 2; transition: all .4s var(--ease); }
.agentmap__num { fill: #fff; font: 600 12px var(--mono); }
.agentmap__label { fill: var(--dark-ink-2); font: 600 14px var(--font); letter-spacing: -.01em; transition: fill .3s; }
.agentmap__node:hover .agentmap__core, .agentmap__node:focus-visible .agentmap__core { fill: rgba(61, 220, 91, .3); }
.agentmap__node:focus-visible { outline: none; }
.agentmap__node.is-active .agentmap__core { fill: var(--green-bright); stroke: #fff; filter: url(#glow); }
.agentmap__node.is-active .agentmap__num { fill: var(--dark); }
.agentmap__node.is-active .agentmap__halo { fill: rgba(61, 220, 91, .18); stroke: rgba(61, 220, 91, .6); r: 38; animation: halo 2.2s ease-out infinite; }
.agentmap__node.is-active .agentmap__label { fill: #fff; }
@keyframes halo { 0% { opacity: 1; r: 30; } 100% { opacity: 0; r: 56; } }

.method__signals { display: grid; gap: 10px; margin: 24px 0 56px; max-width: 420px; position: relative; }
.method__signals label { display: grid; grid-template-columns: 84px 1fr 44px; align-items: center; gap: 10px; font-size: 13px; }
.method__signals b { text-align: right; font-family: var(--mono); font-size: 12px; }
.meter { display: block; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--green-bright)); transition: width .6s var(--ease); }
.meter--gold i { background: linear-gradient(90deg, var(--gold-700), var(--gold)); }
.method__list { display: grid; gap: 6px; }
.method__step {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-align: left;
  font-weight: 600;
  color: var(--ink-2);
  transition: all .25s var(--ease);
}
.method__step .mono { color: var(--ink-3); }
.method__step-short { display: none; }
.method__step:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.method__step.is-active {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.method__step.is-active .mono { color: var(--green-600); }
.method__detail {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  min-height: 420px;
}
.method__progress { position: absolute; inset: 0 0 auto; height: 3px; background: var(--surface-2); }
.method__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); }
.method__progress span.is-running { animation: bar 6s linear forwards; }
@keyframes bar { to { width: 100%; } }
.method__panel { animation: fade .45s var(--ease); }
.method__panel h3 { font-size: clamp(24px, 1.9vw, 30px); margin: 10px 0 12px; letter-spacing: -.025em; }
.method__panel > p { color: var(--ink-2); font-size: 15px; max-width: 52ch; }
.method__meta { color: var(--green-600); }
.method__label { margin: 28px 0 12px; }
.method__num {
  position: absolute; right: 20px; top: 12px;
  font-size: 110px; font-weight: 800; letter-spacing: -.06em; line-height: 1;
  color: var(--surface-2);
  pointer-events: none;
  user-select: none;
}
.method__out { display: grid; gap: 8px; position: relative; }
.method__out li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.method__out svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-100); color: var(--green-700); }
.method__ctrl { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 8px; }
.method__ctrl .btn { width: 40px; padding: 0; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── Servicios ──────────────────────────────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(34, 160, 58, .35); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.service__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--dark); color: var(--green-bright);
  transition: background .3s, color .3s;
}
.service__icon svg { width: 22px; height: 22px; }
.service:hover .service__icon { background: var(--green); color: #fff; }
.service p { color: var(--ink-2); flex: 1; }
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 32px 36px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--gold-100), #fff 60%);
  border: 1px solid #f0e2bd;
}
.cta-band .mono { color: var(--gold-700); margin-bottom: 6px; display: block; }
.cta-band h3 { font-size: clamp(20px, 2.2vw, 26px); max-width: 24ch; }

/* ── Investigación ──────────────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.research { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.research__card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.research__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.research__card.is-hidden { display: none; }
.research__cover { aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.research__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.research__card:hover .research__cover img { transform: scale(1.04); }
.research__body { position: relative; display: grid; gap: 8px; padding: 22px 24px 26px; flex: 1; }
.research__body .mono { color: var(--green-600); }
.research__body h3 { font-size: 20px; }
.research__body p { color: var(--ink-2); font-size: 15px; }
.research__cat {
  margin-top: 8px;
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
}
.research__empty { margin-top: 24px; color: var(--ink-3); text-align: center; }

/* ── Repositorio ────────────────────────────────────────────────────────── */
.vault {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
  border: 1px solid var(--dark-3);
  box-shadow: var(--shadow-lg);
}
.vault__copy { padding: clamp(36px, 5vw, 64px); display: grid; gap: 20px; align-content: center; }
.vault__copy h2 { color: #fff; }
.vault__copy > p { color: var(--dark-ink-2); font-size: 17px; max-width: 48ch; }
.vault__form {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, .05);
  max-width: 460px;
}
.vault__form input {
  flex: 1;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
}
.vault__form input::placeholder { color: rgba(255, 255, 255, .45); }
.vault__photo { position: relative; min-height: 360px; }
.vault__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vault__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--dark), rgba(11, 20, 16, .15) 45%, rgba(11, 20, 16, .35));
}

/* ── Contacto ───────────────────────────────────────────────────────────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact__copy > p { color: var(--ink-2); font-size: 17px; max-width: 46ch; margin-top: 16px; }
.contact__list { display: grid; gap: 14px; margin: 32px 0 24px; }
.contact__list li { display: flex; align-items: center; gap: 14px; }
.contact__list small { display: block; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); }
.contact__list a { font-weight: 700; }
.contact__list a:hover { color: var(--green-700); }
.contact__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--green-700);
}
.contact__icon svg { width: 20px; height: 20px; }
.contact__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.contact__social a { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

.form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field small { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px var(--green-100);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d64545; box-shadow: 0 0 0 4px #fbe3e3; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form__note { font-size: 14px; color: var(--ink-2); min-height: 1.4em; }
.form__note.is-ok { color: var(--green-700); font-weight: 600; }
.form__note.is-error { color: #b93a3a; font-weight: 600; }
.form.is-sending { opacity: .7; pointer-events: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: var(--dark-ink-2); padding: 64px 0 28px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-line);
}
.footer__brand img { height: 64px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 36ch; font-size: 14px; }
.footer__brand .mono { color: var(--gold); margin-top: 8px; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col .mono { color: var(--dark-ink); margin-bottom: 6px; }
.footer__col a { font-size: 15px; transition: color .2s; }
.footer__col a:hover { color: var(--green-bright); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; }
.footer__bottom a { color: var(--dark-ink); font-weight: 600; }
.footer__bottom a:hover { color: var(--green-bright); }

/* ── Reveal ─────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot, .agentmap__link, .agentmap__halo { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1280px) and (min-width: 1081px) {
  .method { grid-template-columns: minmax(180px, .5fr) minmax(0, 1.4fr); }
  .method__detail { grid-column: 1 / -1; }
  .method__detail { min-height: 0; padding: 32px; }
}
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--ghost { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero__visual { justify-items: start; margin-top: 8px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(11, 20, 16, .92) 0%, rgba(11, 20, 16, .78) 60%, var(--dark) 100%); }
  .bento__card--purpose, .bento__card--photo { grid-column: span 6; }
  .bento__card { grid-column: span 6; }
  .bento__card--motto { grid-column: span 12; grid-template-columns: 1fr; }
  .services, .research { grid-template-columns: repeat(2, 1fr); }
  .method { grid-template-columns: 1fr; }
  .method__list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .method__list li { flex: none; }
  .method__step { grid-template-columns: auto auto; padding: 10px 14px; white-space: nowrap; }
  .method__step-title { display: none; }
  .method__step-short { display: inline; }
  .vault { grid-template-columns: 1fr; }
  .vault__photo { min-height: 260px; order: -1; }
  .vault__photo::after { background: linear-gradient(0deg, var(--dark), rgba(11, 20, 16, .1) 60%); }
  .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--max)); }
  .nav { inset: 10px 0 auto; padding-inline: 10px; }
  .nav__brand img { height: 44px; }
  .nav__actions .btn--primary { display: none; }
  .hero { padding-top: 116px; padding-bottom: 56px; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stats li:nth-child(n+3) { border-top: 1px solid var(--dark-line); margin-top: 18px; }
  .hero__card { width: 100%; }
  .method__num { display: none; }
  .bento__card, .bento__card--purpose, .bento__card--photo { grid-column: span 12; }
  .services, .research { grid-template-columns: 1fr; }
  .method__detail { padding: 28px 22px 76px; }
  .method__signals { margin-bottom: 0; }
  .agentmap__label { font-size: 32px; }
  .agentmap__num { font-size: 24px; }
  .agentmap__core { r: 28; }
  .agentmap__halo { r: 44; }
  .agentmap__link { stroke-width: 3; }
  .agentmap__pulse { r: 7; }
  .agentmap__foot .mono { display: none; }
  .method__num { font-size: 96px; right: 16px; }
  .form__row { grid-template-columns: 1fr; }
  .vault__form { flex-direction: column; border-radius: var(--r); }
  .vault__form input { padding: 12px 14px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
}

/* Illustrated neural atlas */
.method { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.method__list { grid-column: 1/-1; display: flex; gap: 6px; overflow-x: auto; padding: 0 0 10px; }
.method__list li { flex: 1 0 auto; }
.method__step { display: flex; align-items: center; gap: 10px; padding: 13px 14px; white-space: nowrap; }
.method__step-title { display: none; }
.method__step-short { display: inline; }
.agentmap { min-width: 0; background: radial-gradient(ellipse at 50% 45%, #213d30, #091a14 72%); }
.agentmap::before { pointer-events: none; opacity: .45; }
.agentmap__bar .mono { font-size: 10px; }
.agentmap__bar b { font-size: 10px; }
.neural-scene { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1.35; min-height: 530px; }
.neural-webgl, .neural-fallback { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.neural-webgl canvas { display: block; width: 100%; height: 100%; }
.neural-fallback path { fill: none; stroke: #6d9f7c; stroke-opacity: .4; stroke-width: 1.5; stroke-dasharray: 4 8; }
.neural-fallback path.is-active { stroke: #e5c372; stroke-opacity: .9; }
.neural-scene.has-webgl .neural-fallback { visibility: hidden; }
.neural-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); width: 23%; max-width: 172px; padding: 0; border: 0; background: none; color: #deebe0; cursor: pointer; z-index: 2; }
.neural-node img { position: relative; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 12px 10px #0005); transition: transform .5s ease, filter .5s ease; }
.neural-node__platform { position: absolute; width: 68%; height: 23%; border-radius: 50%; bottom: 18%; left: 16%; border: 1px solid #7cb28c55; background: radial-gradient(ellipse, #7db39022, transparent 70%); box-shadow: 0 0 28px #85d49b0c; transition: .4s ease; }
.neural-node__caption { position: relative; display: inline-flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 600; white-space: nowrap; padding: 5px 9px; border-radius: 20px; background: #0c201bd9; border: 1px solid #a3c7a825; }
.neural-node__caption small { font: 10px var(--mono); color: #b4cbbd; }
.neural-node.is-active { z-index: 3; }
.neural-node.is-active img { animation: atlas-hover 5s ease-in-out infinite; filter: drop-shadow(0 0 16px #b5e8bd33); }
.neural-node:hover img { transform: translateY(-9px) scale(1.07); }
.neural-node.is-active .neural-node__caption { border-color: #dac079; color: #fff4d7; }
.neural-node.is-active .neural-node__platform { border-color: #e5c372; box-shadow: 0 0 28px #d8be6340; }
.neural-node:focus-visible { outline: 2px solid #e5c372; outline-offset: 4px; border-radius: 20px; }
.neural-center { position: absolute; left: 31%; top: 48%; transform: translate(-50%,-50%); text-align: center; pointer-events: none; color: #afc6b8; opacity: .6; }
.neural-center span { display: block; font-size: 27px; font-weight: 700; }
.neural-center small { font: 7px/1.7 var(--mono); letter-spacing: .16em; }
.neural-tools { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px 18px; color: #adc4b5; font-size: 11px; }
.neural-tools button { border: 1px solid #a3c7a844; border-radius: 20px; padding: 7px 12px; background: #ffffff08; color: #e3ede5; font: inherit; cursor: pointer; }
.method__detail { grid-column: auto; min-width: 0; padding: 25px 25px 75px; }
.method__art { display: block; width: 190px; height: 190px; object-fit: contain; margin: -5px auto 16px; }
.method__num { display: none; }
.method__detail h3 { font-size: 25px; }
.method__signals { margin-bottom: 10px; }
@keyframes atlas-hover { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(-10px); } }
.motion-paused .neural-node img { animation: none; }
.motion-paused .method__progress span { animation-play-state: paused; }
@media (max-width: 1080px) {
  .method { grid-template-columns: minmax(0,1fr) 270px; }
  .neural-scene { min-height: 490px; }
  .neural-node__caption { font-size: 10px; padding: 4px 6px; gap: 4px; }
}
@media (max-width: 800px) {
  .method { grid-template-columns: 1fr; }
  .method__detail { grid-column: 1; }
  .method__art { float: right; width: 160px; height: 160px; margin: 0 0 15px 15px; }
  .method__signals { clear: both; }
  .neural-scene { min-height: 520px; }
}
@media (max-width: 480px) {
  .neural-scene { min-height: 470px; }
  .neural-node { width: 28%; }
  .neural-node__caption { font-size: 9px; }
  .neural-node__caption small { display: none; }
  .neural-tools { padding-inline: 12px; font-size: 10px; }
  .method__art { width: 120px; height: 120px; }
  .agentmap__bar, .agentmap__foot { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .neural-node img { animation: none !important; transition: none; }
}

/* Compact map / information split and static expertise list. */
.method { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
.neural-scene { aspect-ratio: auto; height: clamp(420px, 35vw, 490px); min-height: 0; flex: 1 0 420px; }
.neural-node { width: 18%; max-width: 100px; }
.method__detail { padding: 22px 24px 70px; border: 1px solid #96b399; background: radial-gradient(circle at 85% 8%, #e4eedb, transparent 45%), #fffefa; box-shadow: 0 12px 35px #174a2814, inset 0 0 0 3px #ffffffb3; }
.method__art { width: 135px; height: 135px; margin: -6px auto 8px; filter: drop-shadow(0 8px 12px #436c3f20); }
.method__panel.is-active h3 { color: #173e28; font-size: clamp(23px, 2vw, 29px); }
.method__active-badge { display: inline-block; margin-right: 8px; padding: 5px 9px; border-radius: 6px; background: #245c38; color: #fff; font-size: 9px; letter-spacing: .06em; }
.method__panel > .method__meta { font-size: 10px; color: #54715c; }
.method__label { margin: 18px 0 10px; }
.method__step.is-active { background: #215435; color: #fff; border-color: #215435; box-shadow: 0 5px 16px #21543526; }
.method__step.is-active .mono { color: #e9d99d; }
.neural-node.is-active .neural-node__caption { background: #e7ce85; border-color: #fff1bf; color: #163223; box-shadow: 0 0 22px #e7ce8535; }
.neural-node.is-active .neural-node__caption small { color: #355b3d; }
.neural-node.is-active .neural-node__platform { background: radial-gradient(ellipse, #e3ca7155, #e3ca7100 70%); box-shadow: 0 0 30px #d8be6355; border-width: 2px; }
.expertise { margin: 0 0 30px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.expertise > p { margin-bottom: 12px; color: var(--green-700); font-size: 11px; }
.expertise__tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.expertise__tags li { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; }
@media (max-width: 800px) {
  .method { grid-template-columns: 1fr; }
  .neural-scene { height: 450px; flex-basis: 450px; }
  .method__art { float: right; margin: 0 0 12px 12px; width: 125px; height: 125px; }
  .method__detail { padding: 22px 22px 70px; }
  .expertise { padding: 18px; }
}
@media (max-width: 480px) {
  .neural-scene { height: 420px; flex-basis: 420px; }
  .method__art { width: 100px; height: 100px; }
  .method__active-badge { display: table; margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .neural-node { width: 22%; max-width: 90px; }
}

/* Compact phase navigation on phones, retaining comfortable touch targets. */
@media (max-width: 640px) {
  .method__list { gap: 4px; padding-bottom: 6px; }
  .method__list li { flex: 0 0 auto; }
  .method__step { min-height: 44px; padding: 8px 10px; gap: 5px; border-radius: 11px; font-size: 12px; line-height: 1.25; }
  .method__step .mono { font-size: 9px; letter-spacing: 0; }
}

/* Custom duotone service illustrations. */
.service__icon { width: 88px; height: 88px; background: #f2f6ee; border: 1px solid #dce7d6; border-radius: 22px; }
.service__icon img { width: 72px; height: 72px; transition: transform .3s ease; }
.service:hover .service__icon { background: #e8f0e0; }
.service:hover .service__icon img { transform: translateY(-2px); }
@media (max-width: 640px) {
  .service__icon { width: 76px; height: 76px; border-radius: 18px; }
  .service__icon img { width: 62px; height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .service__icon img { transition: none; transform: none !important; }
}
