/* KADI Technology — estilos específicos de componentes y páginas
   Hereda tokens, reset, cromo global y primitivas compartidas desde base.css. */

/* ---------- Hero & Constelación ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 64px); isolation: isolate; }
.hero + .section { padding-top: clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 40%, var(--glow-b), transparent 70%),
    radial-gradient(45% 45% at 15% 15%, var(--glow-a), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.04em; line-height: 1.02; }
.grad-text { background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(1.06rem, 1.6vw, 1.25rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.hero-stats div { padding: 16px 16px 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero-stats div:first-child { border-left: 0; }
.hero-stats dd { margin: 0; font: 600 1.9rem/1 var(--font-display); letter-spacing: -0.03em; }
.hero-stats dt { color: var(--muted); font-size: 0.82rem; margin-top: 6px; line-height: 1.3; }

.hero-news {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start; max-width: 100%;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--muted); font-size: 0.9rem; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.hero-news:hover { color: var(--text); border-color: var(--brand); }
.hero-news svg { width: 16px; height: 16px; flex: none; }
.hero-news-tag { font-size: 0.7rem; line-height: 1; letter-spacing: 0.08em; padding: 6px 9px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 18%, transparent); color: var(--brand-ink); flex: none; }

.constellation-wrapper { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 620px; justify-self: center; }
.constellation { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 620px; justify-self: center; }
.constellation canvas { width: 100%; height: 100%; touch-action: manipulation; }
.constellation canvas.is-interactive, #fullscreen-canvas.is-interactive { cursor: pointer; }
.constellation-tip {
  position: absolute; left: 50%; top: 50%; pointer-events: none; opacity: 0; visibility: hidden;
  translate: -50% calc(-100% - 14px); transform: scale(0.96); transform-origin: center center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms ease, opacity 280ms ease, visibility 280ms;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 12px; min-width: 180px; max-width: 240px; box-shadow: var(--shadow);
}
.constellation-tip.is-visible { opacity: 1; visibility: visible; transform: translateY(-3px) scale(1.018); box-shadow: var(--shadow-hover), 0 14px 34px -14px var(--glow-a); }
.constellation-tip b { display: block; font-family: var(--font-display); font-size: 1rem; }
.constellation-tip span { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.constellation-list { list-style: none; }
.constellation-fs-btn {
  position: absolute; right: 12px; top: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); display: grid; place-items: center;
  cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.constellation-fs-btn:hover { background: var(--bg-2); color: var(--text); border-color: var(--brand); transform: scale(1.08); }
.constellation-legend { width: 100%; }
.legend-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: grid; gap: 10px; }
.legend-badge { line-height: 1; letter-spacing: 0.08em; color: var(--faint); }
.legend-items { list-style: none; display: grid; gap: 8px; }
.legend-items li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; }
.legend-dot { font-size: 0.95rem; line-height: 1.2; flex-shrink: 0; }
.legend-text strong { display: inline; color: var(--text); font-weight: 600; margin-right: 4px; }
.legend-text span { color: var(--muted); }
.legend-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
:is(.legend-btn-motion, .legend-btn-fs) { width: 100%; justify-content: center; gap: 6px; font-weight: 600; }
@media (max-width: 520px) { .legend-actions { grid-template-columns: 1fr; } }

@media (max-width: 960px) { .constellation { max-width: 460px; } }

/* ---------- Tarjetas de proyecto ---------- */
.grid-cards { --grid-gap: 18px; }
:is(.card, .module-card, .stage-chip) {
  transform-origin: center center;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms ease;
}
.card { position: relative; box-shadow: var(--shadow); overflow: hidden; will-change: transform, box-shadow; --mx: 50%; --my: 0%; }
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%);
}
.card::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.7; transition: opacity 0.35s; }
:is(.card, .module-card):is(:hover, :focus-within, :focus-visible), .stage-chip:is(:hover, :focus-visible) {
  z-index: 2;
  transform: translateY(-3px) scale(1.018);
  border-color: color-mix(in oklab, var(--accent) 52%, var(--line));
  box-shadow: var(--shadow-hover), 0 18px 42px -18px var(--accent-soft, var(--glow-a));
}
.card:is(:hover, :focus-within)::before, .card:is(:hover, :focus-within)::after { opacity: 1; }
.card-incubator:is(:hover, :focus-within) { transform: translateY(-2px) scale(1.006); }
.card[hidden] { display: none; }
.card-link { position: relative; display: grid; gap: 14px; height: 100%; padding: 22px 22px 20px; text-decoration: none; grid-template-rows: auto auto 1fr auto auto; }
.card-top { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); }
.stage-pill { margin-left: auto; font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-radius: 999px; padding: 6px 9px; }
.card-thumb { margin-block: -4px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-title { font-size: 1.55rem; }
.card-tagline { color: var(--muted); font-size: 0.97rem; }
.meter { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; align-self: end; }
.meter i { height: 4px; border-radius: 4px; background: var(--line-2); }
.meter i.on { background: var(--accent); }
.meter i.now { box-shadow: 0 0 10px var(--accent); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.82rem; color: var(--faint); }
.card-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.card-cta svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card:hover .card-cta svg { transform: translateX(4px); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.tag-list li { font-size: 0.76rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }

.card-incubator { grid-column: 1 / -1; border-style: dashed; background: transparent; box-shadow: none; --accent: var(--brand); --accent-ink: var(--brand-ink); --accent-soft: color-mix(in oklab, var(--brand) 12%, transparent); }
.card-incubator::after { display: none; }
.card-incubator .card-link { grid-template-columns: auto 1fr auto; grid-template-rows: none; align-items: center; gap: 22px; }
.incubator-copy { display: grid; gap: 6px; }
.incubator-copy .card-tagline { max-width: 70ch; }
.plus { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; border: 1px dashed var(--line-2); color: var(--brand-ink); }
.plus svg { width: 22px; height: 22px; }

.card-truth-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line);
  font: 500 0.74rem/1.3 var(--font-mono); color: var(--muted);
}
.card-truth-line b { color: var(--text); font-weight: 600; }
.card-inspect-bar {
  position: relative; z-index: 3; padding: 12px 22px 16px;
  border-top: 1px solid var(--line); background: var(--bg-2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
}
.card-provenance-label { font: 600 0.72rem/1.2 var(--font-mono); color: var(--muted); }
.card-dossier-trigger {
  min-height: 32px; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: 600 0.74rem/1.2 var(--font-mono); display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.card-dossier-trigger svg { width: 14px; height: 14px; color: var(--brand-ink); }
.card-dossier-trigger:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--surface-2); }

