/* ============================================================================
   ACELERA LMS · Sistema de diseño
   ----------------------------------------------------------------------------
   Capa de presentación. No contiene lógica: todas las clases y atributos
   corresponden al marcado existente de las vistas Blade y a los ganchos que
   usan lms.js, course-menu.js, video-player.js, bulk-import.js,
   instrument-builder.js, course-configuration.js, module-panels.js y
   program-selection.js.

   Para cambiar la paleta, edita assets/theme.css (se carga después de este
   archivo). No hace falta tocar este archivo para ajustar colores.

   Índice
   01 · Tokens
   02 · Reset y base
   03 · Tipografía
   04 · Estructura de la aplicación
   05 · Cabecera
   06 · Barra lateral de cursos
   07 · Ruta de navegación
   08 · Superficies y rejillas
   09 · Botones
   10 · Insignias y estados
   11 · Avisos
   12 · Formularios
   13 · Tablas
   14 · Listas de contenido
   15 · Progreso
   16 · Video
   17 · Portadas
   18 · Paneles de módulo
   19 · Sesión: material, actividad y comentarios
   20 · Instrumentos y Playbook
   21 · Quiz
   22 · Carga masiva
   23 · Plataforma: empresas, programas y ámbitos
   24 · Paginación y pie
   25 · Utilidades
   26 · Adaptación a pantallas pequeñas
   27 · Impresión y accesibilidad
   ========================================================================== */

/* == 01 · Tokens ========================================================== */

:root {
    /* Marca */
    --navy-900: #071b32;
    --navy-800: #0e1b2e;
    --navy-700: #0a2540;
    --navy-600: #14304c;
    --cobalt: #2b7fff;
    --cobalt-dark: #1a5fd6;
    --cobalt-soft: #eef4ff;
    --gold: #ffc629;
    --gold-soft: #fff6e0;
    --orange: #ff6a1a;
    --orange-dark: #d9500a;

    /* Neutros */
    --canvas: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f7f8fa;
    --surface-3: #eef0f4;
    --line: #e5e8ee;
    --line-strong: #cbd2dd;
    --ink: var(--navy-800);
    --ink-soft: #2a3a50;
    --muted: #5d6b80;

    /* Semánticos */
    --success: #0f7b4f;
    --success-bg: #e9f6f0;
    --warning: #8a6100;
    --warning-bg: #fff7e6;
    --danger: #b42318;
    --danger-bg: #fdeeec;

    /* Roles de interacción */
    --accent: var(--cobalt);
    --accent-dark: var(--cobalt-dark);
    --accent-soft: var(--cobalt-soft);
    --cta: var(--orange);
    --cta-dark: var(--orange-dark);
    --focus: #2b7fff;

    /* Barra lateral oscura */
    --rail: var(--navy-900);
    --rail-2: #0c2440;
    --rail-line: rgba(255, 255, 255, .10);
    --rail-ink: #e8eef7;
    --rail-muted: #93a7c2;

    /* Tipografía */
    --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: Cambria, Georgia, "Times New Roman", ui-serif, serif;

    /* Radios: vocabulario corto y deliberado */
    --r-xs: 5px;
    --r-sm: 8px;
    --r: 10px;
    --r-lg: 14px;
    --r-pill: 999px;
    --radius: var(--r);

    /* Profundidad: líneas finas antes que sombras */
    --shadow-xs: 0 1px 1px rgba(7, 27, 50, .04);
    --shadow-sm: 0 1px 2px rgba(7, 27, 50, .05);
    --shadow-md: 0 1px 2px rgba(7, 27, 50, .05), 0 8px 20px rgba(7, 27, 50, .06);
    --shadow-lg: 0 18px 48px rgba(7, 27, 50, .18);
    --ring: 0 0 0 3px rgba(43, 127, 255, .18);

    /* Movimiento: reservado a lo que responde a una acción */
    --ease-out: cubic-bezier(.2, .8, .3, 1);

    /* Medidas */
    --header-h: 66px;
    --sidebar-w: 288px;
    --shell-max: 1560px;
    --content-max: 1160px;
    --reading-max: 760px;
}

/* == 02 · Reset y base ==================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Muchos módulos de JS muestran y ocultan nodos con la propiedad hidden.
   Esta regla garantiza que ninguna clase de presentación la anule. */
[hidden] {
    display: none !important;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--accent-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .12s ease;
}

