/* ═══════════════════════════════════════════════════════════════════════════
   AgentiCo Studio — hoja de estilos de agentico.studio
   Versión oscura del sistema visual de AgentiCo.cl: mismo esqueleto (grillas
   con separación de 1px, Inter Tight en titulares, JetBrains Mono en
   etiquetas), sobre fondo tinta con acentos violeta. Suma piezas de
   ingeniería: ventanas de código, trazas y árboles de repositorio.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  --bg: #07060e;
  --bg-2: #0a0816;
  --panel: #0d0b19;
  --panel-2: #131029;
  --code: #09071a;
  --text: #efebff;
  --text-2: #d9d3f5;
  --muted: #a9a2c9;
  --faint: #8a83ad;
  --line: rgba(167, 139, 250, .14);
  --line-soft: rgba(167, 139, 250, .08);
  --line-strong: rgba(167, 139, 250, .3);
  --line-solid: #1d192f; /* --line ya compuesta sobre --bg, para grillas de 1px */

  --violet: #8b5cf6;
  --violet-bright: #a78bfa;
  --violet-soft: #c4b5fd;
  --violet-pale: #ddd6fe;
  --violet-deep: #6d28d9;
  --fuchsia: #e879f9;
  --indigo: #a5b4fc;
  --violet-glow: rgba(139, 92, 246, .45);
  --violet-dim: rgba(139, 92, 246, .14);
  --violet-wash: rgba(139, 92, 246, .06);
  --ok: #86efac;

  --grad-text: linear-gradient(100deg, #ddd6fe 0%, #a78bfa 38%, #e879f9 72%, #c4b5fd 100%);
  --grad-btn: linear-gradient(135deg, #6d28d9 0%, #7c3aed 50%, #9333ea 100%);

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 4.5vw, 5rem);
  --section-space: clamp(5rem, 10vw, 9.5rem);
  --shell: 1320px;
  --header-h: 64px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --page-progress: 0%;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, video, svg { max-width: 100%; }
img, video { display: block; }
strong { color: var(--text); font-weight: 600; }
code, pre, kbd { font-family: var(--font-mono); }

::selection { background: rgba(139, 92, 246, .45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border-radius: var(--radius-xs);
  background: var(--violet-deep);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* Solo body: su overflow se propaga al viewport y el header sticky sigue
   anclado a la ventana. Bloquear también <html> rompería esa propagación. */
.nav-locked body { overflow: hidden; }

/* ── Fondo ambiental ───────────────────────────────────────────────────── */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 70% at 50% -12%, #150f33 0%, var(--bg) 58%);
}
.bg > * { position: absolute; inset: 0; }

/* a1 sigue al cursor: el JS fija --mx/--my (0–100) en .aurora. */
.aurora { --mx: 72; --my: 16; }
.aurora span { position: absolute; border-radius: 50%; will-change: transform; }
.aurora .a1 {
  left: 0;
  top: 0;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .24), rgba(124, 58, 237, 0));
  transform: translate3d(calc(var(--mx) * 1vw - 35vmax), calc(var(--my) * 1vh - 35vmax), 0);
  transition: transform 1.6s var(--ease-out);
}
.aurora .a2 {
  right: -24vmax;
  bottom: -30vmax;
  width: 64vmax;
  height: 64vmax;
  background: radial-gradient(closest-side, rgba(217, 70, 239, .12), transparent);
  animation: drift 30s ease-in-out infinite alternate;
}
.aurora .a3 {
  left: -22vmax;
  top: 35vh;
  width: 52vmax;
  height: 52vmax;
  background: radial-gradient(closest-side, rgba(99, 102, 241, .12), transparent);
  animation: drift 36s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(6vmax, -4vmax, 0) scale(1.08); }
}

.mesh-grid {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 60% at 50% 0%, #000 15%, transparent 72%);
}

