/* ═══════════════════════════════════════════════════════════════════════════
   AgentiCo.cl — hoja de estilos única
   Identidad heredada del sitio original: fondo casi negro, acento celeste
   #a8d6f5, tarjetas de vidrio, titulares con tracking negativo marcado.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --bg: #050505;
  --bg-deep: #020202;
  --white: #f7f7f4;
  --text: rgba(255, 255, 255, .92);
  --muted: rgba(255, 255, 255, .70);
  --faint: rgba(255, 255, 255, .52);
  --line: rgba(255, 255, 255, .15);
  --line-soft: rgba(255, 255, 255, .09);

  --accent: #a8d6f5;
  --accent-soft: rgba(168, 216, 245, .55);
  --accent-dim: rgba(168, 216, 245, .12);

  --card: rgba(10, 10, 10, .52);
  --card-line: rgba(255, 255, 255, .13);

  --radius: 22px;
  --radius-sm: 14px;
  --radius-xs: 11px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "Space Grotesk", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1400px;
  --header-h: 78px;
}

* { box-sizing: border-box; }

/* Cualquier regla de autor con `display` le gana al `display: none` que el
   navegador aplica a [hidden]. Sin esto, el menú móvil quedaba siempre
   abierto, pegado arriba y tapando media pantalla. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

::selection { background: rgba(168, 216, 245, .28); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--white);
  color: #131313;
  font-weight: 600;
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── Fondo animado ─────────────────────────────────────────────────────── */

.bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 8%, rgba(255, 255, 255, .05), transparent 34%),
    radial-gradient(circle at 12% 4%, rgba(168, 216, 245, .05), transparent 38%),
    linear-gradient(180deg, #0b0b0d 0%, #040404 46%, #020202 100%);
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .34;
  will-change: transform;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}
.aurora .a1 { top: -12%; left: 6%; width: 46vw; height: 46vw; background: radial-gradient(circle, rgba(99, 102, 241, .40), transparent 66%); }
.aurora .a2 { top: 4%; right: -8%; width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(168, 216, 245, .34), transparent 66%); }
.aurora .a3 { bottom: -18%; left: 22%; width: 52vw; height: 52vw; background: radial-gradient(circle, rgba(139, 92, 246, .26), transparent 68%); }
.aurora .a4 { bottom: 6%; right: 12%; width: 34vw; height: 34vw; background: radial-gradient(circle, rgba(6, 182, 212, .20), transparent 68%); }

.mesh-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 35%, transparent 78%);
}

.particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.grain {
  position: absolute;
  inset: 0;
  opacity: .16;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 18% 28%, rgba(255, 255, 255, .10) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 3px);
}

.cursor-glow {
  position: fixed;
  z-index: -5;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(168, 216, 245, .09), transparent 62%);
  transition: opacity .5s ease;
}

/* ── Layout ────────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 clamp(22px, 5vw, 72px);
}

.section { padding: clamp(84px, 9vw, 150px) 0; position: relative; }

.section-alt::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 84% 6%, rgba(168, 216, 245, .055), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, .022), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-head { max-width: 900px; margin-bottom: clamp(48px, 5vw, 72px); }

/* ── Tipografía ────────────────────────────────────────────────────────── */

.h1, .h2, .h3, .hero-title {
  margin: 0;
  color: var(--white);
  letter-spacing: -.055em;
  font-weight: 780;
  line-height: 1.02;
}

.hero-title {
  font-size: clamp(46px, 6.4vw, 108px);
  line-height: .93;
  letter-spacing: -.068em;
  max-width: 15ch;
}

.h1 {
  font-size: clamp(40px, 5vw, 80px);
  line-height: .98;
  letter-spacing: -.062em;
  max-width: 18ch;
}

.h1-case { max-width: 22ch; }

.h2 {
  font-size: clamp(32px, 3.5vw, 62px);
  letter-spacing: -.055em;
  font-weight: 760;
}

.h3 {
  font-size: clamp(21px, 1.7vw, 30px);
  letter-spacing: -.04em;
  font-weight: 720;
}

.accent, .co { color: var(--accent); }
.co { text-shadow: 0 0 20px rgba(168, 216, 245, .16); }