/* ---------- Mapa de madurez ---------- */
.maturity { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.stage-col { padding: 18px 14px 20px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 12px; min-height: 230px; position: relative; }
.stage-col:first-child { border-left: 0; }
.stage-col header { display: grid; gap: 6px; }
.stage-num { font-weight: 500; line-height: 1; color: var(--faint); letter-spacing: 0.08em; }
.stage-col h3 { font-size: 1.05rem; }
.stage-col p { font-size: 0.8rem; color: var(--faint); line-height: 1.4; }
.stage-col ul { list-style: none; display: grid; gap: 8px; }
.stage-col.is-empty ul::before { content: "—"; color: var(--faint); }
.stage-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--bg-2); text-decoration: none; font-size: 0.86rem; font-weight: 500;
}
.stage-chip .dot { width: 7px; height: 7px; box-shadow: 0 0 10px var(--accent); }
.maturity-track { height: 3px; background: linear-gradient(90deg, var(--line-2), var(--brand), var(--brand-2)); border-radius: 3px; margin: 0 0 18px; opacity: 0.8; }

/* ---------- Principios, Método, Horizontes, Equipo, Banda CTA ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.principle {
  display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), transparent 70%);
}
.principle-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--brand) 14%, transparent); color: var(--brand-ink); }
.principle-icon svg { width: 22px; height: 22px; }
.principle h3 { font-size: 1.3rem; }
.principle p { color: var(--muted); font-size: 0.95rem; }
.principle .mini-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 4px; }
.mini-list a { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; text-decoration: none; padding: 4px 9px 4px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.mini-list a:hover { color: var(--text); border-color: var(--accent); }
.mini-list .dot { width: 6px; height: 6px; box-shadow: none; }
.principle .link-btn { margin-top: auto; padding-top: 6px; }

.method { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.method li { position: relative; padding: 26px 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; align-content: start; grid-template-rows: auto auto 1fr; overflow-wrap: anywhere; }
.method li::before { counter-increment: step; content: "0" counter(step); font: 500 0.8rem/1 var(--font-mono); color: var(--brand-ink); letter-spacing: 0.08em; }
.method h3 { font-size: 1.2rem; }
.method p { color: var(--muted); font-size: 0.95rem; }
.method-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.method .method-evidence { align-self: end; margin-top: 6px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 0.86rem; color: var(--text); display: grid; gap: 6px; }
.method-evidence b { font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); }
.research-lines { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.horizons { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.horizons li { position: relative; padding: 40px 28px 8px 0; display: grid; gap: 10px; align-content: start; }
.horizons li::before { content: ""; position: absolute; top: 12px; left: 0; right: 0; border-top: 2px dashed var(--line-2); }
.horizons li:first-child::before { border-top-style: solid; border-color: var(--brand); }
.horizons li::after { content: ""; position: absolute; top: 5px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.horizons li:first-child::after { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 6px color-mix(in oklab, var(--brand) 20%, transparent); }
.horizons b { font: 600 1.5rem/1 var(--font-display); }
.horizons p { color: var(--muted); max-width: 34ch; }
@media (max-width: 800px) {
  .horizons { grid-template-columns: 1fr; padding-left: 28px; }
  .horizons li { padding: 0 0 30px; }
  .horizons li::before { top: 8px; bottom: -8px; left: -21px; right: auto; border-top: 0; border-left: 2px dashed var(--line-2); }
  .horizons li:first-child::before { border-left-style: solid; border-color: var(--brand); }
  .horizons li::after { top: 4px; left: -28px; }
  .horizons li:last-child::before { display: none; }
}

.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about p + p { margin-top: 16px; }
.founders { list-style: none; display: grid; gap: 12px; }
.founder { display: flex; align-items: center; gap: 16px; padding: 18px; }
.avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font: 600 1.05rem/1 var(--font-display); color: var(--on-brand); background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: none; }
.founder b { display: block; font-family: var(--font-display); font-size: 1.12rem; }
.founder div span { color: var(--muted); font-size: 0.9rem; }

.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); border: 1px solid var(--line-2);
  padding: clamp(32px, 6vw, 64px); display: grid; gap: 22px;
  background: radial-gradient(80% 120% at 100% 0%, var(--glow-b), transparent 60%), radial-gradient(70% 120% at 0% 100%, var(--glow-a), transparent 60%), var(--surface);
}
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 18ch; }
.intent-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.intent-links a { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; background: var(--bg); transition: border-color 0.2s, transform 0.2s var(--ease); }
.intent-links a:hover { border-color: var(--brand); transform: translateY(-1px); }

/* ---------- Ficha de proyecto y módulos ---------- */
.project-hero { position: relative; overflow: clip; padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 72px); isolation: isolate; }
.project-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 85% 10%, var(--accent-soft), transparent 70%), radial-gradient(40% 50% at 0% 0%, var(--glow-a), transparent 70%); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.86rem; color: var(--faint); margin-bottom: 26px; list-style: none; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--faint); }
.project-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.project-hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); letter-spacing: -0.04em; }
.project-hero .lede { margin-top: 18px; font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.project-family { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); font: 500 0.8rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.project-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.status-card { border-radius: var(--radius); border: 1px solid var(--line-2); background: color-mix(in oklab, var(--bg) 60%, transparent); padding: 22px; display: grid; gap: 16px; backdrop-filter: blur(8px); }
.status-card h2 { font-size: 0.75rem; line-height: 1; font-weight: 500; letter-spacing: 0.08em; color: var(--faint); }
.status-card .status-now { font: 600 1.6rem/1.1 var(--font-display); color: var(--accent-ink); }
.status-card p { color: var(--muted); font-size: 0.93rem; }
.tracker { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.tracker li { display: grid; gap: 8px; font-size: 0.68rem; color: var(--faint); text-align: center; }
.tracker li::before { content: ""; height: 6px; border-radius: 6px; background: var(--line-2); }
.tracker li.done::before { background: color-mix(in oklab, var(--accent) 60%, transparent); }
.tracker li.now::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.tracker li.now { color: var(--text); font-weight: 600; }
.project-logo { margin-top: 20px; height: 44px; width: auto; filter: var(--logo-filter); }

.project-hero + .section { padding-top: clamp(24px, 4vw, 40px); }
.project-hero + .container + .section { padding-top: clamp(40px, 6vw, 64px); }
.stack-block { display: grid; gap: 28px; }
.stack-block .section-head { margin-bottom: 20px; }
.stack-block .section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.shot { margin: 0; border-radius: calc(var(--radius) + 4px); border: 1px solid var(--line-2); background: var(--bg-2); padding: 10px; box-shadow: 0 40px 100px -50px var(--accent); }
.shot img { border-radius: var(--radius-sm); width: 100%; }
.shot figcaption { font-size: 0.8rem; color: var(--muted); padding: 10px 6px 2px; }
.features { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.features svg { width: 20px; height: 20px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.features-compact { grid-template-columns: 1fr; gap: 8px; }
.features-compact li { padding: 0; border: 0; background: transparent; font-size: 0.95rem; color: var(--muted); }
.features-compact svg { color: var(--brand-ink); width: 18px; height: 18px; }
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.stack-list li { font: 500 0.82rem/1 var(--font-mono); padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); }
.limits { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--line)); background: var(--accent-soft); }
.limits svg { width: 22px; height: 22px; flex: none; color: var(--accent-ink); margin-top: 1px; }
.limits p { color: var(--text); font-size: 0.95rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: grid; gap: 6px; padding: 22px; text-decoration: none; transition: border-color 0.2s, transform 0.25s var(--ease); }
.pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
.pager small { color: var(--faint); font-weight: 500; line-height: 1; letter-spacing: 0.08em; }
.pager b { font: 600 1.35rem/1.1 var(--font-display); }
.pager .next { text-align: right; }

.module-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--accent) 12%, var(--surface)); margin-bottom: 24px; font-size: 0.92rem;
}
.module-banner svg { width: 22px; height: 22px; color: var(--accent-ink); flex: none; }
.module-banner a { color: var(--accent-ink); font-weight: 600; }