a:hover {
    color: var(--navy-700);
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button,
a,
input,
textarea,
select,
summary,
label {
    touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
details:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
    border-radius: var(--r-xs);
}

img,
svg,
iframe {
    max-width: 100%;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 26px 0;
}

/* Anclas internas por debajo de la cabecera fija */
[id] {
    scroll-margin-top: calc(var(--header-h) + 20px);
}

::selection {
    background: rgba(43, 127, 255, .16);
}

/* == 03 · Tipografía ====================================================== */

h1,
h2,
h3,
h4 {
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(27px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.021em;
    margin: 4px 0 10px;
}

h2 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.34;
    letter-spacing: -.011em;
    margin: 0 0 12px;
}

h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: -.005em;
    margin: 0 0 9px;
}

p {
    margin: 0 0 14px;
    max-width: 78ch;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0 0 14px;
    padding-left: 20px;
    max-width: 78ch;
}

li {
    margin: 5px 0;
}

strong {
    font-weight: 700;
    color: var(--ink);
}

/* Antetítulo: etiqueta de contexto sobre el título. Caja baja y peso medio;
   la marca vertical señala que es un rótulo, no una línea de texto más. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -.002em;
    line-height: 1.4;
}

.eyebrow::before {
    content: "";
    width: 2px;
    height: 15px;
    border-radius: var(--r-pill);
    background: var(--gold);
    flex: none;
}

.muted {
    color: var(--muted);
}

.help {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
    margin: 6px 0 12px;
    max-width: 78ch;
}

.prose {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* == 04 · Estructura de la aplicación ===================================== */

/* El armazón es una barra lateral a sangre más una columna de contenido:
   sin márgenes exteriores ni tarjeta flotante alrededor del menú. */
.lms-workspace {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: calc(100vh - var(--header-h));
    /* La barra lateral es más corta que el contenido en páginas largas:
       este fondo pinta su columna hasta el pie, sin alterar el flujo. */
    background: linear-gradient(to right, var(--rail) 0 var(--sidebar-w), transparent var(--sidebar-w));
}

.lms-workspace > .page {
    flex: 1;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 34px clamp(20px, 3.4vw, 52px) 76px;
}

.lms-workspace > .page > * {
    max-width: var(--content-max);
    margin-inline: auto;
}

.page {
    max-width: var(--content-max);
    margin: 34px auto;
    padding: 0 24px;
    min-height: 60vh;
}

/* Columna de lectura. Se declara después de .page porque las vistas de
   activación y de PIN combinan ambas clases en el mismo elemento. */
.reading {
    max-width: var(--reading-max);
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.page-header > div:first-child {
    min-width: 0;
}

.page-header p {
    margin-bottom: 0;
    max-width: 68ch;
}

.page-header .button,
.page-header .badge {
    flex: none;
}

.section-gap {
    margin-top: 24px;
}

.stack > * + * {
    margin-top: 16px;
}

/* == 05 · Cabecera ======================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
    padding: 10px clamp(18px, 2.6vw, 28px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.header-navigation {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
}

/* Bloque de marca: nombre del producto y, debajo, quién lo opera. */
.platform-identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.platform-owner {
    margin: 0;
    max-width: 38ch;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    overflow-wrap: anywhere;
}

.platform-owner strong {
    color: var(--ink-soft);
    font-weight: 650;
}

.site-header .platform-owner {
    margin-bottom: 0;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.03em;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.1;
}

.brand span {
    font-family: var(--font-body);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-radius: var(--r-xs);
    padding: 2px 7px;
    margin-left: 0;
    transform: translateY(-2px);
}

.brand:hover {
    color: var(--navy-700);
}

.account,
.actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.account {
    font-size: 14px;
    color: var(--ink-soft);
}

.account > span:first-child {
    font-weight: 650;
}

.account form,
.actions form {
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 26px;
    padding: 0 clamp(18px, 2.6vw, 28px);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
}

.main-nav a {
    padding: 14px 0;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}

.main-nav a.active {
    color: var(--ink);
    border-bottom: 2px solid var(--accent);
    font-weight: 700;
}

/* == 06 · Barra lateral de cursos ========================================= */

/* Columna de navegación en navy: separa el recorrido del contenido de
   trabajo y sostiene la identidad de marca en toda la aplicación. */
.course-sidebar {
    position: sticky;
    top: var(--header-h);
    flex: 0 0 var(--sidebar-w);
    height: calc(100vh - var(--header-h));
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--rail);
    color: var(--rail-ink);
    border-right: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 18px 18px 10px;
}

.drawer-header h2 {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .01em;
    color: var(--rail-muted);
    margin: 0;
}

.drawer-close {
    border: 0;
    border-radius: var(--r-sm);
    width: 32px;
    height: 32px;
    flex: none;
    background: rgba(255, 255, 255, .07);
    color: var(--rail-ink);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: background .12s ease, color .12s ease;
}