.lead {
  margin: 24px 0 0;
  max-width: 68ch;
  color: var(--muted);
  font-size: clamp(17px, 1.15vw, 21px);
  line-height: 1.56;
  letter-spacing: -.022em;
  font-weight: 380;
}

.lead-wide { max-width: 74ch; }
.lead-center { margin-left: auto; margin-right: auto; }

.kicker {
  margin: clamp(44px, 4vw, 66px) 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  color: var(--accent);
  font-size: clamp(18px, 1.5vw, 26px);
  letter-spacing: -.035em;
  font-weight: 500;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(168, 216, 245, .32);
  border-radius: 999px;
  background: rgba(168, 216, 245, .07);
  color: var(--accent);
  font-size: clamp(12px, .85vw, 15px);
  letter-spacing: -.005em;
  font-weight: 500;
}

.eyebrow .pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

.arrow { display: inline-block; transition: transform .28s cubic-bezier(.22, .61, .36, 1); }

/* ── Botones ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: clamp(15px, 1.05vw, 18px);
  font-weight: 520;
  letter-spacing: -.028em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.btn-sm { padding: 12px 22px; font-size: clamp(14px, .92vw, 16px); }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  background: rgba(255, 255, 255, .93);
  color: #161616;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 7px 22px rgba(0, 0, 0, .22);
}
.btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 0, 0, .32); }

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .035);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { border-color: var(--accent-soft); background: rgba(168, 216, 245, .08); transform: translateY(-2px); }

.btn-link {
  padding: 16px 4px;
  color: var(--text);
  font-weight: 440;
  letter-spacing: -.035em;
}
.btn-link:hover .arrow { transform: translateX(6px); }

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}

.site-header.scrolled,
.site-header.nav-open {
  background: rgba(5, 5, 5, .72);
  border-bottom-color: var(--line-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 780;
  letter-spacing: -.045em;
  line-height: 1;
  white-space: nowrap;
}
.brand .dot-cl { color: rgba(255, 255, 255, .55); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 42px);
  color: rgba(255, 255, 255, .78);
  font-size: clamp(14px, .95vw, 16px);
  font-weight: 420;
  letter-spacing: -.02em;
}

.main-nav a { position: relative; padding: 6px 0; transition: color .2s ease; }
.main-nav a:hover { color: var(--white); }

.main-nav a.active { color: var(--white); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(168, 216, 245, .5);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
  flex-direction: column;
}
.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px clamp(22px, 5vw, 72px) 26px;
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 5, 5, .94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  /* El header es sticky: el panel abierto no puede pasarse del alto visible. */
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Sobre 900px no se dibuja el botón que lo cierra, así que no se muestra. */
@media (min-width: 901px) {
  .mobile-nav { display: none; }
}
.mobile-nav a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -.025em;
}
.mobile-nav a.active { color: var(--accent); }
.mobile-nav .mobile-cta {
  margin-top: 16px;
  padding: 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .93);
  color: #161616;
  font-weight: 560;
  text-align: center;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(60px, 8vw, 110px) 0 clamp(90px, 10vw, 150px);
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .30;
  filter: grayscale(.55) contrast(1.05);
}
.hero-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 2, 2, .92) 0%, rgba(2, 2, 2, .62) 46%, rgba(2, 2, 2, .30) 100%),
    linear-gradient(180deg, rgba(2, 2, 2, .55) 0%, transparent 30%, rgba(2, 2, 2, .92) 100%);
}

.hero-inner { position: relative; z-index: 2; }

.hero-kicker {
  margin: 26px 0 0;
  color: rgba(255, 255, 255, .74);
  font-family: var(--font-mono);
  font-size: clamp(14px, 1.05vw, 18px);
  letter-spacing: -.01em;
  font-weight: 400;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.46;
  letter-spacing: -.03em;
  font-weight: 380;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 36px);
  margin-top: 40px;
}
.hero-actions-center { justify-content: center; }