.modules-grid { --col-min: 340px; --grid-gap: 20px; }
.module-card { position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); will-change: transform, box-shadow; }
@media (prefers-reduced-motion: reduce) {
  :is(.card, .module-card, .stage-chip, .constellation-tip) { transition: border-color 280ms ease, box-shadow 280ms ease, opacity 280ms ease; }
  :is(.card, .module-card):is(:hover, :focus-within, :focus-visible), .stage-chip:is(:hover, :focus-visible), .constellation-tip.is-visible { transform: none; }
}
.module-thumb { display: block; }
.module-card:hover .module-thumb img { transform: scale(1.04); }
.module-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.module-body h3 { font-size: 1.3rem; }
.module-body h3 a { text-decoration: none; }
.module-body p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.module-foot { margin-top: auto; padding-top: 10px; }

.gallery-grid { --col-min: 280px; }
.gallery-card { margin: 0; }
.gallery-trigger {
  width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  overflow: hidden; cursor: pointer; text-align: left; display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.gallery-trigger:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 12px 30px -15px var(--accent-soft); }
.gallery-trigger:hover .gallery-img-wrap img { transform: scale(1.03); }
.gallery-caption { padding: 12px 14px; display: grid; gap: 6px; }
.gallery-badge { color: var(--accent-ink); background: var(--accent-soft); justify-self: start; }
.gallery-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }

.lightbox {
  width: min(1200px, calc(100% - 24px)); max-height: 92vh; padding: 0; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--bg); box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.85); overflow: hidden;
}
.lightbox-inner { display: flex; flex-direction: column; max-height: 92vh; }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.lightbox-media { overflow: auto; display: grid; place-items: center; background: #000; max-height: calc(92vh - 120px); }
.lightbox-media img { max-height: calc(92vh - 120px); width: auto; max-width: 100%; object-fit: contain; }
.lightbox-caption { padding: 12px 18px; font-size: 0.9rem; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Contacto, Socio Piloto, Founder Showcase y Únete ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.form { display: grid; gap: 22px; padding: clamp(22px, 3vw, 34px); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
legend, .field label { font-weight: 600; font-size: 0.95rem; margin-bottom: 4px; }
.intent-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.intent-grid label { position: relative; }
.intent-grid input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.intent-grid span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.9rem; color: var(--muted); transition: all 0.2s; }
.intent-grid input:checked + span { border-color: var(--brand); color: var(--text); background: color-mix(in oklab, var(--brand) 14%, transparent); }
.intent-grid input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field input, .field select, .field textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 12px 14px; outline: none; transition: border-color 0.2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field small, .form-note { color: var(--faint); font-size: 0.82rem; }
.form-status { font-size: 0.9rem; color: var(--brand-ink); min-height: 1.4em; }
.contact-side { display: grid; gap: 16px; }
.contact-side .panel a { font-weight: 600; word-break: break-word; }
.form-actions-wrap { display: grid; gap: 12px; }
.form-dual-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.copy-fallback-row { margin-top: 4px; }
.copy-email-btn {
  font-size: 0.86rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); transition: all 0.2s;
}
.copy-email-btn:hover { border-color: var(--line-2); color: var(--text); background: var(--surface-2); }
.copy-email-btn svg { width: 15px; height: 15px; color: var(--brand-ink); }
.wa-direct-link { font-size: 1.15rem; font-weight: 700; color: var(--wa-ink); text-decoration: none; }
.wa-direct-link:hover { text-decoration: underline; }

.pilot-offer-card {
  padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 100% 0%, var(--glow-a), transparent 60%), var(--surface); display: grid; gap: 18px;
}
.pilot-offer-copy { display: grid; gap: 10px; }
.pilot-offer-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.pilot-offer-copy p { color: var(--muted); font-size: 0.96rem; max-width: 72ch; }
.pilot-offer-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.founder-showcase { padding-block: var(--space-section); position: relative; }
.founder-availability { margin-bottom: 32px; }
.founder-counter-badge {
  display: inline-block; font: 600 0.84rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--gold-ink-ui);
  background: color-mix(in oklab, var(--gold-500) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold-500) 35%, transparent);
  border-radius: 999px; padding: 8px 16px; margin-bottom: 14px;
}
.founder-slots { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.slot-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.slot-pill.is-assigned { border-color: var(--gold-500); background: color-mix(in oklab, var(--gold-500) 16%, transparent); font-weight: 600; color: var(--text); }
.slot-pill.is-open { color: var(--muted); }
.slot-num { font-family: var(--font-mono); }
.founder-showcase-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; align-items: stretch; }
.founder-card {
  border: 1px solid color-mix(in oklab, var(--gold-500) 35%, var(--line)); border-left: 5px solid var(--gold-500);
  border-radius: var(--radius); padding: 24px; background: var(--surface); display: flex; flex-direction: column; gap: 16px;
}
.founder-badge-wrap { aspect-ratio: 1 / 1; max-width: 260px; margin-inline: auto; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 16px 40px -20px var(--gold-500); }
.founder-badge-img { width: 100%; height: 100%; object-fit: cover; }
.founder-card-body { display: grid; gap: 8px; }
.founder-status { font-size: 0.76rem; font-weight: 500; line-height: 1; letter-spacing: 0.08em; color: var(--gold-ink-ui); }
.founder-card-body h3 { font-size: 1.35rem; }
.founder-edition { color: var(--text); font-size: 0.92rem; }
.founder-summary { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.founder-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-ink-ui); font-weight: 600; text-decoration: none; font-size: 0.92rem; margin-top: 6px; }
.founder-link:hover { text-decoration: underline; }
.founder-link svg { width: 16px; height: 16px; }
.founder-privileges-panel { display: flex; flex-direction: column; gap: 18px; }
.founder-privileges-panel h3 { font-size: 1.45rem; }
.privileges-list { list-style: none; display: grid; gap: 12px; }
.privileges-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); }
.privileges-list svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; margin-top: 2px; }
.privileges-list b { color: var(--text); }
.privileges-list span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.founder-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 10px; }

