/* ═══════════════════════════════════════════════════════════════════════════
   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;
  line-height: 1;
  white-space: nowrap;   /* "Pequeña minería" no debe partirse en dos líneas */
  flex: none;
  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; align-items: center; gap: 6px; flex: 0 0 auto; max-width: 100%; }
.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; }
}

/* ═══ Fotos de proyectos en las tarjetas de servicio ═══════════════════════ */
.service__body { display: flex; flex-direction: column; gap: 12px; flex: 1; min-width: 0; }
.service__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
  cursor: zoom-in;
}
.service__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 5s linear;
}
.service__media img.is-active { opacity: 1; transform: scale(1); }
.service__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 20, 16, .62), transparent 45%);
  pointer-events: none;
}
.service__media-cap { position: absolute; left: 14px; bottom: 12px; z-index: 1; color: var(--dark-ink); font-size: 10px; }
.service__dots { position: absolute; right: 14px; bottom: 15px; z-index: 1; display: flex; gap: 4px; }
.service__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background .3s, width .3s; }
.service__dots i.is-active { width: 16px; border-radius: 3px; background: var(--green-bright); }
.service__media:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.service:hover .service__media img.is-active { transform: scale(1.03); }

/* Tarjeta ancha: Gran minería (foto + texto) */
.service--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 28px;
  padding: 16px;
}
.service--wide .service__body { padding: 16px 20px 16px 4px; justify-content: center; }
.service--wide .service__body p { flex: 0; }
.service__hero {
  position: relative;
  flex: 0 0 46%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--dark);
  text-align: left;
}
.service__hero img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.12) contrast(1.05); transition: transform .6s var(--ease); }
.service__hero:hover img { transform: scale(1.03); }
.service__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 20, 16, .7), transparent 50%);
}
.service__hero-cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: var(--dark-ink); font-size: 11px; }
.service__hero:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ═══ Potencial minero (sección oscura) ═══════════════════════════════════ */
.section--dark { background: var(--dark); color: var(--dark-ink); position: relative; overflow: hidden; }
.section--dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(61, 220, 91, .16), transparent 70%),
    radial-gradient(50% 45% at 100% 100%, rgba(217, 166, 58, .16), transparent 70%);
}
.section--dark .container { position: relative; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__intro--light { color: var(--dark-ink-2); }

.potential__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 28px;
}
.potential__stats li {
  padding: 22px 24px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--dark-line);
  backdrop-filter: blur(6px);
}
.potential__stats b { display: block; white-space: nowrap; font-size: clamp(30px, 3vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--green-bright); }
.potential__stats b small { font-size: .5em; font-weight: 600; color: var(--gold); letter-spacing: 0; }
.potential__stats span { display: block; margin-top: 10px; font-size: 13px; color: var(--dark-ink-2); }

.potential { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.potential__map {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  transition: transform .35s var(--ease), border-color .3s;
}
.potential__map:hover { transform: translateY(-4px); border-color: rgba(61, 220, 91, .35); }
.potential__zoom { position: relative; display: block; width: 100%; background: #f6f3ea; cursor: zoom-in; }
.potential__zoom img { width: 100%; height: clamp(380px, 36vw, 580px); object-fit: contain; padding: 14px; }
.potential__zoom::after {
  content: "Ampliar";
  position: absolute; right: 14px; top: 14px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(11, 20, 16, .75); color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transition: opacity .25s;
}
.potential__zoom:hover::after, .potential__zoom:focus-visible::after { opacity: 1; }
.potential__zoom:focus-visible { outline: 2px solid var(--green-bright); outline-offset: -4px; }
.potential__map figcaption { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.potential__map figcaption .mono { color: var(--green-bright); font-size: 11px; }
.potential__map h3 { font-size: 20px; }
.potential__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 6px; }
.potential__legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--dark-ink-2); }
.potential__legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; }
.potential__legend span { flex: 1; }
.potential__legend b { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--dark-ink); }
.potential__districts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  margin-top: 6px; counter-reset: d;
}
.potential__districts li { counter-increment: d; display: flex; gap: 10px; font-size: 13px; color: var(--dark-ink-2); }
.potential__districts li::before { content: counter(d, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--gold); padding-top: 2px; }
.potential__fields { margin-top: 8px; }
.potential__source { margin-top: 22px; color: var(--dark-ink-2); font-size: 11px; }