.grain {
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.progress-line {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 70;
  height: 2px;
  width: var(--page-progress);
  background: linear-gradient(90deg, var(--violet-deep), var(--violet-bright), var(--fuchsia));
  box-shadow: 0 0 12px var(--violet-glow);
  pointer-events: none;
}

/* ── Estructura ────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { position: relative; padding: var(--section-space) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section-alt { background: linear-gradient(180deg, rgba(124, 58, 237, .05), transparent 55%); }
.section-flush { padding-top: 0; }

.section-head { max-width: 62rem; margin-bottom: clamp(3rem, 5vw, 5rem); }

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

.h1, .h2, .h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}
.h1 { font-size: clamp(2.4rem, 6.6vw, 6.2rem); line-height: .98; letter-spacing: -.045em; }
.h2 { font-size: clamp(2rem, 4.4vw, 4.3rem); line-height: 1.03; letter-spacing: -.04em; }
.h3 { font-size: clamp(1.45rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -.03em; }

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  max-width: 46rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.25vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
}
.lead-wide { max-width: 42rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1.4rem;
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow .pip {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 10px var(--violet-glow);
}
.eyebrow .pip::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--violet-bright);
  border-radius: 50%;
  opacity: 0;
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  from { transform: scale(.4); opacity: .9; }
  to   { transform: scale(1.7); opacity: 0; }
}

.mono-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: clamp(2rem, 3vw, 3rem) 0 0;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: -.015em;
}
.kicker::before { content: "→"; color: var(--violet-bright); font-family: var(--font-mono); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.btn .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { min-height: 38px; padding: 0 1rem; border-radius: 9px; font-size: .82rem; }

.btn-primary {
  border-color: rgba(196, 181, 253, .35);
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 10px 30px -12px var(--violet-glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -14px rgba(139, 92, 246, .75), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.btn-ghost { background: var(--violet-wash); }
.btn-ghost:hover { border-color: var(--violet-bright); background: var(--violet-dim); }
.btn-link { min-height: 48px; padding: 0 .25rem; border: 0; color: var(--muted); }
.btn-link .arrow { color: var(--violet-bright); }
.btn-link:hover { color: var(--text); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 6, 14, .72);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 12px 40px -24px rgba(0, 0, 0, .9); }
.site-header.nav-open { background: rgba(7, 6, 14, .98); }

.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 100%; }

.brand {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.035em;
}
.brand .co {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand .tld {
  margin-left: .08em;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .8em;
  font-weight: 500;
  letter-spacing: 0;
}

.main-nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.main-nav a {
  padding: .45rem .72rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .86rem;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { background: var(--violet-wash); color: var(--text); }
.main-nav a[aria-current="page"] { background: var(--violet-dim); color: var(--violet-soft); }
.nav-div { width: 1px; height: 18px; margin: 0 .45rem; background: var(--line-strong); }
.nav-ext::after { content: "\00a0↗"; color: var(--violet-bright); font-size: .85em; }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--violet-wash);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease-out), top .3s var(--ease-out);
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 24px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
  padding: .8rem var(--gutter) 2rem;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: rgba(7, 6, 14, .98);
}
.mobile-nav a { padding: .85rem 0; border-bottom: 1px solid var(--line-soft); color: var(--text-2); }
.mobile-nav a[aria-current="page"] { color: var(--violet-soft); }
.mobile-line { display: flex; align-items: baseline; gap: 1rem; }
.mobile-line-num { color: var(--violet-bright); font-family: var(--font-mono); font-size: .72rem; }
.mobile-line-body { display: flex; flex-direction: column; }
.mobile-line-name { color: var(--text); font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; }
.mobile-line-sub { color: var(--faint); font-size: .84rem; }
.mobile-nav .mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 1.6rem;
  border: 1px solid rgba(196, 181, 253, .35);
  border-radius: 10px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 600;
}

@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .header-actions { margin-left: auto; }
}

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

.page-hero { position: relative; overflow-x: clip; padding: clamp(3.5rem, 8vw, 7.5rem) 0 clamp(4rem, 7vw, 6.5rem); }
.page-hero-tight { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2.4rem; }
.hero-sign { margin: 2.2rem 0 0; color: var(--faint); font-family: var(--font-mono); font-size: .78rem; }
.hero-sign span { color: var(--violet-bright); }

.hero-visual { position: relative; margin: 0; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .28), transparent);
  pointer-events: none;
}
.hero-caption { margin: .9rem .2rem 0; color: var(--faint); font-family: var(--font-mono); font-size: .72rem; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 720px; }
}

/* ── Ventanas de código ────────────────────────────────────────────────── */

.window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--code);
  box-shadow: 0 40px 100px -45px rgba(76, 29, 149, .7), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 44px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(139, 92, 246, .05);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .72rem;
}
.window-dots { display: inline-flex; flex: none; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2c2550; }
.window-dots i:nth-child(2) { background: #3d3270; }
.window-dots i:nth-child(3) { background: #5b47a8; }
.window-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window-status { display: inline-flex; flex: none; align-items: center; gap: .45rem; color: var(--ok); }
.window-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .35; } }

