/* KADI Technology — portal corporativo
   Tokens → base → layout → componentes → secciones → utilidades. Sin dependencias externas. */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens (oscuro por defecto; claro por preferencia o elección) ---------- */
:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-2: #0b1020;
  --surface: rgb(255 255 255 / 0.035);
  --surface-2: rgb(255 255 255 / 0.065);
  --line: rgb(255 255 255 / 0.09);
  --line-2: rgb(255 255 255 / 0.17);
  --text: #e9edf5;
  --muted: #a1abbf;
  --faint: #7c86a0;
  --brand: #2dd4bf;
  --brand-2: #a78bfa;
  --brand-ink: #2dd4bf;
  --on-brand: #04110f;
  --btn-from: var(--brand);
  --btn-to: color-mix(in oklab, var(--brand) 55%, var(--brand-2));
  --glow-a: rgb(45 212 191 / 0.18);
  --glow-b: rgb(167 139 250 / 0.16);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.04) inset, 0 20px 60px -30px rgb(0 0 0 / 0.8);
  --radius: 18px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f5f4ef;
    --bg-2: #ebe9e2;
    --surface: rgb(12 18 36 / 0.035);
    --surface-2: rgb(12 18 36 / 0.065);
    --line: rgb(12 18 36 / 0.1);
    --line-2: rgb(12 18 36 / 0.2);
    --text: #0b1020;
    --muted: #485166;
    --faint: #5a6279;
    --brand: #14b8a6;
    --brand-2: #7c5ce6;
    --brand-ink: #0a6b61;
    --on-brand: #ffffff;
    --btn-from: #0f766e;
    --btn-to: #5b45c4;
    --glow-a: rgb(20 184 166 / 0.14);
    --glow-b: rgb(124 92 230 / 0.12);
    --shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 18px 50px -32px rgb(12 18 36 / 0.45);
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f4ef;
  --bg-2: #ebe9e2;
  --surface: rgb(12 18 36 / 0.035);
  --surface-2: rgb(12 18 36 / 0.065);
  --line: rgb(12 18 36 / 0.1);
  --line-2: rgb(12 18 36 / 0.2);
  --text: #0b1020;
  --muted: #485166;
  --faint: #5a6279;
  --brand: #14b8a6;
  --brand-2: #7c5ce6;
  --brand-ink: #0a6b61;
  --on-brand: #ffffff;
  --btn-from: #0f766e;
  --btn-to: #5b45c4;
  --glow-a: rgb(20 184 166 / 0.14);
  --glow-b: rgb(124 92 230 / 0.12);
  --shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 18px 50px -32px rgb(12 18 36 / 0.45);
}

/* Color de acento por proyecto: --accent llega desde accents.css. En claro se oscurece para texto legible. */
.accented { --accent-ink: var(--accent); --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .accented { --accent-ink: color-mix(in oklab, var(--accent) 55%, #000); }
}
:root[data-theme="light"] .accented { --accent-ink: color-mix(in oklab, var(--accent) 55%, #000); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in oklab, var(--brand) 35%, transparent); }

/* Transiciones entre páginas (mejora progresiva) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 0.22s var(--ease) both vt-fade-out; }
  ::view-transition-new(root) { animation: 0.32s var(--ease) both vt-fade-in; }
}
@keyframes vt-fade-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-fade-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(60px, 8vw, 108px); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); max-width: 64ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.eyebrow-split { flex-wrap: wrap; row-gap: 6px; }
.eyebrow-split > span + span::before { content: "·"; margin-right: 10px; }
@media (max-width: 480px) { .eyebrow-opt { display: none; } }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 700 1.12rem/1 var(--font-display); letter-spacing: 0.06em; }
.brand-word small { font: 500 0.6rem/1 var(--font-mono); letter-spacing: 0.32em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 0.94rem; transition: color 0.2s, background 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--line-2); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn { width: auto; padding-inline: 12px; gap: 10px; display: inline-flex; align-items: center; color: var(--muted); font-size: 0.9rem; }
.search-btn kbd { font: 500 0.72rem/1 var(--font-mono); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 6px; color: var(--faint); }
.theme-icon-light { display: none; }
:root[data-theme="light"] .theme-icon-light { display: block; }
:root[data-theme="light"] .theme-icon-dark { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-icon-light { display: block; }
  :root:not([data-theme]) .theme-icon-dark { display: none; }
}
.menu-btn { display: none; }

@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 40px; padding: 0; justify-content: center; }
  .nav {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 68px); overflow-y: auto;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: linear-gradient(120deg, var(--btn-from), var(--btn-to)); color: var(--on-brand); box-shadow: 0 10px 30px -12px var(--brand); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -14px var(--brand); }
.btn-ghost { border-color: var(--line-2); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #06080d; }
.btn-accent:hover { transform: translateY(-1px); }

/* ---------- Hero ---------- */
.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)); gap: 0; 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; }
.section-title-lg { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px 0 18px; }
.lede-stack { display: grid; gap: 14px; }

.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-caption { position: absolute; left: 50%; bottom: -6px; translate: -50% 0; white-space: nowrap; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.06em; color: var(--faint); }
.constellation-tip {
  position: absolute; left: 50%; top: 50%; pointer-events: none; opacity: 0; visibility: hidden; translate: -50% calc(-100% - 14px); transition: opacity 0.15s, visibility 0.15s;
  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; }
.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; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .constellation { max-width: 460px; }
}
@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); }
}