/* ═══ Lightbox ═══════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  padding: 24px;
  background: rgba(11, 20, 16, .92);
  backdrop-filter: blur(8px);
  animation: lb-in .25s var(--ease);
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__figure { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.lightbox__figure img {
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  width: auto; height: auto;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  background: #f6f3ea;
}
.lightbox__figure figcaption { color: var(--dark-ink-2); font-size: 12px; text-align: center; }
.lightbox__close, .lightbox__nav {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--dark-line);
  color: var(--dark-ink); transition: background .2s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .16); }
.lightbox__close { position: absolute; top: 20px; right: 20px; font-size: 16px; }
.lightbox__nav svg { width: 20px; height: 20px; }
.lightbox__nav--prev svg { transform: rotate(180deg); }
.lightbox__nav[disabled] { opacity: .25; pointer-events: none; }
body.lb-open { overflow: hidden; }

@media (max-width: 1080px) {
  .potential__stats { grid-template-columns: 1fr 1fr; }
  .potential { grid-template-columns: 1fr; }
  .service--wide { flex-direction: column; gap: 0; }
  .service__hero { flex-basis: auto; min-height: 240px; aspect-ratio: 16 / 9; }
  .service--wide .service__body { padding: 20px 12px 12px; }
}
@media (max-width: 640px) {
  .potential__stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .potential__stats li { padding: 16px; }
  .potential__stats b { font-size: 24px; }
  .potential__legend, .potential__districts { grid-template-columns: 1fr; }
  .lightbox { padding: 12px; grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: 18px; }
  .lightbox__nav--next { right: 18px; }
  .lightbox__figure img { max-height: 70vh; }
}

/* ═══ Directiva (bento, ancho completo) ═══════════════════════════════════ */
.bento__card--board { grid-column: 1 / -1; padding: 32px 36px 36px; }
.board__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.board__head h3 { margin: 0; max-width: 28ch; font-size: clamp(20px, 2vw, 26px); }
.board__head .mono { color: var(--gold-700); margin-bottom: 10px; }
.board__meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding: 8px 12px; border: 1px dashed var(--line-2); border-radius: 10px; }
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: b;
}
.board__member {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.board__member:hover { background: #fff; border-color: rgba(34, 160, 58, .4); transform: translateY(-2px); }
.board__member:first-child { background: var(--dark); border-color: var(--dark); color: var(--dark-ink); box-shadow: 0 12px 30px -14px rgba(11, 20, 16, .6); }
.board__member:first-child:hover { background: var(--dark-2); border-color: var(--gold); }
.board__member:first-child .board__role { color: var(--gold); }
.board__member:first-child strong { color: #fff; }
.board__member:first-child .board__avatar { border-color: var(--gold); background: linear-gradient(135deg, #2a3d31, var(--dark)); }
.board__avatar {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-3), var(--dark));
  color: var(--green-bright);
  font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .05em;
  border: 2px solid rgba(34, 160, 58, .5);
}
.board__member div { display: grid; gap: 2px; min-width: 0; }
.board__role { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); }
.board__member strong { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }

/* ═══ Publicaciones ═══════════════════════════════════════════════════════ */
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 28px;
  padding: 24px;
  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;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(34, 160, 58, .35); }
.book__cover {
  position: relative;
  display: block;
  aspect-ratio: 5 / 7;
  border-radius: 6px 14px 14px 6px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 18px 40px -18px rgba(13, 21, 17, .45), inset 6px 0 10px -8px rgba(0, 0, 0, .45);
  cursor: zoom-in;
  transform-origin: left center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__cover::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; z-index: 1;
  background: linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(0, 0, 0, .18));
  pointer-events: none;
}
.book:hover .book__cover { transform: perspective(900px) rotateY(-9deg); box-shadow: 0 28px 50px -20px rgba(13, 21, 17, .55), inset 6px 0 10px -8px rgba(0, 0, 0, .45); }
.book__cover:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.book__flip {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 1;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(11, 20, 16, .8); color: var(--dark-ink);
  font-size: 10px; text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--ease);
}
.book:hover .book__flip, .book__cover:focus-visible .book__flip { opacity: 1; transform: none; }
.book__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.book__body .mono { color: var(--green-600); }
.book__body h3 { font-size: clamp(20px, 1.6vw, 24px); }
.book__body h3 a:hover { color: var(--green-700); }
.book__author { color: var(--ink); font-weight: 600; font-size: 14px; }
.book__desc { color: var(--ink-2); font-size: 15px; flex: 1; }
.book__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

