/* Academia Wolk-us — estilos propios del portal de capacitación.
   Mismos tokens de marca que style.css (naranja del isotipo + azul marino del
   wordmark), Satoshi para títulos e Inter para el cuerpo. Un solo acento. */

:root {
    --wu-accent: #FF3D00;
    --wu-accent-2: #ff6a33;
    --wu-accent-soft: rgba(255, 61, 0, .09);
    --wu-accent-line: rgba(255, 61, 0, .28);
    --wu-navy: #0A0A6E;
    --wu-navy-deep: #06063F;
    --wu-navy-soft: rgba(10, 10, 110, .06);
    --wu-carbon: #0a0a0c;
    --wu-carbon-alt: #0b0b22;

    --bg: #f6f7fb;
    --surface: #ffffff;
    --surface-2: #f9fafb;
    --line: #e6e8ef;
    --line-2: #d6d9e3;
    --ink: #111827;
    --ink-2: #374151;
    --muted: #6b7280;

    /* Estados: los mismos colores que un tablero de supervisor */
    --st-0: #a3a8b5;
    --st-1: #f59e0b;
    --st-2: #22c55e;
    --st-bad: #ef4444;

    --r: 14px;
    --r-lg: 22px;
    --sh-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
    --sh-2: 0 10px 30px -12px rgba(16, 24, 40, .18);
    --sh-3: 0 30px 60px -20px rgba(6, 6, 63, .35);
    --top: 64px;
    --side: 296px;
    --font-d: 'Satoshi', 'Poppins', system-ui, sans-serif;
    --font-b: 'Inter', system-ui, sans-serif;
    --font-m: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--font-b); font-size: 16px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--wu-accent); color: #fff; }
h1, h2, h3, h4 { font-family: var(--font-d); letter-spacing: -.02em; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wu-accent); outline-offset: 2px; border-radius: 6px; }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }

.ac-saltar { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--wu-accent); color: #fff; padding: .5rem 1rem; border-radius: 999px; }
.ac-saltar:focus { left: 8px; }
.ac-noscript { padding: 2rem; text-align: center; }

/* ───────────────────────── Barra superior ───────────────────────── */
.ac-lectura { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.ac-lectura span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--wu-accent), #ffb086); transition: width .1s linear; }

.ac-top {
    position: sticky; top: 0; z-index: 50; height: var(--top);
    display: flex; align-items: center; gap: 14px; padding: 0 18px;
    background: rgba(6, 6, 63, .94); color: #fff;
    -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ac-top-menu { display: none; background: transparent; border: 0; padding: 8px; border-radius: 10px; color: #fff; }
.ac-top-menu:hover { background: rgba(255, 255, 255, .08); }
.ac-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.ac-marca img { width: 34px; height: 34px; filter: brightness(0) invert(1); object-fit: contain; }
.ac-marca span { font-family: var(--font-d); font-size: 1.02rem; white-space: nowrap; color: rgba(255, 255, 255, .7); }
.ac-marca b { color: #fff; font-weight: 700; }

.ac-tabs { display: flex; gap: 2px; margin-left: 10px; }
.ac-tabs a {
    display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px;
    text-decoration: none; font-size: .88rem; font-weight: 500; color: rgba(255, 255, 255, .72);
    transition: background .2s, color .2s;
}
.ac-tabs a svg.lucide { width: 16px; height: 16px; }
.ac-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.ac-tabs a.is-on { color: #fff; background: rgba(255, 61, 0, .18); box-shadow: inset 0 0 0 1px rgba(255, 61, 0, .45); }

.ac-buscar { position: relative; margin-left: auto; display: flex; align-items: center; width: min(360px, 32vw); }
.ac-buscar > svg.lucide { position: absolute; left: 12px; width: 16px; height: 16px; color: rgba(255, 255, 255, .5); pointer-events: none; }
.ac-buscar input {
    width: 100%; height: 40px; padding: 0 40px 0 36px; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: .9rem;
    transition: background .2s, border-color .2s;
}
.ac-buscar input::placeholder { color: rgba(255, 255, 255, .45); }
.ac-buscar input:focus { outline: none; background: rgba(255, 255, 255, .12); border-color: var(--wu-accent); }
.ac-buscar kbd {
    position: absolute; right: 10px; font-family: var(--font-m); font-size: .72rem; color: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 0 6px; line-height: 1.5;
}
.ac-buscar-res {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 320px; max-height: 70vh; overflow: auto;
    background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--sh-3); border: 1px solid var(--line);
    padding: 6px;
}
.ac-buscar-res p.ac-res-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 10px 4px; font-weight: 600; }
.ac-buscar-res a {
    display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-size: .9rem;
}
.ac-buscar-res a small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 1px; }
.ac-buscar-res a svg.lucide { margin-top: 3px; color: var(--wu-accent); width: 16px; height: 16px; }
.ac-buscar-res a:hover, .ac-buscar-res a.is-sel { background: var(--wu-accent-soft); }
.ac-buscar-res .ac-res-vacio { padding: 14px; color: var(--muted); font-size: .9rem; }

.ac-anillo { position: relative; width: 44px; height: 44px; flex-shrink: 0; text-decoration: none; }
.ac-anillo svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.ac-anillo circle { fill: none; stroke-width: 3.2; }
.ac-anillo-bg { stroke: rgba(255, 255, 255, .14); }
.ac-anillo-fg { stroke: var(--wu-accent); stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ac-anillo b { position: absolute; inset: 0; display: grid; place-items: center; font-size: .68rem; font-weight: 700; }

/* ───────────────────────── Estructura ───────────────────────── */
.ac-shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.ac-side {
    position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; overscroll-behavior: contain;
    background: var(--surface); border-right: 1px solid var(--line); padding: 18px 12px 24px;
    display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin;
}
.ac-side-cab { padding: 0 8px 4px; }
.ac-side-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.ac-leyenda { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: var(--muted); }
.ac-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.ac-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--st-0); display: inline-block; flex-shrink: 0; }
.ac-dot[data-st="1"] { background: var(--st-1); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.ac-dot[data-st="2"] { background: var(--st-2); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }

.ac-grupo { margin-top: 8px; }
.ac-grupo-t {
    display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 6px;
    font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 700;
}
.ac-grupo-t small { font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.ac-item {
    display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 10px; text-decoration: none; font-size: .86rem; line-height: 1.3; color: var(--ink-2);
    transition: background .15s;
}
.ac-item:hover { background: var(--surface-2); }
.ac-item.is-on { background: var(--wu-accent-soft); color: var(--ink); }
.ac-item.is-on .ac-item-n { background: var(--wu-accent); color: #fff; border-color: var(--wu-accent); }
.ac-item.is-ruta .ac-item-n { border-color: var(--wu-accent-line); }
.ac-item-n {
    width: 52px; height: 26px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; white-space: nowrap;
    font-size: .7rem; font-weight: 700; font-family: var(--font-d); letter-spacing: .02em; border: 1px solid var(--line); background: var(--surface);
}
.ac-side-pie { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.ac-side-pie a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-size: .86rem; color: var(--ink-2); }
.ac-side-pie a:hover { background: var(--surface-2); }
.ac-side-pie svg.lucide { width: 16px; height: 16px; color: var(--muted); }

.ac-main { min-width: 0; outline: none; }
.ac-vista { animation: ac-entrar .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes ac-entrar { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ac-wrap { max-width: 1120px; margin: 0 auto; padding: 40px 32px 80px; }

/* ───────────────────────── Inicio ───────────────────────── */
.ac-hero {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 61, 0, .28), transparent 60%),
                radial-gradient(900px 600px at -10% 120%, rgba(60, 60, 220, .35), transparent 60%),
                linear-gradient(160deg, var(--wu-navy-deep) 0%, #03031f 60%, var(--wu-carbon) 100%);
}
.ac-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
    background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px); background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.ac-hero-in { max-width: 1180px; margin: 0 auto; padding: 64px 32px 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.ac-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: #ffb59c; background: rgba(255, 61, 0, .12); border: 1px solid rgba(255, 61, 0, .35); padding: 6px 12px; border-radius: 999px;
}
.ac-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--wu-accent); box-shadow: 0 0 12px var(--wu-accent); animation: ac-latido 2s infinite; }
@keyframes ac-latido { 50% { opacity: .35; } }
.ac-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 900; margin: 18px 0 18px; letter-spacing: -.035em; }
.ac-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff3d00, #ff9a6b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ac-hero-sub { font-size: 1.1rem; color: rgba(255, 255, 255, .74); max-width: 560px; }
.ac-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ac-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
    text-decoration: none; font-weight: 600; font-size: .95rem; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;
}
.ac-btn svg.lucide { width: 17px; height: 17px; }
.ac-btn--pri { background: var(--wu-accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 61, 0, .8); }
.ac-btn--pri:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(255, 61, 0, .95); }
.ac-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.ac-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.ac-btn--sec { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.ac-btn--sec:hover { border-color: var(--wu-accent); color: var(--wu-accent); }
.ac-btn--sm { padding: 8px 14px; font-size: .86rem; }
.ac-btn[disabled] { opacity: .45; pointer-events: none; }

.ac-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 38px; background: rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.ac-cifras div { background: rgba(6, 6, 40, .55); padding: 16px 16px 14px; }
.ac-cifras b { display: block; font-family: var(--font-d); font-size: 1.9rem; font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.ac-cifras span { font-size: .78rem; color: rgba(255, 255, 255, .6); }

/* Hub: los canales convergen en una sola plataforma */
.ac-hub { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-left: auto; }
.ac-hub svg { width: 100%; height: 100%; overflow: visible; }
.ac-hub-linea { stroke: rgba(255, 255, 255, .14); stroke-width: 1.4; fill: none; stroke-dasharray: 3 6; }
.ac-hub-linea.is-on { stroke: var(--wu-accent); stroke-dasharray: none; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(255, 61, 0, .8)); }
.ac-hub-anillo { fill: none; stroke: rgba(255, 255, 255, .08); }
.ac-hub-pulso { fill: #ffb086; filter: drop-shadow(0 0 6px #ff3d00); }
.ac-hub-nodo { cursor: pointer; }
.ac-hub-nodo circle { fill: rgba(16, 16, 70, .9); stroke: rgba(255, 255, 255, .22); stroke-width: 1.2; transition: stroke .2s, fill .2s; }
.ac-hub-nodo:hover circle, .ac-hub-nodo.is-on circle { stroke: var(--wu-accent); fill: rgba(255, 61, 0, .22); }
.ac-hub-nodo text { fill: rgba(255, 255, 255, .85); font-size: 11px; font-family: var(--font-b); font-weight: 600; text-anchor: middle; }
.ac-hub-core circle.c1 { fill: url(#acCore); }
.ac-hub-core circle.c2 { fill: none; stroke: rgba(255, 61, 0, .5); animation: ac-onda 3s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ac-onda { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.ac-hub-core text { fill: #fff; text-anchor: middle; font-family: var(--font-d); font-weight: 800; }
.ac-hub-lectura {
    position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); width: min(92%, 420px);
    background: rgba(3, 3, 25, .82); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 14px;
    font-family: var(--font-m); font-size: .78rem; color: #c7c9ff; min-height: 56px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ac-hub-lectura b { color: #ffb086; font-weight: 600; }

/* Secciones claras del inicio */
.ac-sec { padding: 56px 32px; max-width: 1180px; margin: 0 auto; }
.ac-sec-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.ac-k { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--wu-accent); }
.ac-sec h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; margin-top: 6px; }
.ac-sec-cab p.ac-sec-sub { color: var(--muted); max-width: 520px; margin-top: 8px; }
/* Roles de un plan combinado, como etiquetas bajo el título */
.ac-plan-roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; max-width: 760px; }
.ac-plan-roles li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.ac-plan-roles svg.lucide { width: 14px; height: 14px; color: var(--wu-accent); }

.ac-rutas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ac-ruta {
    position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    padding: 22px; transition: border-color .2s, box-shadow .2s, transform .2s; overflow: hidden;
}
.ac-ruta:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.ac-ruta.is-on { border-color: var(--wu-accent); box-shadow: 0 0 0 4px var(--wu-accent-soft), var(--sh-2); }
.ac-ruta-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--wu-navy-soft); color: var(--wu-navy); margin-bottom: 14px; }
.ac-ruta.is-on .ac-ruta-ic { background: var(--wu-accent); color: #fff; }
.ac-ruta h3 { font-size: 1.2rem; font-weight: 800; }
.ac-ruta p { color: var(--muted); font-size: .9rem; margin-top: 6px; }
.ac-ruta-sem { display: grid; gap: 6px; margin-top: 16px; font-size: .82rem; }
.ac-ruta-sem div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.ac-ruta-sem b { color: var(--ink-2); font-weight: 600; }
.ac-ruta-sem span { color: var(--muted); }
.ac-ruta-check { position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; }
.ac-ruta.is-on .ac-ruta-check { background: var(--wu-accent); border-color: var(--wu-accent); }
.ac-ruta-check svg.lucide { width: 14px; height: 14px; stroke-width: 3; }

.ac-mapa { display: grid; gap: 26px; }
.ac-mapa-bloque h3 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ac-mapa-bloque h3 small { font-family: var(--font-b); font-weight: 500; color: var(--muted); font-size: .85rem; letter-spacing: 0; }
.ac-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ac-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r); padding: 16px 16px 14px; transition: border-color .2s, box-shadow .2s, transform .2s;
    overflow: hidden;
}
.ac-card::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--st-0); opacity: .5; }
.ac-card[data-st="1"]::after { background: var(--st-1); opacity: 1; }
.ac-card[data-st="2"]::after { background: var(--st-2); opacity: 1; }
.ac-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.ac-card.is-ruta { border-color: var(--wu-accent-line); }
.ac-card-top { display: flex; align-items: center; justify-content: space-between; }
.ac-card-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--wu-navy-soft); color: var(--wu-navy); display: grid; place-items: center; }
.ac-card-ic svg.lucide { width: 18px; height: 18px; }
.ac-card-n { font-family: var(--font-d); font-weight: 800; font-size: .8rem; color: var(--muted); }
.ac-card h4 { font-size: .98rem; font-weight: 700; line-height: 1.3; }
.ac-card-meta { display: flex; gap: 12px; font-size: .76rem; color: var(--muted); margin-top: auto; align-items: center; }
.ac-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ac-card-meta svg.lucide { width: 13px; height: 13px; }
.ac-card-ruta { position: absolute; top: 12px; right: 12px; font-size: .66rem; font-weight: 700; color: var(--wu-accent); background: var(--wu-accent-soft); padding: 2px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }

.ac-duo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.ac-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.ac-panel-k { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ac-panel-k svg.lucide { width: 15px; height: 15px; color: var(--wu-accent); }
.ac-dia h3 { font-size: 2rem; font-weight: 900; margin: 10px 0 8px; }
.ac-dia p { color: var(--ink-2); }
.ac-dia .ac-btn { margin-top: 16px; }
.ac-confi { background: linear-gradient(135deg, #fff7f3, #fff); border-color: #ffd8c9; }
.ac-confi p { font-size: .92rem; color: var(--ink-2); margin-top: 10px; }

/* ───────────────────────── Módulo ───────────────────────── */
.ac-mod { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 48px; max-width: 1120px; margin: 0 auto; padding: 0 32px 80px; }
.ac-mod-cab {
    grid-column: 1 / -1; margin: 0 -32px; padding: 48px 32px 36px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
    background: radial-gradient(700px 300px at 100% 0, rgba(255, 61, 0, .25), transparent 60%), linear-gradient(150deg, var(--wu-navy-deep), #04042a 70%);
    border-radius: 0 0 28px 28px;
}
.ac-mod-cab::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.ac-mod-num { position: absolute; right: 24px; bottom: -40px; font-family: var(--font-d); font-weight: 900; font-size: 13rem; line-height: 1; color: rgba(255, 255, 255, .05); z-index: -1; letter-spacing: -.06em; }
.ac-miga { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: rgba(255, 255, 255, .6); flex-wrap: wrap; }
.ac-miga a { text-decoration: none; }
.ac-miga a:hover { color: #fff; }
.ac-miga svg.lucide { width: 14px; height: 14px; }
.ac-mod-cab h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 900; margin: 14px 0 14px; max-width: 820px; }
.ac-obj { display: flex; gap: 12px; max-width: 780px; color: rgba(255, 255, 255, .8); font-size: 1.02rem; }
.ac-obj b { color: #ffb59c; font-weight: 600; white-space: nowrap; }
.ac-mod-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ac-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 500; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }
.ac-chip svg.lucide { width: 14px; height: 14px; }
.ac-chip--st[data-st="2"] { background: rgba(34, 197, 94, .16); border-color: rgba(34, 197, 94, .45); color: #b9f5cf; }
.ac-chip--st[data-st="1"] { background: rgba(245, 158, 11, .14); border-color: rgba(245, 158, 11, .45); color: #fde2a6; }

.ac-aviso { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border-radius: var(--r); background: #fff4ef; border: 1px solid #ffd2c0; color: #8a2a06; font-size: .9rem; }
.ac-aviso svg.lucide { color: var(--wu-accent); margin-top: 2px; }

.ac-art { min-width: 0; padding-top: 36px; font-size: 1.02rem; color: var(--ink-2); }
.ac-art > * + * { margin-top: 1.05em; }
.ac-art h2 { font-size: 1.65rem; font-weight: 800; color: var(--ink); margin-top: 2.4em; padding-top: .2em; scroll-margin-top: calc(var(--top) + 20px); }
.ac-art h2:first-child { margin-top: 0; }
.ac-art h3 { font-size: 1.22rem; font-weight: 700; color: var(--ink); margin-top: 1.9em; }
.ac-art h4 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: 1.6em; }
.ac-art strong { color: var(--ink); font-weight: 600; }
.ac-art code { font-family: var(--font-m); font-size: .86em; background: var(--wu-navy-soft); color: var(--wu-navy); padding: .1em .4em; border-radius: 6px; word-break: break-word; }
.ac-art ul, .ac-art ol { padding-left: 1.3em; }
.ac-art li { margin: .4em 0; }
.ac-art li::marker { color: var(--wu-accent); }
.ac-art ol.ac-pasos { list-style: none; padding: 0; counter-reset: paso; }
.ac-art ol.ac-pasos li { counter-increment: paso; position: relative; padding: 2px 0 2px 44px; margin: .9em 0; }
.ac-art ol.ac-pasos li::before {
    content: counter(paso); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 9px;
    display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: .85rem;
    background: var(--wu-navy); color: #fff;
}
.ac-flecha { color: var(--wu-accent); font-weight: 700; }
.ac-pre { background: #0b0b26; color: #d5d7ff; border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-size: .85rem; }
.ac-pre code { background: none; color: inherit; padding: 0; }
.ac-verif {
    display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 999px; padding: 0 7px; vertical-align: 2px; cursor: help;
}

.ac-tabla { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); }
.ac-tabla table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ac-tabla th { text-align: left; font-weight: 700; color: var(--ink); background: var(--surface-2); padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .82rem; white-space: nowrap; }
.ac-tabla td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.ac-tabla tr:last-child td { border-bottom: 0; }
.ac-tabla tbody tr:hover td { background: #fcfcfe; }
.ac-tabla td:first-child { color: var(--ink); }

.ac-nota { position: relative; border-radius: var(--r); padding: 16px 18px 16px 20px; background: var(--wu-navy-soft); border: 1px solid rgba(10, 10, 110, .12); }
.ac-nota::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--wu-navy); }
.ac-nota-t { font-family: var(--font-d); font-weight: 800; color: var(--wu-navy); margin-bottom: 4px; font-size: .98rem; }
.ac-nota p + p { margin-top: 0; }
.ac-nota--alerta { background: #fff4ef; border-color: #ffd2c0; }
.ac-nota--alerta::before { background: var(--wu-accent); }
.ac-nota--alerta .ac-nota-t { color: #b42d00; }
.ac-nota--tip { background: #effcf4; border-color: #bbf0cf; }
.ac-nota--tip::before { background: var(--st-2); }
.ac-nota--tip .ac-nota-t { color: #116634; }
.ac-nota--frase { background: linear-gradient(135deg, var(--wu-navy-deep), #12127e); border: 0; color: #e7e8ff; padding: 22px 24px; }
.ac-nota--frase::before { display: none; }
.ac-nota--frase .ac-nota-t { color: #ffb59c; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--font-b); font-weight: 700; }
.ac-nota--frase p:last-child { font-family: var(--font-d); font-size: 1.15rem; font-weight: 500; line-height: 1.5; color: #fff; }
.ac-nota--frase strong { color: #fff; }
.ac-formula { font-family: var(--font-m); font-size: .9rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px 18px; color: var(--ink); line-height: 1.8; }
.ac-formula strong { color: var(--wu-accent); }
.ac-objecion { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-top: 1.8em !important; padding-left: 16px; border-left: 3px solid var(--wu-accent); }
.ac-art h3.ac-check-h, .ac-art h2.ac-check-h { display: flex; align-items: center; gap: 10px; }
.ac-art h2.ac-check-h + ul { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ac-art h2.ac-check-h + ul li { padding: 12px 16px 12px 46px; margin: 0; border-bottom: 1px solid var(--line); position: relative; }
.ac-art h2.ac-check-h + ul li:last-child { border-bottom: 0; }
.ac-art h2.ac-check-h + ul li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--st-2); background: rgba(34, 197, 94, .1); }

/* Término del glosario dentro del texto */
.ac-term {
    background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
    text-decoration: underline dotted rgba(255, 61, 0, .75); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
    transition: color .15s, background .15s; border-radius: 3px;
}
.ac-term:hover { color: var(--wu-accent); background: var(--wu-accent-soft); }
.ac-nota--frase .ac-term { text-decoration-color: #ffb086; }

/* Índice lateral del módulo */
.ac-toc { position: sticky; top: calc(var(--top) + 24px); align-self: start; padding-top: 36px; max-height: calc(100vh - var(--top) - 40px); overflow: auto; }
.ac-toc p { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.ac-toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-size: .84rem; line-height: 1.35; color: var(--muted); text-decoration: none; transition: color .15s, border-color .15s; }
.ac-toc a:hover { color: var(--ink); }
.ac-toc a.is-on { color: var(--wu-accent); border-color: var(--wu-accent); font-weight: 600; }
.ac-toc-terms { margin-top: 22px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.ac-toc-terms b { display: block; font-family: var(--font-d); font-size: 1.6rem; color: var(--ink); line-height: 1.1; }

/* Autoevaluación al final del módulo */
.ac-quiz { margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--sh-1); }
.ac-quiz-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ac-quiz-cab h2 { font-size: 1.5rem; font-weight: 800; margin: 4px 0 6px; color: var(--ink); }
.ac-quiz-cab p { color: var(--muted); font-size: .92rem; }
.ac-preg { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.ac-preg-q { font-weight: 600; color: var(--ink); display: flex; gap: 12px; }
.ac-preg-q .ac-preg-t { flex: 1; min-width: 0; }
.ac-preg-q .ac-preg-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--wu-navy-soft); color: var(--wu-navy); display: grid; place-items: center; font-size: .78rem; font-weight: 800; font-family: var(--font-d); }
.ac-ops { display: grid; gap: 8px; margin-top: 14px; padding-left: 38px; }
.ac-op {
    text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); font-size: .93rem; line-height: 1.45; transition: border-color .15s, background .15s;
}
.ac-op:hover:not([disabled]) { border-color: var(--wu-navy); background: var(--wu-navy-soft); }
.ac-op i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); }
.ac-op[disabled] { cursor: default; }
.ac-op.is-ok { border-color: var(--st-2); background: #effcf4; }
.ac-op.is-ok i { background: var(--st-2); border-color: var(--st-2); color: #fff; }
.ac-op.is-mal { border-color: var(--st-bad); background: #fef2f2; }
.ac-op.is-mal i { background: var(--st-bad); border-color: var(--st-bad); color: #fff; }
.ac-why { margin: 10px 0 0 38px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: .9rem; color: var(--ink-2); border-left: 3px solid var(--st-2); }
.ac-why.is-mal { border-left-color: var(--st-bad); }
.ac-why b { color: var(--ink); }
.ac-res {
    margin-top: 28px; display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r);
    background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap;
}
.ac-res.is-ok { background: #effcf4; border-color: #a7ecc1; }
.ac-res.is-mal { background: #fff7ed; border-color: #fed7aa; }
.ac-res-n { font-family: var(--font-d); font-weight: 900; font-size: 2.4rem; line-height: 1; }
.ac-res.is-ok .ac-res-n { color: #15803d; }
.ac-res.is-mal .ac-res-n { color: #c2410c; }
.ac-res p { flex: 1; min-width: 200px; color: var(--ink-2); font-size: .93rem; }
.ac-res-acc { display: flex; gap: 8px; flex-wrap: wrap; }

.ac-sig { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ac-sig a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.ac-sig a:hover { border-color: var(--wu-accent); box-shadow: var(--sh-2); }
.ac-sig a small { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ac-sig a b { font-family: var(--font-d); font-size: 1rem; color: var(--ink); }
.ac-sig a.is-next { text-align: right; grid-column: 2; }

/* ───────────────────────── Herramientas ───────────────────────── */
.ac-tool { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); padding: 24px; box-shadow: var(--sh-2); margin-top: 1.6em !important; position: relative; overflow: hidden; }
.ac-tool::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--wu-accent), #ff9a6b 40%, var(--wu-navy)); }
.ac-tool-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--wu-accent); font-weight: 700; display: flex; align-items: center; gap: 6px; }
.ac-tool h4 { font-size: 1.25rem; font-weight: 800; margin: 6px 0 6px !important; color: var(--ink); }
.ac-tool > p { color: var(--muted); font-size: .92rem; }
.ac-tool-body { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
.ac-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; align-content: start; }
.ac-campo { display: grid; gap: 5px; }
.ac-campo.is-full { grid-column: 1 / -1; }
.ac-campo label { font-size: .8rem; font-weight: 600; color: var(--ink-2); display: flex; justify-content: space-between; gap: 6px; }
.ac-campo label output { font-family: var(--font-m); color: var(--wu-accent); font-weight: 600; }
.ac-campo input[type=number], .ac-campo select {
    height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: .95rem; width: 100%;
    font-variant-numeric: tabular-nums;
}
.ac-campo input[type=number]:focus, .ac-campo select:focus { outline: none; border-color: var(--wu-accent); box-shadow: 0 0 0 3px var(--wu-accent-soft); background: #fff; }
.ac-campo input[type=range] { width: 100%; accent-color: var(--wu-accent); }
.ac-salida { background: linear-gradient(160deg, var(--wu-navy-deep), #0d0d5a); color: #fff; border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ac-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ac-big b { font-family: var(--font-d); font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.ac-big span { color: rgba(255, 255, 255, .7); font-size: .9rem; }
.ac-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ac-kv div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; }
.ac-kv small { display: block; font-size: .72rem; color: rgba(255, 255, 255, .6); }
.ac-kv b { font-family: var(--font-d); font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ac-salida p.ac-nota-s { font-size: .82rem; color: rgba(255, 255, 255, .7); line-height: 1.5; }
.ac-salida p.ac-nota-s b { color: #ffb086; }
.ac-barras { display: grid; gap: 6px; }
.ac-barra { display: grid; grid-template-columns: 74px 1fr 52px; gap: 8px; align-items: center; font-size: .78rem; font-family: var(--font-m); }
.ac-barra-t { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.ac-barra-t i { display: block; height: 100%; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: width .4s; }
.ac-barra.is-ok .ac-barra-t i { background: var(--st-2); }
.ac-barra.is-sel { color: #ffb086; font-weight: 600; }
.ac-barra.is-sel .ac-barra-t { box-shadow: 0 0 0 1px #ffb086; }
.ac-meta-l { position: relative; }
.ac-presets { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; }
.ac-preset { padding: 6px 11px; border-radius: 999px; font-size: .8rem; border: 1px solid var(--line-2); background: var(--surface); transition: all .15s; }
.ac-preset:hover { border-color: var(--wu-accent); color: var(--wu-accent); }
.ac-preset.is-on { background: var(--wu-accent); border-color: var(--wu-accent); color: #fff; }
.ac-veredicto { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; font-family: var(--font-d); font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; }
.ac-veredicto.v-humano { background: rgba(34, 197, 94, .16); color: #86efac; }
.ac-veredicto.v-maquina { background: rgba(255, 61, 0, .18); color: #ffb086; }
.ac-veredicto.v-nose { background: rgba(245, 158, 11, .16); color: #fcd34d; }
.ac-linea-t { position: relative; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ac-linea-t span { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; font-size: .68rem; font-family: var(--font-m); white-space: nowrap; overflow: hidden; }
.ac-linea-t .s-sil { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); }
.ac-linea-t .s-voz { background: rgba(99, 102, 241, .55); }
.ac-linea-t .s-dec { width: 2px; background: #ffb086; box-shadow: 0 0 8px #ff3d00; }
.ac-lado { display: grid; gap: 4px; }
.ac-lado small { font-size: .72rem; color: rgba(255, 255, 255, .55); }
.ac-cot { display: grid; gap: 10px; }
.ac-cot-b { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 12px 14px; }
.ac-cot-b h5 { margin: 0 0 6px; font-family: var(--font-d); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: #ffb086; display: flex; justify-content: space-between; }
.ac-cot-b h5 b { color: #fff; font-size: 1.15rem; letter-spacing: -.02em; text-transform: none; }
.ac-cot-l { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: rgba(255, 255, 255, .75); padding: 2px 0; font-variant-numeric: tabular-nums; }
.ac-alerta-s { font-size: .8rem; background: rgba(255, 61, 0, .16); border: 1px solid rgba(255, 61, 0, .4); color: #ffd4c4; border-radius: 10px; padding: 8px 10px; }

.ac-stats { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.ac-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.ac-stat { background: var(--surface-2); border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
.ac-stat b { font-family: var(--font-d); font-size: 1.6rem; font-weight: 900; color: var(--ink); display: block; letter-spacing: -.03em; }
.ac-stat span { font-size: .82rem; color: var(--muted); }
.ac-stat:last-child { background: var(--wu-accent-soft); border-color: var(--wu-accent-line); }
.ac-stat:last-child b { color: var(--wu-accent); }

.ac-herr-grid { display: grid; gap: 22px; }

/* ───────────────────────── Visuales ───────────────────────── */
.ac-vis { margin-top: 1.4em !important; border-radius: var(--r-lg); overflow: hidden; }
.ac-vis--osc { background: linear-gradient(150deg, var(--wu-navy-deep), #04042a); color: #fff; padding: 22px; position: relative; }
.ac-vis--osc::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.ac-vis-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #ffb59c; position: relative; }
.ac-vis-pie { font-size: .82rem; color: rgba(255, 255, 255, .65); margin-top: 12px !important; position: relative; }
.ac-vis-pie b { color: #fff; }

.ac-flujo { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.ac-flujo-paso { position: relative; z-index: 1; text-align: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 6px 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.ac-flujo-paso:hover, .ac-flujo-paso.is-on { border-color: var(--wu-accent); background: rgba(255, 61, 0, .14); }
.ac-flujo-paso svg.lucide { margin: 0 auto 6px; color: #ffb086; width: 22px; height: 22px; }
.ac-flujo-paso b { display: block; font-size: .82rem; font-family: var(--font-d); }
.ac-flujo-paso small { display: block; font-size: .68rem; color: rgba(255, 255, 255, .55); line-height: 1.3; margin-top: 2px; }
.ac-flujo-riel { position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: rgba(255, 255, 255, .12); z-index: 0; }
.ac-flujo-riel i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ffb086; box-shadow: 0 0 12px #ff3d00; animation: ac-viaje 5s linear infinite; }
@keyframes ac-viaje { from { left: 0; } to { left: 100%; } }
.ac-flujo-det { position: relative; margin-top: 14px !important; min-height: 48px; font-size: .9rem; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .22); border-radius: 12px; padding: 12px 14px; }
.ac-flujo-det b { color: #ffb086; }

.ac-madurez { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; margin-top: 18px; position: relative; }
.ac-mad { border-radius: 14px; padding: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; transition: transform .2s; }
.ac-mad:hover { transform: translateY(-3px); }
.ac-mad b { font-family: var(--font-d); font-size: 2rem; font-weight: 900; line-height: 1; color: rgba(255, 255, 255, .3); }
.ac-mad strong { font-family: var(--font-d); font-size: 1rem; }
.ac-mad span { font-size: .76rem; color: rgba(255, 255, 255, .65); line-height: 1.4; }
.ac-mad:nth-child(1) { min-height: 120px; }
.ac-mad:nth-child(2) { min-height: 150px; }
.ac-mad:nth-child(3) { min-height: 180px; }
.ac-mad:nth-child(4) { min-height: 210px; background: linear-gradient(180deg, rgba(255, 61, 0, .32), rgba(255, 61, 0, .08)); border-color: rgba(255, 61, 0, .55); }
.ac-mad:nth-child(4) b { color: #ffb086; }

.ac-journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 18px; position: relative; }
.ac-jp { position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 12px; }
.ac-jp-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 61, 0, .2); color: #ffb086; margin-bottom: 10px; }
.ac-jp-ic svg.lucide { width: 17px; height: 17px; }
.ac-jp b { font-family: var(--font-d); font-size: .9rem; display: block; }
.ac-jp span { font-size: .75rem; color: rgba(255, 255, 255, .65); line-height: 1.4; display: block; margin-top: 4px; }
.ac-jp-ctx { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 3px; }
.ac-jp-ctx i { width: 7px; height: 7px; border-radius: 2px; background: #ffb086; opacity: .9; }

.ac-espectro { margin-top: 16px; position: relative; }
.ac-espectro-ejes { display: flex; justify-content: space-between; font-size: .72rem; color: rgba(255, 255, 255, .6); margin-bottom: 6px; }
.ac-espectro-barra { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #22c55e, #f59e0b 55%, #ff3d00); }
.ac-marc { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.ac-marc button { text-align: left; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 10px; color: #fff; transition: border-color .2s, background .2s; }
.ac-marc button:hover, .ac-marc button.is-on { border-color: var(--wu-accent); background: rgba(255, 61, 0, .14); }
.ac-marc b { font-family: var(--font-d); font-size: .86rem; display: block; }
.ac-marc small { font-family: var(--font-m); font-size: .7rem; color: #ffb086; }
.ac-lineas { display: flex; gap: 3px; margin-top: 6px; }
.ac-lineas i { width: 6px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .5); }

.ac-tablero { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 16px; position: relative; }
.ac-ag { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px; font-size: .72rem; transition: background .5s, border-color .5s; }
.ac-ag b { display: block; font-family: var(--font-d); font-size: .82rem; }
.ac-ag span { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; color: rgba(255, 255, 255, .8); }
.ac-ag span i { width: 8px; height: 8px; border-radius: 50%; }
.ac-ag small { display: block; font-family: var(--font-m); color: rgba(255, 255, 255, .5); margin-top: 2px; }
.ac-tablero-res { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; position: relative; }
.ac-tablero-res span { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; background: rgba(255, 255, 255, .07); border-radius: 999px; padding: 4px 10px; }
.ac-tablero-res span i { width: 8px; height: 8px; border-radius: 50%; }
.ac-tablero-res b { font-family: var(--font-m); }

/* ───────────────────────── Glosario ───────────────────────── */
.ac-pagina-cab { padding: 48px 32px 28px; max-width: 1120px; margin: 0 auto; }
.ac-pagina-cab h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; margin: 8px 0 10px; }
.ac-pagina-cab p { color: var(--muted); max-width: 680px; font-size: 1.04rem; }
.ac-glo-barra { position: sticky; top: var(--top); z-index: 5; background: rgba(246, 247, 251, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 12px 32px; border-bottom: 1px solid var(--line); }
.ac-glo-barra-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 10px; }
.ac-glo-fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ac-glo-q { position: relative; flex: 1; min-width: 220px; }
.ac-glo-q svg.lucide { position: absolute; left: 12px; top: 11px; color: var(--muted); width: 17px; height: 17px; }
.ac-glo-q input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 12px 0 38px; background: var(--surface); }
.ac-glo-q input:focus { outline: none; border-color: var(--wu-accent); box-shadow: 0 0 0 3px var(--wu-accent-soft); }
.ac-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; }
.ac-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: .85rem; font-weight: 500; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.ac-seg button svg.lucide { width: 15px; height: 15px; }
.ac-seg button.is-on { background: var(--wu-navy); color: #fff; }
.ac-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ac-chips::-webkit-scrollbar { display: none; }
.ac-fchip { flex-shrink: 0; border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.ac-fchip small { color: var(--muted); margin-left: 4px; font-variant-numeric: tabular-nums; }
.ac-fchip:hover { border-color: var(--wu-accent); }
.ac-fchip.is-on { background: var(--wu-accent); border-color: var(--wu-accent); color: #fff; }
.ac-fchip.is-on small { color: rgba(255, 255, 255, .8); }
.ac-glo-dom { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.ac-glo-dom .ac-mini { width: 120px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ac-glo-dom .ac-mini i { display: block; height: 100%; background: var(--st-2); }

.ac-glo { max-width: 1120px; margin: 0 auto; padding: 22px 32px 80px; }
.ac-glo-letra { font-family: var(--font-d); font-weight: 900; font-size: 1.4rem; color: var(--wu-accent); margin: 26px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ac-glo-letra:first-child { margin-top: 0; }
.ac-glo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ac-gt {
    text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
    display: flex; flex-direction: column; gap: 6px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ac-gt:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-1px); }
.ac-gt-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.ac-gt b { font-family: var(--font-d); font-size: 1.05rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.ac-gt small.ac-gt-alias { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.ac-gt p { font-size: .86rem; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ac-cat { flex-shrink: 0; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--wu-navy); background: var(--wu-navy-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.ac-gt.is-dom { border-color: #a7ecc1; }
.ac-gt-dom { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; color: #15803d; font-weight: 600; }
.ac-gt-dom svg.lucide { width: 13px; height: 13px; }
.ac-vacio { text-align: center; padding: 60px 20px; color: var(--muted); }
.ac-vacio svg.lucide { width: 40px; height: 40px; margin: 0 auto 12px; color: var(--line-2); }

/* Funcionalidades y lista de precios */
.ac-func-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ac-func {
    display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r); padding: 18px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ac-func:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-1px); }
.ac-func h3 { font-size: 1.02rem; font-weight: 800; margin: 8px 0 4px; line-height: 1.3; }
.ac-func p { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.ac-func .ac-cat { display: inline-block; }
.ac-func-acc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ac-func-l {
    display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; color: var(--wu-navy);
    background: var(--wu-navy-soft); border: 0; border-radius: 999px; padding: 5px 10px; text-decoration: none;
}
.ac-func-l svg.lucide { width: 13px; height: 13px; }
.ac-func-l:hover { background: var(--wu-accent-soft); color: var(--wu-accent); }
.ac-sku { grid-template-columns: 1fr; }
.ac-sku-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ac-sku-top code { font-family: var(--font-m); font-size: .74rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.ac-sku-precio { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ac-sku-precio b { font-family: var(--font-d); font-size: 1.3rem; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.ac-sku-precio span { font-size: .78rem; color: var(--muted); }
.ac-sku-tramos { display: flex; align-items: center; gap: 6px; font-size: .78rem !important; color: #15803d !important; margin-top: 6px; }
.ac-sku-tramos svg.lucide { width: 14px; height: 14px; }
.ac-func-nota { display: flex; gap: 10px; align-items: flex-start; margin-top: 24px; padding: 14px 16px; border-radius: var(--r); background: #fff4ef; border: 1px solid #ffd2c0; color: #8a2a06; font-size: .88rem; }
.ac-func-nota svg.lucide { color: var(--wu-accent); margin-top: 2px; }

/* Tarjetas de estudio */
.ac-flash { max-width: 680px; margin: 10px auto 0; }
.ac-flash-prog { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.ac-flash-card { perspective: 1400px; height: 380px; cursor: pointer; }
.ac-flash-in { position: relative; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.ac-flash-card.is-vuelta .ac-flash-in { transform: rotateY(180deg); }
.ac-flash-cara {
    position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 26px; padding: 30px;
    display: flex; flex-direction: column; overflow: auto;
}
.ac-flash-frente { background: linear-gradient(150deg, var(--wu-navy-deep), #12127e); color: #fff; align-items: center; justify-content: center; text-align: center; box-shadow: var(--sh-3); }
.ac-flash-frente .ac-cat { background: rgba(255, 255, 255, .12); color: #ffb59c; }
.ac-flash-frente h3 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin: 16px 0 8px; }
.ac-flash-frente p { color: rgba(255, 255, 255, .6); font-size: .9rem; }
.ac-flash-frente small { position: absolute; bottom: 20px; left: 0; right: 0; color: rgba(255, 255, 255, .45); font-size: .8rem; display: flex; justify-content: center; gap: 6px; align-items: center; }
.ac-flash-dorso { background: var(--surface); border: 1px solid var(--line); transform: rotateY(180deg); box-shadow: var(--sh-2); gap: 12px; }
.ac-flash-dorso h4 { font-size: 1.3rem; font-weight: 800; }
.ac-flash-dorso p { font-size: .95rem; color: var(--ink-2); }
.ac-flash-dorso p b { color: var(--wu-accent); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; display: block; margin-bottom: 2px; }
.ac-flash-acc { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.ac-btn--ok { background: var(--st-2); color: #fff; }
.ac-btn--ok:hover { box-shadow: 0 10px 24px -10px rgba(34, 197, 94, .9); transform: translateY(-1px); }

/* Panel del término */
.ac-drawer-velo { position: fixed; inset: 0; z-index: 70; background: rgba(6, 6, 40, .38); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: ac-fade .25s; }
@keyframes ac-fade { from { opacity: 0; } }
.ac-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; width: min(520px, 100%); background: var(--surface);
    box-shadow: -30px 0 60px -20px rgba(6, 6, 63, .35); transform: translateX(105%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
    display: flex; flex-direction: column;
}
.ac-drawer.is-on { transform: none; }
/* Cerrado, el panel queda fuera de la pantalla: se oculta para que no genere scroll horizontal. */
.ac-drawer:not(.is-on) { visibility: hidden; transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s .38s; }
html, body { overflow-x: clip; }
.ac-drawer-in { overflow-y: auto; flex: 1; }
.ac-dr-cab { padding: 26px 26px 22px; background: linear-gradient(150deg, var(--wu-navy-deep), #12127e); color: #fff; position: relative; }
.ac-dr-cab .ac-cat { background: rgba(255, 255, 255, .12); color: #ffb59c; }
.ac-dr-cab h2 { font-size: 2rem; font-weight: 900; margin: 12px 0 4px; }
.ac-dr-cab p { color: rgba(255, 255, 255, .65); font-size: .88rem; }
.ac-dr-x { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.ac-dr-x:hover { background: rgba(255, 255, 255, .2); }
.ac-dr-nav { position: absolute; top: 16px; right: 62px; display: flex; gap: 6px; }
.ac-dr-nav button { width: 38px; height: 38px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; display: grid; place-items: center; }
.ac-dr-nav button:hover { background: rgba(255, 255, 255, .2); }
.ac-dr-nav button[disabled] { opacity: .3; }
.ac-dr-body { padding: 8px 26px 28px; display: grid; gap: 4px; }
.ac-dr-sec { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ac-dr-sec:last-of-type { border-bottom: 0; }
.ac-dr-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--wu-navy-soft); color: var(--wu-navy); }
.ac-dr-ic svg.lucide { width: 17px; height: 17px; }
.ac-dr-sec h3 { font-family: var(--font-b); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.ac-dr-sec p { font-size: .96rem; color: var(--ink-2); line-height: 1.6; }
.ac-dr-sec.is-err .ac-dr-ic { background: #fff1ec; color: var(--wu-accent); }
.ac-dr-sec.is-ej .ac-dr-ic { background: #effcf4; color: #15803d; }
.ac-dr-rel { display: flex; flex-wrap: wrap; gap: 6px; }
.ac-dr-rel button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-size: .84rem; }
.ac-dr-rel button:hover { border-color: var(--wu-accent); color: var(--wu-accent); }
.ac-dr-pie { padding: 14px 26px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface-2); }
.ac-dr-pie a { font-size: .88rem; color: var(--wu-navy); font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ac-dr-pie a:hover { color: var(--wu-accent); }
.ac-dom-btn.is-on { background: var(--st-2); border-color: var(--st-2); color: #fff; }

/* ───────────────────────── Examen y progreso ───────────────────────── */
.ac-exa-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.ac-exa-reglas { display: grid; gap: 12px; margin-top: 16px; }
.ac-exa-reglas div { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.ac-exa-reglas svg.lucide { color: var(--wu-accent); margin-top: 3px; }
.ac-historial { display: grid; gap: 8px; margin-top: 14px; }
.ac-historial div { display: flex; justify-content: space-between; font-size: .88rem; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.ac-historial b.is-ok { color: #15803d; }
.ac-historial b.is-mal { color: #c2410c; }
.ac-exa-barra { position: sticky; top: var(--top); z-index: 5; background: rgba(246, 247, 251, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px 32px; }
.ac-exa-barra-in { max-width: 860px; margin: 0 auto; display: flex; gap: 14px; align-items: center; }
.ac-exa-barra .ac-mini { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ac-exa-barra .ac-mini i { display: block; height: 100%; background: var(--wu-accent); transition: width .3s; }
.ac-exa-barra span { font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.ac-exa { max-width: 860px; margin: 0 auto; padding: 10px 32px 80px; }
.ac-exa .ac-preg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-top: 14px; }
.ac-preg-mod { font-size: .74rem; color: var(--muted); margin: 0 0 6px 38px; }
.ac-exa-fin { margin-top: 24px; display: flex; justify-content: center; }
.ac-diploma {
    position: relative; overflow: hidden; border-radius: 26px; padding: 36px; color: #fff; text-align: center; isolation: isolate;
    background: radial-gradient(600px 300px at 50% -20%, rgba(255, 61, 0, .4), transparent 60%), linear-gradient(150deg, var(--wu-navy-deep), #04042a);
}
.ac-diploma::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1px); background-size: 20px 20px; }
.ac-diploma h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin: 10px 0; }
.ac-diploma .ac-res-n { font-size: 4.4rem; color: #fff; font-family: var(--font-d); font-weight: 900; line-height: 1; }
.ac-diploma p { color: rgba(255, 255, 255, .72); max-width: 520px; margin: 10px auto 0; }
.ac-por-bloque { display: grid; gap: 8px; margin-top: 22px; text-align: left; max-width: 520px; margin-left: auto; margin-right: auto; }

.ac-prog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ac-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.ac-kpi small { font-size: .78rem; color: var(--muted); }
.ac-kpi b { display: block; font-family: var(--font-d); font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin-top: 4px; }
.ac-kpi span { font-size: .8rem; color: var(--muted); }
.ac-prog-tabla td:nth-child(3), .ac-prog-tabla th:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.ac-prog-tabla td a { text-decoration: none; font-weight: 600; color: var(--ink); }
.ac-prog-tabla td a:hover { color: var(--wu-accent); }

.ac-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 90; background: var(--wu-carbon); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--sh-3); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; gap: 10px; align-items: center; max-width: calc(100% - 32px); }
.ac-toast.is-on { transform: translate(-50%, 0); }
.ac-toast svg.lucide { color: var(--st-2); }

.ac-confeti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.ac-confeti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: ac-caer 2.4s cubic-bezier(.3, .6, .6, 1) forwards; }
@keyframes ac-caer { to { transform: translate3d(var(--dx), 110vh, 0) rotate(var(--rot)); opacity: .9; } }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1180px) {
    .ac-tabs a span { display: none; }
    .ac-tabs a { padding: 9px 11px; }
}
@media (max-width: 1080px) {
    .ac-mod { grid-template-columns: minmax(0, 1fr); }
    .ac-toc { display: none; }
    .ac-hero-in { grid-template-columns: 1fr; }
    .ac-hub { margin: 0 auto; max-width: 440px; }
}
@media (max-width: 960px) {
    :root { --top: 58px; }
    .ac-shell { grid-template-columns: minmax(0, 1fr); }
    .ac-top-menu { display: grid; place-items: center; }
    .ac-side {
        position: fixed; top: var(--top); left: 0; z-index: 45; width: min(320px, 88vw); transform: translateX(-102%);
        transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--sh-3);
    }
    .ac-side.is-on { transform: none; }
    .ac-velo { position: fixed; inset: var(--top) 0 0; z-index: 44; background: rgba(6, 6, 40, .4); }
    .ac-rutas { grid-template-columns: 1fr; }
    .ac-duo, .ac-exa-intro { grid-template-columns: 1fr; }
    .ac-tool-body { grid-template-columns: 1fr; }
    .ac-prog-grid { grid-template-columns: 1fr 1fr; }
    .ac-flujo, .ac-marc, .ac-tablero { grid-template-columns: repeat(3, 1fr); }
    .ac-flujo-riel { display: none; }
    .ac-journey { grid-template-columns: 1fr 1fr; }
    .ac-madurez { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    /* Sin blur: un backdrop-filter haría que las pestañas fijas se posicionen dentro del encabezado. */
    .ac-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--wu-navy-deep); }
    .ac-tabs { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; z-index: 50; justify-content: space-around; background: rgba(6, 6, 63, .97); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .1); }
    .ac-tabs a { flex-direction: column; gap: 2px; font-size: .66rem; padding: 6px 8px; border-radius: 12px; }
    .ac-tabs a span { display: block; }
    body { padding-bottom: 64px; }
    .ac-marca span { display: none; }
    .ac-buscar { width: auto; flex: 1; }
    .ac-buscar kbd { display: none; }
    .ac-buscar-res { position: fixed; top: calc(var(--top) + 6px); left: 10px; right: 10px; min-width: 0; }
    .ac-top { gap: 10px; padding: 0 12px; }
    .ac-wrap, .ac-sec, .ac-pagina-cab, .ac-glo, .ac-exa { padding-left: 16px; padding-right: 16px; }
    .ac-glo-barra, .ac-exa-barra { padding-left: 16px; padding-right: 16px; }
    .ac-hero-in { padding: 40px 16px 48px; }
    .ac-cifras { grid-template-columns: 1fr 1fr; }
    .ac-mod { padding: 0 16px 64px; }
    .ac-mod-cab { margin: 0 -16px; padding: 32px 16px 28px; border-radius: 0 0 22px 22px; }
    .ac-mod-num { font-size: 8rem; bottom: -24px; }
    .ac-obj { flex-direction: column; gap: 2px; }
    .ac-campos { grid-template-columns: 1fr; }
    .ac-kv { grid-template-columns: 1fr 1fr; }
    .ac-stats-row { grid-template-columns: 1fr; }
    .ac-tool, .ac-quiz { padding: 18px; }
    .ac-ops, .ac-why, .ac-preg-mod { padding-left: 0; margin-left: 0; }
    .ac-sig { grid-template-columns: 1fr; }
    .ac-sig a.is-next { grid-column: 1; }
    .ac-flujo, .ac-marc, .ac-tablero { grid-template-columns: 1fr 1fr; }
    .ac-journey, .ac-madurez { grid-template-columns: 1fr; }
    .ac-mad { min-height: 0 !important; }
    .ac-flash-card { height: 420px; }
    .ac-hub-lectura { position: relative; left: auto; bottom: auto; transform: none; width: 100%; margin-top: 8px; }
    /* Tablas como fichas en pantallas angostas */
    .ac-tabla table, .ac-tabla tbody, .ac-tabla tr, .ac-tabla td { display: block; }
    .ac-tabla thead { display: none; }
    .ac-tabla tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
    .ac-tabla tr:last-child { border-bottom: 0; }
    .ac-tabla td { border: 0; padding: 3px 0; }
    .ac-tabla td[data-th]:not([data-th=""])::before { content: attr(data-th); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
    .ac-tabla td:first-child { font-weight: 600; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .ac-flujo-riel i { display: none; }
}

@media print {
    .ac-top, .ac-side, .ac-toc, .ac-quiz, .ac-sig, .ac-lectura, .ac-tool { display: none !important; }
    .ac-shell { display: block; }
    .ac-mod-cab { color: #000; background: none; }
}

/* ───────────────────────── Ingreso y cuenta ───────────────────────── */
body.ac-sin-sesion .ac-tabs, body.ac-sin-sesion .ac-buscar, body.ac-sin-sesion .ac-anillo,
body.ac-sin-sesion .ac-top-menu, body.ac-sin-sesion .ac-side, body.ac-sin-sesion .ac-velo { display: none !important; }
body.ac-sin-sesion .ac-shell { grid-template-columns: minmax(0, 1fr); }
body.ac-sin-sesion { padding-bottom: 0; }
.ac-ingreso {
    min-height: calc(100vh - var(--top)); display: grid; place-items: center; padding: 40px 16px;
    background: radial-gradient(900px 500px at 85% -10%, rgba(255, 61, 0, .22), transparent 60%),
                radial-gradient(800px 500px at -10% 110%, rgba(60, 60, 220, .3), transparent 60%),
                linear-gradient(160deg, var(--wu-navy-deep), #03031f 70%);
}
.ac-ing-card { width: min(460px, 100%); background: var(--surface); border-radius: 24px; padding: 32px; box-shadow: var(--sh-3); }
.ac-ing-card > img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.ac-ing-card h1 { font-size: 1.75rem; font-weight: 900; margin: 6px 0 8px; }
.ac-ing-sub { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.ac-ing-form { display: grid; gap: 12px; }
.ac-ing-form .ac-btn { justify-content: center; margin-top: 4px; }
.ac-ing-form input[type=text], .ac-ing-form input[type=email], .ac-ing-form input[type=password], .ac-ing-form select {
    height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: .95rem; width: 100%;
}
.ac-modal textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: .86rem; line-height: 1.5; resize: vertical; }
.ac-ing-form input:focus, .ac-ing-form select:focus, .ac-modal textarea:focus { outline: none; border-color: var(--wu-accent); box-shadow: 0 0 0 3px var(--wu-accent-soft); background: #fff; }
.ac-ing-err { color: #b42d00; font-size: .88rem; }
.ac-ing-err:empty { display: none; }
.ac-ing-pie { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 4px; }
.ac-ing-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #fff4ef; border: 1px solid #ffd2c0; color: #8a2a06; font-size: .88rem; }
.ac-ing-aviso svg.lucide { color: var(--wu-accent); margin-top: 2px; }
.ac-ing-aviso code { font-family: var(--font-m); font-size: .8rem; background: rgba(255, 255, 255, .7); padding: 1px 5px; border-radius: 5px; }
.ac-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.ac-check input { margin-top: 3px; accent-color: var(--wu-accent); }

.ac-user { position: relative; flex-shrink: 0; }
.ac-user-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: linear-gradient(135deg, var(--wu-accent), #ff8a5c);
    color: #fff; font-family: var(--font-d); font-weight: 800; font-size: .85rem; letter-spacing: .02em;
}
.ac-user-btn:hover { box-shadow: 0 0 0 3px rgba(255, 61, 0, .3); }
.ac-user-menu {
    position: absolute; right: 0; top: calc(100% + 10px); width: 260px; background: var(--surface); color: var(--ink); border-radius: 16px;
    border: 1px solid var(--line); box-shadow: var(--sh-3); padding: 6px; z-index: 80;
}
.ac-user-cab { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; gap: 2px; }
.ac-user-cab b { font-family: var(--font-d); font-size: .98rem; }
.ac-user-cab small { color: var(--muted); font-size: .8rem; word-break: break-all; }
.ac-user-cab .ac-cat { justify-self: start; margin-top: 6px; }
.ac-user-menu a, .ac-user-menu button { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 10px; font-size: .9rem; text-decoration: none; text-align: left; }
.ac-user-menu a:hover, .ac-user-menu button:hover { background: var(--wu-accent-soft); }
.ac-user-menu svg.lucide { width: 16px; height: 16px; color: var(--muted); }

/* Ventana modal */
.ac-modal-velo { position: fixed; inset: 0; z-index: 85; background: rgba(6, 6, 40, .5); display: grid; place-items: center; padding: 16px; animation: ac-fade .2s; overflow-y: auto; }
.ac-modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 22px; box-shadow: var(--sh-3); }
.ac-modal--ancho { width: min(860px, 100%); }
.ac-modal-cab { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ac-modal-cab h2 { font-size: 1.3rem; font-weight: 800; }
.ac-modal-x { width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--surface-2); display: grid; place-items: center; }
.ac-modal-x:hover { background: var(--line); }
.ac-modal-cuerpo { padding: 20px 22px 24px; display: grid; gap: 14px; }
.ac-clave-box { background: var(--wu-navy-deep); color: #fff; border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.ac-clave-box small { color: rgba(255, 255, 255, .6); font-size: .78rem; }
.ac-clave-box code { font-family: var(--font-m); font-size: 1.5rem; letter-spacing: .08em; color: #ffb086; word-break: break-all; }

/* Equipo */
.ac-eq-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 22px 0 14px; }
.ac-eq-barra .ac-glo-q { min-width: 220px; }
.ac-eq-barra select { height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); padding: 0 10px; font-size: .86rem; }
.ac-eq-tabla td { vertical-align: middle; }
.ac-eq-tabla tr.is-off td { opacity: .55; }
.ac-eq-p { display: inline-flex; gap: 10px; align-items: center; margin-right: 6px; }
.ac-eq-p b { display: block; font-weight: 600; }
.ac-eq-p small { display: block; color: var(--muted); font-size: .78rem; }
.ac-eq-av { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-family: var(--font-d); font-weight: 800; font-size: .76rem; background: var(--wu-navy-soft); color: var(--wu-navy); }
.ac-eq-tabla .ac-cat { margin: 2px 4px 0 0; display: inline-block; }
.ac-cat--off { background: #f3f4f6; color: var(--muted); }
.ac-cat--pend { background: #fef3c7; color: #92400e; }
.ac-cat--cliente { background: var(--wu-navy-soft); color: var(--wu-navy); }

/* Tipo de acceso en el formulario de persona: dos tarjetas elegibles */
.ac-pf-pub { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-pf-pub legend { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.ac-pf-op { position: relative; cursor: pointer; }
.ac-pf-op input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ac-pf-op span { display: grid; gap: 4px; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--surface); transition: border-color .15s, box-shadow .15s, background .15s; }
.ac-pf-op b { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); font-size: .92rem; }
.ac-pf-op b svg { width: 16px; height: 16px; color: var(--muted); }
.ac-pf-op small { color: var(--muted); font-size: .78rem; line-height: 1.4; }
.ac-pf-op:hover span { border-color: var(--wu-accent-line); }
.ac-pf-op input:checked + span { border-color: var(--wu-accent); background: var(--wu-accent-soft); box-shadow: 0 0 0 3px var(--wu-accent-soft); }
.ac-pf-op input:checked + span b svg { color: var(--wu-accent); }
.ac-pf-op input:focus-visible + span { outline: 2px solid var(--wu-accent); outline-offset: 2px; }
.ac-pf-op input:disabled + span { opacity: .45; cursor: not-allowed; }
.ac-ing-pie.is-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .ac-pf-pub { grid-template-columns: 1fr; } }
.ac-eq-bar { display: flex; align-items: center; gap: 8px; min-width: 130px; }
.ac-eq-bar .ac-mini { flex: 1; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.ac-eq-bar .ac-mini i { display: block; height: 100%; background: var(--st-2); }
.ac-eq-bar b { font-variant-numeric: tabular-nums; font-size: .86rem; min-width: 36px; text-align: right; }
.ac-eq-sub { display: block; color: var(--muted); font-size: .76rem; }
.ac-ok { color: #15803d; }
.ac-mal { color: #c2410c; }
.ac-btn--peligro:hover { border-color: var(--st-bad); color: var(--st-bad); }
.ac-det-meta { color: var(--muted); font-size: .9rem; }
.ac-det-kpi .ac-kpi b { font-size: 1.7rem; }
.ac-det-fechas { font-size: .8rem; color: var(--muted); }
.ac-det-mods { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ac-det-bloque { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.ac-det-mod { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .84rem; border-top: 1px solid var(--line); }
.ac-det-mod:first-of-type { border-top: 0; }
.ac-det-mod b { font-variant-numeric: tabular-nums; font-size: .82rem; }
.ac-det-acc { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
    .ac-user-btn { width: 36px; height: 36px; }
    .ac-ing-card { padding: 24px 20px; }
    .ac-det-mods { grid-template-columns: 1fr; }
    .ac-eq-barra select, .ac-eq-barra .ac-btn { flex: 1 1 45%; }
}

/* Resultado de cada persona */
.ac-res-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.ac-res-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ac-res-chip--ok { background: #dcfce7; color: #15803d; }
.ac-res-chip--casi { background: #e0f2fe; color: #0369a1; }
.ac-res-chip--mal { background: #ffedd5; color: #c2410c; }
.ac-res-chip--curso { background: #fef3c7; color: #92400e; }
.ac-res-chip--nada { background: #f3f4f6; color: #6b7280; }
.ac-res-banda { display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1px solid; font-size: .88rem; }
.ac-res-banda b { font-family: var(--font-d); font-size: 1.15rem; }
.ac-res-banda--ok { background: #effcf4; border-color: #a7ecc1; color: #14532d; }
.ac-res-banda--casi { background: #f0f9ff; border-color: #bae6fd; color: #0c4a6e; }
.ac-res-banda--mal { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.ac-res-banda--curso { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.ac-res-banda--nada { background: #f9fafb; border-color: var(--line); color: var(--ink-2); }

/* ───────── Capturas de pantalla dentro de los módulos ───────── */
.ac-fig { margin: 1.6em 0 !important; }
.ac-fig-btn { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--sh-2); cursor: zoom-in; position: relative; }
.ac-fig-btn img { display: block; width: 100%; height: auto; }
.ac-fig-btn::after { content: "Ampliar"; position: absolute; right: 10px; bottom: 10px; font: 600 .72rem var(--font-b); color: #fff; background: rgba(6, 6, 63, .72); padding: 4px 10px; border-radius: 99px; opacity: 0; transition: opacity .15s; }
.ac-fig-btn:hover::after, .ac-fig-btn:focus-visible::after { opacity: 1; }
.ac-fig-btn:focus-visible { outline: 2px solid var(--wu-accent); outline-offset: 3px; }
.ac-fig figcaption { margin-top: 8px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
.ac-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(6, 6, 30, .88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 16px; cursor: zoom-out; }
.ac-zoom img { max-width: min(1200px, 100%); max-height: 82vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); background: #fff; }
.ac-zoom p { color: #e5e7eb; font-size: .9rem; max-width: 900px; text-align: center; margin: 0; }
.ac-zoom-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ac-zoom-x:focus-visible { outline: 2px solid #fff; }

/* ───────── Novedades por versión ───────── */
.ac-nov-ver { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px 20px; margin-bottom: 16px; }
.ac-nov-ver header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.ac-nov-ver h2 { font-family: var(--font-d); font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--ink); }
.ac-nov-ver time { color: var(--muted); font-size: .84rem; }
.ac-nov-src { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--wu-navy); text-decoration: none; }
.ac-nov-src:hover { color: var(--wu-accent); }
.ac-nov-src svg { width: 14px; height: 14px; }
.ac-nov-prod { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: var(--wu-navy-soft); color: var(--wu-navy); }
.ac-nov-prod--agent { background: rgba(34, 197, 94, .12); color: #15803d; }
.ac-nov-prod--crm { background: var(--wu-accent-soft); color: var(--wu-accent); }
.ac-nov-ver ul { list-style: none; margin: 0; padding: 0; }
.ac-nov-it { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ac-nov-it:first-child { border-top: 0; }
.ac-nov-it b { display: block; color: var(--ink); font-weight: 700; }
.ac-nov-it p { margin: 3px 0 6px; color: var(--ink-2); font-size: .92rem; line-height: 1.5; }
.ac-nov-it a { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--wu-navy); text-decoration: none; }
.ac-nov-it a:hover { color: var(--wu-accent); }
.ac-nov-it a svg { width: 14px; height: 14px; }
.ac-nov-tipo { align-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.ac-nov-tipo svg { width: 13px; height: 13px; }
.ac-nov-it--nuevo .ac-nov-tipo { background: rgba(34, 197, 94, .1); color: #15803d; border-color: rgba(34, 197, 94, .25); }
.ac-nov-it--cambio .ac-nov-tipo { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.ac-nov-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ac-nov-mini a { text-decoration: none; color: inherit; }
.ac-nov-mini ul { margin: 6px 0 4px; padding-left: 18px; color: var(--ink-2); font-size: .9rem; }
.ac-nov-mini small { color: var(--muted); }
@media (max-width: 760px) { .ac-nov-mini { grid-template-columns: 1fr; } .ac-nov-it { grid-template-columns: 1fr; gap: 6px; } .ac-nov-src { margin-left: 0; } }
.ac-fchip svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }

/* ───────────── Roles de formación ───────────── */
.ac-plan-side { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border: 1px solid var(--wu-accent); border-radius: var(--r); background: var(--wu-accent-soft); color: var(--ink); text-decoration: none; }
.ac-plan-side svg.lucide { width: 18px; height: 18px; color: var(--wu-accent); flex-shrink: 0; }
.ac-plan-side span { display: grid; min-width: 0; flex: 1; }
.ac-plan-side small { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ac-plan-side b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-plan-side em { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.ac-plan-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-plan-meta b { font-family: var(--font-d); font-size: 2rem; font-weight: 900; line-height: 1; }
.ac-plan-meta b small { font-size: 1rem; color: var(--muted); font-weight: 700; }
.ac-plan-meta > span { color: var(--muted); font-size: .85rem; }
.ac-plan-fin { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: .92rem; }
.ac-plan-fin svg.lucide { width: 18px; height: 18px; color: var(--wu-accent); flex-shrink: 0; margin-top: 2px; }
#ac-plan-elegir { margin-top: 22px; }

.ac-rl-aviso { flex: 1; color: var(--muted); font-size: .85rem; min-width: 200px; }
.ac-rl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ac-rl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ac-rl-cab { display: flex; gap: 12px; align-items: center; }
.ac-rl-cab > svg.lucide { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--wu-navy-soft); color: var(--wu-navy); flex-shrink: 0; }
.ac-rl-cab h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.ac-rl > p { color: var(--muted); font-size: .88rem; }
.ac-rl .ac-rl-num { color: var(--ink-2); }
.ac-rl-mods { display: flex; flex-wrap: wrap; gap: 4px; }
.ac-rl-mods span { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.ac-rl-mods span.is-mal { color: var(--st-bad); border-color: var(--st-bad); }
.ac-rl-acc { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.ac-rl-cab-mods { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; }
.ac-rl-cab-mods span { font-size: .85rem; color: var(--wu-accent); font-weight: 700; }
.ac-rl-mods-ed { max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; background: var(--surface-2); }
.ac-rl-bloque + .ac-rl-bloque { margin-top: 14px; }
.ac-rl-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 8px; font-size: .86rem; cursor: default; }
.ac-rl-fila span { min-width: 0; }
.ac-rl-fila b { color: var(--wu-navy); margin-right: 4px; }
.ac-rl-fila select { flex-shrink: 0; width: 120px; padding: 5px 8px; font-size: .82rem; }
.ac-rl-fila.is-on { background: var(--wu-accent-soft); }
.ac-rl-fila.is-off { opacity: .45; }
.ac-rl-solo { margin-left: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) {
    .ac-rl-fila { flex-direction: column; align-items: stretch; gap: 4px; }
    .ac-rl-fila select { width: 100%; }
}
.ac-rutas-grupo + .ac-rutas-grupo { margin-top: 22px; }
.ac-rutas-grupo .ac-rutas { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ac-rutas-grupo .ac-ruta { padding: 18px; }
.ac-rutas-grupo .ac-ruta-ic { width: 38px; height: 38px; border-radius: 11px; margin-bottom: 10px; }
.ac-rutas-grupo .ac-ruta h3 { font-size: 1.02rem; padding-right: 26px; }
.ac-ruta-num { margin-top: 10px !important; font-size: .78rem !important; font-weight: 700; color: var(--ink-2) !important; }
.ac-rl-gt { font-size: 1.05rem; font-weight: 800; margin: 26px 0 12px; }
.ac-rl-gt:first-child { margin-top: 0; }
.ac-pf-roles { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; }
.ac-pf-roles legend { font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.ac-pf-roles legend small { font-weight: 600; color: var(--wu-accent); }
#ac-pf-r { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--surface-2); }
.ac-pf-rgrupo + .ac-pf-rgrupo { margin-top: 10px; }
.ac-pf-rgrupo .ac-side-k { margin-bottom: 4px; }
.ac-pf-rol { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 8px; font-size: .88rem; cursor: pointer; }
.ac-pf-rol:hover { background: var(--surface); }
.ac-pf-rol input { accent-color: var(--wu-accent); width: 16px; height: 16px; }

/* ───────────── Datos por verificar ───────────── */
.ac-vf-cuenta { color: var(--muted); font-size: .85rem; margin: 4px 0 10px; }
.ac-vf { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--st-1, #f59e0b); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; }
.ac-vf.is-confirmado { border-left-color: var(--st-2); }
.ac-vf.is-corregir { border-left-color: var(--st-bad); }
.ac-vf-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; }
.ac-vf-donde { flex: 1; min-width: 200px; color: var(--muted); }
.ac-vf-donde a { color: var(--ink-2); font-weight: 600; }
.ac-vf-cab code { font-size: .72rem; color: var(--muted); }
.ac-vf blockquote { margin: 10px 0; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; font-size: .92rem; color: var(--ink); line-height: 1.5; }
.ac-vf-marca { font-size: .82rem; color: var(--ink-2); margin: 0 0 10px; }
.ac-vf-acc { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-vf-acc .is-on { border-color: var(--wu-accent); color: var(--wu-accent); }
.ac-vf-nota { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.ac-vf-nota[hidden] { display: none; }
.ac-vf-nota textarea { flex: 1; font: inherit; font-size: .9rem; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; resize: vertical; }
.ac-vf-mas { text-align: center; margin: 14px 0; }
@media (max-width: 640px) { .ac-vf-nota { flex-direction: column; align-items: stretch; } }

/* ───────────── Guías paso a paso ───────────── */
.ac-art h3.ac-paso-h { display: flex; align-items: center; gap: 12px; margin-top: 2.4em; padding-top: 1.2em; border-top: 1px dashed var(--line-2); }
.ac-paso-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--wu-accent); color: #fff; display: grid; place-items: center; font: 800 1rem var(--font-d); box-shadow: 0 0 0 5px var(--wu-accent-soft); }
.ac-nota--mira { background: #eef4ff; border-color: #c9dafc; }
.ac-nota--mira::before { background: #2f6fec; }
.ac-nota--mira .ac-nota-t { color: #1b4fb8; }

/* ───────────── Mapa interactivo y reto de clic ───────────── */
.ac-mapa-i, .ac-reto { margin: 1.8em 0 !important; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.ac-mapa-i-img, .ac-reto-img { position: relative; line-height: 0; }
.ac-mapa-i-img img, .ac-reto-img img { display: block; width: 100%; height: auto; }
.ac-hot { position: absolute; transform: translate(-55%, -55%); width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; background: var(--wu-accent); color: #fff; font: 800 .9rem var(--font-d); line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); animation: ac-latido 2.2s ease-in-out infinite; padding: 0; }
.ac-hot.is-on { background: #1b4fb8; animation: none; transform: translate(-55%, -55%) scale(1.15); }
.ac-hot:focus-visible { outline: 3px solid #1b4fb8; outline-offset: 2px; }
@keyframes ac-latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,61,0,.45), 0 2px 8px rgba(0,0,0,.3); } 50% { box-shadow: 0 0 0 9px rgba(255,61,0,0), 0 2px 8px rgba(0,0,0,.3); } }
.ac-hot-zona { position: absolute; border: 3px solid #1b4fb8; border-radius: 8px; background: rgba(27,79,184,.08); opacity: 0; transition: opacity .2s; pointer-events: none; }
.ac-hot-zona.is-on { opacity: 1; }
.ac-mapa-i-panel { padding: 14px 18px 16px; border-top: 1px solid var(--line); line-height: 1.5; }
.ac-mapa-i-k, .ac-reto-k { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--wu-accent); margin: 0 0 6px; }
.ac-mapa-i-txt p { margin: 0 0 12px; font-size: .98rem; color: var(--ink); }
.ac-mapa-i-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #1b4fb8; color: #fff; font-size: .8rem; margin-right: 8px; vertical-align: 1px; }
.ac-mapa-i-nav { display: flex; align-items: center; gap: 10px; }
.ac-mapa-i-pos { flex: 1; text-align: center; font-size: .82rem; color: var(--muted); font-weight: 600; }
.ac-mapa-i-lista { display: none; }
.ac-mapa-i figcaption { padding: 0 18px 14px; font-size: .85rem; color: var(--muted); }
.ac-reto { padding-top: 14px; }
.ac-reto-k, .ac-reto-q { padding: 0 18px; }
.ac-reto-q { font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.ac-reto-img { cursor: crosshair; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ac-reto-zona { position: absolute; border: 3px dashed var(--st-2); border-radius: 8px; background: rgba(34,197,94,.12); display: none; pointer-events: none; }
.ac-reto.is-mal .ac-reto-zona, .ac-reto.is-bien .ac-reto-zona { display: block; }
.ac-reto-punto { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); pointer-events: none; }
.ac-reto.is-bien .ac-reto-punto { background: var(--st-2); }
.ac-reto.is-mal .ac-reto-punto { background: var(--st-bad); }
.ac-reto-fb { margin: 12px 18px; font-size: .95rem; line-height: 1.5; min-height: 1px; }
.ac-reto.is-bien .ac-reto-fb b { color: #116634; }
.ac-reto.is-mal .ac-reto-fb b { color: var(--st-bad); }
.ac-reto-otra { margin: 0 18px 16px; }
@media (prefers-reduced-motion: reduce) { .ac-hot { animation: none; } }

/* ───────────── Tarjetas con ícono ───────────── */
.ac-tarjs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 1.4em 0; }
.ac-tarj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ac-tarj:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--wu-accent); }
.ac-tarj-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--wu-accent-soft); color: var(--wu-accent); margin-bottom: 4px; }
.ac-tarj-ic svg.lucide { width: 21px; height: 21px; }
.ac-tarj:nth-child(4n+2) .ac-tarj-ic { background: #eef4ff; color: #1b4fb8; }
.ac-tarj:nth-child(4n+3) .ac-tarj-ic { background: #effcf4; color: #116634; }
.ac-tarj:nth-child(4n+4) .ac-tarj-ic { background: #f6efff; color: #6b2fb8; }
.ac-art .ac-tarj p { margin: 0; }
.ac-tarj-t { font-weight: 800; color: var(--ink); font-size: 1rem; }
.ac-tarj-d { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }
.ac-tarj-cuando { margin-top: auto !important; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .8rem; color: var(--muted); }
.ac-tarj-cuando strong { color: var(--ink-2); }

/* ───────────────────────── Color por aplicación ───────────────────────── */
[data-app="contact-center"] { --app: #0f766e; }
[data-app="plataforma"] { --app: #2563eb; }
[data-app="agent"] { --app: #c026d3; }
[data-app="manager"] { --app: #15803d; }
[data-app="studio"] { --app: #b45309; }
[data-app="crm-uso"] { --app: #7c3aed; }
[data-app="crm"] { --app: #4338ca; }
[data-app="negocio"] { --app: #475569; }

.ac-item[data-app] .ac-item-n { color: var(--app); border-color: color-mix(in srgb, var(--app) 30%, var(--line)); background: color-mix(in srgb, var(--app) 6%, var(--surface)); }
.ac-item.is-on[data-app] { background: color-mix(in srgb, var(--app) 10%, transparent); }
.ac-item.is-on[data-app] .ac-item-n { background: var(--app); border-color: var(--app); color: #fff; }
.ac-grupo[data-app] .ac-grupo-t { justify-content: flex-start; gap: 8px; }
.ac-grupo[data-app] .ac-grupo-t::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--app); flex-shrink: 0; }
.ac-grupo[data-app] .ac-grupo-t small { margin-left: auto; }

.ac-card[data-app] { box-shadow: inset 0 3px 0 var(--app); }
.ac-card[data-app]:hover { box-shadow: inset 0 3px 0 var(--app), var(--sh-2); }
.ac-card[data-app] .ac-card-ic { color: var(--app); background: color-mix(in srgb, var(--app) 10%, var(--surface)); }
.ac-card[data-app] .ac-card-n { color: var(--app); }
.ac-card[style*="--leido"][data-st="1"]::after { background: linear-gradient(90deg, var(--st-1) var(--leido), var(--line) var(--leido)); }

.ac-miga-app { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; color: #fff; font-weight: 600; background: color-mix(in srgb, var(--app, var(--wu-accent)) 55%, transparent); border: 1px solid color-mix(in srgb, var(--app, var(--wu-accent)) 80%, #fff 20%); }
.ac-mod-cab[data-app] { background: radial-gradient(700px 300px at 100% 0, color-mix(in srgb, var(--app) 45%, transparent), transparent 60%), linear-gradient(150deg, var(--wu-navy-deep), #04042a 70%); }

/* Barra de avance genérica */
.ac-barra { display: block; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ac-barra > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--app, var(--wu-accent)), color-mix(in srgb, var(--app, var(--wu-accent)) 55%, #fff)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }

/* Índice: Mi ruta / Todo */
.ac-idx-modo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin: -4px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ac-idx-modo button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.ac-idx-modo button svg.lucide { width: 14px; height: 14px; }
.ac-idx-modo button small { font-size: .7rem; padding: 1px 6px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.ac-idx-modo button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.ac-idx-modo button.is-on small { background: var(--wu-accent); color: #fff; }
.ac-idx-mas { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; cursor: pointer; text-align: left; }
.ac-idx-mas:hover { color: var(--ink); border-color: var(--wu-accent); }
.ac-idx-mas svg.lucide { width: 14px; height: 14px; flex-shrink: 0; }

/* Índice del módulo: secciones leídas */
.ac-toc p { display: flex; justify-content: space-between; align-items: baseline; }
.ac-toc p b { font-size: .78rem; color: var(--st-2); letter-spacing: 0; }
.ac-toc-barra { height: 5px; margin-bottom: 12px; }
.ac-toc-barra > span { background: var(--st-2); }
.ac-toc a svg.lucide { display: none; width: 13px; height: 13px; margin: 0 6px -2px 0; color: var(--st-2); stroke-width: 3; }
.ac-toc a.is-leido { color: var(--ink-2); border-color: color-mix(in srgb, var(--st-2) 60%, var(--line)); }
.ac-toc a.is-leido svg.lucide { display: inline-block; }
.ac-toc a.is-on { color: var(--wu-accent); border-color: var(--wu-accent); }

/* Aviso para retomar la lectura */
.ac-retomar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; max-width: calc(100% - 32px); border-radius: 999px; background: var(--wu-carbon); color: #fff; box-shadow: var(--sh-3); font-size: .9rem; animation: ac-subir .45s cubic-bezier(.2, .8, .2, 1); transition: opacity .3s, transform .3s; }
.ac-retomar > svg.lucide { width: 18px; height: 18px; color: #ffb59c; flex-shrink: 0; }
.ac-retomar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-retomar-x { border: 0; background: transparent; color: rgba(255, 255, 255, .6); cursor: pointer; padding: 6px; display: grid; place-items: center; border-radius: 50%; }
.ac-retomar-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.ac-retomar-x svg.lucide { width: 16px; height: 16px; }
.ac-retomar.is-fuera { opacity: 0; transform: translate(-50%, 20px); }
@keyframes ac-subir { from { opacity: 0; transform: translate(-50%, 24px); } }

/* ───────────────────────── Inicio: Mi día ───────────────────────── */
.ac-hoy {
    position: relative; overflow: hidden; color: #fff; isolation: isolate;
    background: radial-gradient(900px 400px at 90% -20%, rgba(255, 61, 0, .25), transparent 60%),
                radial-gradient(800px 500px at -10% 130%, rgba(60, 60, 220, .3), transparent 60%),
                linear-gradient(160deg, var(--wu-navy-deep) 0%, #03031f 60%, var(--wu-carbon) 100%);
}
.ac-hoy-in { max-width: 1180px; margin: 0 auto; padding: 44px 32px 48px; }
.ac-hoy-cab { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ac-hoy-cab .ac-k { color: #ffb59c; }
.ac-hoy-cab h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -.03em; margin-top: 6px; }
.ac-hoy-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ac-hoy-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background .15s; }
a.ac-hoy-chip:hover { background: rgba(255, 255, 255, .14); }
.ac-hoy-chip svg.lucide { width: 16px; height: 16px; }
.ac-hoy-chip.is-on { color: #fff; background: rgba(255, 61, 0, .18); border-color: rgba(255, 61, 0, .5); }
.ac-hoy-chip.is-on svg.lucide { color: #ff7a45; }
.ac-hoy-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.ac-hoy-sigue, .ac-hoy-plan { border-radius: var(--r-lg); padding: 26px; }
.ac-hoy-sigue { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: var(--sh-3); position: relative; overflow: hidden; transition: transform .25s; }
.ac-hoy-sigue::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--app); }
.ac-hoy-sigue:hover { transform: translateY(-3px); }
.ac-hoy-k { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ac-hoy-k svg.lucide { width: 15px; height: 15px; color: var(--wu-accent); }
.ac-hoy-app { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--app); background: color-mix(in srgb, var(--app) 10%, var(--surface)); }
.ac-hoy-app svg.lucide { width: 14px; height: 14px; }
.ac-hoy-sigue h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 900; line-height: 1.15; letter-spacing: -.02em; }
.ac-hoy-sigue h2 span { display: block; font-size: .9rem; color: var(--app); letter-spacing: .02em; margin-bottom: 4px; }
.ac-hoy-sigue .ac-barra { height: 10px; margin-top: 4px; }
.ac-hoy-sigue p { color: var(--ink-2); font-size: .95rem; }
.ac-hoy-sigue .ac-btn { align-self: flex-start; margin-top: 6px; }
.ac-hoy-plan { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-content: start; align-items: center; }
.ac-hoy-anillo { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, #0b0b30 78%, transparent 80% 100%), conic-gradient(var(--st-2) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0); }
.ac-hoy-anillo b { font-family: var(--font-d); font-size: 1.5rem; line-height: 1; }
.ac-hoy-anillo small { font-size: .66rem; color: rgba(255, 255, 255, .6); margin-top: 3px; }
.ac-hoy-plan-t { font-size: .95rem; color: rgba(255, 255, 255, .8); }
.ac-hoy-plan-t b { color: #fff; font-size: 1.15rem; }
.ac-hoy-plan-t small { display: block; color: rgba(255, 255, 255, .55); font-size: .8rem; margin-top: 2px; }
.ac-hoy-plan > .ac-hoy-k { grid-column: 1 / -1; color: rgba(255, 255, 255, .55); margin-top: 4px; }
.ac-hoy-lista { grid-column: 1 / -1; display: grid; gap: 6px; }
.ac-hoy-lista a { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: rgba(255, 255, 255, .88); font-size: .88rem; background: rgba(255, 255, 255, .05); transition: background .15s; }
.ac-hoy-lista a:hover { background: rgba(255, 255, 255, .12); }
.ac-hoy-lista .ac-item-n { color: #fff; border-color: transparent; background: color-mix(in srgb, var(--app) 70%, transparent); }
.ac-hoy-lista svg.lucide { width: 16px; height: 16px; opacity: .5; }

@media (max-width: 860px) {
    .ac-hoy-in { padding: 32px 16px 36px; }
    .ac-hoy-grid { grid-template-columns: 1fr; }
    .ac-hoy-sigue, .ac-hoy-plan { padding: 20px; }
    .ac-retomar { bottom: 84px; }
}

/* ───────────────────────── Tutor con IA ───────────────────────── */
.ac-tutor-btn {
    position: fixed; right: 24px; bottom: 24px; z-index: 70; display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px 13px 16px;
    border: 0; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: .92rem; color: #fff;
    background: linear-gradient(135deg, var(--app, var(--wu-navy)), color-mix(in srgb, var(--app, var(--wu-navy)) 55%, var(--wu-accent)));
    box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--app, var(--wu-navy)) 85%, transparent); transition: transform .2s, box-shadow .2s;
    animation: ac-subir-d .5s .6s both cubic-bezier(.2, .8, .2, 1);
}
.ac-tutor-btn:hover { transform: translateY(-2px); }
.ac-tutor-btn svg.lucide { width: 18px; height: 18px; }
.ac-tutor-btn[hidden] { display: none; }
@keyframes ac-subir-d { from { opacity: 0; transform: translateY(16px); } }

.ac-tutor {
    position: fixed; right: 24px; bottom: 24px; z-index: 85; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - var(--top) - 48px));
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden;
    animation: ac-subir-d .35s cubic-bezier(.2, .8, .2, 1);
}
.ac-tutor[hidden] { display: none; }
.ac-tutor-cab { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; color: #fff; background: linear-gradient(135deg, var(--wu-navy-deep), color-mix(in srgb, var(--app, var(--wu-navy)) 70%, var(--wu-navy-deep))); }
.ac-tutor-cab div { display: grid; min-width: 0; flex: 1; }
.ac-tutor-cab b { font-size: .98rem; }
.ac-tutor-cab small { font-size: .76rem; color: rgba(255, 255, 255, .7); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-tutor-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); flex-shrink: 0; }
.ac-tutor-ic svg.lucide { width: 18px; height: 18px; }
.ac-tutor-x { border: 0; background: transparent; color: rgba(255, 255, 255, .75); cursor: pointer; padding: 6px; border-radius: 50%; display: grid; place-items: center; }
.ac-tutor-x:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.ac-tutor-x svg.lucide { width: 18px; height: 18px; }

.ac-tutor-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.ac-tutor-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.ac-tutor-msg p + p, .ac-tutor-msg p + ul, .ac-tutor-msg p + ol, .ac-tutor-msg ul + p, .ac-tutor-msg ol + p { margin-top: 8px; }
.ac-tutor-msg ul, .ac-tutor-msg ol { padding-left: 20px; display: grid; gap: 3px; }
.ac-tutor-msg.is-bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink-2); }
.ac-tutor-msg.is-yo { align-self: flex-end; background: var(--app, var(--wu-navy)); color: #fff; border-bottom-right-radius: 6px; white-space: pre-wrap; }
.ac-tutor-msg.is-error { border-color: color-mix(in srgb, var(--st-1) 50%, var(--line)); background: color-mix(in srgb, var(--st-1) 8%, var(--surface)); }
.ac-tutor-ir { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 10px; width: 100%; border: 1px solid color-mix(in srgb, var(--app, var(--wu-accent)) 35%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--app, var(--wu-accent)) 7%, var(--surface)); color: var(--app, var(--wu-accent)); font: inherit; font-size: .8rem; font-weight: 600; text-align: left; cursor: pointer; }
.ac-tutor-ir:hover { background: color-mix(in srgb, var(--app, var(--wu-accent)) 14%, var(--surface)); }
.ac-tutor-ir svg.lucide { width: 14px; height: 14px; flex-shrink: 0; }
.ac-tutor-msg.is-pensando { display: flex; gap: 5px; padding: 14px 16px; }
.ac-tutor-msg.is-pensando i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: ac-punto 1.2s infinite ease-in-out; }
.ac-tutor-msg.is-pensando i:nth-child(2) { animation-delay: .15s; }
.ac-tutor-msg.is-pensando i:nth-child(3) { animation-delay: .3s; }
@keyframes ac-punto { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-4px); } }

.ac-tutor-sug { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px; background: var(--bg); }
.ac-tutor-sug:empty { display: none; }
.ac-tutor-sug button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .8rem; cursor: pointer; margin-bottom: 10px; }
.ac-tutor-sug button:hover { border-color: var(--app, var(--wu-accent)); color: var(--app, var(--wu-accent)); }
.ac-tutor-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ac-tutor-form textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: .9rem; line-height: 1.4; max-height: 120px; background: var(--surface); color: var(--ink); }
.ac-tutor-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--app, var(--wu-accent)) 40%, transparent); border-color: var(--app, var(--wu-accent)); }
.ac-tutor-env { width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: var(--app, var(--wu-accent)); }
.ac-tutor-env svg.lucide { width: 18px; height: 18px; }
.ac-tutor-pie { padding: 0 14px 10px; font-size: .7rem; color: var(--muted); background: var(--surface); text-align: center; }

@media (max-width: 860px) {
    .ac-tutor-btn { right: 16px; bottom: 84px; padding: 12px 16px 12px 14px; }
    .ac-tutor { right: 0; left: 0; bottom: 0; width: 100%; height: min(78vh, 640px); border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ───────────────────────── Pregunta rápida entre secciones ───────────────────────── */
.ac-pausa { margin: 36px 0 8px; padding: 20px 22px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--wu-accent) 25%, var(--line)); background: linear-gradient(180deg, color-mix(in srgb, var(--wu-accent) 5%, var(--surface)), var(--surface)); }
.ac-pausa-k { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wu-accent); }
.ac-pausa-k svg.lucide { width: 15px; height: 15px; }
.ac-pausa-k small { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); margin-left: auto; }
.ac-pausa-q { font-weight: 700; color: var(--ink); margin: 10px 0 12px; font-size: 1rem; }
.ac-pausa-ops { display: grid; gap: 8px; }
.ac-pausa-ops button { text-align: left; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: inherit; font-size: .9rem; cursor: pointer; transition: border-color .15s, background .15s; }
.ac-pausa-ops button:hover:not([disabled]) { border-color: var(--wu-accent); }
.ac-pausa-ops button[disabled] { cursor: default; }
.ac-pausa-ops button.is-ok { border-color: var(--st-2); background: color-mix(in srgb, var(--st-2) 10%, var(--surface)); color: var(--ink); }
.ac-pausa-ops button.is-no { border-color: var(--st-bad); background: color-mix(in srgb, var(--st-bad) 8%, var(--surface)); }
.ac-pausa-fb { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.ac-pausa.is-bien .ac-pausa-fb b { color: var(--st-2); }
.ac-pausa.is-mal .ac-pausa-fb b { color: var(--st-1); }

/* ───────────────────────── Simulación "Hazlo tú" ───────────────────────── */
.ac-prac { margin: 28px 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-2); overflow: hidden; }
.ac-prac-cab { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #fff; background: radial-gradient(500px 200px at 100% 0, rgba(255, 61, 0, .3), transparent 60%), linear-gradient(135deg, var(--wu-navy-deep), #1b1b8a); }
.ac-prac-cab > div { flex: 1; min-width: 0; }
.ac-prac-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex-shrink: 0; }
.ac-prac-ic svg.lucide { width: 22px; height: 22px; }
.ac-prac-k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffb59c; }
.ac-prac-t { font-family: var(--font-d); font-weight: 800; font-size: 1.15rem; margin-top: 2px; }
.ac-prac-sub { font-size: .84rem; color: rgba(255, 255, 255, .7); }
.ac-prac-cuerpo { padding: 18px 20px 20px; }
.ac-prac-barra { display: flex; gap: 6px; margin-bottom: 12px; }
.ac-prac-barra i { flex: 1; height: 6px; border-radius: 999px; background: var(--line); }
.ac-prac-barra i.is-hecho { background: var(--st-2); }
.ac-prac-barra i.is-actual { background: var(--wu-accent); }
.ac-prac-paso { font-size: 1rem; color: var(--ink); margin-bottom: 12px; }
.ac-prac-img { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); cursor: crosshair; line-height: 0; }
.ac-prac-img img { width: 100%; height: auto; display: block; }
.ac-prac-zona { position: absolute; border-radius: 8px; border: 3px solid transparent; pointer-events: none; transition: border-color .2s, box-shadow .2s; }
.ac-prac.is-pista .ac-prac-zona { border-color: var(--wu-accent); box-shadow: 0 0 0 4px rgba(255, 61, 0, .25); animation: ac-latido 1.2s infinite; }
.ac-prac.is-bien .ac-prac-zona { border-color: var(--st-2); box-shadow: 0 0 0 4px rgba(34, 197, 94, .3); animation: none; }
.ac-prac-punto { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(239, 68, 68, .85); box-shadow: 0 0 0 4px rgba(239, 68, 68, .25); pointer-events: none; animation: ac-pulso .4s; }
.ac-prac-punto.is-bien { background: rgba(34, 197, 94, .9); box-shadow: 0 0 0 5px rgba(34, 197, 94, .3); }
@keyframes ac-pulso { from { transform: scale(.3); opacity: 0; } }
.ac-prac-fb { min-height: 1.5em; margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.ac-prac.is-bien .ac-prac-fb b { color: var(--st-2); }
.ac-prac-fb b { color: var(--st-bad); }
.ac-prac-fin { text-align: center; padding: 18px 10px 8px; display: grid; justify-items: center; gap: 8px; }
.ac-prac-trofeo { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f59e0b, var(--wu-accent)); box-shadow: 0 12px 30px -10px rgba(255, 61, 0, .7); animation: ac-pulso .5s; }
.ac-prac-trofeo svg.lucide { width: 30px; height: 30px; }
.ac-prac-fin-t { font-family: var(--font-d); font-weight: 900; font-size: 1.5rem; color: var(--ink); }
.ac-prac-fin p { color: var(--ink-2); }
@media (max-width: 600px) {
    .ac-prac-cab { flex-wrap: wrap; }
    .ac-prac-cab .ac-btn { width: 100%; justify-content: center; }
}

/* ───────────────────────── "¿Qué te pasa?" ───────────────────────── */
.ac-diag { margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); overflow: hidden; }
.ac-diag-cab { padding: 18px 20px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--wu-navy) 5%, var(--surface)), var(--surface)); border-bottom: 1px solid var(--line); }
.ac-diag-k { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.ac-diag-k svg.lucide { width: 20px; height: 20px; color: var(--wu-accent); }
.ac-diag-buscar { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.ac-diag-buscar:focus-within { border-color: var(--wu-accent); box-shadow: 0 0 0 3px var(--wu-accent-soft); }
.ac-diag-buscar svg.lucide { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.ac-diag-buscar input { flex: 1; border: 0; outline: 0; padding: 11px 0; font: inherit; font-size: .92rem; background: transparent; color: var(--ink); min-width: 0; }
.ac-diag-temas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ac-diag-temas button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; cursor: pointer; }
.ac-diag-temas button.is-on { background: var(--wu-navy); border-color: var(--wu-navy); color: #fff; }
.ac-diag-lista { display: grid; }
.ac-diag-item { border-bottom: 1px solid var(--line); }
.ac-diag-item:last-child { border-bottom: 0; }
.ac-diag-item summary { display: flex; align-items: center; gap: 10px; padding: 12px 20px; cursor: pointer; list-style: none; font-weight: 600; color: var(--ink); }
.ac-diag-item summary::-webkit-details-marker { display: none; }
.ac-diag-item summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; font-weight: 400; color: var(--muted); }
.ac-diag-item[open] summary::after { content: "–"; }
.ac-diag-item summary:hover { background: var(--surface-2); }
.ac-diag-tema { flex-shrink: 0; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.ac-diag-res { padding: 2px 20px 16px; display: grid; gap: 8px; color: var(--ink-2); font-size: .92rem; }
.ac-diag-res b { color: var(--ink); }
.ac-diag-vacio { padding: 18px 20px; color: var(--muted); }
@media (max-width: 600px) { .ac-diag-tema { display: none; } }

/* ───────────────────────── Lista de chequeo ───────────────────────── */
.ac-lista { margin: 24px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.ac-lista-cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ac-lista-k { display: flex; align-items: center; gap: 8px; font-family: var(--font-d); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.ac-lista-k svg.lucide { width: 20px; height: 20px; color: var(--wu-accent); }
.ac-lista-n { font-size: .82rem; font-weight: 700; color: var(--muted); }
.ac-lista.is-completa .ac-lista-n { color: var(--st-2); }
.ac-lista-barra { height: 6px; margin: 10px 0 12px; }
.ac-lista-barra > span { background: var(--st-2); }
.ac-lista-items { display: grid; gap: 6px; }
.ac-lista-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; transition: background .15s, border-color .15s; }
.ac-lista-item:hover { background: var(--surface-2); }
.ac-lista-item input { position: absolute; opacity: 0; pointer-events: none; }
.ac-lista-check { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s; }
.ac-lista-check svg.lucide { width: 14px; height: 14px; stroke-width: 3; }
.ac-lista-item:focus-within .ac-lista-check { box-shadow: 0 0 0 3px var(--wu-accent-soft); }
.ac-lista-item span:last-child { display: grid; gap: 2px; }
.ac-lista-item b { color: var(--ink); }
.ac-lista-item small { color: var(--muted); font-size: .84rem; }
.ac-lista-item.is-ok { border-color: color-mix(in srgb, var(--st-2) 45%, var(--line)); background: color-mix(in srgb, var(--st-2) 6%, var(--surface)); }
.ac-lista-item.is-ok .ac-lista-check { background: var(--st-2); border-color: var(--st-2); color: #fff; }
.ac-lista-item.is-ok b { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--st-2) 60%, transparent); }

/* Teclas dentro de las tarjetas (atajos) */
.ac-tarj-cuando code { display: inline-block; padding: 1px 7px; margin: 0 1px; border: 1px solid var(--line-2); border-bottom-width: 3px; border-radius: 6px; background: var(--surface); font-family: var(--font-m); font-size: .78rem; color: var(--ink); }