/* ---------- Filtros del portafolio ---------- */
.toolbar { display: grid; gap: 14px; margin-bottom: 28px; }
.search-field { position: relative; max-width: 420px; }
.search-field svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); }
.search-field input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); outline: none; transition: border-color 0.2s, background 0.2s;
}
.search-field input:focus { border-color: var(--brand); background: var(--surface-2); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; align-items: center; }
@media (max-width: 900px) {
  .chip-row { padding-right: 28px; mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
}
.chip-row-label { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); flex: none; margin-right: 6px; min-width: 56px; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 0.9rem; white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--brand); background: color-mix(in oklab, var(--brand) 14%, transparent); }
.chip-clear svg { width: 14px; height: 14px; }
.results-note { color: var(--faint); font-size: 0.88rem; min-height: 1.4em; }

/* ---------- Tarjetas de proyecto ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s, opacity 0.3s;
  --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; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); }
.card:hover::before { opacity: 1; }
.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); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent); flex: none; }
.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-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 { 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 { grid-column: 1 / -1; }
.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; }
@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; }
}
.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; }
.empty-state { display: none; padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty-state.is-visible { display: block; }

/* ---------- 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: 500 0.72rem/1 var(--font-mono); 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: 10px; border: 1px solid var(--line);
  background: var(--bg-2); text-decoration: none; font-size: 0.86rem; font-weight: 500; transition: border-color 0.2s, transform 0.2s var(--ease);
}
.stage-chip .dot { width: 7px; height: 7px; box-shadow: 0 0 10px var(--accent); }
.stage-chip:hover { border-color: var(--accent); transform: translateX(2px); }
.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; }
@media (max-width: 900px) {
  .maturity { 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; }
}
@media (max-width: 480px) { .stage-col { grid-template-columns: 1fr; } }

/* ---------- Principios ---------- */
.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; }
.link-btn { justify-self: start; align-self: flex-start; background: none; border: 0; padding: 0; color: var(--brand-ink); font-weight: 600; font-size: 0.9rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.link-btn svg { width: 16px; height: 16px; }
@media (max-width: 1000px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Método ---------- */
.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; }
.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; }
@media (max-width: 1000px) { .method { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .method { grid-template-columns: 1fr; } }

/* ---------- Horizontes ---------- */
.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; }
.note { color: var(--faint); font-size: 0.85rem; margin-top: 22px; }
@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; }
}

/* ---------- Equipo ---------- */
.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; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.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; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Banda CTA ---------- */
.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 ---------- */
.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: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; 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; }
:root[data-theme="light"] .project-logo { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .project-logo { filter: invert(1) hue-rotate(180deg); } }
@media (max-width: 900px) { .project-hero-grid { grid-template-columns: 1fr; } .tracker li { font-size: 0.6rem; } }
@media (max-width: 420px) { .tracker li span { display: none; } .tracker li.now span { display: inline; } }

.project-hero + .section { padding-top: clamp(24px, 4vw, 40px); }
.project-hero + .container + .section { padding-top: clamp(40px, 6vw, 64px); }
.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; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col-start { align-items: start; }
.panel { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; }
.panel h2 { font-size: 1.5rem; }
.panel p { color: var(--muted); }
.panel-kicker { font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink, var(--brand-ink)); }
.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; }
.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: 10px; 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; }
.stack-block { display: grid; gap: 28px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: grid; gap: 6px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); 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: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }
.pager b { font: 600 1.35rem/1.1 var(--font-display); }
.pager .next { text-align: right; }
@media (max-width: 760px) { .two-col, .pager { grid-template-columns: 1fr; } .pager .next { text-align: left; } }