@media (max-width: 1080px) {
  .board { grid-template-columns: 1fr 1fr; }
  .books { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento__card--board { padding: 24px 20px; }
  .board { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; gap: 18px; }
  .book__cover { max-width: 220px; }
}

/* ═══ Metodología: altura estable entre fases ═════════════════════════════
   Todos los paneles ocupan la misma celda del grid; los ocultos siguen
   ocupando espacio (visibility) para que la tarjeta y la escena 3D no
   cambien de alto al pasar de una fase a otra. */
.method__detail { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; }
.method__detail .method__panel { grid-area: 1 / 1; animation: none; }
.method__detail .method__panel[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.method__detail .method__panel.is-active { animation: fade .45s var(--ease); }
.method__detail .method__signals { grid-row: 2; }

/* Nav sin botón de acceso: «Consultar» con más presencia */
.nav__actions .btn--primary.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; font-weight: 700; }

/* ═══ Accesibilidad nav: textos más grandes y con más contraste ═══════════ */
.nav__links a { font-size: 17px; font-weight: 700; color: #f1f5f0; padding: 10px 15px; letter-spacing: -.005em; }
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav__mobile a:not(.btn) { font-size: 18px; color: #f1f5f0; }
@media (max-width: 1300px) and (min-width: 1081px) {
  .nav__links a { font-size: 15.5px; padding: 9px 11px; }
}

/* H1 más largo (palabras clave): un poco más ancho y contenido */
.hero h1 { max-width: 17ch; }
.hero__sub { margin-top: 14px; max-width: 62ch; font-size: 14.5px; line-height: 1.6; color: var(--dark-ink-2); }
.hero__sub a { color: var(--green-bright); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(61, 220, 91, .35); text-underline-offset: 3px; }
.hero__sub a:hover { text-decoration-color: var(--green-bright); }

/* ═══ FAQ ═════════════════════════════════════════════════════════════════ */
.faq { display: grid; gap: 10px; max-width: 980px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, box-shadow .3s;
}
.faq__item[open] { border-color: rgba(34, 160, 58, .4); box-shadow: var(--shadow); }
.faq__item summary {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 20px 24px;
  cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .mono { color: var(--gold-700); font-size: 12px; }
.faq__item summary h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0; }
.faq__chev { width: 12px; height: 12px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px; }
.faq__item[open] .faq__chev { transform: rotate(-135deg); }
.faq__item > p { padding: 0 24px 22px 62px; color: var(--ink-2); font-size: 15.5px; max-width: 78ch; }
.faq__item summary:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; border-radius: var(--r); }
@media (max-width: 640px) {
  .faq__item summary { padding: 16px 18px; gap: 12px; }
  .faq__item > p { padding: 0 18px 18px 18px; }
}

/* ═══ Tarjeta del presidente (perfil ampliado) ═══════════════════════════ */
.bento__card--half { grid-column: span 6; }
.bento__card--leader { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 32px; padding: 32px 36px; }
.bento__card--leader h3 { margin: 10px 0 4px; font-size: clamp(20px, 1.8vw, 24px); }
.leader__title { font-family: var(--mono); font-size: 12px; color: var(--green-700); margin: 0 0 14px; }
.leader__main > p:not(.leader__title) { font-size: 15.5px; line-height: 1.6; max-width: 70ch; }
.leader__side { padding: 22px 24px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); align-self: start; }
.leader__side > .mono { color: var(--gold-700); margin-bottom: 12px; }
.leader__creds { display: grid; gap: 8px; }
@media (max-width: 1080px) { .bento__card--half { grid-column: span 6; } .bento__card--leader { grid-template-columns: 1fr; gap: 20px; padding: 26px 24px; } }
@media (max-width: 640px) { .bento__card--half { grid-column: span 12; } }
.leader__creds li { position: relative; padding-left: 16px; font-size: 13px; color: var(--ink-2); }
.leader__creds li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }
.leader__links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; font-size: 13px; font-weight: 700; }
.leader__links a { color: var(--green-700); }
.leader__links a:hover { text-decoration: underline; }
.footer__brand a { color: var(--dark-ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); }
.footer__brand a:hover { color: #fff; }

/* ═══ Páginas interiores ══════════════════════════════════════════════════ */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(150px, 16vw, 200px) 0 clamp(56px, 7vw, 90px);
  background: var(--dark); color: var(--dark-ink);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 60% at 8% 0%, rgba(61, 220, 91, .22), transparent 70%),
    radial-gradient(45% 50% at 100% 100%, rgba(217, 166, 58, .18), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 20ch; font-size: clamp(36px, 4.6vw, 62px); margin: 0 0 20px; color: #fff; }
.page-hero .lead { color: var(--dark-ink-2); }
.profile__side .tags--light li { font-size: 11px; }
.page-hero .lead { max-width: 68ch; }
.crumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; font-family: var(--mono); font-size: 12px; color: var(--dark-ink-2); }
.crumbs a:hover { color: #fff; }
.crumbs span:last-child { color: var(--dark-ink); }

/* Detalle de servicios */
.detail-list { display: grid; gap: 16px; }
.detail {
  display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); gap: 32px;
  padding: 20px;
  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;
}
.detail:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(34, 160, 58, .35); }
.detail:nth-child(even) { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); }
.detail:nth-child(even) .detail__media { order: 2; }
.detail__media { position: relative; min-height: 260px; border-radius: 18px; overflow: hidden; background: var(--surface-2); }
.detail__media img:not(.service__icon img) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__media .service__icon { position: absolute; left: 14px; top: 14px; width: 64px; height: 64px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.detail__media .service__icon img { width: 50px; height: 50px; position: static; }
.detail__body { display: flex; flex-direction: column; gap: 12px; padding: 12px 8px; }
.detail__body .mono { color: var(--green-600); font-size: 11px; }
.detail__body h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; }
.detail__lead { color: var(--ink); font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.detail__items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 4px; }
.detail__items li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.detail__items svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 3px; }
.detail__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; color: var(--green-700); }
.detail__cta svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.detail__cta:hover svg { transform: translateX(4px); }
.section__intro a, .cta-band h3 a { color: var(--green-700); text-decoration: underline; text-decoration-color: rgba(34, 160, 58, .35); text-underline-offset: 3px; }
.section__intro--light a { color: var(--green-bright); }