.drawer-close:hover {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.drawer-search {
    padding: 0 18px 16px;
    border-bottom: 1px solid var(--rail-line);
}

.drawer-search label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--rail-muted);
    margin-bottom: 6px;
}

/* La especificidad incluye [type] a propósito: la regla base de
   formularios la lleva, y sin ella el campo volvería a fondo blanco
   con texto oscuro sobre la barra navy. */
.course-sidebar .drawer-search input[type="search"] {
    padding: 9px 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, .07);
    border-color: rgba(255, 255, 255, .18);
    color: var(--rail-ink);
}

.course-sidebar .drawer-search input[type="search"]::placeholder {
    color: #8ea3c0;
}

.course-sidebar .drawer-search input[type="search"]:hover {
    border-color: rgba(255, 255, 255, .3);
}

.course-sidebar .drawer-search input[type="search"]:focus {
    background: rgba(255, 255, 255, .12);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(43, 127, 255, .25);
}

.course-sidebar .drawer-search input[type="search"]::-webkit-search-cancel-button {
    filter: invert(1) opacity(.6);
}

.drawer-scroll {
    overflow: auto;
    flex: 1;
    min-height: 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
    padding-bottom: 20px;
}

.drawer-scroll::-webkit-scrollbar {
    width: 10px;
}

.drawer-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .20);
    border: 3px solid var(--rail);
    border-radius: var(--r-pill);
}

.sidebar-links {
    display: grid;
    gap: 1px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--rail-line);
}

.sidebar-links a {
    display: block;
    position: relative;
    padding: 8px 12px;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-size: 14px;
    font-weight: 550;
    color: #c6d4e6;
    transition: background .12s ease, color .12s ease;
}

.sidebar-links a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.sidebar-links a.active {
    background: rgba(43, 127, 255, .18);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 2px 0 0 var(--accent);
}

.drawer-section-label {
    padding: 18px 18px 8px;
    color: var(--rail-muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: normal;
    text-transform: none;
}

.course-navigation-group {
    border-top: 1px solid var(--rail-line);
}

.course-navigation-group > summary,
.module-navigation > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 11px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--rail-ink);
    overflow-wrap: anywhere;
    transition: background .12s ease, color .12s ease;
}

.course-navigation summary::-webkit-details-marker {
    display: none;
}

.course-navigation summary::marker {
    content: "";
}

.course-navigation-group > summary:hover,
.module-navigation > summary:hover {
    background: rgba(255, 255, 255, .06);
}

.drawer-chevron {
    font-size: 19px;
    line-height: 1;
    flex: none;
    color: var(--rail-muted);
    transition: transform .2s var(--ease-out);
}

.course-navigation details[open] > summary > .drawer-chevron {
    transform: rotate(90deg);
}

.current-course,
.current-module {
    color: #fff;
    background: rgba(43, 127, 255, .16);
}

.course-navigation a {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    color: #b9c9de;
    font-size: 13.5px;
    overflow-wrap: anywhere;
    border-radius: 0;
    transition: background .12s ease, color .12s ease;
}

.course-navigation a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.course-navigation-title {
    font-size: 13px;
    color: var(--rail-muted) !important;
    font-weight: 600;
}

.module-navigation {
    margin: 0 0 4px 18px;
    border-left: 1px solid var(--rail-line);
}

.module-navigation > summary {
    padding: 9px 12px;
    font-size: 13.5px;
    font-weight: 600;
}

.module-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0 0 6px 8px;
    max-width: none;
}

.module-navigation li {
    margin: 0;
}

.module-navigation a {
    font-size: 13px;
    padding: 7px 12px;
}

.course-navigation a[aria-current="page"] {
    background: rgba(43, 127, 255, .2);
    color: #fff;
    font-weight: 700;
    box-shadow: inset 2px 0 0 var(--accent);
}

.drawer-note {
    padding: 9px 18px;
    margin: 0;
    color: var(--rail-muted);
}

.drawer-note .help,
.module-navigation li.help,
.course-sidebar .help,
.course-sidebar .empty {
    color: var(--rail-muted);
}

.course-navigation .badge {
    font-size: 9.5px;
    padding: 1px 7px;
    vertical-align: 1px;
    background: rgba(255, 255, 255, .10);
    border-color: var(--rail-line);
    color: #d6e2f1;
}

.course-navigation summary:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: -2px;
}

/* Estados controlados por course-menu.js */
.course-sidebar[hidden],
.course-sidebar [hidden],
[data-menu-open][hidden] {
    display: none !important;
}