/* ---------- Contacto ---------- */
.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); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
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; }
@media (max-width: 860px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* ---------- Paleta de comandos ---------- */
.palette {
  width: min(640px, calc(100% - 24px)); max-height: min(560px, 80vh); padding: 0; margin: 12vh auto auto;
  border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.7);
}
.palette::backdrop { background: rgb(3 5 10 / 0.6); backdrop-filter: blur(4px); }
.palette-search { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.palette-search svg { width: 18px; height: 18px; color: var(--faint); flex: none; }
.palette-search input { flex: 1; border: 0; background: transparent; outline: none; font-size: 1.05rem; height: 32px; }
.palette-list { list-style: none; overflow-y: auto; max-height: calc(min(560px, 80vh) - 110px); padding: 8px; }
.palette-group { font: 500 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 6px; }
.palette-list a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; text-decoration: none; }
.palette-list a small { margin-left: auto; color: var(--faint); font-size: 0.78rem; text-align: right; }
.palette-list a[aria-selected="true"] { background: var(--surface-2); }
.palette-list .dot { width: 8px; height: 8px; box-shadow: none; }
.palette-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--faint); }
.palette-foot kbd { font-family: var(--font-mono); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 5px; }
.palette-empty { padding: 26px; text-align: center; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 36px; margin-top: 0; background: linear-gradient(180deg, transparent, var(--bg-2)); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h2 { font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; }
.footer-grid a { color: var(--muted); text-decoration: none; font-size: 0.93rem; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); font-size: 0.93rem; max-width: 36ch; margin-top: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.84rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { gap: 28px 20px; } }

/* ---------- 404 ---------- */
.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; }

/* ---------- Aparición al hacer scroll (mejora progresiva, decorativa) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal-in { from { opacity: 0; transform: translateY(26px); } }
    .reveal { animation: reveal-in auto var(--ease) backwards; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
  .hero-copy > * { animation: rise 0.8s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.24s; }
}
/* Solo desplazamiento: sin opacidad inicial, para no retrasar la pintura del LCP. */
@keyframes rise { from { transform: translateY(14px); } }

/* ── Tokens KADI ── */
:root {
  --navy-950: #0a1220;
  --gold-500: #c9a227;
  --gold-ink: #7a5e14;
  --paper: #f6f7fa;
  --space-section: clamp(72px, 10vw, 128px);
  --radius-md: 0.75rem;
}

/* ── Miniaturas en tarjetas de portafolio ── */
.card-thumb {
  margin-block: -4px 6px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.card:hover .card-thumb img {
  transform: scale(1.03);
}

/* ── Banner de Módulo Clínico ── */
.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;
}

/* ── Módulos Clínicos Grid ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.module-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.module-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
  display: block;
}
.module-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.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;
}

/* ── Galerías Visuales Verificadas ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.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-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}
.gallery-trigger:hover .gallery-img-wrap img {
  transform: scale(1.03);
}
.gallery-caption {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}
.gallery-badge {
  font: 500 0.68rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 6px;
  justify-self: start;
}
.gallery-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ── Lightbox Modal ── */
.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::backdrop {
  background: rgb(3 5 10 / 0.8);
  backdrop-filter: blur(8px);
}
.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);
}

