/* DL Tech · Riesgo: integra las subpáginas de la metodología (diseño Tailwind anterior) al diseño del sitio.
   Se carga al final del <head>, después de style.min.css, movil-subpaginas.css y contraste-claro.css.
   1) Tokens del sitio (copiados de riesgo/index.html), oscuro por defecto y claro por preferencia o por [data-theme].
   2) Encabezado, sub-navegación de fases y pie del sitio.
   3) Remapeo de las clases de color de Tailwind a los tokens. Los selectores "html body .clase" superan a la
      utilidad base de Tailwind; las variantes :hover se remapean aparte.
   4) Componentes propios de las páginas (tarjetas, matriz RCM, NormaNexus). */

/* ---------- 1. Tokens ---------- */
:root{
  color-scheme: dark;
  --bg:#0A0E12; --bg-2:#0E141A; --surface:#121A21; --line:#1E2A34; --line-2:#2A3a47;
  --ink:#E6EDF0; --muted:#8D9CA7; --faint:#818F9A;
  --def:#B9B2FF; --def-soft:rgba(185,178,255,.12);
  --off:#F0A36B; --off-soft:rgba(240,163,107,.12);
  --ok:#7FD4A6; --warn:#F2C66D; --crit:#F2877E;
  --glow:rgba(185,178,255,.18);
  --display:"Anybody", "Arial Narrow", system-ui, sans-serif;
  --body:"Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r:14px;
  --ease:cubic-bezier(.2,.7,.1,1);
  --nav-h:calc(60px + env(safe-area-inset-top,0px));
  --shadow-c:rgba(0,0,0,.5);

  /* Colores semánticos en oscuro: fondos translúcidos y textos claros (AA sobre --surface) */
  --red-50:color-mix(in oklab,#ef4444 14%,transparent);    --red-100:color-mix(in oklab,#ef4444 22%,transparent);    --red-200:color-mix(in oklab,#ef4444 42%,transparent);    --red-tx:#fca5a5;
  --orange-50:color-mix(in oklab,#f97316 14%,transparent); --orange-100:color-mix(in oklab,#f97316 22%,transparent); --orange-200:color-mix(in oklab,#f97316 42%,transparent); --orange-tx:#fdba74;
  --amber-50:color-mix(in oklab,#f59e0b 14%,transparent);  --amber-100:color-mix(in oklab,#f59e0b 22%,transparent);  --amber-200:color-mix(in oklab,#f59e0b 42%,transparent);  --amber-tx:#fcd34d;
  --yellow-50:color-mix(in oklab,#eab308 14%,transparent); --yellow-100:color-mix(in oklab,#eab308 22%,transparent); --yellow-200:color-mix(in oklab,#eab308 42%,transparent); --yellow-tx:#fde047;
  --emerald-50:color-mix(in oklab,#10b981 14%,transparent);--emerald-100:color-mix(in oklab,#10b981 22%,transparent);--emerald-200:color-mix(in oklab,#10b981 42%,transparent);--emerald-tx:#6ee7b7;
  --blue-tx:#93c5fd;
  --indigo-50:color-mix(in oklab,#6366f1 16%,transparent); --indigo-200:color-mix(in oklab,#818cf8 42%,transparent); --indigo-tx:#a5b4fc;
  --purple-50:color-mix(in oklab,#a855f7 16%,transparent); --purple-200:color-mix(in oklab,#c084fc 42%,transparent); --purple-tx:#d8b4fe;
  --sky-tx:#7dd3fc;
  --rose-tx:#fda4af;
  /* Niveles de la matriz RCM y severidades de la calculadora (fase 6) */
  --lv-critico:#f87171; --lv-alto:#fb923c; --lv-medio:#facc15; --lv-bajo:#34d399;
  --sev-leve:#fcd34d; --sev-grave:#fdba74; --sev-muygrave:#fda4af; --sev-reinc:#fca5a5;

  /* Derivados (se recalculan con el tema porque dependen de los tokens base) */
  --ink-2:color-mix(in oklab,var(--ink) 78%,var(--muted));
  --surface-2:color-mix(in oklab,var(--bg-2) 55%,var(--surface));
  --surface-3:color-mix(in oklab,var(--line) 60%,var(--surface));
  --def-hover:color-mix(in oklab,var(--def) 82%,var(--ink));
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    color-scheme: light;
    --bg:#F1F3F2; --bg-2:#E8ECEB; --surface:#FFFFFF; --line:#D5DDDF; --line-2:#BCC8CC;
    --ink:#0D1419; --muted:#4F5E68; --faint:#56646D;
    --def:#4B3FB3; --def-soft:rgba(75,63,179,.09);
    --off:#A44C17; --off-soft:rgba(180,84,28,.09);
    --ok:#1E7A4C; --warn:#865C00; --crit:#B3342B;
    --glow:rgba(75,63,179,.12);
    --shadow-c:rgba(15,23,42,.12);
    --red-50:#fef2f2; --red-100:#fee2e2; --red-200:#fecaca; --red-tx:#b91c1c;
    --orange-50:#fff7ed; --orange-100:#ffedd5; --orange-200:#fed7aa; --orange-tx:#c2410c;
    --amber-50:#fffbeb; --amber-100:#fef3c7; --amber-200:#fde68a; --amber-tx:#92400e;
    --yellow-50:#fefce8; --yellow-100:#fef9c3; --yellow-200:#fef08a; --yellow-tx:#854d0e;
    --emerald-50:#ecfdf5; --emerald-100:#d1fae5; --emerald-200:#a7f3d0; --emerald-tx:#047857;
    --blue-tx:#1d4ed8;
    --indigo-50:#eef2ff; --indigo-200:#c7d2fe; --indigo-tx:#4338ca;
    --purple-50:#faf5ff; --purple-200:#e9d5ff; --purple-tx:#7e22ce;
    --sky-tx:#0369a1;
    --rose-tx:#be123c;
    --lv-critico:#DC2626; --lv-alto:#EA580C; --lv-medio:#CA8A04; --lv-bajo:#059669;
    --sev-leve:#b45309; --sev-grave:#c2410c; --sev-muygrave:#be123c; --sev-reinc:#b91c1c;
  }
}
:root[data-theme="light"]{
  color-scheme: light;
  --bg:#F1F3F2; --bg-2:#E8ECEB; --surface:#FFFFFF; --line:#D5DDDF; --line-2:#BCC8CC;
  --ink:#0D1419; --muted:#4F5E68; --faint:#56646D;
  --def:#4B3FB3; --def-soft:rgba(75,63,179,.09);
  --off:#A44C17; --off-soft:rgba(180,84,28,.09);
  --ok:#1E7A4C; --warn:#865C00; --crit:#B3342B;
  --glow:rgba(75,63,179,.12);
  --shadow-c:rgba(15,23,42,.12);
  --red-50:#fef2f2; --red-100:#fee2e2; --red-200:#fecaca; --red-tx:#b91c1c;
  --orange-50:#fff7ed; --orange-100:#ffedd5; --orange-200:#fed7aa; --orange-tx:#c2410c;
  --amber-50:#fffbeb; --amber-100:#fef3c7; --amber-200:#fde68a; --amber-tx:#92400e;
  --yellow-50:#fefce8; --yellow-100:#fef9c3; --yellow-200:#fef08a; --yellow-tx:#854d0e;
  --emerald-50:#ecfdf5; --emerald-100:#d1fae5; --emerald-200:#a7f3d0; --emerald-tx:#047857;
  --blue-tx:#1d4ed8;
  --indigo-50:#eef2ff; --indigo-200:#c7d2fe; --indigo-tx:#4338ca;
  --purple-50:#faf5ff; --purple-200:#e9d5ff; --purple-tx:#7e22ce;
  --sky-tx:#0369a1;
  --rose-tx:#be123c;
  --lv-critico:#DC2626; --lv-alto:#EA580C; --lv-medio:#CA8A04; --lv-bajo:#059669;
  --sev-leve:#b45309; --sev-grave:#c2410c; --sev-muygrave:#be123c; --sev-reinc:#b91c1c;
}

/* ---------- Base ---------- */
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--nav-h) + 72px)}
html body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
html body .font-sans{font-family:var(--body)}
html body .font-mono{font-family:var(--mono)}
h1,h2,h3{font-family:var(--display);letter-spacing:-.01em;text-wrap:balance}
h1{font-stretch:112%}
:is(h1,h2,h3).font-extrabold{font-weight:600}
:is(h1,h2,h3).font-bold{font-weight:600}
::selection{background:var(--def);color:var(--bg)}
html body :focus-visible{outline:2px solid var(--def)!important;outline-offset:3px}
html body ::placeholder{color:var(--faint);opacity:1}
html body input,html body select,html body textarea{accent-color:var(--def)}
.wrap{max-width:1180px;margin:0 auto;padding-inline:clamp(16px,4vw,40px)}

/* ---------- 2a. Encabezado del sitio (copiado de riesgo/index.html) ---------- */
.nav{position:fixed;top:0;left:0;right:0;z-index:40;padding-top:env(safe-area-inset-top,0px);
  background:color-mix(in oklab,var(--bg) 78%,transparent);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;transition:border-color .3s}
.nav.scrolled{border-bottom-color:var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:60px;gap:16px}
.nav .brand{display:flex;align-items:center;gap:10px;min-width:0}
.nav .logo{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-family:var(--display);font-stretch:140%;font-weight:600;font-size:17px;letter-spacing:.02em;white-space:nowrap;flex:none}
.nav .logo svg{flex:none;display:block}
.nav .sub{font-family:var(--mono);font-size:12.5px;color:var(--def);letter-spacing:.04em;white-space:nowrap}
.nav-links{display:flex;gap:4px;align-items:center}
.nav-links a{text-decoration:none;color:var(--muted);font-size:14px;padding:8px 12px;border-radius:999px;transition:color .2s,background .2s;white-space:nowrap}
.nav-links a:hover,.nav-links a.on{color:var(--ink);background:var(--def-soft)}
.nav-links a.home{font-family:var(--mono);font-size:12.5px}
.nav-right{display:flex;gap:8px;align-items:center}
.icon-btn{width:36px;height:36px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer;transition:color .2s,border-color .2s;flex:none}
.icon-btn:hover{color:var(--ink);border-color:var(--line-2)}
.nav .btn{display:inline-flex;align-items:center;gap:10px;font:500 14px/1 var(--body);text-decoration:none;padding:13px 18px;border-radius:999px;border:1px solid var(--line-2);color:var(--ink);background:transparent;cursor:pointer;transition:transform .25s var(--ease),background .25s,border-color .25s;white-space:nowrap}
.nav .btn:hover{transform:translateY(-1px);border-color:var(--def)}
.nav .btn.primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.nav .btn.primary:hover{background:var(--def);border-color:var(--def)}
.nav .btn .arr{transition:transform .25s var(--ease)}
.nav .btn:hover .arr{transform:translateX(3px)}
.back-s{display:none;font-family:var(--mono);font-size:12px;color:var(--muted);text-decoration:none;white-space:nowrap;padding:10px 4px}
@media (max-width:1020px){.nav-links{display:none}.back-s{display:inline}}
@media (max-width:460px){.nav-right .btn{display:none}}
@media (min-width:901px) and (max-width:1320px){.nav-links{gap:0}.nav-links a{padding-inline:9px;font-size:13.5px}}
@media (max-width:420px){.nav .sub{display:none}}

/* Selector de tema con etiqueta e iconos (igual que la capa común de la portada) */
#themeBtn.dlt-theme{width:auto;padding:0 12px 0 10px;gap:8px;display:inline-flex;align-items:center;font:500 12.5px/1 var(--body)}
#themeBtn.dlt-theme .dlt-ico{position:relative;width:16px;height:16px;display:inline-block}
#themeBtn.dlt-theme .dlt-ico svg{position:absolute;inset:0;display:block;transition:opacity .45s,transform .6s var(--ease)}
#themeBtn.dlt-theme[data-now="dark"] .dlt-sun{opacity:0;transform:rotate(-90deg) scale(.6)}
#themeBtn.dlt-theme[data-now="light"] .dlt-moon{opacity:0;transform:rotate(90deg) scale(.6)}
@media (max-width:520px){#themeBtn.dlt-theme .dlt-lbl{display:none}#themeBtn.dlt-theme{padding:0;width:40px;height:40px;justify-content:center}}

/* ---------- 2b. Sub-navegación de fases ---------- */
.phases{position:sticky;top:var(--nav-h);margin-top:var(--nav-h);z-index:35;
  background:color-mix(in oklab,var(--bg) 86%,transparent);backdrop-filter:blur(14px) saturate(1.2);-webkit-backdrop-filter:blur(14px);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.phases-in{position:relative;display:flex;gap:4px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;
  max-width:1180px;margin:0 auto;padding:6px clamp(16px,4vw,40px)}
.phases-in::-webkit-scrollbar{display:none}
.phases-in>a:first-child{margin-left:auto}
.phases-in>a:last-child{margin-right:auto}
.phases a{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid transparent;
  color:var(--muted);text-decoration:none;font:500 14px/1 var(--body);white-space:nowrap;transition:color .2s,background .2s,border-color .2s}
.phases a .n{font-family:var(--mono);font-size:12px;color:var(--faint)}
.phases a:hover{color:var(--ink);background:var(--def-soft)}
.phases a[aria-current="page"]{color:var(--ink);background:var(--def-soft);border-color:color-mix(in oklab,var(--def) 50%,transparent)}
.phases a[aria-current="page"] .n{color:var(--def)}

/* ---------- 2c. Pie del sitio (copiado de riesgo/index.html) ---------- */
footer.site{margin-top:48px;padding-block:48px calc(40px + env(safe-area-inset-bottom,0px));color:var(--faint);font-size:13px;font-family:var(--body)}
footer.site .wrap{display:flex;flex-wrap:wrap;gap:16px 32px;justify-content:space-between;border-top:1px solid var(--line);padding-top:28px}
footer.site a{color:var(--muted);text-decoration:none}
footer.site a:hover{color:var(--ink)}

/* ---------- 3. Remapeo de clases de Tailwind ---------- */
/* Fondos neutros */
html body .bg-white{background-color:var(--surface)}
html body .bg-white\/90,html body .bg-white\/85{background-color:color-mix(in oklab,var(--surface) 88%,transparent)}
html body .bg-slatebg,html body .bg-slate-50{background-color:var(--surface-2)}
html body .bg-slatebg\/20,html body .bg-slatebg\/30{background-color:transparent}
html body .bg-slate-100,html body .bg-slate-800\/30{background-color:var(--surface-3)}
html body .bg-slate-200{background-color:var(--line)}
html body .cyber-grid{background-image:none}

/* Textos neutros: la escala slate de estas páginas era de tema claro; se lleva a los tokens */
html body .text-ink,html body .text-slate-900,html body .text-slate-800,html body .text-slate-200,html body .text-slate-100{color:var(--ink)}
html body .text-slate-700{color:var(--ink-2)}
html body .text-slate-600,html body .text-slate-500,html body .text-slate-300,html body .text-muted{color:var(--muted)}
html body .text-slate-400{color:var(--faint)}

/* Bordes neutros */
html body .border-slate-50,html body .border-slate-100{border-color:color-mix(in oklab,var(--line) 75%,transparent)}
html body .border-slate-200,html body .border-slate-200\/60,html body .border-slate-800,html body .border-white{border-color:var(--line)}
html body .border-slate-300{border-color:var(--line-2)}
html body .divide-slate-100>:not([hidden])~:not([hidden]){border-color:color-mix(in oklab,var(--line) 75%,transparent)}

/* Marca: el morado de la sección pasa a --def */
html body .text-brand{color:var(--def)}
html body .bg-brand{background-color:var(--def);color:var(--bg)}
html body .bg-brand.text-white,html body .bg-brand .text-white{color:var(--bg)}
html body .border-brand{border-color:var(--def)}
html body .border-l-brand{border-left-color:var(--def)}
html body .text-brandEmerald{color:var(--ok)}
html body .bg-brandEmerald{background-color:var(--ok)}
html body .text-brandGold{color:var(--warn)}

/* Sombras suaves que se ven en ambos temas */
html body .shadow-sm{--tw-shadow:0 1px 2px 0 var(--shadow-c)}
html body .shadow-md,html body .shadow-lg{--tw-shadow:0 14px 34px -20px var(--shadow-c)}
html body .shadow-inner{--tw-shadow:inset 0 2px 4px 0 color-mix(in oklab,var(--shadow-c) 50%,transparent)}

/* Colores semánticos */
html body .bg-red-50{background-color:var(--red-50)}
html body .border-red-100,html body .border-red-200{border-color:var(--red-200)}
html body .text-red-600,html body .text-red-700{color:var(--red-tx)}
html body .bg-orange-50{background-color:var(--orange-50)}
html body .border-orange-100,html body .border-orange-200{border-color:var(--orange-200)}
html body .text-orange-700{color:var(--orange-tx)}
html body .text-amber-500,html body .text-amber-600,html body .text-amber-700{color:var(--amber-tx)}
html body .bg-yellow-50{background-color:var(--yellow-50)}
html body .border-yellow-100,html body .border-yellow-200{border-color:var(--yellow-200)}
html body .text-yellow-700,html body .text-yellow-800{color:var(--yellow-tx)}
html body .bg-emerald-50{background-color:var(--emerald-50)}
html body .bg-emerald-50\/20{background-color:color-mix(in srgb,var(--emerald-50) 40%,transparent)}
html body .border-emerald-100{border-color:color-mix(in srgb,var(--emerald-200) 60%,transparent)}
html body .border-emerald-200{border-color:var(--emerald-200)}
html body .text-emerald-400,html body .text-emerald-500,html body .text-emerald-600,html body .text-emerald-700{color:var(--emerald-tx)}
html body .bg-blue-50{background-color:var(--def-soft)}
html body .border-blue-100{border-color:color-mix(in oklab,var(--def) 28%,transparent)}
html body .text-blue-600{color:var(--blue-tx)}
html body .bg-indigo-50{background-color:var(--indigo-50)}
html body .bg-indigo-50\/30{background-color:color-mix(in srgb,var(--indigo-50) 45%,transparent)}
html body .bg-indigo-50\/40{background-color:color-mix(in srgb,var(--indigo-50) 55%,transparent)}
html body .bg-indigo-50\/50{background-color:color-mix(in srgb,var(--indigo-50) 65%,transparent)}
html body .border-indigo-100{border-color:color-mix(in srgb,var(--indigo-200) 60%,transparent)}
html body .border-indigo-200\/60{border-color:color-mix(in srgb,var(--indigo-200) 70%,transparent)}
html body .text-indigo-600,html body .text-indigo-700{color:var(--indigo-tx)}
html body .bg-purple-50{background-color:var(--purple-50)}
html body .bg-purple-50\/40{background-color:color-mix(in srgb,var(--purple-50) 55%,transparent)}
html body .border-purple-200{border-color:var(--purple-200)}
html body .text-sky-500,html body .text-sky-600{color:var(--sky-tx)}

/* Variantes de interacción */
html body .hover\:bg-slate-200\/60:hover{background-color:var(--surface-3)}
html body .hover\:bg-slate-50:hover,html body .hover\:bg-slatebg:hover{background-color:var(--surface-2)}
html body .hover\:bg-red-100:hover{background-color:var(--red-100)}
html body .hover\:bg-orange-100:hover{background-color:var(--orange-100)}
html body .hover\:bg-yellow-100:hover{background-color:var(--yellow-100)}
html body .hover\:bg-emerald-100:hover{background-color:var(--emerald-100)}
html body .hover\:bg-indigo-700:hover,html body .hover\:bg-slate-800:hover{background-color:var(--def-hover)}
html body .hover\:border-slate-300:hover{border-color:var(--line-2)}
html body .hover\:border-slate-400:hover,html body .group:hover .group-hover\:border-slate-400{border-color:color-mix(in oklab,var(--faint) 70%,var(--line))}
html body .hover\:border-brand:hover,html body .focus\:border-brand:focus{border-color:var(--def)}
html body .hover\:text-brand:hover{color:var(--def)}
html body .hover\:text-slate-900:hover,html body .hover\:text-white:hover{color:var(--ink)}
html body .peer:checked~.peer-checked\:border-brand{border-color:var(--def)}
html body .peer:checked~.peer-checked\:bg-slatebg{background-color:var(--def-soft)}
html body .peer:focus-visible~*{outline:2px solid var(--def);outline-offset:2px}
/* Calculadora (fase 6): el punto del nivel elegido se ve y el foco de teclado se nota */
html body label:has(>input:checked) .scale-0{--tw-scale-x:1;--tw-scale-y:1}
html body label:has(>input:focus-visible){outline:2px solid var(--def);outline-offset:2px}

/* Fase 6: referencias de tipo de cambio (opacity-70 sobre gris no llegaba a AA) */
html body .text-slate-400.opacity-70{opacity:1}

/* ---------- 4. Componentes de las páginas ---------- */
.grc-rounded{border-radius:var(--r)}
.special-hover-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  transition:transform .3s var(--ease),box-shadow .3s,border-color .3s}
.special-hover-card:hover{transform:translateY(-4px);border-color:color-mix(in oklab,var(--def) 55%,var(--line));box-shadow:0 18px 40px -24px var(--shadow-c)}
output{font-feature-settings:"tnum";font-variant-numeric:tabular-nums}
.animate-reveal{animation:reveal .8s cubic-bezier(.4,0,.2,1) forwards}
@keyframes reveal{0%{opacity:0;transform:translateY(30px)}100%{opacity:1;transform:translateY(0)}}

/* Fase 0: alternativas del cuestionario con área táctil holgada y respuesta visible al pasar */
.diagnostic-step button{min-height:48px}
html body .diagnostic-step button.bg-slatebg:hover{border-color:color-mix(in oklab,var(--def) 45%,var(--line))}
#step-result button{min-height:44px}

/* Elementos con onclick que no son botones (celdas del mapa de calor): foco visible */
[data-clic][tabindex]{cursor:pointer}

/* Fase 3: matriz RCM en tarjetas */
.rcm-tab{padding:6px 10px;border-radius:6px;color:var(--muted);transition:background-color .2s,color .2s;min-height:40px}
.rcm-tab:hover{color:var(--ink);background:var(--surface-3)}
.rcm-tab[aria-pressed="true"]{background:var(--ink);color:var(--bg);font-weight:700}
.rcm-tab .n{margin-left:5px;font-weight:400}
.rcm-card{border-left-width:4px!important}
.rcm-card.lv-critico{border-left-color:var(--lv-critico)!important}
.rcm-card.lv-alto{border-left-color:var(--lv-alto)!important}
.rcm-card.lv-medio{border-left-color:var(--lv-medio)!important}
.rcm-card.lv-bajo{border-left-color:var(--lv-bajo)!important}
@media (min-width:1024px){.rcm-heat{position:sticky!important;top:calc(var(--nav-h) + 76px)}}
@media (max-width:480px){.rcm-tab{padding:6px 7px}.rcm-tab .n{display:none}}

/* Imágenes de fondo de los encabezados de fase: más tenues para no competir con el texto (más aún en oscuro) */
html body .bg-cover.pointer-events-none{opacity:.14}
@media not (prefers-color-scheme: light){:root:not([data-theme="light"]) body .bg-cover.pointer-events-none{opacity:.07}}
:root[data-theme="dark"] body .bg-cover.pointer-events-none{opacity:.07}

/* Fase 6: montos largos (p. ej. $330.000.000) no se salen de su recuadro en celular */
#total-usd,#total-local{overflow-wrap:anywhere}
@media (max-width:480px){html body .grid:has(>div>#total-usd){grid-template-columns:1fr}#total-usd,#total-local{font-size:1.25rem;line-height:1.75rem}}

/* NormaNexus */
.nx-chip{display:inline-flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:9999px;border:1px solid var(--line);background:var(--surface);font-family:var(--mono);font-size:10px;line-height:1.4;color:var(--ink-2);cursor:pointer;transition:border-color .2s,color .2s}
.nx-chip:hover{border-color:var(--def);color:var(--def)}
button.nx-chip{min-height:28px}
#nx-expandir,#nx-contraer{min-height:36px;padding-inline:.75rem}
.nx-row{border-left:2px solid var(--line)}
.nx-row.nivel-1{border-left-color:var(--def)}
.nx-row.nivel-2{border-left-color:color-mix(in oklab,var(--def) 45%,var(--line))}
.nx-row[data-oculto="1"]{display:none}
.nx-toggle{cursor:pointer;user-select:none}
.nx-mark{background:color-mix(in oklab,var(--def) 24%,transparent);color:var(--ink);border-radius:3px;padding:0 2px}
details.nx-det>summary{list-style:none;cursor:pointer}
details.nx-det>summary::-webkit-details-marker{display:none}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .special-hover-card:hover,.nav .btn:hover{transform:none}
}