/* == 07 · Ruta de navegación ============================================== */

.learning-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 20px;
    overflow-wrap: anywhere;
}

.learning-breadcrumb strong {
    color: var(--ink);
    font-weight: 650;
}

.learning-breadcrumb span[aria-hidden="true"] {
    color: var(--line-strong);
}

/* == 08 · Superficies y rejillas ========================================== */

/* Una sola superficie, definida por su línea y no por su sombra. */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 20px;
    min-width: 0;
    box-shadow: var(--shadow-xs);
}

.card > :last-child {
    margin-bottom: 0;
}

/* Una tarjeta dentro de otra no es una segunda superficie flotante:
   es un elemento de lista dentro de la primera. */
.card .card {
    border-radius: var(--r);
    box-shadow: none;
    background: var(--surface-2);
    padding: 18px 20px;
    margin-bottom: 12px;
}

.card .card:last-child {
    margin-bottom: 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.grid > .card {
    margin-bottom: 0;
}

.grid.stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Tarjetas de recorrido: acción alineada al pie para que todas las
   tarjetas de una fila cierren a la misma altura. */
.grid:not(.stats) > article.card {
    display: flex;
    flex-direction: column;
}

.grid:not(.stats) > article.card > .badge,
.grid:not(.stats) > article.card > .eyebrow,
.grid:not(.stats) > article.card > a.button {
    align-self: flex-start;
}

.grid:not(.stats) > article.card > :last-child {
    margin-top: auto;
}

.grid:not(.stats) > article.card:hover {
    border-color: var(--line-strong);
}

/* Tarjetas de indicador: el rótulo arriba, la cifra abajo y una regla
   corta que separa uno de otra. */
.grid.stats > .card {
    position: relative;
    padding: 18px 20px 20px;
    overflow: hidden;
}

.grid.stats > .card:hover {
    border-color: var(--line-strong);
}

.grid.stats > .card::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 48px;
    width: 26px;
    height: 2px;
    border-radius: var(--r-pill);
    background: var(--gold);
}

.grid.stats > .card > .muted {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    color: var(--muted);
    min-height: 40px;
}

.number {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.032em;
    color: var(--ink);
    margin: 18px 0 0;
    font-variant-numeric: tabular-nums;
}

/* == 09 · Botones ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: var(--cta);
    padding: 10px 17px;
    color: #fff;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 650;
    letter-spacing: -.004em;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-xs);
    transition: background .12s ease, border-color .12s ease, color .12s ease, transform .1s var(--ease-out);
}

.button:hover {
    background: var(--cta-dark);
    color: #fff;
}

.button:active {
    transform: translateY(1px);
}

.button.secondary {
    background: var(--navy-700);
}

.button.secondary:hover {
    background: var(--navy-900);
}

.button.ghost {
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line-strong);
    box-shadow: none;
}

.button.ghost:hover {
    background: var(--surface-2);
    color: var(--accent-dark);
    border-color: var(--accent);
}

.button.danger {
    background: var(--surface);
    color: var(--danger);
    border-color: #eecac6;
    box-shadow: none;
}

.button.danger:hover {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger);
}

.button:disabled,
.button[disabled] {
    opacity: .5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* == 10 · Insignias y estados ============================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-3);
    color: var(--ink-soft);
    border: 1px solid transparent;
    border-radius: var(--r-xs);
    padding: 3px 9px;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: normal;
    white-space: nowrap;
    vertical-align: 2px;
}

.badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: .6;
    flex: none;
}

.badge.published {
    background: var(--success-bg);
    color: var(--success);
}

.badge.draft {
    background: var(--warning-bg);
    color: var(--warning);
}

/* == 11 · Avisos ========================================================== */

/* El aviso sin modificador es informativo y aparece en casi todas las
   pantallas de administración: se mantiene neutro para no leerse como
   una advertencia. El ámbar y el rojo quedan para lo que sí lo es. */
.notice {
    position: relative;
    border-radius: var(--r);
    padding: 14px 18px 14px 46px;
    margin-bottom: 20px;
    background: var(--accent-soft);
    color: #15345e;
    border: 1px solid #d4e3fb;
    font-size: 14.5px;
    line-height: 1.55;
}

.notice::before {
    content: "i";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dark);
    color: #fff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.notice.warning {
    background: var(--warning-bg);
    color: #6d4c00;
    border-color: #f3e0b4;
}

.notice.warning::before {
    background: var(--warning);
}

.notice.success {
    background: var(--success-bg);
    color: #10513a;
    border-color: #c9e8da;
}

.notice.success::before {
    content: "\2713";
    background: var(--success);
    font-family: var(--font-body);
    font-style: normal;
    font-size: 11px;
}