.hero-note {
  margin: 40px 0 0;
  color: var(--faint);
  font-size: 15px;
  letter-spacing: -.02em;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
}
.scroll-hint .line {
  display: block;
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, transparent, rgba(168, 216, 245, .7), transparent);
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0%, 100% { opacity: .25; transform: scaleY(.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Hero de páginas interiores */
.page-hero {
  padding: clamp(70px, 8vw, 120px) 0 clamp(30px, 4vw, 56px);
  position: relative;
}
.page-hero-tight { padding-bottom: 0; }
.page-hero-center { text-align: center; min-height: 62vh; display: grid; place-items: center; }
.page-hero-center .h1 { margin-inline: auto; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--faint);
  font-size: 15px;
  letter-spacing: -.02em;
  transition: color .2s ease;
}
.back-link:hover { color: var(--accent); }
.back-link:hover .arrow { transform: translateX(-5px); }

/* ── Pasos 01 / 02 / 03 ────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-soft);
}

.step {
  position: relative;
  padding: 44px clamp(24px, 2.4vw, 40px) 40px 0;
  border-right: 1px solid var(--line-soft);
}
.step:last-child { border-right: 0; }

.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width .9s cubic-bezier(.22, .61, .36, 1);
}
.step.in::before { width: 100%; }

.step-num {
  display: block;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: clamp(28px, 2.6vw, 44px);
  font-weight: 700;
  letter-spacing: -.05em;
  color: rgba(168, 216, 245, .32);
}

.step-body h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.55vw, 28px);
  letter-spacing: -.042em;
  font-weight: 720;
}
.step-body p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.02vw, 18px);
  line-height: 1.56;
  letter-spacing: -.02em;
  font-weight: 380;
}

/* ── Tarjetas de vidrio (principios / evals) ───────────────────────────── */

.glyph {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(168, 216, 245, .18), rgba(168, 216, 245, .04));
  border: 1px solid rgba(168, 216, 245, .22);
}
.glyph svg {
  width: 25px;
  height: 25px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.principle, .eval, .proto, .role, .case-card, .post, .flow, .cta-band, .case-aside, .faq-item {
  border: 1px solid var(--card-line);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .048), rgba(255, 255, 255, .014)),
    var(--card);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(11px);
  -webkit-backdrop-filter: blur(11px);
}

.principle {
  padding: 34px clamp(26px, 2.2vw, 36px) 32px;
  transition: border-color .3s ease, transform .3s ease;
}
.principle:hover { border-color: rgba(168, 216, 245, .3); transform: translateY(-3px); }

.principle-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.principle-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--faint);
}
.principle h3 {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.42vw, 26px);
  letter-spacing: -.04em;
  font-weight: 720;
  line-height: 1.14;
}
.principle p, .eval p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.56;
  letter-spacing: -.02em;
  font-weight: 380;
}

.eval-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.eval { padding: 30px 26px 28px; }
.eval .glyph { margin-bottom: 20px; }
.eval h3 {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.2vw, 21px);
  letter-spacing: -.035em;
  font-weight: 700;
  line-height: 1.2;
}

/* ── Split y listas ────────────────────────────────────────────────────── */

.split {
  margin-top: clamp(44px, 4.5vw, 70px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding-top: clamp(40px, 4vw, 56px);
  border-top: 1px solid var(--line-soft);
}
.split-col h3 {
  margin: 0 0 20px;
  font-size: clamp(19px, 1.4vw, 24px);
  letter-spacing: -.04em;
  font-weight: 720;
}

.ticks, .numbered { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }

.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.55;
  letter-spacing: -.02em;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 9px;
  height: 5px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}

.numbered { counter-reset: n; gap: 18px; }
.numbered li {
  counter-increment: n;
  position: relative;
  padding-left: 44px;
  color: var(--muted);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.6;
  letter-spacing: -.02em;
}
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .1em;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: rgba(168, 216, 245, .5);
}

/* ── Casos ─────────────────────────────────────────────────────────────── */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 32px 30px 28px;
  transition: border-color .3s ease, transform .3s ease;
}
.case-card:hover { border-color: rgba(168, 216, 245, .32); transform: translateY(-4px); }
.case-card:hover .arrow { transform: translateX(6px); }

.case-sector {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.case-metric { margin: 26px 0 20px; display: flex; align-items: baseline; gap: 12px; }
.case-metric strong {
  font-size: clamp(34px, 3.2vw, 52px);
  font-weight: 780;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--white);
}
.case-metric span {
  color: var(--faint);
  font-size: 14px;
  letter-spacing: -.02em;
}