.code {
  margin: 0;
  padding: 1.2rem 1.3rem 1.4rem;
  overflow-x: auto;
  background: var(--code);
  color: #d6d0f0;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.75;
  white-space: pre;
  tab-size: 2;
  scrollbar-color: #2c2550 transparent;
  scrollbar-width: thin;
}
.c-k { color: #c4b5fd; }
.c-s { color: #f0abfc; }
.c-n { color: #fcd34d; }
.c-c { color: var(--faint); }
.c-p { color: #8f88b3; }
.c-f { color: var(--indigo); }
.c-ok { color: var(--ok); }
.c-dir { color: #c4b5fd; }
.c-br { color: #4d4670; }

/* Traza del hero */
.trace {
  margin: 0;
  padding: 1rem 1.2rem .7rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1.55;
}
.trace li {
  display: grid;
  grid-template-columns: 3.6rem 4.4rem minmax(0, 1fr);
  gap: .8rem;
  padding: .42rem 0;
  border-bottom: 1px dashed rgba(167, 139, 250, .08);
}
.trace li:last-child { border-bottom: 0; }
.trace .t { color: var(--faint); }
.trace .k { color: var(--violet-bright); }
.trace .m { min-width: 0; color: #d6d0f0; }
.trace .m b { color: var(--indigo); font-weight: 500; }
.trace .m i { color: #f0abfc; font-style: normal; }
.trace .m .c-ok { font-weight: 500; }
.trace-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem .7rem;
  padding: .85rem 1.2rem;
  border-top: 1px solid var(--line);
  background: rgba(134, 239, 172, .035);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .74rem;
}
.trace-foot .c-ok { font-weight: 500; }
.caret {
  display: inline-block;
  width: .55em;
  height: 1.05em;
  margin-left: .2em;
  vertical-align: -.15em;
  background: var(--violet-bright);
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.js [data-row] { opacity: 0; transform: translateY(4px); }
.js [data-row].on { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s var(--ease-out); }

@media (max-width: 560px) {
  .trace li { grid-template-columns: 4.3rem minmax(0, 1fr); gap: .6rem; }
  .trace .t { display: none; }
}

/* Pestañas */
.tabs { gap: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  flex: none;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: none;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .74rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.tab:hover { background: rgba(139, 92, 246, .06); color: var(--text); }
.tab[aria-selected="true"] { background: var(--code); color: var(--text); }
.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--fuchsia));
}
.tab-num { margin-right: .45rem; color: var(--violet-bright); }
.panel-note {
  margin: 0;
  padding: .95rem 1.3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
}
.panel-note b { margin-right: .7rem; color: var(--violet-soft); font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }

/* Todos los paneles ocupan la misma celda: la ventana toma la altura del más
   largo y no salta al cambiar de pestaña. Los ocultos siguen fuera de vista y
   del árbol de accesibilidad por visibility. */
.tab-panels { display: grid; }
.tab-panels > [role="tabpanel"] { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.tab-panels > [role="tabpanel"][hidden] { display: flex !important; visibility: hidden; }
.tab-panels .code { flex: 1; }

@media (max-width: 640px) {
  .tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { padding: 0 .8rem; border-bottom: 1px solid var(--line-soft); text-align: left; overflow: hidden; text-overflow: ellipsis; }
  .code { padding: 1rem; font-size: .72rem; }
}

.split.repo { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); margin-top: clamp(4rem, 7vw, 6rem); }
.repo .tab { flex: 1 0 auto; padding: 0 .85rem; }
@media (max-width: 1000px) { .split.repo { grid-template-columns: minmax(0, 1fr); } }
.repo .mono-label { margin: 0 0 1.2rem; color: var(--violet-bright); }
.repo .h3 { max-width: 22ch; }
.checks { display: grid; gap: .7rem; margin: 1.8rem 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.8rem; color: var(--text-2); font-size: .96rem; }
.checks li::before {
  content: "✓";
  position: absolute;
  top: .05em;
  left: 0;
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: .9em;
}

/* ── Banda de señales ──────────────────────────────────────────────────── */

.trust-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10, 8, 22, .6); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.trust-item { padding: 1.6rem 1.5rem; border-left: 1px solid var(--line-soft); transition: background .3s ease; }
.trust-item:first-child { padding-left: 0; border-left: 0; }
.trust-item dt {
  margin-bottom: .5rem;
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.trust-item dt::before { content: "▸ "; color: var(--faint); }
.trust-item dd { margin: 0; color: var(--text-2); font-size: .95rem; line-height: 1.45; }

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(odd) { padding-left: 0; border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .trust-item { padding: 1.2rem 0; border-left: 0; }
  .trust-item + .trust-item { border-top: 1px solid var(--line-soft); }
}

/* ── Celdas (grillas con separación de 1px) ───────────────────────────── */

.cells {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius);
  background: var(--line-solid);
}
ol.cells, ul.cells { margin: 0; padding: 0; list-style: none; }
.cells > * { position: relative; min-width: 0; margin: 0; background: var(--panel); }

.cell { padding: clamp(1.6rem, 2.4vw, 2.4rem); transition: background .35s ease; }
.cell::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet-bright), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}
.cell:hover { background: var(--panel-2); }
.cell:hover::after { opacity: 1; }
.cell:hover .glyph { border-color: var(--violet-bright); color: #fff; }

.cell-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.cell-num { color: var(--faint); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; transition: color .3s ease; }
.cell:hover .cell-num { color: var(--violet-bright); }
.cell h3 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.cell p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.65; }

.glyph {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--violet-wash);
  color: var(--violet-soft);
  transition: border-color .3s ease, color .3s ease;
}
.glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Firma tipo "interfaz" de cada tipo de agente */
.principles > .cell { display: flex; flex-direction: column; }
.principles > .cell > p { margin-bottom: 1.6rem; }
.sig {
  display: block;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.sig .c-f { color: var(--violet-soft); }

.principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eval-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.eval .glyph { margin-bottom: 1.6rem; }
.eval h3 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); }
.proto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.roadmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1000px) { .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .proto-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .eval-grid, .roadmap { grid-template-columns: minmax(0, 1fr); }
}