.notice.error {
    background: var(--danger-bg);
    color: #8c2820;
    border-color: #f2cdc8;
}

.notice.error::before {
    content: "!";
    background: var(--danger);
    font-family: var(--font-body);
    font-style: normal;
}

.notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.notice h3 {
    color: inherit;
    margin-bottom: 8px;
}

.notice > :last-child {
    margin-bottom: 0;
}

/* == 12 · Formularios ===================================================== */

.field {
    margin-bottom: 18px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label,
legend {
    display: block;
    font-weight: 650;
    font-size: 14px;
    color: var(--ink);
    margin-bottom: 6px;
}

/* El editor de campos y el editor de quiz envuelven el control dentro
   de la etiqueta: el control recupera su propio margen superior. */
.field label > input,
.field label > select,
.field label > textarea {
    margin-top: 6px;
}

input:not([type="radio"]):not([type="checkbox"]),
textarea,
select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-size: 14.5px;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

input::placeholder,
textarea::placeholder {
    color: #96a3b5;
}

input:not([type="radio"]):not([type="checkbox"]):hover,
textarea:hover,
select:hover {
    border-color: #aab6c6;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: var(--ring);
}

/* Se conserva el anillo de foco por teclado definido en la base. */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 1px;
}

textarea {
    min-height: 108px;
    resize: vertical;
    line-height: 1.6;
}

select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 13px) calc(50% + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

select[multiple] {
    background-image: none;
    padding-right: 12px;
    padding-block: 6px;
}

select[multiple] option {
    padding: 6px 8px;
    border-radius: var(--r-xs);
}

input[type="file"] {
    font-size: 13.5px;
    padding: 8px 10px;
    background: var(--surface-2);
    cursor: pointer;
}

input[type="file"]::file-selector-button {
    margin-right: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    background: var(--surface);
    color: var(--ink);
    padding: 6px 12px;
    font-weight: 650;
    font-size: 13px;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

input:disabled,
textarea:disabled,
select:disabled {
    background: var(--surface-3);
    color: var(--muted);
    cursor: not-allowed;
}

.row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

fieldset {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px 18px 18px;
    margin: 0 0 18px;
    background: var(--surface);
    min-width: 0;
}

/* El título de un fieldset se dibuja sobre el borde: no necesita el
   margen inferior que sí llevan las etiquetas de campo. */
fieldset > legend {
    padding: 0 8px;
    margin-left: -8px;
    margin-bottom: 0;
}

fieldset > .option:first-of-type {
    margin-top: 0;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    margin: 2px 0;
    border-radius: var(--r-sm);
    font-weight: 400;
    cursor: pointer;
    transition: background .12s ease;
}

.option:hover {
    background: var(--surface-2);
}

.option input {
    margin-top: 3px;
    flex: none;
}

.save-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 5px 13px;
    margin: 4px 0 14px;
    max-width: 100%;
}

.save-state::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex: none;
}

/* == 13 · Tablas ========================================================== */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
}

.card > .table-wrap,
.card.table-wrap {
    box-shadow: none;
}

.card.table-wrap {
    padding: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--surface-2);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: normal;
    text-transform: none;
    color: var(--muted);
    white-space: nowrap;
}

td,
th {
    padding: 12px 15px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr {
    transition: background .1s ease;
}

tbody tr:hover {
    background: var(--surface-2);
}

td .help {
    margin: 4px 0 0;
}

td form {
    margin: 0;
}

td p {
    max-width: 46ch;
}

/* == 14 · Listas de contenido ============================================= */

.course-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    max-width: none;
    border-top: 1px solid var(--line);
}

.course-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 12px 10px;
    margin: 0;
    border-bottom: 1px solid var(--line);
    border-radius: var(--r-xs);
    transition: background .12s ease;
}

.course-list li:hover {
    background: var(--surface-2);
}

.course-list li > span:first-child {
    font-weight: 600;
    min-width: 0;
    overflow-wrap: anywhere;
}

.course-list li > a {
    flex: none;
    font-weight: 650;
    font-size: 14px;
    text-decoration: none;
}

.course-list li > a:hover {
    text-decoration: underline;
}

.empty {
    padding: 32px 0;
    text-align: center;
    color: var(--muted);
}

.card.empty {
    padding: 42px 24px;
}

/* == 15 · Progreso ======================================================== */

progress {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--surface-3);
    overflow: hidden;
    margin: 6px 0;
}

progress::-webkit-progress-bar {
    background: var(--surface-3);
    border-radius: var(--r-pill);
}