.case-card h3 {
  margin: 0 0 12px;
  font-size: clamp(19px, 1.35vw, 24px);
  letter-spacing: -.04em;
  font-weight: 720;
  line-height: 1.16;
}
.case-card p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -.02em;
  font-weight: 380;
}

.case-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.case-stats {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.case-stat { display: flex; align-items: baseline; gap: 14px; }
.case-stat strong {
  font-size: clamp(38px, 3.6vw, 58px);
  font-weight: 780;
  letter-spacing: -.06em;
  line-height: 1;
  color: var(--accent);
}
.case-stat span { color: var(--faint); font-size: 15px; letter-spacing: -.02em; }
.case-stack { display: flex; flex-wrap: wrap; gap: 8px; }

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.case-article h2 { margin: 0 0 18px; }
.case-article h2:not(:first-child) { margin-top: 52px; }
.case-article p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.08vw, 18px);
  line-height: 1.65;
  letter-spacing: -.02em;
  font-weight: 380;
}

.case-aside {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  padding: 32px 28px;
  display: grid;
  gap: 12px;
}
.case-aside h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.04em;
  font-weight: 720;
}
.case-aside p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
  letter-spacing: -.02em;
}

.draft-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 26px 0 0;
  max-width: 74ch;
  padding: 14px 18px;
  border: 1px solid rgba(245, 200, 120, .3);
  border-radius: var(--radius-xs);
  background: rgba(245, 200, 120, .07);
  color: rgba(245, 214, 160, .92);
  font-size: 14.5px;
  line-height: 1.5;
  letter-spacing: -.015em;
}
.draft-note span {
  flex: 0 0 auto;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(245, 200, 120, .16);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ── Protocolos / capacidades ──────────────────────────────────────────── */

.proto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.proto {
  padding: 30px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  align-items: start;
  scroll-margin-top: calc(var(--header-h) + 30px);
  transition: border-color .3s ease;
}
.proto:hover { border-color: rgba(168, 216, 245, .3); }

.proto h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(18px, 1.3vw, 23px);
  letter-spacing: -.038em;
  font-weight: 720;
}
.proto p {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: clamp(14.5px, .98vw, 16.5px);
  line-height: 1.55;
  letter-spacing: -.02em;
  font-weight: 380;
}

.tag {
  padding: 4px 11px;
  border: 1px solid rgba(168, 216, 245, .35);
  border-radius: 999px;
  background: rgba(168, 216, 245, .08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag.muted {
  border-color: var(--line);
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .6);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
  letter-spacing: -.005em;
}

/* ── Flujo A2A ─────────────────────────────────────────────────────────── */

.flow {
  margin-top: 40px;
  padding: 38px clamp(22px, 4vw, 48px);
  border-radius: 18px;
  border-color: rgba(168, 216, 245, .2);
  background:
    linear-gradient(180deg, rgba(168, 216, 245, .045), rgba(168, 216, 245, 0) 80%),
    rgba(10, 10, 10, .45);
  scroll-margin-top: calc(var(--header-h) + 30px);
}

.flow-title {
  text-align: center;
  margin-bottom: 28px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.flow-node {
  flex: 0 0 auto;
  min-width: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .04);
  text-align: center;
}
.flow-node .ico {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(168, 216, 245, .14);
  border: 1px solid rgba(168, 216, 245, .22);
}
.flow-node .ico svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-node .label { font-size: 15px; font-weight: 600; letter-spacing: -.025em; }
.flow-node .sub { margin-top: 5px; color: var(--faint); font-size: 12.5px; letter-spacing: -.01em; }

.flow-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.flow-link .line {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 216, 245, .6), transparent);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 12px; max-width: 940px; }

.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(16.5px, 1.2vw, 20px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  transition: transform .3s ease;
}
.faq-item[open] .faq-mark { transform: rotate(45deg); }
.faq-item p {
  margin: 0;
  padding: 0 28px 26px;
  max-width: 78ch;
  color: var(--muted);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.62;
  letter-spacing: -.02em;
  font-weight: 380;
}