/* Estado y chips de los estándares */
.status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .62rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--violet-wash);
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 8px var(--violet-glow);
}
.status-live::before { animation: blink 2s ease-in-out infinite; }
.status-dev { border-style: dashed; background: transparent; color: var(--faint); }
.status-dev::before { background: transparent; border: 1px solid currentColor; box-shadow: none; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.chips li, .chip {
  padding: .28rem .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .015);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .72rem;
}

/* ── Proceso: pasos como pipeline ──────────────────────────────────────── */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--violet-bright), var(--line-strong) 45%, var(--line) 85%, transparent);
}
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  transition: background .5s ease, border-color .5s ease, box-shadow .5s ease;
}
.step.in::before { border-color: var(--violet-bright); background: var(--violet); box-shadow: 0 0 0 4px var(--violet-dim), 0 0 18px var(--violet-glow); }
.step-num { color: var(--faint); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; }
.step-body h3 {
  margin: .7rem 0 .6rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.step-body p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.65; }
.step-artifact {
  display: inline-block;
  margin-top: 1.1rem;
  padding: .25rem .55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--violet-wash);
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
}

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; padding-left: 2rem; }
  .steps::before { display: block; top: .3rem; bottom: .3rem; left: 7px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--violet-bright), var(--line) 70%, transparent); }
  .step { padding-top: 0; }
  .step::before { top: .15rem; left: -2rem; }
}