progress::-webkit-progress-value {
    background: var(--accent);
    border-radius: var(--r-pill);
    transition: width .35s var(--ease-out);
}

progress::-moz-progress-bar {
    background: var(--accent);
    border-radius: var(--r-pill);
}

/* == 16 · Video =========================================================== */

.video-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: var(--navy-900);
    border-radius: var(--r);
    overflow: hidden;
}

.video-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

[data-video-error][hidden] {
    display: none !important;
}

[data-video-player] .help {
    margin-top: 12px;
}

/* == 17 · Portadas ======================================================== */

/* Las portadas se muestran completas, sin recortarlas: el administrador
   sube la imagen que quiere que el estudiante vea. */
.content-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: 320px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin: 0 0 20px;
}

.cover-field .content-cover {
    max-width: 420px;
}

.cover-field > .option {
    margin-top: 8px;
}

/* == 18 · Paneles de módulo =============================================== */

/* Acordeón de módulos: una fila de cabecera legible con portada en
   miniatura, y el contenido del módulo dentro. */
.card.module-panel {
    padding: 0;
    scroll-margin-top: calc(var(--header-h) + 20px);
    overflow: hidden;
}

.module-panel > summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    border-radius: inherit;
    min-height: 72px;
    transition: background .12s ease;
}

.module-panel > summary::-webkit-details-marker {
    display: none;
}

.module-panel > summary::marker {
    content: "";
}

.module-panel > summary:hover {
    background: var(--surface-2);
}

.module-panel > summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.module-panel > summary > .content-cover {
    width: 88px;
    flex: 0 0 88px;
    margin: 0;
    border-radius: var(--r-sm);
}

.module-panel-heading {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.module-panel-heading > strong {
    display: block;
    font-size: 16.5px;
    font-weight: 700;
    letter-spacing: -.008em;
    line-height: 1.35;
}

.module-panel-heading > .help {
    display: block;
    margin: 4px 0 0;
}

.module-panel-hint {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
}

.module-panel-chevron {
    flex: none;
    font-size: 22px;
    line-height: 1;
    color: var(--muted);
    transition: transform .2s var(--ease-out);
}

.module-panel[open] > summary {
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
}

.module-panel[open] > summary .module-panel-chevron {
    transform: rotate(90deg);
}

.module-panel:not([open]) > summary .when-open,
.module-panel[open] > summary .when-closed {
    display: none;
}

.module-panel-body {
    padding: 22px 20px;
    border-top: 0;
}

/* == 19 · Sesión: material, actividad y comentarios ======================= */

.lesson-material {
    border-inline-start: 3px solid var(--accent);
}

.lesson-task,
.lesson-comments {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Zona de carga del archivo de la actividad. */
.activity-upload {
    margin-block: 16px;
    padding: 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--r);
    background: var(--surface-2);
}

.activity-upload input[type="file"] {
    max-width: 100%;
    min-width: 0;
    background: var(--surface);
}

.activity-upload .field:last-child {
    margin-bottom: 0;
}

/* Conversación privada: plegada por defecto dentro de la sesión. */
.lesson-comments {
    padding: 0;
}

.lesson-comments > summary {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 18px 48px 18px 22px;
    font-weight: 700;
    overflow-wrap: anywhere;
    border-radius: inherit;
    list-style: none;
    transition: background .12s ease;
}

.lesson-comments > summary::-webkit-details-marker {
    display: none;
}

.lesson-comments > summary::after {
    content: "›";
    position: absolute;
    right: 22px;
    top: 50%;
    font-size: 20px;
    line-height: 1;
    color: var(--muted);
    transform: translateY(-50%);
    transition: transform .2s var(--ease-out);
}

.lesson-comments[open] > summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.lesson-comments > summary:hover {
    background: var(--surface-2);
}

.lesson-comments > summary .help {
    display: block;
    font-weight: 400;
    margin: 2px 0 0;
    margin-inline-start: 0;
}

.lesson-comments[open] > summary {
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.lesson-comments-content {
    margin-block-start: 0;
    padding: 22px;
}

.lesson-comments-content form {
    margin-block-end: 16px;
}

.lesson-comments textarea {
    min-height: 80px;
}

.lesson-comments .help {
    margin-block: 8px;
}

/* Nombres de archivo largos dentro de un botón de descarga. */
.document-download {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
    text-align: left;
    justify-content: flex-start;
}

/* == 20 · Instrumentos y Playbook ========================================= */

.instrument-container {
    border: 0;
    padding: 0;
    min-width: 0;
    margin: 0;
    background: none;
}

.instrument-response,
.instrument-editor {
    min-width: 0;
    overflow-wrap: anywhere;
}

.instrument-response legend,
.instrument-editor legend {
    max-width: 100%;
    white-space: normal;
}

.instrument-response {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--r);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.instrument-response legend {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    padding: 0;
    margin-left: 0;
}

.instrument-response > .prose {
    color: var(--ink-soft);
}

.instrument-editor {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
}

.instrument-editor legend {
    font-size: 12.5px;
    font-weight: 650;
    letter-spacing: normal;
    text-transform: none;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    padding: 2px 10px;
    margin-left: 0;
}

.instrument-response input[type="checkbox"] {
    flex: none;
    min-width: 19px;
    min-height: 19px;
}

/* Entradas del Playbook: una línea de tiempo dorada que agrupa las
   respuestas de una misma sección. */
.playbook-entry {
    position: relative;
    border-top: 1px solid var(--line);
    padding: 20px 0 0 18px;
    margin-top: 20px;
    overflow-wrap: anywhere;
}

.playbook-entry::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 4px;
    width: 2px;
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, var(--gold), rgba(255, 198, 41, .12));
}

