/**
 * Guía BIM (BIM_Documentation/BIM documentation.php) — diseño editorial de RÜM (oct 2026).
 * El lenguaje de la home nueva sobre fondo blanco: Syne en títulos y cifras, Inter en texto,
 * etiquetas y botones (versalitas espaciadas); filetes cálidos en vez de sombras; primario
 * durazno en píldora; lo activo o aprobado en carbón. Azul sólo como acento de una serie en MacLeamy.
 * Se carga después del <style> de la página; aquí se antepone body.rum-bim-docs para ganar.
 * Tokens --rx-* en assets/css/rum_shell_editorial.css (los carga navbar.php); aquí van con respaldo.
 */

@font-face { font-family: "Syne"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/home/fonts/syne-var.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/home/fonts/inter-var.woff2) format("woff2"); }

body.rum-bim-docs {
  --bd-ink: var(--rx-ink, #1C1F26);
  --bd-ink-2: var(--rx-ink-2, #4A4F5A);
  --bd-muted: var(--rx-muted, #8A8F98);
  --bd-rule: var(--rx-rule, #ECE4DA);
  --bd-rule-strong: var(--rx-rule-strong, #DDD1C3);
  --bd-paper: #ffffff;
  --bd-paper-2: var(--rx-paper-2, #FAF7F3);
  --bd-peach: var(--rx-peach, #F3D2B2);
  --bd-peach-2: var(--rx-peach-2, #EEBF95);
  --bd-peach-ink: var(--rx-peach-ink, #5C3A21);
  --bd-terracotta: var(--rx-terracotta, #B8784C);
  --bd-red: #B4483C;
  --bd-blue: #2a6db0;
  --bd-display: var(--rx-f-display, "Syne", "Inter", system-ui, sans-serif);
  --bd-sans: var(--rx-f-sans, "Inter", system-ui, -apple-system, "Segoe UI", sans-serif);
  --bd-ease: var(--rx-ease, cubic-bezier(.16, 1, .3, 1));
  background: #ffffff;
  color: var(--bd-ink);
  font-family: var(--bd-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html:has(body.rum-bim-docs) { background: #ffffff; }

body.rum-bim-docs a { color: inherit; }
body.rum-bim-docs h1,
body.rum-bim-docs h2,
body.rum-bim-docs h3,
body.rum-bim-docs h4 { font-family: var(--bd-display); color: var(--bd-ink); }
body.rum-bim-docs strong { color: inherit; }
body.rum-bim-docs code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 4px;
  padding: 0 4px;
}

/* =====================================================================
   ESTRUCTURA: secciones separadas por un filete, contenido a 1240 px
   ===================================================================== */
body.rum-bim-docs .page-shell {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 40px);
  padding-right: clamp(16px, 3vw, 40px);
}
body.rum-bim-docs .section { padding: clamp(36px, 4.6vw, 68px) 0 0; scroll-margin-top: 84px; }
body.rum-bim-docs .hero { scroll-margin-top: 84px; }
body.rum-bim-docs .section.full-panel > .page-shell::before,
body.rum-bim-docs #uso > .page-shell:first-child::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--bd-rule);
  margin-bottom: clamp(8px, 1.4vw, 18px);
}
body.rum-bim-docs .single-grid,
body.rum-bim-docs .macleamy-grid,
body.rum-bim-docs .dimensions-grid,
body.rum-bim-docs .maturity-grid,
body.rum-bim-docs .governance-grid,
body.rum-bim-docs .roles-grid,
body.rum-bim-docs .metrics-grid,
body.rum-bim-docs .uses-grid { gap: 18px; }

/* La tarjeta grande de cada sección deja de ser caja: el filete de la sección la separa */
body.rum-bim-docs .chart-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
}
body.rum-bim-docs .chart-card > h3,
body.rum-bim-docs .section-head h2 {
  font-family: var(--bd-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.06;
  letter-spacing: -.025em;
  max-width: 24ch;
  margin: 12px 0 14px;
  color: var(--bd-ink);
}
body.rum-bim-docs .chart-card > p,
body.rum-bim-docs .section-head p {
  max-width: 74ch;
  font-size: 16px;
  line-height: 1.62;
  color: var(--bd-ink-2);
  margin: 0 0 10px;
}
body.rum-bim-docs .chart-card > p strong { color: var(--bd-ink); font-weight: 600; }
body.rum-bim-docs .interactive-hint {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bd-muted);
  margin: 6px 0 0;
  max-width: 80ch;
}

/* Eyebrow: Inter versalitas en terracota con una línea corta, sin caja */
body.rum-bim-docs .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bd-terracotta);
  font-family: var(--bd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
}
body.rum-bim-docs .eyebrow::before {
  width: 22px;
  height: 1px;
  border-radius: 0;
  background: currentColor;
  flex: 0 0 auto;
}

/* =====================================================================
   HERO · visión general + índice
   ===================================================================== */
body.rum-bim-docs .hero { padding: clamp(28px, 4.4vw, 64px) 0 0; }
body.rum-bim-docs .hero-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
body.rum-bim-docs .hero-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  gap: 18px;
}
body.rum-bim-docs .hero h1 {
  font-family: var(--bd-display);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: .98;
  letter-spacing: -.035em;
  max-width: 15ch;
  margin: 4px 0 4px;
}
body.rum-bim-docs .hero-lede {
  font-size: clamp(16px, 1.3vw, 18.5px);
  line-height: 1.6;
  color: var(--bd-ink-2);
  max-width: 62ch;
}
body.rum-bim-docs .bd-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  margin-top: 6px;
}
body.rum-bim-docs .bd-pillar {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 16px 16px 18px;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  background: #ffffff;
  text-decoration: none;
  color: var(--bd-ink);
  transition: border-color .3s var(--bd-ease), transform .3s var(--bd-ease);
}
body.rum-bim-docs .bd-pillar:hover,
body.rum-bim-docs .bd-pillar:focus-visible { border-color: var(--bd-ink); transform: translateY(-2px); outline: none; }
body.rum-bim-docs .bd-pillar__n {
  font-family: var(--bd-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--bd-terracotta);
  letter-spacing: .02em;
}
body.rum-bim-docs .bd-pillar strong { font-family: var(--bd-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
body.rum-bim-docs .bd-pillar span:last-child { font-size: 13.5px; line-height: 1.45; color: var(--bd-ink-2); }

body.rum-bim-docs .hero-aside {
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 12px;
  padding: 22px 22px 18px;
  gap: 16px;
  position: sticky;
  top: 84px;
}
body.rum-bim-docs .bd-index { display: grid; gap: 16px; }
body.rum-bim-docs .bd-index__title {
  margin: 0;
  font-family: var(--bd-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--bd-ink);
}
body.rum-bim-docs .bd-index__group { display: grid; gap: 6px; }
body.rum-bim-docs .bd-index__label,
body.rum-bim-docs .bd-label {
  display: block;
  font-family: var(--bd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bd-muted);
}
body.rum-bim-docs .bd-index ol {
  margin: 0;
  padding: 0 0 0 26px;
  display: grid;
  gap: 3px;
  font-size: 14px;
  color: var(--bd-muted);
}
body.rum-bim-docs .bd-index li::marker { font-family: var(--bd-display); font-size: 12px; color: var(--bd-muted); }
body.rum-bim-docs .bd-index a {
  color: var(--bd-ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s var(--bd-ease);
}
body.rum-bim-docs .bd-index a:hover,
body.rum-bim-docs .bd-index a:focus-visible { background-size: 100% 1px; outline: none; }
body.rum-bim-docs .bd-new {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bd-peach);
  color: var(--bd-peach-ink);
  font-family: var(--bd-sans);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 1px;
}
body.rum-bim-docs .stamp {
  padding: 12px 0 0;
  border: 0;
  border-top: 1px solid var(--bd-rule);
  border-radius: 0;
  background: transparent;
  width: 100%;
  color: var(--bd-muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* =====================================================================
   BOTONES, PESTAÑAS Y PÍLDORAS
   ===================================================================== */
body.rum-bim-docs .hero-actions { gap: 10px; margin-top: 4px; }
body.rum-bim-docs .btn,
body.rum-bim-docs .tab-button,
body.rum-bim-docs .interactive-pill {
  font-family: var(--bd-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 20px;
  box-shadow: none;
  line-height: 1.2;
  text-align: center;
  transition: background-color .25s var(--bd-ease), border-color .25s var(--bd-ease), color .25s var(--bd-ease), transform .25s var(--bd-ease);
}
body.rum-bim-docs .btn.primary {
  background: var(--bd-peach);
  border: 1px solid var(--bd-peach);
  color: var(--bd-peach-ink);
}
body.rum-bim-docs .btn.primary:hover { background: var(--bd-peach-2); border-color: var(--bd-peach-2); transform: translateY(-2px); }
body.rum-bim-docs .btn.secondary,
body.rum-bim-docs .tab-button,
body.rum-bim-docs .interactive-pill {
  background: transparent;
  border: 1px solid var(--bd-rule-strong);
  color: var(--bd-ink);
}
body.rum-bim-docs .btn.secondary:hover,
body.rum-bim-docs .tab-button:hover,
body.rum-bim-docs .interactive-pill:hover { background: transparent; border-color: var(--bd-ink); color: var(--bd-ink); }
body.rum-bim-docs .tab-button { min-height: 38px; padding: 0 18px; letter-spacing: .06em; }
body.rum-bim-docs .tab-button.active,
body.rum-bim-docs .tab-button.active:hover,
body.rum-bim-docs .interactive-pill.is-active {
  background: var(--bd-ink);
  border-color: var(--bd-ink);
  color: #ffffff;
}
body.rum-bim-docs .interactive-pill { min-height: 36px; padding: 0 14px; letter-spacing: .06em; }
body.rum-bim-docs .btn:focus-visible,
body.rum-bim-docs .tab-button:focus-visible,
body.rum-bim-docs .interactive-pill:focus-visible { outline: 2px solid var(--bd-ink); outline-offset: 3px; }
body.rum-bim-docs .tabs { gap: 8px; margin-top: 16px; }

/* =====================================================================
   TARJETAS: filete cálido, sin sombra
   ===================================================================== */
body.rum-bim-docs .panel,
body.rum-bim-docs .tip-card,
body.rum-bim-docs .dock-card,
body.rum-bim-docs .focus-card,
body.rum-bim-docs .info-card,
body.rum-bim-docs .mini-card,
body.rum-bim-docs .tab-panel,
body.rum-bim-docs .trend-card,
body.rum-bim-docs .matrix,
body.rum-bim-docs .doc-card,
body.rum-bim-docs .info-block,
body.rum-bim-docs .interactive-panel {
  background: #ffffff;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  box-shadow: none;
}
body.rum-bim-docs .focus-card,
body.rum-bim-docs .mini-card,
body.rum-bim-docs .tip-card { padding: 20px; gap: 10px; }
body.rum-bim-docs .focus-card h3,
body.rum-bim-docs .mini-card h4,
body.rum-bim-docs .tip-card h3,
body.rum-bim-docs .info-block h4,
body.rum-bim-docs .doc-card h4 {
  font-family: var(--bd-display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--bd-ink);
}
body.rum-bim-docs .tip-card h3 { font-size: 20px; }
body.rum-bim-docs .focus-card p,
body.rum-bim-docs .mini-card p,
body.rum-bim-docs .tip-card p,
body.rum-bim-docs .tab-panel p,
body.rum-bim-docs .info-card p,
body.rum-bim-docs .doc-card p { color: var(--bd-ink-2); font-size: 14.5px; line-height: 1.55; }
body.rum-bim-docs .tips-list li,
body.rum-bim-docs .dimension-list li,
body.rum-bim-docs .info-list li { color: var(--bd-ink-2); font-size: 14.5px; }
body.rum-bim-docs .focus-grid,
body.rum-bim-docs .dimension-support,
body.rum-bim-docs .document-grid,
body.rum-bim-docs .mini-grid,
body.rum-bim-docs .use-cards,
body.rum-bim-docs .metric-summary,
body.rum-bim-docs .tips-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}
body.rum-bim-docs .focus-grid,
body.rum-bim-docs .dimension-support,
body.rum-bim-docs .document-grid,
body.rum-bim-docs .mini-grid,
body.rum-bim-docs .use-cards,
body.rum-bim-docs .metric-summary { margin-top: 22px; }
body.rum-bim-docs .mini-card--interactive:hover,
body.rum-bim-docs .focus-card--interactive:hover,
body.rum-bim-docs .use-card--interactive:hover,
body.rum-bim-docs .doc-card--interactive:hover,
body.rum-bim-docs .info-block--interactive:hover { border-color: var(--bd-rule-strong); }
body.rum-bim-docs .doc-card--interactive:focus-visible,
body.rum-bim-docs .cde-lane--interactive:focus-visible,
body.rum-bim-docs .metric-item--interactive:focus-visible,
body.rum-bim-docs .role-item--interactive:focus-visible,
body.rum-bim-docs .focus-card--interactive:focus-visible,
body.rum-bim-docs .mini-card--interactive:focus-visible,
body.rum-bim-docs .info-block--interactive:focus-visible,
body.rum-bim-docs .use-card--interactive:focus-visible,
body.rum-bim-docs .phase-row--interactive:focus-visible,
body.rum-bim-docs .geo-layer--interactive:focus-visible { outline: 2px solid var(--bd-ink); }

/* Globos de detalle: blancos, filete y sombra corta (flotan sobre el contenido) */
body.rum-bim-docs .phase-popover,
body.rum-bim-docs .chart-popover,
body.rum-bim-docs .use-card-popover {
  background: #ffffff;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(28, 31, 38, .10);
  color: var(--bd-ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
body.rum-bim-docs .phase-popover strong,
body.rum-bim-docs .chart-popover strong,
body.rum-bim-docs .use-card-popover strong {
  font-family: var(--bd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--bd-terracotta);
}
body.rum-bim-docs .chart-popover a,
body.rum-bim-docs .bd-note a,
body.rum-bim-docs .bd-dim__rum a,
body.rum-bim-docs .chart-card > p a {
  color: var(--bd-ink);
  text-decoration: underline;
  text-decoration-color: var(--bd-rule-strong);
  text-underline-offset: 3px;
}
body.rum-bim-docs .chart-popover a:hover,
body.rum-bim-docs .bd-note a:hover,
body.rum-bim-docs .bd-dim__rum a:hover,
body.rum-bim-docs .chart-card > p a:hover { text-decoration-color: var(--bd-ink); }

/* Panel interactivo (MacLeamy, flujo, ISO) */
body.rum-bim-docs .interactive-panel { padding: 18px 20px; gap: 10px; }
body.rum-bim-docs .interactive-panel-header strong {
  font-family: var(--bd-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--bd-ink);
}
body.rum-bim-docs .interactive-badge {
  background: transparent;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 999px;
  padding: 4px 11px;
  color: var(--bd-terracotta);
  font-family: var(--bd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
body.rum-bim-docs .interactive-panel[data-tone="impacto"] .interactive-badge { background: transparent; color: var(--bd-blue); border-color: rgba(42, 109, 176, .35); }
body.rum-bim-docs .interactive-panel[data-tone="cambio"] .interactive-badge { background: transparent; color: var(--bd-red); border-color: rgba(180, 72, 60, .35); }
body.rum-bim-docs .interactive-panel[data-tone="tradicional"] .interactive-badge { background: transparent; color: var(--bd-ink-2); border-color: var(--bd-rule-strong); }
body.rum-bim-docs .interactive-panel[data-tone="bim"] .interactive-badge { background: var(--bd-ink); color: #ffffff; border-color: var(--bd-ink); }
body.rum-bim-docs .dimension-list { padding-left: 18px; }
body.rum-bim-docs .dimension-list li::marker { color: var(--bd-terracotta); }

/* =====================================================================
   GRÁFICO 1 · MacLeamy
   ===================================================================== */
body.rum-bim-docs .macleamy-kpis { gap: 10px; }
body.rum-bim-docs .macleamy-metric {
  border: 1px solid var(--bd-rule);
  border-left: 3px solid var(--tone, var(--bd-rule));
  border-radius: 10px;
  background: #ffffff;
  box-shadow: none;
  font-family: var(--bd-sans);
}
body.rum-bim-docs .macleamy-metric:hover { background: var(--bd-paper-2); box-shadow: none; }
body.rum-bim-docs .macleamy-metric.is-active { background: var(--bd-paper-2); border-color: var(--bd-rule-strong); border-left-color: var(--tone, var(--bd-ink)); box-shadow: none; }
body.rum-bim-docs .macleamy-metric__label { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--bd-muted); }
body.rum-bim-docs .macleamy-metric strong { font-family: var(--bd-display); font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
body.rum-bim-docs .macleamy-metric__meta { color: var(--bd-ink-2); }
body.rum-bim-docs .macleamy-ops .trend-card { background: #ffffff; padding: 12px; }
body.rum-bim-docs .macleamy-map [data-zone]:focus-visible { outline: 2px solid var(--bd-ink); }
body.rum-bim-docs .macleamy-map text { font-family: var(--bd-sans); }

/* =====================================================================
   GRÁFICO 2 · Dimensiones: burbujas blancas, la activa en carbón
   ===================================================================== */
body.rum-bim-docs .dimension-map .dimension-bubble { fill: #ffffff; stroke: var(--bd-rule-strong); stroke-width: 2px; }
body.rum-bim-docs .dimension-map [data-dimension] > circle:not(.dimension-bubble) { fill: transparent; }
body.rum-bim-docs .dimension-map [data-dimension] text { fill: var(--bd-ink); font-family: var(--bd-display); font-weight: 600; }
body.rum-bim-docs .dimension-map [data-dimension]:hover .dimension-bubble { stroke: var(--bd-ink); }
body.rum-bim-docs .dimension-map [data-dimension].is-active .dimension-bubble { fill: var(--bd-ink); stroke: var(--bd-ink); }
body.rum-bim-docs .dimension-map [data-dimension].is-active > circle:not(.dimension-bubble) { fill: none; stroke: var(--bd-peach-2); stroke-width: 1.5px; }
body.rum-bim-docs .dimension-map [data-dimension].is-active text { fill: #ffffff; }
body.rum-bim-docs .dimension-map [data-dimension]:hover,
body.rum-bim-docs .dimension-map [data-dimension].is-active { filter: none; }
body.rum-bim-docs .tab-panel { padding: 20px; }
body.rum-bim-docs .tab-panel h3 { font-family: var(--bd-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; }
body.rum-bim-docs .kpi-box {
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
}
body.rum-bim-docs .kpi-box strong {
  color: var(--bd-muted);
  font-family: var(--bd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
body.rum-bim-docs .kpi-box span {
  font-family: var(--bd-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -.015em;
  color: var(--bd-ink);
}

/* =====================================================================
   BARRAS (roles, indicadores, usos, madurez): durazno y carbón, sin degradados
   ===================================================================== */
body.rum-bim-docs .role-label,
body.rum-bim-docs .metric-label,
body.rum-bim-docs .document-label {
  background: transparent;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 999px;
  color: var(--bd-ink);
  padding: 10px 14px;
  font-family: var(--bd-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.rum-bim-docs .bar,
body.rum-bim-docs .phase-track,
body.rum-bim-docs .doc-track {
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
}
body.rum-bim-docs .bar { min-height: 46px; }
body.rum-bim-docs .phase-track { min-height: 26px; }
body.rum-bim-docs .bar-grid span { border-left-color: rgba(28, 31, 38, .07); }
body.rum-bim-docs .bar-fill {
  font-family: var(--bd-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--bd-peach-ink);
  background: var(--bd-peach);
  padding: 0 18px;
  white-space: normal;
  line-height: 1.25;
}
body.rum-bim-docs .bar-fill.manager-fill,
body.rum-bim-docs .bar-fill.models-fill { background: var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .bar-fill.coordinator-fill,
body.rum-bim-docs .bar-fill.clashes-fill { background: var(--bd-peach-2); color: var(--bd-peach-ink); }
body.rum-bim-docs .bar-fill.authors-fill,
body.rum-bim-docs .bar-fill.parameters-fill { background: var(--bd-peach); color: var(--bd-peach-ink); }
body.rum-bim-docs .bar-fill.client-fill { background: var(--bd-rule-strong); color: var(--bd-ink); }
body.rum-bim-docs .bar-fill.pending-fill { background: #ffffff; color: var(--bd-red); box-shadow: inset 0 0 0 1px rgba(180, 72, 60, .45); }
body.rum-bim-docs .phase-row strong,
body.rum-bim-docs .document-row strong {
  color: var(--bd-ink);
  font-family: var(--bd-sans);
  font-size: 13px;
  font-weight: 600;
}
body.rum-bim-docs .phase-fill { box-shadow: none; color: var(--bd-peach-ink); }
body.rum-bim-docs .phase-fill.phase-1,
body.rum-bim-docs .phase-fill.phase-2,
body.rum-bim-docs .phase-fill.phase-3,
body.rum-bim-docs .phase-fill.phase-4,
body.rum-bim-docs .phase-fill.phase-5,
body.rum-bim-docs .phase-fill.phase-6,
body.rum-bim-docs .phase-fill.phase-7,
body.rum-bim-docs .phase-fill.phase-8 { background: var(--bd-peach); }
body.rum-bim-docs .phase-fill.phase-3,
body.rum-bim-docs .phase-fill.phase-7 { background: var(--bd-peach-2); }
body.rum-bim-docs .phase-fill span {
  background: rgba(255, 255, 255, .6);
  color: var(--bd-peach-ink);
  font-family: var(--bd-sans);
  font-weight: 600;
  font-size: 11.5px;
}
body.rum-bim-docs .phase-fill.maturity-0 { background: var(--bd-rule); }
body.rum-bim-docs .phase-fill.maturity-1 { background: var(--bd-rule-strong); }
body.rum-bim-docs .phase-fill.maturity-2 { background: var(--bd-peach-2); }
body.rum-bim-docs .phase-fill.maturity-3 { background: var(--bd-terracotta); }
body.rum-bim-docs .phase-fill.maturity-4 { background: var(--bd-ink); }
body.rum-bim-docs .phase-fill.maturity-0 span,
body.rum-bim-docs .phase-fill.maturity-1 span { color: var(--bd-ink); }
body.rum-bim-docs .phase-fill.maturity-3 span,
body.rum-bim-docs .phase-fill.maturity-4 span { background: rgba(255, 255, 255, .16); color: #ffffff; }

/* =====================================================================
   TABLAS Y RACI
   ===================================================================== */
body.rum-bim-docs .matrix { padding: 0; margin-top: 18px; }
body.rum-bim-docs .matrix th,
body.rum-bim-docs .matrix td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--bd-rule);
  font-size: 14px;
  line-height: 1.5;
  color: var(--bd-ink-2);
}
body.rum-bim-docs .matrix thead th {
  background: var(--bd-paper-2);
  color: var(--bd-muted);
  font-family: var(--bd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
}
body.rum-bim-docs .matrix td strong { color: var(--bd-ink); font-weight: 600; }
body.rum-bim-docs .matrix tbody tr:hover td { background: var(--bd-paper-2); }
body.rum-bim-docs .status-chip {
  min-width: 34px;
  padding: 5px 10px;
  font-family: var(--bd-sans);
  font-size: 12px;
  font-weight: 600;
}
body.rum-bim-docs .status-chip.r,
body.rum-bim-docs .raci-legend i.r { background: var(--bd-peach); color: var(--bd-peach-ink); }
body.rum-bim-docs .status-chip.a,
body.rum-bim-docs .raci-legend i.a { background: var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .status-chip.c,
body.rum-bim-docs .raci-legend i.c { background: var(--bd-paper-2); color: var(--bd-ink); box-shadow: inset 0 0 0 1px var(--bd-rule-strong); }
body.rum-bim-docs .status-chip.i,
body.rum-bim-docs .raci-legend i.i { background: transparent; color: var(--bd-muted); box-shadow: inset 0 0 0 1px var(--bd-rule-strong); }
body.rum-bim-docs .raci-legend { color: var(--bd-ink-2); font-weight: 500; font-size: 13.5px; gap: 8px 18px; }
body.rum-bim-docs .raci-legend i { width: 16px; height: 16px; border-radius: 999px; }

/* =====================================================================
   GRÁFICO 5 · Gobernanza (estratos) y BIM-BAM-BOOM
   ===================================================================== */
body.rum-bim-docs .governance-lede {
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-left: 3px solid var(--bd-peach-2);
  border-radius: 10px;
  color: var(--bd-ink-2);
  font-size: 15px;
  max-width: 86ch;
}
body.rum-bim-docs .governance-lede strong { color: var(--bd-ink); }
body.rum-bim-docs .geo-axis-label { color: var(--bd-muted); font-size: 10.5px; font-weight: 600; letter-spacing: .1em; }
body.rum-bim-docs .geo-stack {
  border: 1px solid var(--bd-rule);
  border-radius: 12px;
  box-shadow: none;
  background: #ffffff;
}
body.rum-bim-docs .geo-stack::before { display: none; }
body.rum-bim-docs .geo-layer { border-bottom: 1px solid var(--bd-rule); }
body.rum-bim-docs .geo-layer:first-child { border-radius: 11px 11px 0 0; }
body.rum-bim-docs .geo-layer:last-child { border-radius: 0 0 11px 11px; }
body.rum-bim-docs .geo-layer__badge { color: var(--bd-muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; }
body.rum-bim-docs .geo-layer__name { font-family: var(--bd-display); font-weight: 600; font-size: 24px; letter-spacing: -.015em; }
body.rum-bim-docs .geo-layer__short { color: var(--bd-ink-2); font-weight: 400; font-size: 14px; }
body.rum-bim-docs .geo-layer--tidp { background: #ffffff; border-left: 3px solid var(--bd-peach); }
body.rum-bim-docs .geo-layer--midp { background: var(--bd-paper-2); border-left: 3px solid var(--bd-peach-2); }
body.rum-bim-docs .geo-layer--bep { background: #F4ECE2; border-left: 3px solid var(--bd-terracotta); }
body.rum-bim-docs .geo-layer--eir { background: var(--bd-ink); color: #ffffff; border-left: 3px solid var(--bd-peach); }
body.rum-bim-docs .geo-layer--eir .geo-layer__badge { color: rgba(255, 255, 255, .62); }
body.rum-bim-docs .geo-layer--eir .geo-layer__name { color: #ffffff; }
body.rum-bim-docs .geo-layer--eir .geo-layer__short { color: rgba(255, 255, 255, .82); }
body.rum-bim-docs .geo-layer--interactive:hover,
body.rum-bim-docs .geo-layer--interactive:focus-within { box-shadow: inset 0 0 0 1px var(--bd-ink); }
body.rum-bim-docs .geo-layer--eir.geo-layer--interactive:hover,
body.rum-bim-docs .geo-layer--eir.geo-layer--interactive:focus-within { box-shadow: inset 0 0 0 1px var(--bd-peach); }
body.rum-bim-docs .info-block { padding: 18px 20px; }

body.rum-bim-docs .bamboom-block {
  background: #ffffff;
  border: 1px solid var(--bd-rule);
  border-radius: 12px;
  box-shadow: none;
}
body.rum-bim-docs .bamboom-block h4 { color: var(--bd-ink); font-family: var(--bd-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; }
body.rum-bim-docs .bamboom-attrib { color: var(--bd-ink-2); font-size: 14.5px; max-width: 90ch; }
body.rum-bim-docs .bamboom-attrib a { color: var(--bd-ink); font-weight: 600; text-decoration-color: var(--bd-rule-strong); text-underline-offset: 3px; }
body.rum-bim-docs .bamboom-phase {
  box-shadow: none;
  border: 1px solid var(--bd-rule);
  background: #ffffff;
  color: var(--bd-ink);
  border-radius: 12px;
}
body.rum-bim-docs .bamboom-phase--bam { background: var(--bd-paper-2); }
body.rum-bim-docs .bamboom-phase--boom { background: var(--bd-ink); border-color: var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .bamboom-phase strong { font-family: var(--bd-display); color: var(--bd-ink); font-weight: 600; letter-spacing: -.01em; }
body.rum-bim-docs .bamboom-phase__full { color: var(--bd-terracotta); font-family: var(--bd-sans); font-weight: 600; letter-spacing: .1em; }
body.rum-bim-docs .bamboom-phase p { color: var(--bd-ink-2); font-weight: 400; }
body.rum-bim-docs .bamboom-phase p strong { color: var(--bd-ink); font-family: var(--bd-sans); letter-spacing: 0; }
body.rum-bim-docs .bamboom-phase--boom strong,
body.rum-bim-docs .bamboom-phase--boom p strong { color: #ffffff; }
body.rum-bim-docs .bamboom-phase--boom .bamboom-phase__full { color: var(--bd-peach); }
body.rum-bim-docs .bamboom-phase--boom p { color: rgba(255, 255, 255, .82); }
body.rum-bim-docs .bamboom-foot { color: var(--bd-ink-2); font-weight: 400; }

body.rum-bim-docs .doc-card { color: var(--bd-ink); padding: 20px; }
body.rum-bim-docs .doc-card > strong {
  color: var(--bd-terracotta);
  font-family: var(--bd-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-transform: none;
}

/* =====================================================================
   GRÁFICO 6 · CDE: WIP de línea, Compartido en papel, Publicado en carbón
   ===================================================================== */
body.rum-bim-docs .cde-board { gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
body.rum-bim-docs .lane {
  min-height: 0;
  border-radius: 12px;
  box-shadow: none;
  padding: 20px;
  color: var(--bd-ink);
}
body.rum-bim-docs .lane h4 { font-family: var(--bd-display); font-weight: 600; font-size: 22px; letter-spacing: -.015em; color: inherit; }
body.rum-bim-docs .lane h4 small {
  display: block;
  margin-top: 4px;
  font-family: var(--bd-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bd-muted);
}
body.rum-bim-docs .lane p,
body.rum-bim-docs .lane li { color: var(--bd-ink-2); font-size: 14px; }
body.rum-bim-docs .lane.wip { background: #ffffff; border: 1px solid var(--bd-rule-strong); }
body.rum-bim-docs .lane.shared { background: var(--bd-paper-2); border: 1px solid var(--bd-rule); }
body.rum-bim-docs .lane.published { background: var(--bd-ink); border: 1px solid var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .lane.published p,
body.rum-bim-docs .lane.published li { color: rgba(255, 255, 255, .84); }
body.rum-bim-docs .lane.published h4 small { color: var(--bd-peach); }
body.rum-bim-docs .lane.archived { background: #ffffff; border: 1px dashed var(--bd-rule-strong); color: var(--bd-ink-2); }
body.rum-bim-docs .lane .chart-popover { color: var(--bd-ink-2); }

/* Referencias al pie de cada sección */
body.rum-bim-docs .refs {
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 22px;
}
body.rum-bim-docs .refs h4 {
  font-family: var(--bd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bd-muted);
}
body.rum-bim-docs .refs-links { gap: 8px; }
body.rum-bim-docs .refs-links a {
  padding: 8px 14px;
  background: #ffffff;
  border: 1px solid var(--bd-rule-strong);
  color: var(--bd-ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .25s var(--bd-ease);
}
body.rum-bim-docs .refs-links a:hover { border-color: var(--bd-ink); }

/* =====================================================================
   GRÁFICO 9 · Flujo de coordinación: papel, filetes y nodos por rol
   ===================================================================== */
body.rum-bim-docs .workflow-connections--strata {
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 12px;
  box-shadow: none;
}
body.rum-bim-docs .workflow-connections__title { color: var(--bd-muted); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; }
body.rum-bim-docs .coord-flow-graph {
  background: #ffffff;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  box-shadow: none;
}
body.rum-bim-docs .workflow-map--strata { box-shadow: none; }
body.rum-bim-docs .workflow-map--strata::after { display: none; }
body.rum-bim-docs .coord-edge__visible { stroke: var(--bd-terracotta); stroke-width: 1.2; }
body.rum-bim-docs .chart-card.is-visible .coord-flow-graph .coord-edge__visible { animation: none; stroke-opacity: .9; }
body.rum-bim-docs .coord-edge.is-active .coord-edge__visible { stroke: var(--bd-ink); stroke-width: 2; filter: none; }
body.rum-bim-docs .coord-edge:focus-within .coord-edge__visible { stroke: var(--bd-ink); }
body.rum-bim-docs .chart-card.is-visible .coord-flow-graph__nodes .coord-graph-node { animation: none; }
body.rum-bim-docs .coord-graph-node {
  box-shadow: none;
  border-radius: 10px;
  font-family: var(--bd-sans);
  text-shadow: none;
}
body.rum-bim-docs .coord-graph-node .step-code { font-family: var(--bd-display); font-weight: 600; letter-spacing: 0; }
body.rum-bim-docs .coord-graph-node--model { background: #ffffff; border: 1px solid var(--bd-rule-strong); color: var(--bd-ink); }
body.rum-bim-docs .coord-graph-node--model .step-code { color: var(--bd-terracotta); }
body.rum-bim-docs .coord-graph-node--coord { background: var(--bd-peach); border: 1px solid var(--bd-peach); color: var(--bd-peach-ink); }
body.rum-bim-docs .coord-graph-node--coord .step-code { color: var(--bd-peach-ink); }
body.rum-bim-docs .coord-graph-node--manager { background: var(--bd-ink); border: 1px solid var(--bd-ink); color: #ffffff; text-shadow: none; }
body.rum-bim-docs .coord-graph-node--manager .step-code { color: var(--bd-peach); }
body.rum-bim-docs .workflow-map--strata .coord-graph-node:hover,
body.rum-bim-docs .workflow-map--strata .coord-graph-node.is-active {
  transform: translate(-50%, calc(-50% - 3px));
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 3px var(--bd-ink);
}
body.rum-bim-docs .coord-graph-node:focus-visible { outline: 2px solid var(--bd-ink); outline-offset: 3px; }
body.rum-bim-docs .coord-flow-graph__keys { border-top: 1px solid var(--bd-rule); color: var(--bd-ink-2); font-weight: 600; font-size: 10.5px; letter-spacing: .1em; }
body.rum-bim-docs .coord-flow-graph__key--model::before { background: #ffffff; border: 1px solid var(--bd-rule-strong); }
body.rum-bim-docs .coord-flow-graph__key--coord::before { background: var(--bd-peach); }
body.rum-bim-docs .coord-flow-graph__key--manager::before { background: var(--bd-ink); }
body.rum-bim-docs .workflow-legend--strata {
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  color: var(--bd-ink-2);
  font-weight: 500;
  font-size: 14px;
}

/* =====================================================================
   COMPONENTES NUEVOS (bd-*)
   ===================================================================== */
body.rum-bim-docs .bd-subhead {
  margin: 36px 0 8px;
  padding-top: 22px;
  border-top: 1px solid var(--bd-rule);
  font-family: var(--bd-display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -.015em;
}
body.rum-bim-docs .bd-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-left: 3px solid var(--bd-peach-2);
  border-radius: 10px;
  color: var(--bd-ink-2);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 90ch;
}
body.rum-bim-docs .bd-note strong { color: var(--bd-ink); }
body.rum-bim-docs .bd-muted { color: var(--bd-muted); font-size: 12px; }

body.rum-bim-docs .bd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
  margin-top: 18px;
}
body.rum-bim-docs .bd-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
body.rum-bim-docs .bd-grid--openbim { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
body.rum-bim-docs .bd-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  min-width: 0;
}
body.rum-bim-docs .bd-card__k {
  font-family: var(--bd-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bd-terracotta);
}
body.rum-bim-docs .bd-card h4 { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
body.rum-bim-docs .bd-card p { margin: 0; color: var(--bd-ink-2); font-size: 14.5px; line-height: 1.55; }
body.rum-bim-docs .bd-card--std h4 { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
body.rum-bim-docs .bd-card__warn {
  margin-top: 6px !important;
  padding-top: 10px;
  border-top: 1px dashed var(--bd-rule-strong);
  font-size: 13.5px !important;
}
body.rum-bim-docs .bd-card__warn strong { color: var(--bd-ink); }
body.rum-bim-docs .bd-card--rum { grid-template-rows: auto auto 1fr auto; }
body.rum-bim-docs .bd-card--ai { background: var(--bd-paper-2); border-color: var(--bd-rule-strong); padding: clamp(20px, 2.2vw, 28px); gap: 12px; }
body.rum-bim-docs .bd-card--ai h4 { font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; }
body.rum-bim-docs .bd-ai { margin-top: 22px; }
body.rum-bim-docs .bd-link {
  justify-self: start;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--bd-rule-strong);
  color: var(--bd-ink);
  text-decoration: none;
  font-family: var(--bd-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: border-color .25s var(--bd-ease), gap .25s var(--bd-ease);
}
body.rum-bim-docs .bd-link::after { content: "→"; letter-spacing: 0; }
body.rum-bim-docs .bd-link:hover,
body.rum-bim-docs .bd-link:focus-visible { border-bottom-color: var(--bd-ink); gap: 12px; outline: none; }

body.rum-bim-docs .bd-list,
body.rum-bim-docs .bd-check { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
body.rum-bim-docs .bd-list li,
body.rum-bim-docs .bd-check li {
  position: relative;
  padding-left: 18px;
  color: var(--bd-ink-2);
  font-size: 14px;
  line-height: 1.5;
}
body.rum-bim-docs .bd-list li::before,
body.rum-bim-docs .bd-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--bd-peach-2);
}
body.rum-bim-docs .bd-check li::before { width: 9px; height: 1.5px; border-radius: 0; background: var(--bd-terracotta); top: .72em; }
body.rum-bim-docs .bd-list strong,
body.rum-bim-docs .bd-check strong { color: var(--bd-ink); font-weight: 600; }

/* LOIN */
body.rum-bim-docs .bd-loin { margin-top: 22px; display: grid; gap: 14px; }
body.rum-bim-docs .bd-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 10px;
}
body.rum-bim-docs .bd-chips li {
  padding: 12px 14px;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--bd-ink-2);
  line-height: 1.45;
}
body.rum-bim-docs .bd-chips strong { display: block; font-family: var(--bd-display); font-weight: 600; font-size: 16px; color: var(--bd-ink); margin-bottom: 2px; }
body.rum-bim-docs .bd-loin__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
body.rum-bim-docs .bd-example {
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
}
body.rum-bim-docs .bd-example__grid {
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 14px 22px;
}
body.rum-bim-docs .bd-example__grid dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bd-muted);
}
body.rum-bim-docs .bd-example__grid dd { margin: 3px 0 0; font-size: 14.5px; color: var(--bd-ink); line-height: 1.45; }

/* ISO 19650: cascada de requisitos */
body.rum-bim-docs .bd-cascade { margin-top: 14px; display: grid; justify-items: stretch; }
body.rum-bim-docs .bd-cascade__row { display: grid; grid-template-columns: minmax(0, 560px); justify-content: center; gap: 12px; }
body.rum-bim-docs .bd-cascade__row--two { grid-template-columns: repeat(2, minmax(0, 420px)); }
body.rum-bim-docs .bd-cascade__arrow {
  position: relative;
  height: 26px;
  width: 1px;
  margin: 0 auto;
  background: var(--bd-rule-strong);
}
body.rum-bim-docs .bd-cascade__arrow::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 0;
  border-left: 4.5px solid transparent;
  border-right: 4.5px solid transparent;
  border-top: 6px solid var(--bd-rule-strong);
}
body.rum-bim-docs .bd-node {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 10px;
}
body.rum-bim-docs .bd-node__k { font-family: var(--bd-display); font-weight: 600; font-size: 24px; letter-spacing: -.01em; color: var(--bd-ink); line-height: 1.05; }
body.rum-bim-docs .bd-node strong { font-size: 14px; font-weight: 600; color: var(--bd-ink); }
body.rum-bim-docs .bd-node span:last-child { font-size: 13.5px; color: var(--bd-ink-2); line-height: 1.45; }
body.rum-bim-docs .bd-node--dark { background: var(--bd-ink); border-color: var(--bd-ink); }
body.rum-bim-docs .bd-node--dark .bd-node__k,
body.rum-bim-docs .bd-node--dark strong { color: #ffffff; }
body.rum-bim-docs .bd-node--dark span:last-child { color: rgba(255, 255, 255, .78); }
body.rum-bim-docs .bd-node--peach { background: var(--bd-peach); border-color: var(--bd-peach); }
body.rum-bim-docs .bd-node--peach .bd-node__k,
body.rum-bim-docs .bd-node--peach strong,
body.rum-bim-docs .bd-node--peach span:last-child { color: var(--bd-peach-ink); }

/* ISO 19650: los 8 pasos */
body.rum-bim-docs .bd-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
body.rum-bim-docs .bd-step {
  display: grid;
  gap: 4px;
  align-content: start;
  text-align: left;
  padding: 12px 14px;
  min-height: 74px;
  background: #ffffff;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 10px;
  color: var(--bd-ink);
  font-family: var(--bd-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .25s var(--bd-ease), background-color .25s var(--bd-ease), color .25s var(--bd-ease);
}
body.rum-bim-docs .bd-step span { font-family: var(--bd-display); font-size: 20px; font-weight: 600; color: var(--bd-terracotta); line-height: 1; }
body.rum-bim-docs .bd-step:hover { border-color: var(--bd-ink); }
body.rum-bim-docs .bd-step.is-active { background: var(--bd-ink); border-color: var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .bd-step.is-active span { color: var(--bd-peach); }
body.rum-bim-docs .bd-step:focus-visible { outline: 2px solid var(--bd-ink); outline-offset: 3px; }

/* ISO 19650: nombre del contenedor */
body.rum-bim-docs .bd-code {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  margin: 16px 0 10px;
}
body.rum-bim-docs .bd-code__seg {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 12px 8px;
  background: #ffffff;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 8px;
  color: var(--bd-ink);
  font-family: var(--bd-display);
  font-size: clamp(18px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .02em;
  cursor: pointer;
  transition: border-color .25s var(--bd-ease), background-color .25s var(--bd-ease), color .25s var(--bd-ease);
}
body.rum-bim-docs .bd-code__seg small {
  font-family: var(--bd-sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bd-muted);
}
body.rum-bim-docs .bd-code__seg:hover { border-color: var(--bd-ink); }
body.rum-bim-docs .bd-code__seg.is-active { background: var(--bd-ink); border-color: var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .bd-code__seg.is-active small { color: var(--bd-peach); }
body.rum-bim-docs .bd-code__seg:focus-visible { outline: 2px solid var(--bd-ink); outline-offset: 3px; }
body.rum-bim-docs .bd-code__dash { font-family: var(--bd-display); font-size: clamp(18px, 2.6vw, 28px); color: var(--bd-muted); padding-top: 10px; }
body.rum-bim-docs .bd-code__meta { display: flex; flex-wrap: wrap; gap: 8px; }
body.rum-bim-docs .bd-code__meta span {
  padding: 5px 12px;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--bd-ink-2);
}
body.rum-bim-docs .bd-code__meta strong { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bd-muted); margin-right: 4px; }
body.rum-bim-docs .bd-code__explain {
  margin: 12px 0 0;
  padding: 14px 16px;
  background: var(--bd-paper-2);
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  color: var(--bd-ink-2);
  font-size: 14.5px;
  max-width: 90ch;
  min-height: 3.2em;
}
body.rum-bim-docs .bd-code__explain strong { color: var(--bd-ink); }

/* Estados del CDE y prioridades */
body.rum-bim-docs .bd-state,
body.rum-bim-docs .bd-prio {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--bd-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.rum-bim-docs .bd-state--wip { color: var(--bd-ink-2); box-shadow: inset 0 0 0 1px var(--bd-rule-strong); }
body.rum-bim-docs .bd-state--shared { background: var(--bd-paper-2); color: var(--bd-ink); box-shadow: inset 0 0 0 1px var(--bd-rule-strong); }
body.rum-bim-docs .bd-state--published { background: var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .bd-state--archived { color: var(--bd-muted); border: 1px dashed var(--bd-rule-strong); }
body.rum-bim-docs .bd-prio--1 { background: var(--bd-ink); color: #ffffff; }
body.rum-bim-docs .bd-prio--2 { background: var(--bd-peach-2); color: var(--bd-peach-ink); }
body.rum-bim-docs .bd-prio--3 { background: var(--bd-paper-2); color: var(--bd-ink-2); box-shadow: inset 0 0 0 1px var(--bd-rule-strong); }

/* Vida de un tema de coordinación */
body.rum-bim-docs .bd-lifecycle {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  counter-reset: bdlife;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 10px;
}
body.rum-bim-docs .bd-lifecycle li {
  counter-increment: bdlife;
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
}
body.rum-bim-docs .bd-lifecycle li::before {
  content: counter(bdlife, decimal-leading-zero);
  font-family: var(--bd-display);
  font-weight: 600;
  font-size: 12px;
  color: var(--bd-terracotta);
}
body.rum-bim-docs .bd-lifecycle li:last-child { background: var(--bd-ink); border-color: var(--bd-ink); }
body.rum-bim-docs .bd-lifecycle li:last-child::before { color: var(--bd-peach); }
body.rum-bim-docs .bd-lifecycle li:last-child strong { color: #ffffff; }
body.rum-bim-docs .bd-lifecycle li:last-child span { color: rgba(255, 255, 255, .8); }
body.rum-bim-docs .bd-lifecycle strong { font-family: var(--bd-display); font-weight: 600; font-size: 17px; color: var(--bd-ink); }
body.rum-bim-docs .bd-lifecycle span { font-size: 13.5px; color: var(--bd-ink-2); line-height: 1.45; }

/* openBIM: cómo se combinan */
body.rum-bim-docs .bd-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
body.rum-bim-docs .bd-flow__item {
  padding: 8px 14px;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--bd-ink-2);
}
body.rum-bim-docs .bd-flow__item strong { color: var(--bd-ink); font-weight: 600; margin-right: 4px; }
body.rum-bim-docs .bd-flow__arrow { color: var(--bd-muted); }

/* 4D a 7D */
body.rum-bim-docs .bd-dims { margin-top: 18px; border-top: 1px solid var(--bd-rule); }
body.rum-bim-docs .bd-dim {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--bd-rule);
}
body.rum-bim-docs .bd-dim__d {
  font-family: var(--bd-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--bd-ink);
}
body.rum-bim-docs .bd-dim h4 { margin: 0 0 6px; font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
body.rum-bim-docs .bd-dim p { margin: 3px 0; font-size: 14.5px; color: var(--bd-ink-2); max-width: 80ch; }
body.rum-bim-docs .bd-dim p strong { color: var(--bd-ink); font-weight: 600; }
body.rum-bim-docs .bd-dim__rum { margin-top: 8px !important; font-size: 13.5px !important; }
body.rum-bim-docs .bd-formulas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  margin-top: 12px;
}
body.rum-bim-docs .bd-formula {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px 16px;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
}
body.rum-bim-docs .bd-formula__k { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--bd-terracotta); }
body.rum-bim-docs .bd-formula strong { font-family: var(--bd-display); font-weight: 600; font-size: 19px; color: var(--bd-ink); letter-spacing: -.01em; }
body.rum-bim-docs .bd-formula span:last-child { font-size: 13px; color: var(--bd-ink-2); line-height: 1.45; }

/* VDC y Last Planner (embudo) */
body.rum-bim-docs .bd-lps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
body.rum-bim-docs .bd-lps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 18px;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  background: #ffffff;
}
body.rum-bim-docs .bd-lps li:nth-child(2) { margin-left: 3%; }
body.rum-bim-docs .bd-lps li:nth-child(3) { margin-left: 6%; background: var(--bd-paper-2); }
body.rum-bim-docs .bd-lps li:nth-child(4) { margin-left: 9%; background: var(--bd-paper-2); }
body.rum-bim-docs .bd-lps li:nth-child(5) { margin-left: 12%; background: var(--bd-ink); border-color: var(--bd-ink); }
body.rum-bim-docs .bd-lps li:nth-child(5) strong { color: #ffffff; }
body.rum-bim-docs .bd-lps li:nth-child(5) p { color: rgba(255, 255, 255, .8); }
body.rum-bim-docs .bd-lps li:nth-child(5) .bd-lps__n { color: var(--bd-peach); }
body.rum-bim-docs .bd-lps__n { font-family: var(--bd-display); font-weight: 600; font-size: 24px; line-height: 1; color: var(--bd-terracotta); }
body.rum-bim-docs .bd-lps strong { font-family: var(--bd-display); font-weight: 600; font-size: 16.5px; color: var(--bd-ink); }
body.rum-bim-docs .bd-lps p { margin: 3px 0 0; font-size: 14px; color: var(--bd-ink-2); }
body.rum-bim-docs .bd-rumline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; }
body.rum-bim-docs .bd-rumline .bd-label { margin-right: 6px; }
body.rum-bim-docs .bd-rumline a {
  padding: 8px 14px;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 999px;
  text-decoration: none;
  color: var(--bd-ink);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .25s var(--bd-ease);
}
body.rum-bim-docs .bd-rumline a:hover { border-color: var(--bd-ink); }

/* Gemelo digital: escalera */
body.rum-bim-docs .bd-ladder {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
  margin-top: 18px;
  align-items: end;
}
body.rum-bim-docs .bd-ladder__step {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  background: #ffffff;
}
body.rum-bim-docs .bd-ladder__step:nth-child(2) { background: var(--bd-paper-2); min-height: 150px; }
body.rum-bim-docs .bd-ladder__step:nth-child(3) { background: #F4ECE2; min-height: 170px; }
body.rum-bim-docs .bd-ladder__step:nth-child(4) { background: var(--bd-ink); border-color: var(--bd-ink); min-height: 190px; }
body.rum-bim-docs .bd-ladder__step:nth-child(4) strong { color: #ffffff; }
body.rum-bim-docs .bd-ladder__step:nth-child(4) p { color: rgba(255, 255, 255, .8); }
body.rum-bim-docs .bd-ladder__step:nth-child(4) .bd-ladder__n { color: var(--bd-peach); }
body.rum-bim-docs .bd-ladder__n { font-family: var(--bd-display); font-weight: 500; font-size: 32px; line-height: 1; color: var(--bd-terracotta); }
body.rum-bim-docs .bd-ladder__step strong { font-family: var(--bd-display); font-weight: 600; font-size: 17px; color: var(--bd-ink); }
body.rum-bim-docs .bd-ladder__step p { margin: 4px 0 0; font-size: 13.5px; color: var(--bd-ink-2); line-height: 1.45; }

/* En RÜM: Revit ⇄ RÜM ⇄ tu IA */
body.rum-bim-docs .bd-system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, 150px) minmax(0, 1.25fr) minmax(110px, 150px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  margin-top: 22px;
}
body.rum-bim-docs .bd-system__node {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 12px;
  background: #ffffff;
}
body.rum-bim-docs .bd-system__node strong { font-family: var(--bd-display); font-weight: 600; font-size: 20px; color: var(--bd-ink); letter-spacing: -.01em; }
body.rum-bim-docs .bd-system__node span:last-child { font-size: 13.5px; color: var(--bd-ink-2); line-height: 1.45; }
body.rum-bim-docs .bd-system__node--core { background: var(--bd-ink); border-color: var(--bd-ink); }
body.rum-bim-docs .bd-system__node--core .bd-card__k { color: var(--bd-peach); }
body.rum-bim-docs .bd-system__node--core strong { color: #ffffff; font-size: 26px; }
body.rum-bim-docs .bd-system__node--core span:last-child { color: rgba(255, 255, 255, .8); }
body.rum-bim-docs .bd-system__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 10px 4px;
}
body.rum-bim-docs .bd-system__link::before {
  content: "⇄";
  font-size: 22px;
  line-height: 1;
  color: var(--bd-terracotta);
}
body.rum-bim-docs .bd-system__link span { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bd-ink); }
body.rum-bim-docs .bd-system__link small { font-size: 11.5px; color: var(--bd-muted); line-height: 1.35; }
body.rum-bim-docs .bd-prompts { display: grid; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--bd-rule-strong); }
body.rum-bim-docs .bd-prompts p {
  margin: 0;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--bd-rule);
  border-radius: 10px;
  color: var(--bd-ink);
  font-size: 14px;
}

/* Errores comunes */
body.rum-bim-docs .bd-errors {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  counter-reset: bderr;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 0 32px;
}
body.rum-bim-docs .bd-errors li {
  counter-increment: bderr;
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 0 16px 46px;
  border-top: 1px solid var(--bd-rule);
}
body.rum-bim-docs .bd-errors li::before {
  content: counter(bderr, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--bd-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--bd-terracotta);
}
body.rum-bim-docs .bd-errors strong { font-family: var(--bd-display); font-weight: 600; font-size: 16.5px; color: var(--bd-ink); letter-spacing: -.005em; }
body.rum-bim-docs .bd-errors span { font-size: 14px; color: var(--bd-ink-2); line-height: 1.5; }
body.rum-bim-docs .bd-errors em { font-style: normal; font-weight: 600; color: var(--bd-ink); }

/* Glosario */
body.rum-bim-docs .bd-glossary-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 14px; }
body.rum-bim-docs .bd-search { display: grid; gap: 6px; flex: 1 1 280px; max-width: 420px; }
body.rum-bim-docs .bd-search input {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bd-rule-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--bd-ink);
  font: 400 15px/1 var(--bd-sans);
  box-sizing: border-box;
}
body.rum-bim-docs .bd-search input:focus { outline: none; border-color: var(--bd-ink); }
body.rum-bim-docs .bd-glossary-count { font-size: 12px; color: var(--bd-muted); padding-bottom: 12px; }
body.rum-bim-docs .bd-glossary {
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 0 32px;
}
body.rum-bim-docs .bd-glossary > div { padding: 12px 0; border-top: 1px solid var(--bd-rule); }
body.rum-bim-docs .bd-glossary > div[hidden] { display: none; }
body.rum-bim-docs .bd-glossary dt { font-family: var(--bd-display); font-weight: 600; font-size: 16px; color: var(--bd-ink); }
body.rum-bim-docs .bd-glossary dd { margin: 3px 0 0; font-size: 14px; color: var(--bd-ink-2); line-height: 1.5; }
body.rum-bim-docs .bd-glossary-empty { margin-top: 12px; color: var(--bd-ink-2); font-size: 14px; }
body.rum-bim-docs .bd-glossary-empty a { color: var(--bd-ink); text-underline-offset: 3px; }

/* Uso de la guía */
body.rum-bim-docs #uso .tips-grid { margin-top: 18px; }
body.rum-bim-docs .tips-list li::marker { color: var(--bd-terracotta); }
body.rum-bim-docs .footer-spacer { height: clamp(48px, 6vw, 88px); }

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1220px) {
  body.rum-bim-docs .hero-aside { position: static; }
  body.rum-bim-docs .bd-system { grid-template-columns: 1fr; }
  body.rum-bim-docs .bd-system__link { flex-direction: row; justify-content: flex-start; text-align: left; padding: 2px 6px 2px 18px; gap: 10px; }
  body.rum-bim-docs .bd-system__link::before { content: "⇅"; font-size: 18px; }
}
@media (max-width: 980px) {
  body.rum-bim-docs .hero-grid { grid-template-columns: 1fr; }
  body.rum-bim-docs .bd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.rum-bim-docs .bd-lps li { margin-left: 0 !important; }
}
@media (max-width: 860px) {
  body.rum-bim-docs .page-shell { padding-left: 16px; padding-right: 16px; }
  body.rum-bim-docs .hero-card { padding: 0; }
  body.rum-bim-docs .hero-aside { padding: 18px; }
  body.rum-bim-docs .chart-card { padding: 0; }
  body.rum-bim-docs .focus-card,
  body.rum-bim-docs .mini-card,
  body.rum-bim-docs .tip-card,
  body.rum-bim-docs .tab-panel { padding: 18px; }
  /* Gráficas anchas: se desplazan dentro de su caja en vez de encogerse hasta no leerse */
  body.rum-bim-docs .macleamy-ops .trend-card,
  body.rum-bim-docs .dimensions-grid .trend-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.rum-bim-docs .macleamy-map { min-width: 620px; }
  body.rum-bim-docs .dimension-map { min-width: 560px; }
  body.rum-bim-docs .matrix { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.rum-bim-docs .bd-cascade__row--two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body.rum-bim-docs .bd-steps { grid-template-columns: 1fr; }
  body.rum-bim-docs .bd-step { min-height: 0; grid-template-columns: 28px 1fr; align-items: center; }
  body.rum-bim-docs .bd-dim { grid-template-columns: 1fr; gap: 6px; }
  body.rum-bim-docs .bd-code__seg { padding: 8px 9px 6px; }
  body.rum-bim-docs .bd-code { gap: 3px; }
  body.rum-bim-docs .bd-code__dash { padding-top: 8px; }
  body.rum-bim-docs .matrix table { min-width: 520px; }
  body.rum-bim-docs .bd-ladder__step { min-height: 0 !important; }
  body.rum-bim-docs .hero-actions .btn { width: 100%; }
  body.rum-bim-docs .bd-glossary-tools .btn { width: 100%; }
  body.rum-bim-docs .bd-errors li { padding-left: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  body.rum-bim-docs .bd-pillar:hover,
  body.rum-bim-docs .btn.primary:hover { transform: none; }
}