.eng-arsenal-grid .panel h3 { font-family: var(--font-mono); font-size: 1.1rem; }
.eng-roles-grid { --col-min: 340px; --grid-gap: 20px; }
.role-card { display: flex; flex-direction: column; gap: 14px; }
.role-card-top { display: grid; gap: 8px; }
.role-badge { justify-self: start; }
.role-card h3 { font-size: 1.35rem; }
.role-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

/* ---------- Franja de evidencia, Visor 3D destacado, Caso cliente y Novedades ---------- */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 28px 30px; }
.proof-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.proof-title { font-weight: 500; font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0; }
.proof-title small { font: inherit; color: var(--faint); text-transform: none; letter-spacing: 0.02em; }
.proof-list { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-list li + li { border-left: 1px solid var(--line); }
.proof-list a { display: grid; gap: 6px; padding: 4px 20px; text-decoration: none; height: 100%; }
.proof-list li:first-child a { padding-left: 0; }
.proof-list b { font: 600 clamp(1.7rem, 3vw, 2.3rem)/1 var(--font-display); letter-spacing: -0.03em; }
.proof-list span { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.proof-list a:hover b { color: var(--brand-ink); }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.feature-copy { display: grid; gap: 18px; }
.feature-copy h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.feature-media { margin: 0; display: grid; gap: 12px; position: sticky; top: 96px; }
.feature-poster { position: relative; display: block; border-radius: calc(var(--radius) + 4px); overflow: hidden; border: 1px solid var(--line-2); background: #0e1f1a; box-shadow: 0 40px 100px -50px #fb7185; aspect-ratio: 1600 / 1067; }
.feature-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.feature-poster:hover img { transform: scale(1.02); }
.feature-play { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgb(7 10 18 / 0.78); color: #f5f1e8; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.04em; backdrop-filter: blur(6px); }
.feature-play svg { width: 14px; height: 14px; }
.feature-media iframe { width: 100%; height: min(760px, 82vh); border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px); background: #0e1f1a; }
.feature-embed-btn { justify-self: start; }
.feature-media figcaption { font-size: 0.8rem; color: var(--muted); }

.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; margin: 0; }
.fact-grid div { padding: 16px 18px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; border-top: 1px solid var(--line); }
.fact-grid div:nth-child(-n + 2) { border-top: 0; }
.fact-grid div:nth-child(even) { border-left: 1px solid var(--line); }
.fact-grid dd { margin: 0; font: 600 1.8rem/1 var(--font-display); letter-spacing: -0.03em; }
.fact-grid dt { color: var(--muted); font-size: 0.86rem; line-height: 1.35; }
.fact-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; max-width: 980px; }
.fact-grid-4 div { border-top: 0; border-left: 1px solid var(--line); }
.fact-grid-4 div:first-child { border-left: 0; }

.case-panel {
  --h-cream: #faf8f5; --h-pine: #1e3a34; --h-pine-2: #33594d; --h-ochre: #c5a059; --h-ochre-ink: #7d5f22; --h-coral-ink: #b03a36;
  color: var(--h-pine); background: radial-gradient(70% 90% at 100% 0%, #f5ecda, transparent 60%), var(--h-cream);
  border: 1px solid #e3dccf; border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px clamp(28px, 5vw, 64px); align-items: start;
  box-shadow: 0 30px 80px -50px rgb(19 38 31 / 0.6);
}
.case-panel a { color: var(--h-pine); }
.case-head { display: grid; gap: 14px; }
.case-eyebrow { font-size: 0.74rem; line-height: 1.4; letter-spacing: 0.08em; color: var(--h-ochre-ink); }
.case-head h2 { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 600; font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.02em; line-height: 1.04; color: var(--h-pine); }
.case-head p { color: var(--h-pine-2); font-size: 1.05rem; max-width: 52ch; }
.case-built { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.case-built li { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid #e8e1d4; align-content: start; }
.case-built b { font-family: "Fraunces", Georgia, serif; font-size: 1.08rem; color: var(--h-pine); }
.case-built span { font-size: 0.9rem; color: var(--h-pine-2); line-height: 1.45; }
.case-note { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--h-pine-2); border-top: 1px solid #e3dccf; padding-top: 18px; }
.case-note svg { width: 18px; height: 18px; color: var(--h-coral-ink); flex: none; margin-top: 2px; }
.case-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; }
.case-link { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid var(--h-pine); }
.case-panel .case-link:first-child { background: var(--h-pine); color: var(--h-cream); }
.case-link:hover { border-color: var(--h-ochre); }
.case-link svg { width: 16px; height: 16px; }
.case-panel :focus-visible { outline-color: var(--h-coral-ink); }

.research-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.research-band .hero-ctas { margin-top: 22px; }

.updates-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.updates-grid .section-head { margin-bottom: 0; }
.updates { list-style: none; display: grid; border-top: 1px solid var(--line); }
.updates li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.updates time { font: 500 0.8rem/1.6 var(--font-mono); color: var(--faint); }
.updates a { text-decoration: none; }
.updates a:hover b { color: var(--brand-ink); }
.updates b { font: 600 1.1rem/1.3 var(--font-display); }
.updates p { color: var(--muted); font-size: 0.93rem; margin-top: 4px; }
.join-line { margin-top: 22px; }

.not-found { min-height: 60vh; display: grid; place-content: center; text-align: center; gap: 18px; padding-block: 80px; }
.not-found h1 { font-size: clamp(4rem, 14vw, 9rem); letter-spacing: -0.05em; }
.not-found .hero-ctas { justify-content: center; }

/* ---------- Modal Inmersivo Fullscreen & HUD (<dialog>) ---------- */
.ecosystem-modal {
  position: fixed; inset: 0; z-index: 10000; width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #060911; color: #f1f5f9; overflow: hidden;
}
.ecosystem-modal[open] { display: flex; flex-direction: column; }
.ecosystem-modal:not([open]) { display: none; }
.ecosystem-modal::backdrop { background: rgb(3 6 12 / 0.85); }
.modal-kbd-nav { flex-shrink: 0; z-index: 18; }
.modal-kbd-nodes {
  display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: thin;
  list-style: none; padding: 8px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(9, 14, 24, 0.92);
}
.modal-node-btn {
  flex: none; padding: 5px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04); color: #cbd5e1; font: 500 0.76rem/1.2 var(--font-mono);
  cursor: pointer; white-space: nowrap; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.modal-node-btn:hover, .modal-node-btn[aria-pressed="true"] { border-color: #38bdf8; color: #fff; background: rgba(56, 189, 248, 0.18); }
.hud-module-stage { color: #94a3b8; font-family: var(--font-mono); font-size: 0.75rem; }
.modal-container { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; }
.modal-header {
  height: 56px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(16px); z-index: 20; flex-shrink: 0;
}
.modal-brand .brand-title { font: 700 1.05rem var(--font-display); color: #fff; margin-right: 12px; }
.modal-brand .brand-sub { font-size: 0.78rem; color: #94a3b8; }
.modal-toolbar { display: flex; align-items: center; gap: 8px; }
.btn-ctrl {
  height: 32px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0; font-size: 0.8rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ctrl:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
.btn-ctrl-timelapse { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.35); color: #fbbf24; }
.btn-ctrl-timelapse:hover { background: rgba(245, 158, 11, 0.22); border-color: #f59e0b; }
.btn-close { font-size: 1.1rem; padding: 0 10px; }
.modal-body { position: relative; flex: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fullscreen-canvas-wrap { width: 100%; height: 100%; position: absolute; inset: 0; }
.fullscreen-canvas-wrap canvas { width: 100%; height: 100%; display: block; }

.project-hud {
  position: absolute; right: 0; top: 0; bottom: 0; width: 400px; max-width: 90vw;
  background: rgba(15, 23, 42, 0.94); backdrop-filter: blur(20px); border-left: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px; z-index: 30; overflow-y: auto; box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
  animation: hudSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes hudSlideIn { from { translate: 100% 0; opacity: 0; } to { translate: 0 0; opacity: 1; } }
.hud-close {
  position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1;
  cursor: pointer; display: grid; place-items: center; font-size: 0.9rem;
}
.hud-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
:is(.hud-badge-family, .hud-badge-stage, .hud-badge-eng) { font: 600 0.7rem/1 var(--font-mono); padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
.hud-badge-family { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.hud-badge-stage { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.hud-badge-eng { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.hud-title { font: 700 1.6rem var(--font-display); color: #fff; margin: 0 0 6px; }
.hud-tagline { font-size: 0.88rem; color: #94a3b8; line-height: 1.4; margin: 0 0 16px; }
.hud-section { margin-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 12px; }
.hud-section-title { font-size: 0.75rem; color: #64748b; margin: 0 0 8px; }
.hud-summary { font-size: 0.84rem; color: #cbd5e1; line-height: 1.5; }
.hud-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.hud-stack span { font-size: 0.75rem; background: rgba(255, 255, 255, 0.06); padding: 3px 8px; border-radius: 4px; color: #e2e8f0; }
.hud-highlights, .hud-modules-list { list-style: none; display: grid; gap: 6px; }
.hud-highlights li { font-size: 0.8rem; color: #cbd5e1; position: relative; padding-left: 14px; }
.hud-highlights li::before { content: "•"; position: absolute; left: 0; color: #38bdf8; }
.hud-modules-list li { font-size: 0.82rem; color: #cbd5e1; background: rgba(255, 255, 255, 0.04); padding: 6px 10px; border-radius: 6px; display: flex; justify-content: space-between; }
.hud-actions { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.hud-link-btn { width: 100%; justify-content: center; font-weight: 600; text-decoration: none; }

.timelapse-dock {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(11, 15, 25, 0.94); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 14px 24px; z-index: 25; display: flex; flex-direction: column; gap: 10px;
}
.timelapse-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.timelapse-meta { display: flex; align-items: center; gap: 10px; }
.timelapse-tag { font-weight: 700; background: rgba(245, 158, 11, 0.15); color: #fbbf24; padding: 4px 8px; border-radius: 6px; }
.timelapse-epoch-title { font-size: 1rem; color: #fff; }
.timelapse-epoch-desc { font-size: 0.82rem; color: #94a3b8; max-width: 640px; }
.timelapse-timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: 100%; margin-top: 4px; }
.epoch-step {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 8px 10px;
  cursor: pointer; color: #94a3b8; display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all 0.15s;
}
.epoch-step:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.epoch-step.is-active { background: rgba(245, 158, 11, 0.2); border-color: #f59e0b; color: #fff; font-weight: 600; }
.epoch-step .step-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.epoch-step .step-label { font-size: 0.75rem; text-align: center; }

/* ---------- Lentes de Audiencia y Gaveta Epistémica ---------- */
.lens-bar-wrap { padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; gap: 10px; }
.lens-bar-wrap > * { min-width: 0; }
.lens-bar-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.lens-bar-hint { font-size: 0.82rem; color: var(--muted); }
.lens-chip-row { gap: 8px; }
.chip-lens { font-weight: 600; }
.lens-spotlight {
  margin-bottom: 18px; padding: 22px 26px; border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--brand) 38%, var(--line-2));
  background: radial-gradient(90% 140% at 0% 0%, color-mix(in oklab, var(--brand) 12%, transparent), transparent 65%), var(--surface-2);
  display: grid; gap: 18px;
}
.lens-spotlight-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 24px; }
.lens-spotlight-title { font-size: clamp(1.2rem, 2.2vw, 1.5rem); margin: 4px 0 6px; }
.lens-spotlight-summary { font-size: 0.92rem; color: var(--muted); max-width: 74ch; line-height: 1.55; }
.lens-spotlight-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.lens-metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lens-metric-item { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.lens-metric-item dd { margin: 0; font: 700 1.25rem/1.1 var(--font-display); color: var(--text); }
.lens-metric-item dt { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.lens-metric-item dt small { font-family: var(--font-mono); font-size: 0.7rem; color: var(--brand-ink); }

.proof-ledger-toggle {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--brand-ink); font: 600 0.76rem/1.2 var(--font-mono); display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.proof-ledger-toggle svg { width: 15px; height: 15px; }
.proof-ledger-toggle:hover { border-color: var(--brand); background: var(--surface-2); }
.epistemic-drawer { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.epistemic-drawer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.epistemic-box { padding: 20px 22px; display: grid; gap: 10px; align-content: start; }
.epistemic-box h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.epistemic-box p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.epistemic-levels-dl div { grid-template-columns: 140px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.epistemic-levels-dl dt { color: var(--brand-ink); font-size: 0.76rem; }
.epistemic-levels-dl dd { color: var(--muted); font-size: 0.84rem; }

/* ---------- Consola 3 Niveles, Invariantes, Córtex y Dossier Modal ---------- */
#verificacion-3-niveles { margin-block: 28px 36px; }
.verification-console { border-color: var(--line-2); overflow: hidden; box-shadow: 0 20px 50px -30px rgb(0 0 0 / 0.35); }
.verification-console-head { padding: 22px 28px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.verification-console-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin: 4px 0; }
.verification-sub { font-size: 0.88rem; color: var(--muted); }
.verification-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.verif-tab { padding: 12px 18px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: 600 0.82rem/1.2 var(--font-mono); cursor: pointer; transition: color 0.18s, border-color 0.18s, background 0.18s; }
.verif-tab:hover { color: var(--text); background: var(--surface); }
.verif-tab.is-active, .verif-tab[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); background: var(--surface); }
.verif-tab-panel { padding: clamp(22px, 3.5vw, 32px); display: grid; gap: 20px; }

.verif-levels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.verif-level-card { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 10px; align-content: start; }
.verif-level-card header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.verif-level-num, .verif-level-step { font-weight: 700; letter-spacing: 0.08em; color: var(--brand-ink); }
.verif-level-card h3, .verif-level-card strong { font-size: 1.05rem; color: var(--text); }
.verif-level-card p, .verif-level-detail { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.verif-meta-dl { margin: 4px 0 0; display: grid; gap: 8px; }
.verif-meta-dl div { display: grid; gap: 2px; }
.verif-meta-dl dt { font-size: 0.7rem; color: var(--faint); }
.verif-meta-dl dd { margin: 0; font-size: 0.85rem; color: var(--text); }
.verif-axis-line { padding-top: 8px; margin-top: auto; border-top: 1px dashed var(--line); font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.verif-axis-line b { color: var(--text); }

.invariants-grid { --col-min: 290px; --grid-gap: 14px; }
.invariant-card { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--brand); background: var(--bg-2); display: grid; gap: 8px; align-content: start; }
.invariant-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.invariant-id, .invariant-code { font: 700 0.78rem/1.2 var(--font-mono); color: var(--brand-ink); }
.invariant-card h3 { font-size: 0.98rem; color: var(--text); }
.invariant-domain { font: 500 0.72rem/1 var(--font-mono); color: var(--muted); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); }
.invariant-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.45; }

.cortex-builder { padding: 22px 24px; border-radius: 14px; border: 1px solid color-mix(in oklab, var(--brand) 35%, var(--line-2)); background: var(--bg-2); display: grid; gap: 18px; }
.cortex-builder-head, .cortex-controls { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.cortex-builder-head h3, .cortex-controls h3 { font-size: 1.2rem; margin: 4px 0 6px; }
.cortex-controls p { font-size: 0.88rem; color: var(--muted); max-width: 68ch; }
.cortex-action-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.cortex-select-label { display: grid; gap: 4px; color: var(--muted); }
.cortex-select-label select { min-height: 38px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 0.85rem/1.2 var(--font-body); }
.cortex-output { padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; }
.cortex-output-meta, .cortex-meta-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font: 600 0.74rem/1.2 var(--font-mono); color: var(--muted); padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cortex-hash { color: var(--brand-ink); margin-left: auto; }
.cortex-output h4 { font-size: 1.05rem; color: var(--text); }
.cortex-output p, .cortex-synthesis-text { font-size: 0.92rem; color: var(--text); line-height: 1.55; }
.cortex-invariants-list { padding-left: 18px; display: grid; gap: 6px; font-size: 0.86rem; color: var(--muted); }
.cortex-invariants-list b { color: var(--text); }
.cortex-limits, .cortex-limits-note { padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.84rem !important; color: var(--muted) !important; }
.cortex-gate20-block { margin-top: 6px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.cortex-gate20-block h4 { margin: 2px 0 4px; font-size: 1.05rem; }

.dossier-modal {
  margin: auto; width: min(940px, 94vw); max-height: 90vh; padding: 0;
  border: 1px solid var(--line-2); border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--text);
  box-shadow: 0 32px 90px -20px rgb(0 0 0 / 0.75);
}
.dossier-modal-inner { display: flex; flex-direction: column; max-height: 90vh; }
.dossier-modal-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--bg-2); }
.dossier-modal-head h2 { font-size: 1.45rem; margin: 2px 0 0; }
.dossier-modal-body { padding: 20px 24px; overflow-y: auto; display: grid; gap: 20px; }
.dossier-invariants-section { display: grid; gap: 10px; }
.dossier-invariants-section h3 { font-size: 1.05rem; }
.dossier-modal-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dossier-foot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---------- Laboratorio de Investigación (/investigacion/) ---------- */
.research-toolbar { margin-bottom: 24px; }
.research-trace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.research-trace-card { display: grid; gap: 12px; align-content: start; }
.research-trace-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.research-trace-card h3 { font-size: 1.25rem; }
.research-trace-dl div { gap: 3px; }
.research-trace-dl dt { color: var(--faint); font-size: 0.7rem; }
.research-trace-dl dd { color: var(--text); line-height: 1.45; }
.research-trace-foot { margin-top: auto; padding-top: 8px; }

/* ---------- Laboratorio 3D WebGL y Estudio Visual ---------- */
.studio-3d-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); }
.studio-3d-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.three-stage-card, .visual-studio-card {
  border-radius: calc(var(--radius) + 2px); border-color: var(--line-2);
  overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%;
}
.three-stage-header { padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.three-scene-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.three-viewport-wrap { position: relative; width: 100%; height: 540px; background: #090d18; overflow: hidden; }
.three-canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.three-canvas:active { cursor: grabbing; }
.three-canvas.kadi-orbit-touch-none { touch-action: none; }
.three-canvas.kadi-orbit-cursor-grab { cursor: grab; }
.three-canvas.kadi-orbit-cursor-grabbing { cursor: grabbing; }
.three-hud-readout {
  position: absolute; top: 12px; left: 12px; max-width: min(340px, calc(100% - 24px));
  padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(9, 13, 24, 0.88); color: #f8fafc; display: grid; gap: 2px; pointer-events: none;
}
.three-hud-kicker { font: 700 0.62rem/1.1 var(--font-mono); letter-spacing: 0.08em; color: #38bdf8; }
.three-hud-readout strong { font-size: 0.82rem; color: #f8fafc; }
.three-hud-readout small { font-size: 0.72rem; color: #94a3b8; line-height: 1.3; }
.three-bottom-dock {
  position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(9, 13, 24, 0.92); color: #f8fafc;
}
.three-bottom-dock.is-collapsed { left: auto; padding: 5px 9px; }
.three-bottom-dock.is-collapsed .three-dock-bar { display: none; }
.three-dock-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; row-gap: 6px; flex: 1; min-width: 0; }
.three-slider-label { display: flex; align-items: center; gap: 5px; font: 600 0.7rem/1.1 var(--font-mono); color: #cbd5e1; white-space: nowrap; }
.three-slider-label strong { color: #38bdf8; }
.three-range { width: 82px; accent-color: #38bdf8; cursor: pointer; }
.three-layer-toggles { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.three-layer-toggles .chip { height: 26px; padding: 0 9px; font-size: 0.7rem; font-family: var(--font-mono); border-color: rgba(148, 163, 184, 0.28); color: #cbd5e1; }
.three-layer-toggles .chip[aria-pressed="true"] { border-color: #38bdf8; color: #fff; background: rgba(56, 189, 248, 0.18); }
.three-dock-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; max-width: 100%; }
.three-dock-actions .btn-sm { min-height: 28px; padding: 0 9px; font-size: 0.72rem; border-radius: 6px; white-space: nowrap; }
.three-dock-collapse { padding: 5px 8px; border-radius: 6px; border: 1px solid rgba(148, 163, 184, 0.28); background: rgba(15, 23, 42, 0.95); color: #cbd5e1; font: 600 0.68rem/1 var(--font-mono); cursor: pointer; white-space: nowrap; }
.three-dock-collapse:hover { color: #fff; border-color: #38bdf8; }

.visual-studio-card { padding: 20px 22px; gap: 16px; }
.visual-studio-head h3 { font-size: 1.25rem; margin: 4px 0 6px; }
.visual-studio-head p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.visual-studio-form { display: grid; gap: 12px; }
.studio-source-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.studio-source-badge { color: var(--muted); border: 1px solid var(--line); background: var(--bg-2); }
.studio-source-badge.is-active { color: var(--brand-ink); border-color: color-mix(in oklab, var(--brand) 45%, var(--line)); background: color-mix(in oklab, var(--brand) 12%, transparent); }
.studio-quick-prompts { display: flex; flex-wrap: wrap; gap: 6px; }
.studio-field { display: grid; gap: 5px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.studio-field textarea, .studio-field select { width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 400 0.86rem/1.45 var(--font-body); }
.studio-controls-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.studio-upload-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.studio-file-label { display: grid; gap: 4px; font-size: 0.76rem; color: var(--muted); }
.studio-file-label input[type="file"] { font-size: 0.76rem; color: var(--muted); max-width: 220px; }
.studio-output-preview { margin: 0; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); display: grid; gap: 10px; }
.studio-output-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 0.72rem/1.2 var(--font-mono); }
.studio-img-frame { border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #070b14; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.studio-img-frame img { width: 100%; height: 100%; object-fit: contain; }
.studio-output-preview figcaption { display: grid; gap: 4px; }
.studio-output-preview figcaption strong { font-size: 0.85rem; color: var(--text); }
.studio-output-preview figcaption small { font-size: 0.78rem; color: var(--muted); }

/* ---------- Propósito Integral: Problemas, Evidencia y Matriz Visionaria ---------- */
.conversion-problems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.outcome-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 14px; box-shadow: var(--shadow); }
.outcome-card:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.outcome-index { font-weight: 700; letter-spacing: 0.08em; color: var(--brand); }
.outcome-card h3 { font-size: 1.08rem; line-height: 1.32; color: var(--text); }
.outcome-card p { font-size: 0.9rem; line-height: 1.56; color: var(--muted); }
.outcome-card .problem-answer { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text); }
.outcome-card .problem-answer strong { color: var(--brand); }

.evidence-row { display: grid; grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.feature-evidence-item { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 14px; box-shadow: var(--shadow); }
.feature-evidence-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); }
.feature-evidence-item .meta { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.feature-evidence-item.dominant-evidence { background: linear-gradient(155deg, color-mix(in oklab, var(--brand) 12%, transparent), var(--surface) 68%); border-color: var(--brand); }
.feature-evidence-item h3 { font-size: 1rem; line-height: 1.34; color: var(--text); }
.feature-evidence-item p { font-size: 0.86rem; line-height: 1.54; color: var(--muted); }
.evidence-item-actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

.vision-matrix-panel { margin-top: 24px; padding: 24px; border-radius: 16px; border-color: var(--line-2); box-shadow: var(--shadow); }
.vision-matrix-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.vision-matrix-header h3 { margin: 4px 0 0; font-size: 1.22rem; color: var(--text); }
.vision-matrix-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.vision-matrix-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; padding-top: 20px; align-items: start; }
.vision-matrix-col h4 { margin: 10px 0 8px; font-size: 1.08rem; color: var(--text); }
.vision-matrix-col p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.58; color: var(--muted); }
.vision-matrix-list { padding-left: 18px; display: grid; gap: 8px; font-size: 0.86rem; color: var(--text); }
.vision-matrix-metrics { display: grid; gap: 10px; }
.vision-metric-box { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; }
.vision-metric-box span, .vision-metric-box dt { color: var(--muted); }
.vision-metric-box strong, .vision-metric-box dd { margin: 0; font-size: 0.9rem; font-weight: 700; color: var(--brand); }
.vision-matrix-cta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Comparador Técnico & Sandbox de Veracidad ---------- */
.comparator-root { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.comparator-root > * { min-width: 0; }
.comparator-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 20px; border-color: var(--line-2); }
.comparator-selectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; flex: 1 1 560px; min-width: 0; }
.comparator-select-field { display: grid; gap: 6px; min-width: 0; font-size: 0.74rem; color: var(--muted); }
.comparator-select-field select {
  width: 100%; max-width: 100%; min-width: 0; min-height: 40px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: 500 0.88rem/1.2 var(--font-body);
  overflow: hidden; text-overflow: ellipsis;
}
.comparator-actions { display: flex; flex: none; flex-wrap: wrap; gap: 8px; }
.comparator-table th:first-child { width: 220px; color: var(--muted); font-family: var(--font-mono); font-size: 0.76rem; text-transform: uppercase; }
.comparator-table td { min-width: 220px; color: var(--text); line-height: 1.5; }

.sandbox-panel { padding: clamp(22px, 4vw, 34px); border-color: var(--line-2); display: grid; gap: 22px; }
.sandbox-header, .sandbox-head-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; }
.sandbox-header h2, .sandbox-head-row h3 { font-size: clamp(1.4rem, 2.8vw, 2rem); margin: 4px 0 6px; }
.sandbox-status-badge {
  font: 700 0.78rem/1.2 var(--font-mono); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--brand-ink); font-variant-numeric: tabular-nums;
}
.sandbox-status-badge[data-state="fail"] { border-color: #f43f5e; color: var(--fail-ink); background: rgba(244, 63, 94, 0.12); }
.sandbox-two-zone { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; align-items: start; }
.sandbox-controls-col, .sandbox-results-col { display: grid; gap: 14px; }
.sandbox-preset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sandbox-results-heading { font-size: 0.78rem; color: var(--muted); }
.sandbox-results-list { display: grid; gap: 12px; }
.sandbox-hit-card { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid rgba(244, 63, 94, 0.45); border-left: 4px solid #f43f5e; background: var(--bg-2); display: grid; gap: 6px; }
.sandbox-hit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sandbox-hit-cat { font: 600 0.7rem/1 var(--font-mono); color: var(--muted); }
.sandbox-hit-match { font-size: 0.88rem; color: var(--text); }
.sandbox-hit-reason { font-size: 0.84rem; color: var(--muted); }
.sandbox-pass-box { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid color-mix(in oklab, var(--brand) 45%, var(--line)); border-left: 4px solid var(--brand); background: var(--bg-2); display: grid; gap: 6px; }
.sandbox-pass-box strong { color: var(--brand-ink); }
.sandbox-pass-box p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Breakpoints unificados ---------- */
@media (max-width: 1240px) { .method-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1080px) {
  .studio-3d-grid { grid-template-columns: minmax(0, 1fr); }
  .conversion-problems, .vision-matrix-body { grid-template-columns: 1fr; }
  .evidence-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) { .principles, .method, .research-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .hero-grid, .feature-grid, .epistemic-drawer-grid { grid-template-columns: 1fr; }
  .feature-media { position: static; }
  .epistemic-levels-dl div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 900px) {
  .maturity, .project-hero-grid, .case-panel, .research-band, .founder-showcase-grid { grid-template-columns: 1fr; }
  .stage-col { border-left: 0; border-top: 1px solid var(--line); min-height: 0; grid-template-columns: 150px 1fr; align-items: start; }
  .stage-col:first-child { border-top: 0; }
  .maturity-track { display: none; }
  .tracker li { font-size: 0.6rem; }
  .lens-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .about, .contact-grid, .field-row, .updates-grid, .verif-levels-grid, .research-trace-grid, .sandbox-two-zone { grid-template-columns: 1fr; }
  .comparator-selectors { grid-template-columns: minmax(0, 1fr); flex-basis: 100%; }
  .proof-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .proof-list li:nth-child(3) { border-left: 0; }
  .proof-list li:nth-child(3) a { padding-left: 0; }
}
@media (max-width: 768px) {
  .modal-brand .brand-sub { display: none; }
  .timelapse-timeline { grid-template-columns: repeat(3, 1fr); }
  .epoch-step:nth-child(n + 4) { display: none; }
  .project-hud { width: 100%; max-width: 100%; }
}
@media (max-width: 760px) {
  .method-5, .fact-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .fact-grid-4 div:nth-child(3) { border-left: 0; }
  .fact-grid-4 div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .three-viewport-wrap { height: auto; min-height: 460px; }
  .studio-controls-row, .evidence-row { grid-template-columns: minmax(0, 1fr); }
  .three-bottom-dock { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; flex-wrap: wrap; }
  .three-dock-actions { margin-left: 0; width: 100%; }
  .vision-matrix-panel { padding: 16px; }
}
@media (max-width: 640px) {
  .card-incubator .card-link { grid-template-columns: auto 1fr; gap: 16px; }
  .card-incubator .card-cta { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .hero-stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .principles, .method, .method-5, .research-lines, .case-built { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .lens-metrics-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .stage-col, .updates li { grid-template-columns: 1fr; }
  .updates li { gap: 4px; }
  .proof-list { column-gap: 0; }
  .proof-list a { padding-inline: 14px 0; }
  .proof-list li:nth-child(odd) a { padding-left: 0; padding-right: 12px; }
  .proof-list b { font-size: 1.6rem; }
  .proof-list span { font-size: 0.8rem; }
}
@media (max-width: 420px) { .tracker li span { display: none; } .tracker li.now span { display: inline; } }