.subhead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1rem 3rem;
  align-items: end;
  margin: clamp(4rem, 7vw, 6rem) 0 1.8rem;
}
.subhead p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .subhead { grid-template-columns: minmax(0, 1fr); } }

/* ── Entrega: repositorio + celdas ─────────────────────────────────────── */

.deliver {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.deliver > .window { position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 1000px) {
  .deliver { grid-template-columns: minmax(0, 1fr); }
  .deliver > .window { position: relative; top: 0; }
}

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

.flow {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 58, 237, .12), transparent 60%), var(--panel);
}
.flow-title {
  margin-bottom: 1.8rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}
.flow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, .75fr) minmax(0, 1fr) minmax(96px, .75fr) minmax(0, 1fr);
  gap: .6rem;
  align-items: center;
}
.flow-node {
  padding: 1.3rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(9, 7, 26, .85);
  text-align: center;
}
.flow-node .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--violet-dim);
  color: var(--violet-soft);
}
.flow-node .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow-node .label { font-size: .96rem; font-weight: 600; }
.flow-node .sub { margin-top: .25rem; color: var(--faint); font-family: var(--font-mono); font-size: .7rem; }
.flow-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}
.flow-link .line {
  flex: 1;
  min-width: 10px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet-bright) 50%, transparent 50%) 0 0 / 12px 1px repeat-x;
  animation: dash-x 1s linear infinite;
  opacity: .8;
}
@keyframes dash-x { to { background-position: 12px 0; } }
@keyframes dash-y { to { background-position: 0 12px; } }

@media (max-width: 860px) {
  .flow-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .flow-link { flex-direction: column; height: 84px; justify-content: center; }
  .flow-link .line {
    width: 1px;
    height: auto;
    min-height: 14px;
    background: linear-gradient(180deg, var(--violet-bright) 50%, transparent 50%) 0 0 / 1px 12px repeat-y;
    animation-name: dash-y;
  }
}

/* ── Video destacado ───────────────────────────────────────────────────── */

.feature-media {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: clamp(320px, 36vw, 500px);
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: radial-gradient(80% 120% at 85% 50%, rgba(124, 58, 237, .4), transparent 60%), #0a0818;
}
.feature-video { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #6d28d9;
  mix-blend-mode: color;
  opacity: .4;
}
.feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 6, 14, .95) 0%, rgba(7, 6, 14, .72) 38%, rgba(7, 6, 14, .15) 75%, rgba(7, 6, 14, .05) 100%),
    linear-gradient(0deg, rgba(7, 6, 14, .7), transparent 55%);
}
.feature-overlay {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 38rem;
  min-height: inherit;
  padding: clamp(1.6rem, 4vw, 3.5rem);
}
.feature-overlay .eyebrow { margin-bottom: 1rem; }
.feature-overlay h3 {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.045em;
}
.feature-cta { display: inline-flex; align-items: center; gap: .5rem; color: var(--violet-soft); font-weight: 600; }
.feature-cta .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.feature-media:hover .feature-cta .arrow { transform: translateX(5px); }
.feature-media:hover { border-color: var(--violet-bright); }

/* ── Líneas hermanas ───────────────────────────────────────────────────── */

.lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.line-card { display: flex; flex-direction: column; padding: clamp(1.8rem, 3vw, 2.8rem); transition: background .3s ease; }
.line-card:hover { background: var(--panel-2); }
.line-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.4rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.line-name {
  margin: 0 0 .6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.04em;
}
.line-name span { color: var(--violet-soft); }
.line-claim { margin: 0 0 .8rem; color: var(--text); font-weight: 500; }
.line-card p { margin: 0; color: var(--muted); }
.line-card .line-claim { margin-bottom: .8rem; color: var(--text); }
.line-cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 2rem; color: var(--violet-soft); font-weight: 600; }
.line-cta .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.line-card:hover .line-cta .arrow { transform: translateX(5px); }
@media (max-width: 760px) { .lines { grid-template-columns: minmax(0, 1fr); } }

/* ── Banda final ───────────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 2rem 3rem;
  align-items: end;
  margin: 0 0 var(--section-space);
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(147, 51, 234, .3), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, rgba(99, 102, 241, .16), transparent 60%),
    var(--panel);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 100% 0%, #000, transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.cta-band p { max-width: 40rem; margin: 0; color: var(--muted); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr); align-items: start; } }

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

.site-footer {
  padding: clamp(3.5rem, 6vw, 5rem) 0 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 8, 22, .6), rgba(5, 4, 10, .96));
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 3rem; }
.footer-tag { margin: 1rem 0 1.4rem; color: var(--muted); }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .6rem; width: fit-content; color: var(--muted); font-size: .92rem; transition: color .2s ease; }
.footer-contact a:hover { color: var(--text); }
.footer-contact svg { width: 18px; height: 18px; fill: none; stroke: var(--violet-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.footer-col h4 {
  margin: 0 0 1rem;
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-col a { display: block; padding: .3rem 0; color: var(--muted); font-size: .9rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--text); }
.footer-col a[href^="https://agentico.cl"]::after { content: "\00a0↗"; color: var(--faint); font-size: .8em; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem 1.5rem;
  margin-top: 3.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: .84rem;
}
.footer-bottom p { margin: 0; }
.footer-backed a { color: var(--text); font-weight: 600; }
@media (max-width: 1000px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Páginas interiores: bloques de dos columnas y listas ─────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split p { color: var(--muted); }
.split .h2 + p { margin-top: 1.6rem; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }

.feature-list { display: grid; gap: 1.3rem; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; }
.feature-list .glyph { width: 40px; height: 40px; }
.feature-list .glyph svg { width: 20px; height: 20px; }
.feature-list h3 { margin: .1rem 0 .25rem; font-size: 1rem; font-weight: 600; }
.feature-list p { margin: 0; color: var(--muted); font-size: .94rem; }

.stack { display: grid; gap: 1rem; padding: 1.2rem; }
.stack-item { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(139, 92, 246, .04); }
.stack-item h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .6rem; font-size: .95rem; font-weight: 600; }
.stack-item h3 .c-c { font-family: var(--font-mono); font-size: .72rem; font-weight: 400; }
.stack-item ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.stack-item li::before { content: "› "; color: var(--violet-bright); font-family: var(--font-mono); }

.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio > .cell { display: flex; flex-direction: column; }
.trio > .cell > p { margin-bottom: 1.6rem; }
@media (max-width: 900px) { .trio { grid-template-columns: minmax(0, 1fr); } }

.status-list { margin: 0; padding: .4rem 1.2rem .8rem; list-style: none; }
.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px dashed rgba(167, 139, 250, .1);
}
.status-list li:last-child { border-bottom: 0; }
.status-list .name { min-width: 0; color: var(--text-2); font-size: .95rem; font-weight: 500; }
.status-list .name small { display: block; margin-top: .2rem; color: var(--faint); font-family: var(--font-mono); font-size: .7rem; font-weight: 400; }

.vision-box {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(1.8rem, 4vw, 3.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: radial-gradient(80% 120% at 50% 0%, rgba(124, 58, 237, .16), transparent 60%), var(--panel);
  text-align: center;
}
.vision-box .h3 { max-width: 30ch; margin: 0 auto 1.4rem; }
.vision-box p { max-width: 46rem; margin: 0 auto 1.1rem; color: var(--muted); }
.vision-box .hero-actions { justify-content: center; margin-top: 2rem; }
.vision-box .note { margin-top: 1.6rem; }

.split h3.h3 + p { margin-top: 1.2rem; }

.roadmap .when {
  display: inline-block;
  margin-bottom: 1.4rem;
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.note {
  margin: 1.4rem 0 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: .74rem;
}

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

.post-list { grid-template-columns: minmax(0, 1fr); }
.post-card { display: block; padding: clamp(1.5rem, 3vw, 2.4rem); transition: background .3s ease; }
.post-card:hover { background: var(--panel-2); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1.1rem; }
.post-date { margin-left: auto; color: var(--faint); font-family: var(--font-mono); font-size: .72rem; }
.post-card h2 {
  margin: 0 0 .8rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
  transition: color .3s ease;
}
.post-card:hover h2 { color: var(--violet-pale); }
.post-card p { display: -webkit-box; margin: 0; overflow: hidden; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.post-cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem; color: var(--violet-soft); font-size: .9rem; font-weight: 600; }
.post-cta .arrow { display: inline-block; transition: transform .25s var(--ease-out); }
.post-card:hover .post-cta .arrow { transform: translateX(5px); }
@media (max-width: 560px) { .post-date { width: 100%; margin-left: 0; } }

.article { max-width: 46rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 2rem; color: var(--faint); font-family: var(--font-mono); font-size: .74rem; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span[aria-hidden] { color: var(--violet-bright); }
.article-head { margin-bottom: 3rem; }
.article-head h1 {
  margin: 1.1rem 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.article-meta { margin: 0; color: var(--faint); font-family: var(--font-mono); font-size: .74rem; }

.prose { color: #cfc9ea; font-size: 1.06rem; line-height: 1.85; }
.prose > * { margin: 0; }
.prose > * + * { margin-top: 1.5rem; }
.prose h2 {
  margin-top: 3.2rem;
  padding-left: 1rem;
  border-left: 2px solid var(--violet);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.prose h3 { margin-top: 2.2rem; color: var(--text); font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
.prose h2 + *, .prose h3 + * { margin-top: 1rem; }
.prose a { color: var(--violet-soft); text-decoration: underline; text-decoration-color: rgba(196, 181, 253, .4); text-underline-offset: 3px; }
.prose a:hover { color: #fff; text-decoration-color: currentColor; }
.prose em { color: var(--text-2); }
.prose ul, .prose ol { padding: 0; list-style: none; }
.prose li + li { margin-top: .75rem; }
.prose ul > li { position: relative; padding-left: 1.5rem; }
.prose ul > li::before {
  content: "";
  position: absolute;
  top: .78em;
  left: .25rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet-bright);
  box-shadow: 0 0 8px var(--violet-glow);
}
.prose ol { counter-reset: paso; }
.prose ol > li { position: relative; padding-left: 2.4rem; counter-increment: paso; }
.prose ol > li::before {
  content: counter(paso);
  position: absolute;
  top: .2em;
  left: 0;
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--violet-dim);
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .72rem;
}
.prose blockquote {
  padding: 1.2rem 1.4rem;
  border-left: 2px solid var(--fuchsia);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(232, 121, 249, .05);
  color: var(--text-2);
}
.prose blockquote p { margin: 0; }
.prose blockquote p + p, .prose blockquote footer { margin-top: .8rem; }
.prose blockquote footer { color: var(--faint); font-family: var(--font-mono); font-size: .76rem; }
.prose .window { margin-top: 2rem; margin-bottom: .5rem; }
.prose .code { font-size: .78rem; }
.prose .callout { padding: 1.4rem 1.5rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--violet-wash); }
.prose .callout > * { margin: 0; }
.prose .callout > * + * { margin-top: .8rem; }
.prose .callout-title { color: var(--violet-soft); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.prose .flow { margin-top: 2rem; }
.prose .flow-row-3 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); }
.prose .flow-arrow { color: var(--violet-bright); font-family: var(--font-mono); text-align: center; }
.prose .closing { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose th { color: var(--violet-soft); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.prose tr:last-child td { border-bottom: 0; }
.prose .callout h3 { margin: 0; font-size: 1.1rem; }
.prose .callout p, .prose .callout li { color: var(--muted); font-size: .95rem; line-height: 1.7; }
.prose .callout strong { color: var(--text); }
.prose .callout-icon { display: flex; align-items: flex-start; gap: 1rem; }
.prose .callout-icon > * + * { margin-top: 0; }
.prose .callout-icon .callout-title { margin: .2rem 0 .35rem; color: var(--text); font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.prose .callout-icon p { margin: 0; }

.prose .stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-solid);
  border-radius: var(--radius-sm);
  background: var(--line-solid);
}
.prose .stat { padding: 1.3rem 1rem; background: var(--panel); text-align: center; }
.prose .stat b {
  display: block;
  color: var(--violet-soft);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.prose .stat span { display: block; margin-top: .45rem; color: var(--faint); font-size: .82rem; line-height: 1.45; }

.prose .cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.prose .products { display: grid; gap: 1rem; }
.prose .product-head { display: flex; align-items: center; gap: .9rem; }
.prose .product-head small { display: block; margin-top: .15rem; color: var(--violet-bright); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .04em; }
@media (max-width: 700px) { .prose .cases { grid-template-columns: minmax(0, 1fr); } }

.prose .timeline { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose .timeline > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel);
}
.prose .timeline > div:last-child { border-bottom: 0; }
.prose .timeline .when { padding-top: .25rem; color: var(--violet-bright); font-family: var(--font-mono); font-size: .74rem; }
.prose .timeline h3 { margin: 0 0 .2rem; font-family: var(--font); font-size: 1rem; letter-spacing: 0; }
.prose .timeline p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.65; }
@media (max-width: 560px) { .prose .timeline > div { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

.prose ul.pct-list > li { padding-left: 4.2rem; }
.prose ul.pct-list > li::before { content: none; }
.prose .pct {
  position: absolute;
  top: .3em;
  left: 0;
  min-width: 3.4rem;
  padding: .1rem .4rem;
  border-radius: 6px;
  background: var(--violet-dim);
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .76rem;
  line-height: 1.5;
  text-align: center;
}

.prose .mini-flow {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: radial-gradient(120% 140% at 50% 0%, rgba(124, 58, 237, .12), transparent 60%), var(--panel);
}
.prose .mini-flow-title { margin: 0 0 1.1rem; color: var(--faint); font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.prose .mini-flow-row { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.prose .mini-flow .node {
  flex: 1 1 0;
  min-width: 0;
  padding: .7rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(9, 7, 26, .85);
  line-height: 1.35;
  text-align: center;
}
.prose .mini-flow .node b { display: block; color: var(--violet-soft); font-size: .92rem; font-weight: 600; }
.prose .mini-flow .node span { display: block; margin-top: .2rem; color: var(--faint); font-family: var(--font-mono); font-size: .68rem; }
.prose .mini-flow .to { flex: none; color: var(--violet-bright); font-family: var(--font-mono); }
@media (max-width: 640px) {
  .prose .mini-flow-row { flex-direction: column; align-items: stretch; }
  .prose .mini-flow .to { transform: rotate(90deg); text-align: center; }
}

.back-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); width: 100%; color: var(--muted); font-size: .92rem; }
.back-link:hover { color: var(--text); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: .22rem .55rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--violet-wash);
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: .7rem;
}
.tag::before { content: "#"; margin-right: .1rem; color: var(--faint); }

/* ── Revelado al hacer scroll ──────────────────────────────────────────── */

/* Animación y no transición: así no pisa las transiciones de hover. */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise .8s var(--ease-out) var(--d, 0ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .aurora .a1 { transition: none; }
  .feature-video { display: none; }
}