/* Perfil */
.profile { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 40px; align-items: start; }
.profile__role { color: var(--gold); margin: -8px 0 18px; font-size: 12px; }
.profile__side {
  padding: 26px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--dark-line); backdrop-filter: blur(8px);
  display: grid; gap: 12px;
}
.profile__side > .mono { color: var(--green-bright); font-size: 11px; margin-top: 6px; }
.avatar--xl {
  display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dark-3), var(--dark)); color: var(--green-bright);
  font-family: var(--mono); font-size: 26px; font-weight: 600; letter-spacing: .05em; border: 3px solid var(--gold);
}
.leader__creds--light li { color: var(--dark-ink-2); }

/* Línea de tiempo */
.timeline { display: grid; gap: 0; max-width: 900px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--green), var(--gold)); opacity: .5; }
.timeline__item { display: grid; grid-template-columns: 70px 1fr; gap: 40px; padding: 18px 0; position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 82px; top: 30px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); }
.timeline__year { color: var(--gold-700); font-size: 14px; font-weight: 600; text-align: right; padding-top: 6px; }
.timeline__item h3 { font-size: 19px; margin-bottom: 6px; }
.timeline__item p { color: var(--ink-2); font-size: 15px; max-width: 64ch; }

@media (max-width: 1080px) {
  .profile { grid-template-columns: 1fr; gap: 24px; }
  .detail, .detail:nth-child(even) { grid-template-columns: 1fr; gap: 18px; }
  .detail:nth-child(even) .detail__media { order: 0; }
  .detail__media { min-height: 220px; aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .detail__items { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; padding-left: 30px; }
  .timeline__item::before { left: 2px; top: 24px; }
  .timeline__year { text-align: left; }
}

/* ═══ Repositorio de publicaciones ════════════════════════════════════════ */
.badge-type { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; background: var(--green-100); color: var(--green-700); }
.badge-type--articulo { background: #e3ecfb; color: #2a4f9e; }
.badge-type--informe { background: var(--gold-100); color: var(--gold-700); }
.badge-type--pdf { background: #fde8e8; color: #a12626; }
.page-hero .badge-type { background: rgba(255, 255, 255, .1); color: var(--dark-ink); }
.page-hero .badge-type--pdf { background: rgba(255, 90, 90, .22); color: #ffb8b8; }

.repo__tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.repo__tools .chip small { margin-left: 4px; opacity: .6; font-family: var(--mono); font-size: 11px; }
.repo__search { display: flex; align-items: center; gap: 10px; min-width: min(100%, 360px); padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.repo__search svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.repo__search input { border: 0; background: none; min-height: 40px; width: 100%; outline: none; font-size: 14px; }
.repo { display: grid; gap: 14px; }
.repo__item { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 18px; 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; }
.repo__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(34, 160, 58, .35); }
.repo__thumb { display: block; aspect-ratio: 5 / 7; border-radius: 6px 10px 10px 6px; overflow: hidden; background: var(--surface-2); box-shadow: 0 12px 24px -14px rgba(13, 21, 17, .5); }
.repo__thumb img { width: 100%; height: 100%; object-fit: cover; }
.repo__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.repo__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.repo__meta .mono { color: var(--ink-3); font-size: 12px; }
.repo__body h2 { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.015em; }
.repo__body h2 a:hover { color: var(--green-700); }
.repo__authors { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.repo__abstract { font-size: 14.5px; color: var(--ink-2); }
.repo__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.repo__foot .mono { font-size: 11px; color: var(--ink-3); }
.repo__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.repo__actions .btn svg { width: 16px; height: 16px; }

/* Ficha */
.page-hero--pub { padding-bottom: clamp(40px, 5vw, 64px); }
.pub__head { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(200px, 260px); gap: 40px; align-items: start; }
.pub__badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.pub__badges .mono { color: var(--gold); }
.page-hero--pub h1 { max-width: 26ch; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; }
.pub__authors { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 18px; }
.pub__authors a { color: var(--green-bright); text-decoration: underline; text-decoration-color: rgba(61, 220, 91, .4); text-underline-offset: 3px; }
.pub__authors small { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--dark-ink-2); }
.pub__stats { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 22px; border-top: 1px solid var(--dark-line); }
.pub__stats li { padding: 14px 22px 0 0; }
.pub__stats li + li { padding-left: 22px; border-left: 1px solid var(--dark-line); }
.pub__stats b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; line-height: 1; }
.pub__stats span { display: block; margin-top: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-ink-2); }
.pub__cover { margin: 0; }
.pub__cover .book__cover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 6px 0 10px -8px rgba(0, 0, 0, .45); }
.pub__cover:hover .book__cover { transform: perspective(900px) rotateY(-9deg); }
.pub__body { padding-top: clamp(40px, 5vw, 64px); }
.pub__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); gap: 24px; align-items: start; }
.pub__main { display: grid; gap: 16px; min-width: 0; }
.pub__block { padding: 28px 30px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.pub__block h2 { font-size: 22px; margin-bottom: 14px; }
.pub__blockhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pub__blockhead h2 { margin: 0; }
.pub__abstract { font-size: 16.5px; line-height: 1.7; color: var(--ink); max-width: 76ch; }
.pub__keywords { margin-top: 18px; }
.pub__cite { padding: 16px 18px; border-radius: 12px; background: var(--surface-2); border-left: 3px solid var(--gold); font-size: 14.5px; line-height: 1.6; color: var(--ink-2); word-break: break-word; }
.pub__citenote { margin-top: 10px; font-size: 11px; color: var(--ink-3); }
.pub__side { display: grid; gap: 14px; position: sticky; top: 96px; }
.pub__card { padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); display: grid; gap: 12px; }
.pub__card > .mono { color: var(--green-700); font-size: 11px; }
.pub__card p { font-size: 14px; color: var(--ink-2); }
.pub__author { display: flex; align-items: center; gap: 12px; }
.pub__author .avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--dark-3), var(--dark)); color: var(--green-bright); font-family: var(--mono); font-weight: 600; border: 2px solid var(--gold); flex: none; }
.pub__author strong { display: block; font-size: 15px; }
.pub__author small { display: block; font-size: 12px; color: var(--ink-3); }
.pub__author:hover strong { color: var(--green-700); }
.pub__dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; margin: 0; }
.pub__dl dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }
.pub__dl dd { margin: 0; color: var(--ink); }
.pub__share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.pub__share .mono { font-weight: 500; color: var(--ink-3); font-size: 11px; margin-right: 4px; }
.pub__share a, .pub__share button { color: var(--green-700); }
.pub__share a:hover, .pub__share button:hover { text-decoration: underline; }
.pub__more { display: grid; gap: 10px; }
.pub__more a { display: flex; gap: 12px; align-items: center; }
.pub__more img { width: 48px; height: 66px; object-fit: cover; border-radius: 4px 8px 8px 4px; box-shadow: var(--shadow-sm); flex: none; }
.pub__more strong { display: block; font-size: 14px; line-height: 1.3; }
.pub__more small { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.pub__more a:hover strong { color: var(--green-700); }

/* Visor PDF */
.pdfv { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #2b3330; }
.pdfv.is-full { border-radius: 0; display: flex; flex-direction: column; height: 100vh; }
.pdfv__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; background: var(--dark-2); color: var(--dark-ink); border-bottom: 1px solid var(--dark-line); }
.pdfv__btn { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--dark-ink); font-size: 16px; font-weight: 700; line-height: 1; transition: background .2s; }
.pdfv__btn:hover { background: rgba(255, 255, 255, .16); }
.pdfv__btn--text { font-size: 12px; font-weight: 600; }
.pdfv__sep { width: 1px; height: 22px; background: var(--dark-line); margin: 0 4px; }
.pdfv__pages, .pdfv__zoom { font-size: 12px; color: var(--dark-ink-2); }
.pdfv__pages input { width: 44px; padding: 4px 6px; border-radius: 6px; border: 1px solid var(--dark-line); background: rgba(255, 255, 255, .06); color: #fff; text-align: center; font: inherit; }
.pdfv__zoom { min-width: 44px; text-align: center; }
.pdfv__stage { height: clamp(520px, 78vh, 900px); overflow: auto; padding: 16px; display: grid; gap: 16px; align-content: start; justify-items: center; outline: none; scroll-behavior: smooth; }
.pdfv.is-full .pdfv__stage { flex: 1; height: auto; }
.pdfv__stage:focus-visible { box-shadow: inset 0 0 0 2px var(--green-bright); }
.pdfv__page { background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); border-radius: 2px; }
.pdfv__page canvas { display: block; }
.pdfv__loading { color: var(--dark-ink-2); font-size: 12px; padding: 40px 0; text-align: center; }

@media (max-width: 1080px) {
  .pub__head { grid-template-columns: 1fr; gap: 24px; }
  .pub__cover { max-width: 220px; }
  .pub__grid { grid-template-columns: 1fr; }
  .pub__side { position: static; }
}
@media (max-width: 640px) {
  .repo__item { grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; }
  .repo__body h2 { font-size: 18px; }
  .pub__block { padding: 20px; }
  .pdfv__stage { height: 70vh; padding: 8px; }
  .pdfv__btn--text { display: none; }
  .pub__stats li { padding-right: 14px; } .pub__stats li + li { padding-left: 14px; }
}