/* ── Oferta Socio Piloto B2B ── */
.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 Cohorte #01 ── */
.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-500, #c9a227);
  background: color-mix(in oklab, var(--gold-500, #c9a227) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--gold-500, #c9a227) 35%, transparent);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 14px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .founder-counter-badge {
    color: var(--gold-ink, #7a5e14);
  }
}
:root[data-theme="light"] .founder-counter-badge {
  color: var(--gold-ink, #7a5e14);
}
.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, #c9a227);
  background: color-mix(in oklab, var(--gold-500, #c9a227) 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;
}
@media (max-width: 900px) {
  .founder-showcase-grid {
    grid-template-columns: 1fr;
  }
}
.founder-card {
  border: 1px solid color-mix(in oklab, var(--gold-500, #c9a227) 35%, var(--line));
  border-left: 5px solid var(--gold-500, #c9a227);
  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, #c9a227);
}
.founder-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.founder-card-body {
  display: grid;
  gap: 8px;
}
.founder-status {
  font: 500 0.76rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-500, #c9a227);
}
.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-500, #c9a227);
  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;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .founder-status,
  :root:not([data-theme="dark"]) .founder-link {
    color: var(--gold-ink, #7a5e14);
  }
}
:root[data-theme="light"] .founder-status,
:root[data-theme="light"] .founder-link {
  color: var(--gold-ink, #7a5e14);
}
.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, #c9a227);
  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;
}

/* ── Botones WhatsApp y Formulario Dual ── */
.btn-wa {
  background: #25d366;
  color: #04140b;
}
.btn-wa:hover {
  background: #20bd5a;
  box-shadow: 0 14px 30px -12px #25d366;
}
.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: #25d366;
  text-decoration: none;
}
/* En claro, el verde de marca de WhatsApp no alcanza 4.5:1; se oscurece. */
:root[data-theme="light"] .wa-direct-link { color: #0f7a3c; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .wa-direct-link { color: #0f7a3c; } }
.wa-direct-link:hover {
  text-decoration: underline;
}

/* ── Hub de Ingeniería (/unete/) ── */
.eng-arsenal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 16px;
}
.eng-arsenal-grid .panel h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
}
.eng-home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.eng-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}
.role-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.role-card-top {
  display: grid;
  gap: 8px;
}
.role-badge {
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: color-mix(in oklab, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 30%, transparent);
  padding: 4px 8px;
  border-radius: 6px;
  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;
}
@media print { .founder-showcase { break-inside: avoid; } }

/* ======================================================================
   Portal 2026-10-20: proposición, evidencia, destacado, caso, método,
   investigación y novedades.
   ====================================================================== */

/* ── Enlace de novedad en el hero ── */
.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: 600 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 18%, transparent); color: var(--brand-ink); flex: none; }

/* ── Franja de evidencia ── */
.proof { border-block: 1px solid var(--line); background: var(--bg-2); padding-block: 28px 30px; }
.proof-title { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.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)); gap: 0; }
.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); }
@media (max-width: 860px) {
  .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: 480px) {
  .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; }
}

/* ── Trabajo destacado (visor 3D) ── */
.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); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: 1fr; } .feature-media { position: static; } }

/* Rejilla de cifras con su etiqueta */
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; 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; }
@media (max-width: 760px) {
  .fact-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-grid-4 div:nth-child(3) { border-left: 0; }
  .fact-grid-4 div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
.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; }

/* ── Caso de cliente con la identidad del cliente (Warm Institutional Heritage) ── */
.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: 600 0.74rem/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; 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); }
@media (max-width: 900px) { .case-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .case-built { grid-template-columns: 1fr; } }

/* ── Método con evidencia ── */
.method-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.method li { grid-template-rows: auto auto 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); }
.method li { overflow-wrap: anywhere; }
@media (max-width: 1240px) { .method-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .method-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .method-5 { grid-template-columns: 1fr; } }
.research-lines { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .research-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .research-lines { grid-template-columns: 1fr; } }

/* ── Banda de investigación en la portada ── */
.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; }
@media (max-width: 900px) { .research-band { grid-template-columns: 1fr; } }

/* ── Novedades ── */
.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; }
@media (max-width: 860px) { .updates-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .updates li { grid-template-columns: 1fr; gap: 4px; } }

/* ── Enlaces con flecha ── */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); flex: none; }
.link-arrow:hover svg { transform: translateX(3px); }
.join-line { margin-top: 22px; }

/* ---------- Constelación: Wrapper, Leyenda y Fullscreen ---------- */
.constellation-wrapper { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; max-width: 620px; justify-self: center; }
.constellation-wrapper .constellation { width: 100%; }
.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 {
  font: 600 0.72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--faint);
}
.legend-items { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.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 { margin-top: 4px; }
.legend-btn-fs { width: 100%; justify-content: center; gap: 6px; font-weight: 600; }

/* ---------- Modal Inmersivo Fullscreen & HUD ---------- */
.ecosystem-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column;
  background: #060911; color: #f1f5f9;
  overflow: hidden;
}
.ecosystem-modal[hidden] { display: none !important; }
.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);
}
.project-hud[hidden] { display: none !important; }
@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; }
.hud-badge-family, .hud-badge-stage, .hud-badge-eng {
  font: 600 0.7rem/1 ui-monospace, Menlo, Consolas, monospace;
  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: 600 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin: 0 0 8px; }
.hud-summary { font-size: 0.84rem; color: #cbd5e1; line-height: 1.5; margin: 0; }
.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 { list-style: none; margin: 0; padding: 0; 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 { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.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-dock[hidden] { display: none !important; }
.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: 700 0.72rem var(--font-mono); text-transform: uppercase; 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; margin: 0; 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; }

@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%; }
}