.playbook-entry h3 {
    color: var(--accent-dark);
}

/* == 21 · Quiz ============================================================ */

.quiz-question {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 20px;
}

.quiz-question > legend {
    font-size: 14.5px;
    font-weight: 700;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    padding: 3px 12px;
    margin-left: 0;
}

.quiz-question .field:last-of-type {
    margin-bottom: 16px;
}

/* == 22 · Carga masiva ==================================================== */

.import-instructions {
    padding-left: 20px;
    margin-bottom: 18px;
}

.import-instructions li {
    margin: 9px 0;
    padding-left: 4px;
}

.import-instructions li::marker {
    font-weight: 700;
    color: var(--accent-dark);
}

.import-details {
    min-width: 180px;
    max-width: 560px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 9px 13px;
    background: var(--surface-2);
}

.import-details summary {
    cursor: pointer;
    color: var(--accent-dark);
    font-weight: 650;
    font-size: 13px;
}

.import-details[open] summary {
    margin-bottom: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.import-details dt {
    font-size: 12.5px;
    color: var(--muted);
}

.import-details dd {
    margin: 0 0 11px;
    font-size: 14px;
}

[data-import-state] {
    font-weight: 600;
}

td[data-import-status] {
    font-weight: 650;
    white-space: nowrap;
}

/* == 23 · Plataforma: empresas, programas y ámbitos ======================= */

/* Estas pantallas apilan formularios cortos y bloques desplegables.
   El objetivo es que cada registro se lea como una fila de una lista,
   no como una tarjeta flotante más. */
.card > details,
.card .card > details {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.card > details > summary,
.card .card > details > summary {
    cursor: pointer;
    color: var(--accent-dark);
    font-weight: 650;
    font-size: 13.5px;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.card > details > summary::-webkit-details-marker,
.card .card > details > summary::-webkit-details-marker {
    display: none;
}

.card > details > summary::marker,
.card .card > details > summary::marker {
    content: "";
}

.card > details > summary::before,
.card .card > details > summary::before {
    content: "+";
    width: 17px;
    height: 17px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xs);
    font-size: 13px;
    line-height: 1;
    color: var(--muted);
}

.card > details[open] > summary::before,
.card .card > details[open] > summary::before {
    content: "–";
}

.card > details[open] > summary,
.card .card > details[open] > summary {
    margin-bottom: 14px;
}

/* Selector de empresa antes de crear un curso o un estudiante.
   Se excluyen los paneles de módulo y los comentarios de la sesión:
   esos traen su propio indicador dentro del marcado. */
details.card:not(.module-panel):not(.lesson-comments) > summary {
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

details.card:not(.module-panel):not(.lesson-comments) > summary::-webkit-details-marker {
    display: none;
}

details.card:not(.module-panel):not(.lesson-comments) > summary::after {
    content: "›";
    font-size: 20px;
    line-height: 1;
    color: var(--muted);
    transition: transform .2s var(--ease-out);
}

details.card:not(.module-panel):not(.lesson-comments)[open] > summary::after {
    transform: rotate(90deg);
}

details.card:not(.module-panel):not(.lesson-comments)[open] > summary {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

/* Varios formularios de una sola acción, uno detrás de otro, se leen
   como una fila de botones y no como una columna. */
.card > form + form,
.card .card > form + form {
    margin-top: 8px;
}

.card .card > form {
    display: inline-block;
    margin: 0 8px 8px 0;
    vertical-align: top;
}

/* La acción de una fila de la lista no compite con la acción principal
   de la pantalla: el naranja queda reservado para esa última. */
.card .card > form > .button:not(.ghost):not(.secondary):not(.danger) {
    background: var(--navy-700);
}

.card .card > form > .button:not(.ghost):not(.secondary):not(.danger):hover {
    background: var(--navy-900);
}

.card .card > form + details {
    display: block;
}

/* == 24 · Paginación y pie ================================================ */

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 14px;
    color: var(--muted);
}

.pagination a {
    font-weight: 650;
    text-decoration: none;
}

.pagination a:hover {
    text-decoration: underline;
}

.site-footer {
    padding: 26px 30px;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

/* == 25 · Utilidades ====================================================== */

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 200;
    background: var(--surface);
    color: var(--ink);
    padding: 11px 17px;
    border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    font-weight: 650;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* == 26 · Adaptación a pantallas pequeñas ================================= */

@media (max-width: 1180px) {
    :root {
        --sidebar-w: 256px;
    }

    .grid.stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    :root {
        --header-h: 60px;
    }

    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 18px;
    }

    .account {
        font-size: 13.5px;
        width: 100%;
        justify-content: space-between;
    }

    .header-navigation {
        gap: 12px;
        width: 100%;
    }

    .header-navigation .button {
        font-size: 14px;
        min-height: 38px;
        padding: 8px 13px;
    }

    .main-nav {
        gap: 20px;
        padding: 0 18px;
    }

    /* La barra lateral deja de ser columna y pasa a ser un bloque
       desplegable sobre el contenido. */
    .lms-workspace {
        flex-direction: column;
        gap: 0;
        background: none;
    }

    .lms-workspace > .page {
        width: 100%;
        padding: 22px 18px 56px;
    }

    .course-sidebar {
        position: static;
        flex: auto;
        width: 100%;
        height: auto;
        max-height: 70vh;
        border-right: 0;
        border-bottom: 1px solid var(--rail-line);
    }

    .page {
        padding: 0 16px;
        margin-top: 22px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .grid,
    .row {
        grid-template-columns: 1fr;
    }

    .grid.stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .card {
        padding: 18px;
    }

    .number {
        font-size: 30px;
        margin-top: 14px;
    }

    .grid.stats > .card::before {
        top: 44px;
    }

    .course-list li {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .learning-breadcrumb {
        font-size: 12px;
    }

    .drawer-header {
        padding: 14px 16px 8px;
    }

    .drawer-search {
        padding: 0 16px 14px;
    }

    .module-panel > summary {
        padding: 14px 16px;
        gap: 12px;
    }

    .module-panel > summary > .content-cover {
        width: 64px;
        flex-basis: 64px;
    }

    .module-panel-heading > strong {
        font-size: 15.5px;
    }

    .module-panel-body {
        padding: 18px 16px;
    }

    .lesson-comments > summary,
    .lesson-comments-content {
        padding: 16px 18px;
    }

    .pagination {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 460px) {
    .instrument-response,
    .instrument-editor,
    .quiz-question {
        padding: 15px;
    }

    .instrument-response input[type="date"] {
        min-width: 0;
    }

    .instrument-editor .button,
    .instrument-container .button,
    .actions > .button,
    .actions > form > .button {
        width: 100%;
    }

    .actions {
        gap: 10px;
    }

    .actions > form {
        width: 100%;
    }

    .card .card > form {
        display: block;
        margin-right: 0;
    }

    .card .card > form > .button {
        width: 100%;
    }
}

/* == 27 · Impresión y accesibilidad ======================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --line: #9aa8bb;
        --line-strong: #64748b;
        --muted: #3d4d61;
    }
}

/* El Playbook y las evidencias se imprimen con frecuencia:
   se retira el armazón de la aplicación y se conserva el contenido. */
@media print {
    .site-header,
    .course-sidebar,
    .site-footer,
    .skip-link,
    .learning-breadcrumb,
    .pagination,
    .actions,
    form {
        display: none !important;
    }

    body {
        background: #fff;
        font-size: 12pt;
    }

    .lms-workspace {
        display: block;
        padding: 0;
        max-width: none;
    }

    .lms-workspace > .page {
        padding: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #d5dbe4;
        break-inside: avoid;
        margin-bottom: 14pt;
    }

    /* Los paneles de módulo se imprimen abiertos. */
    .module-panel > summary {
        display: none;
    }

    .module-panel-body {
        padding: 0;
    }

    a {
        color: #000;
        text-decoration: none;
    }
}

/* El fondo del menú desaparece cuando está oculto. */
.lms-workspace:has(> .course-sidebar[hidden]) {
    background: none;
}