/* ── Blog ──────────────────────────────────────────────────────────────── */

.post-list { display: grid; gap: 18px; }

.post {
  padding: 34px clamp(26px, 2.6vw, 40px);
  transition: border-color .3s ease, transform .3s ease;
}
.post:hover { border-color: rgba(168, 216, 245, .3); transform: translateY(-3px); }
.post:hover .arrow { transform: translateX(6px); }

.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.post h2 {
  margin: 0 0 12px;
  max-width: 46ch;
  font-size: clamp(21px, 1.9vw, 32px);
  letter-spacing: -.045em;
  font-weight: 740;
  line-height: 1.12;
}
.post p {
  margin: 0 0 22px;
  max-width: 82ch;
  color: var(--muted);
  font-size: clamp(15px, 1.05vw, 17.5px);
  line-height: 1.58;
  letter-spacing: -.02em;
  font-weight: 380;
}
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--faint);
  font-size: 14px;
  letter-spacing: -.015em;
}
.post-meta .sep { opacity: .5; }
.post-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-weight: 500;
}

/* ── Talento ───────────────────────────────────────────────────────────── */

.role-list { display: grid; gap: 18px; }

.role { padding: 34px clamp(26px, 2.6vw, 40px); display: grid; gap: 18px; justify-items: start; }
.role-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: 100%;
}
.role h3 {
  margin: 0;
  font-size: clamp(20px, 1.6vw, 28px);
  letter-spacing: -.042em;
  font-weight: 740;
}
.role-kind {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: -.01em;
}
.role p {
  margin: 0;
  max-width: 82ch;
  color: var(--muted);
  font-size: clamp(15px, 1.02vw, 17px);
  line-height: 1.58;
  letter-spacing: -.02em;
  font-weight: 380;
}

/* ── Banda CTA ─────────────────────────────────────────────────────────── */

.cta-band {
  margin: clamp(40px, 5vw, 72px) 0 clamp(70px, 8vw, 110px);
  padding: clamp(38px, 4.4vw, 62px) clamp(26px, 4.5vw, 68px);
  border-radius: var(--radius);
  border-color: rgba(168, 216, 245, .25);
  background:
    radial-gradient(circle at 85% 0%, rgba(168, 216, 245, .10), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .01)),
    rgba(10, 10, 10, .55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(26px, 2.3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.048em;
  font-weight: 740;
}
.cta-band p {
  margin: 14px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(15px, 1.08vw, 18px);
  line-height: 1.55;
  letter-spacing: -.022em;
  font-weight: 380;
}
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(60px, 6vw, 90px) 0 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .016), transparent);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: clamp(36px, 5vw, 80px);
  padding-bottom: clamp(40px, 4vw, 60px);
}

.footer-brand .brand { display: inline-block; margin-bottom: 18px; }
.footer-tag {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.025em;
}

.footer-contact { display: grid; gap: 12px; }
.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -.02em;
  transition: color .2s ease;
}
.footer-contact a:hover { color: var(--accent); }
.footer-contact svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: grid; align-content: start; gap: 12px; }
.footer-col h4 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.footer-col a {
  color: var(--faint);
  font-size: 15px;
  letter-spacing: -.02em;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
  color: rgba(255, 255, 255, .42);
  font-size: 13.5px;
  letter-spacing: -.015em;
}
.footer-bottom p { margin: 0; }
.footer-backed a { color: var(--accent-soft); }
.footer-backed a:hover { color: var(--accent); }

/* ── Animación de entrada ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .step { border-right: 0; border-top: 1px solid var(--line-soft); padding: 32px 0 30px; }
  .eval-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .case-body { grid-template-columns: 1fr; }
  .case-aside { position: static; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .proto-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .flow-link .line { display: none; }
  .hero { min-height: auto; padding-bottom: 90px; }
  .scroll-hint { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .eval-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .proto { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band-actions { width: 100%; }
  .cta-band-actions .btn { flex: 1 1 auto; }
  .post-more { margin-left: 0; width: 100%; margin-top: 6px; }
  .header-actions .btn-primary { display: none; }
  .flow-row { flex-direction: column; }
  .flow-node { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-video video { display: none; }
}
