
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    background: #0A2647;
    color: white;
    padding: 20px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

.logo span {
    color: #38bdf8;
}

.header nav {
    display: flex;
    gap: 30px;
}

.header nav a {
    color: white;
    text-decoration: none;
}

.header nav a:hover {
    color: #38bdf8;
}

.btn-header {
    background: #0072CE;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
}

/* CONTENIDO */
.contenedor {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

/* FORMULARIO */
.login-card {
    background: white;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.login-card h1 {
    color: #0A2647;
    text-align: center;
    margin-bottom: 10px;
}

.login-card > p {
    color: #64748b;
    text-align: center;
    margin-bottom: 25px;
}

.login-card form p {
    margin-bottom: 18px;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-weight: bold;
}

.login-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    outline: none;
}

.login-card input:focus {
    border-color: #0072CE;
}

.login-card button {
    width: 100%;
    padding: 13px;
    background: #0072CE;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
}

.login-card button:hover {
    background: #005BAC;
}

.mensaje {
    margin-top: 25px;
    font-size: 13px;
}

/* FOOTER */
footer {
    background: #0A2647;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .header {
        flex-wrap: wrap;
        gap: 15px;
    }

    .header nav {
        gap: 12px;
        font-size: 13px;
    }

    .login-card {
        padding: 25px;
    }
}
/* LOGO */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    width: 220px;
    height: 85px;
    object-fit: contain;
    display: block;
}

/* TARJETAS DE CURSOS */

.lista-cursos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.curso-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.curso-card:hover {
    transform: translateY(-5px);
}

.curso-imagen {
    height: 150px;
    background: linear-gradient(135deg, #0A2647, #0072CE);
    display: flex;
    justify-content: center;
    align-items: center;
}

.curso-imagen span {
    font-size: 55px;
}

.curso-info {
    padding: 22px;
}

.curso-info h3 {
    color: #0A2647;
    font-size: 19px;
    margin-bottom: 10px;
}

.curso-info p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.curso-progreso {
    margin: 22px 0;
}

.progreso-texto {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
}

.progreso-texto strong {
    color: #0072CE;
}

.progreso-barra {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progreso-avance {
    height: 100%;
    background: #0072CE;
    border-radius: 10px;
}

.btn-curso {
    display: block;
    text-align: center;
    background: #0072CE;
    color: white;
    padding: 12px;
    border-radius: 7px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-curso:hover {
    background: #005BAC;
}

/* DETALLE DEL CURSO */

.detalle-bienvenida {
    margin-bottom: 30px;
}

.volver-cursos {
    display: inline-block;
    color: #0072CE;
    text-decoration: none;
    margin-bottom: 22px;
    font-weight: 600;
}

.detalle-curso-cabecera {
    background: linear-gradient(120deg, #0A2647, #075985);
    color: white;
    padding: 35px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.etiqueta-curso {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: #7dd3fc;
    font-weight: bold;
}

.detalle-curso-cabecera h1 {
    font-size: 30px;
    margin: 12px 0;
}

.detalle-curso-cabecera p {
    color: #e0f2fe;
    line-height: 1.6;
    max-width: 650px;
}

.docente-info {
    margin-top: 20px;
    color: #bae6fd;
    font-size: 14px;
}

.detalle-icono {
    font-size: 75px;
}

.modulos-seccion {
    margin-top: 35px;
}

.modulos-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 15px;
}

.modulos-titulo h2 {
    color: #0A2647;
    margin-bottom: 6px;
}

.modulos-titulo p {
    color: #64748b;
    font-size: 14px;
}

.cantidad-modulos {
    background: #e0f2fe;
    color: #005BAC;
    padding: 9px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.lista-modulos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modulo-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: 0.3s;
}

.modulo-card:hover {
    border-color: #0072CE;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.modulo-numero {
    width: 45px;
    height: 45px;
    background: #e0f2fe;
    color: #0072CE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.modulo-datos {
    flex: 1;
}

.modulo-datos h3 {
    color: #0A2647;
    margin-bottom: 6px;
    font-size: 16px;
}

.modulo-datos p {
    color: #64748b;
    font-size: 13px;
}

.modulo-estado span {
    background: #f1f5f9;
    color: #64748b;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
}

@media (max-width: 600px) {
    .detalle-curso-cabecera {
        padding: 25px;
    }

    .detalle-icono {
        display: none;
    }

    .detalle-curso-cabecera h1 {
        font-size: 23px;
    }

    .modulos-card {
        flex-wrap: wrap;
    }

    .modulos-titulo {
        align-items: flex-start;
        flex-direction: column;
    }
}
.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.sidebar-logo img {
    width: 130px;
    height: 50px;
    object-fit: contain;
    display: block;
}















/* ORGANIZACIÓN DEL MENÚ LATERAL */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background: #0A2647;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 20px 15px;
}

.sidebar-logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 12px 30px;
}

.sidebar-logo img {
    width: 180px;
    height: 80px;
    object-fit: contain;
    object-position: left center;
}

.menu-titulo {
    color: #94a3b8;
    font-size: 11px;
    font-weight: bold;
    padding: 15px 12px 10px;
    letter-spacing: 1px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 12px;
    border-radius: 8px;
    margin-bottom: 5px;
    font-size: 14px;
    transition: 0.2s;
}

.menu-item:hover,
.menu-item.activo {
    background: #0072CE;
    color: white;
}

.menu-item span {
    width: 22px;
    text-align: center;
}

.sidebar-footer {
    margin-top: auto;
    padding: 20px 12px 5px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.7;
}



/* CONTENIDO PRINCIPAL */

.contenido {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    padding: 30px 40px;
}

/* BARRA SUPERIOR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.topbar h2 {
    color: #0A2647;
    font-size: 23px;
    margin-bottom: 5px;
}

.topbar p {
    color: #64748b;
    font-size: 14px;
}

/* INFORMACIÓN DEL USUARIO */

.usuario {
    display: flex;
    align-items: center;
    gap: 12px;
}

.usuario-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0072CE;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.usuario strong,
.usuario small {
    display: block;
}

.usuario strong {
    color: #0A2647;
    font-size: 14px;
}

.usuario small {
    color: #64748b;
    margin-top: 4px;
}

/* AJUSTE PARA CELULARES */

@media (max-width: 768px) {
    .sidebar {
        width: 190px;
    }

    .contenido {
        margin-left: 190px;
        width: calc(100% - 190px);
        padding: 20px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* BOTÓN CERRAR SESIÓN */

.sidebar form {
    margin: 0;
    width: 100%;
}

.btn-cerrar-sesion {
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: Arial, sans-serif;
    text-align: left;
}

.btn-cerrar-sesion:hover {
    background: #dc2626;
    color: white;
}


/* =========================================
   PERFIL DEL TRABAJADOR - DISEÑO FINAL
========================================= */

.perfil-pagina {
    background: #f1f5f9;
}

/* PORTADA */
.perfil-portada {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.perfil-portada-fondo {
    height: 130px;
    background: linear-gradient(120deg, #0A2647, #075985, #0ea5e9);
}

.perfil-portada-contenido {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 30px 28px;
    margin-top: -45px;
    position: relative;
}

.perfil-avatar-grande {
    width: 100px;
    height: 100px;
    min-width: 100px;
    border-radius: 50%;
    background: #0072CE;
    color: white;
    border: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: bold;
}

.perfil-identidad {
    flex: 1;
    padding-top: 45px;
}

.perfil-subtitulo {
    color: #0072CE;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

.perfil-identidad h1 {
    color: #0A2647;
    font-size: 25px;
    margin: 7px 0;
}

.perfil-identidad p {
    color: #64748b;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.perfil-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 13px;
}

.perfil-etiqueta {
    background: #e0f2fe;
    color: #005BAC;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.punto-etiqueta {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0072CE;
}

.estado-etiqueta {
    background: #dcfce7;
    color: #15803d;
}

.estado-etiqueta.inactiva {
    background: #fee2e2;
    color: #b91c1c;
}

.perfil-portada-icono {
    font-size: 40px;
    color: #0072CE;
    padding-top: 45px;
}

/* RESUMEN */
.perfil-resumen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.resumen-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.resumen-icono {
    width: 45px;
    height: 45px;
    min-width: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
}

.resumen-icono.azul {
    background: #e0f2fe;
    color: #0072CE;
}

.resumen-icono.verde {
    background: #dcfce7;
    color: #16a34a;
}

.resumen-icono.morado {
    background: #f3e8ff;
    color: #9333ea;
}

.resumen-item span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
}

.resumen-item strong {
    color: #0A2647;
    font-size: 15px;
}

/* SECCIONES */
.perfil-pagina .perfil-seccion {
    background: white;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.perfil-titulo {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f1f5f9;
}

.perfil-titulo-icono {
    width: 43px;
    height: 43px;
    min-width: 43px;
    background: #e0f2fe;
    color: #0072CE;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.perfil-titulo h2 {
    color: #0A2647;
    font-size: 18px;
    margin-bottom: 5px;
}

.perfil-titulo p {
    color: #64748b;
    font-size: 13px;
}

/* INFORMACIÓN PERSONAL */
.perfil-pagina .perfil-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.perfil-pagina .perfil-campo {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.campo-icono {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #e0f2fe;
    color: #0072CE;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfil-pagina .perfil-campo label {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 6px;
}

.perfil-pagina .perfil-campo p {
    color: #0A2647;
    font-size: 14px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

.perfil-pagina .perfil-campo .texto-activo {
    color: #16a34a;
}

.perfil-pagina .perfil-campo .texto-inactivo {
    color: #dc2626;
}

/* PIE DE PÁGINA */
.perfil-footer {
    background: transparent;
    color: #64748b;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .perfil-resumen {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .perfil-portada-contenido {
        padding: 0 18px 22px;
        gap: 12px;
    }

    .perfil-avatar-grande {
        width: 75px;
        height: 75px;
        min-width: 75px;
        font-size: 28px;
    }

    .perfil-identidad h1 {
        font-size: 19px;
    }

    .perfil-portada-icono {
        display: none;
    }

    .perfil-pagina .perfil-seccion {
        padding: 18px;
    }

    .perfil-pagina .perfil-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================
   ESTRUCTURA GENERAL DEL DASHBOARD
========================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

body {
    display: block;
    background: #f1f5f9;
}

/* ==========================================
   ESTRUCTURA GENERAL DEL DASHBOARD
========================================== */

.dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ==========================================
   BARRA LATERAL ADMINISTRADOR
========================================== */

.admin-dashboard {
    display: flex;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #f4f6fa;
    overflow-x: hidden;
}

.admin-dashboard > .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    min-width: 250px;
    height: 100vh;
    box-sizing: border-box;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

/* LOGO */

.admin-dashboard .sidebar-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 15px;
    gap: 8px;
}

.admin-dashboard .sidebar-logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.admin-dashboard .sidebar-logo h2 {
    margin: 0;
    font-size: 20px;
    text-align: center;
}

/* MENÚ */

.admin-dashboard > .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 14px;
}

.admin-dashboard > .sidebar nav a {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 11px 14px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 7px;
}

/* ==========================================
   CONTENIDO PRINCIPAL
========================================== */

.admin-dashboard > .main-content {
    display: block;
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 100vh;
    margin-left: 250px;
    padding: 35px 40px;
    box-sizing: border-box;
}
/* PERFIL */

.perfil-pagina {
    display: block;
    background: #f1f5f9;
}

.perfil-portada {
    display: block;
    width: 100%;
    background: white;
}

.perfil-portada-fondo {
    display: block;
    width: 100%;
    height: 130px;
}

.perfil-portada-contenido {
    display: flex;
}

.perfil-resumen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.perfil-pagina .perfil-seccion {
    display: block;
}

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

@media (max-width: 768px) {
    .sidebar {
        width: 190px;
    }

    .contenido {
        margin-left: 190px;
        width: calc(100% - 190px);
        padding: 20px;
    }
}

@media (max-width: 600px) { 
    .perfil-resumen,
    .perfil-pagina .perfil-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================= */
/* MODULO DE EXAMENES */
/* ============================= */

.examenes-banner {
    background: linear-gradient(120deg, #12345a, #2563a6);
    color: white;
    padding: 30px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0;
    gap: 20px;
}

.examenes-banner h2 {
    font-size: 25px;
    margin-bottom: 10px;
}

.examenes-banner p {
    color: #dbeafe;
    max-width: 650px;
    line-height: 1.6;
}

.examenes-banner-icono {
    width: 75px;
    height: 75px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    flex-shrink: 0;
}

.examenes-resumen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.examen-resumen-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 17px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.examen-resumen-icono {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: bold;
}

.examen-resumen-icono.azul {
    background: #dbeafe;
    color: #0072CE;
}

.examen-resumen-icono.verde {
    background: #dcfce7;
    color: #16a34a;
}

.examen-resumen-icono.naranja {
    background: #ffedd5;
    color: #ea580c;
}

.examen-resumen-card h3 {
    font-size: 25px;
    color: #12325E;
    margin-bottom: 4px;
}

.examen-resumen-card p {
    color: #64748b;
    font-size: 13px;
}

.examenes-listado {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.examenes-titulo h2 {
    color: #12325E;
    font-size: 20px;
    margin-bottom: 7px;
}

.examenes-titulo p {
    color: #64748b;
    font-size: 14px;
}

.examenes-vacio {
    text-align: center;
    padding: 55px 20px;
}

.examenes-vacio-icono {
    font-size: 48px;
    margin-bottom: 15px;
}

.examenes-vacio h3 {
    color: #334155;
    margin-bottom: 10px;
}

.examenes-vacio p {
    color: #64748b;
    max-width: 430px;
    margin: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .examenes-resumen {
        grid-template-columns: 1fr;
    }

    .examenes-banner {
        padding: 22px;
    }
}

/* ============================= */
/* MODULO MI PROGRESO */
/* ============================= */

.progreso-bienvenida {
    background: linear-gradient(120deg, #12345a, #2563a6);
    color: white;
    padding: 30px;
    border-radius: 14px;
    margin: 25px 0;
}

.progreso-bienvenida h1 {
    font-size: 25px;
    margin-bottom: 10px;
}

.progreso-bienvenida p {
    color: #dbeafe;
    line-height: 1.6;
    max-width: 650px;
}

.progreso-resumen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.progreso-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 17px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.progreso-card-icono {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.progreso-card-icono.azul {
    background: #dbeafe;
    color: #0072CE;
}

.progreso-card-icono.verde {
    background: #dcfce7;
    color: #16a34a;
}

.progreso-card-icono.naranja {
    background: #ffedd5;
    color: #ea580c;
}

.progreso-card h3 {
    font-size: 25px;
    color: #12325E;
    margin-bottom: 4px;
}

.progreso-card p {
    font-size: 13px;
    color: #64748b;
}

.progreso-general,
.progreso-detalle {
    background: white;
    padding: 25px;
    border-radius: 14px;
    margin-bottom: 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.progreso-seccion-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progreso-seccion-titulo h2 {
    color: #12325E;
    font-size: 20px;
    margin-bottom: 6px;
}

.progreso-seccion-titulo span {
    color: #0072CE;
    font-weight: bold;
}

.progreso-seccion-titulo p {
    color: #64748b;
    font-size: 14px;
}

.progreso-general-barra {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progreso-general-barra div {
    height: 100%;
    background: #0072CE;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.progreso-general > p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.progreso-vacio {
    text-align: center;
    padding: 45px 20px;
}

.progreso-vacio-icono {
    font-size: 48px;
    margin-bottom: 15px;
}

.progreso-vacio h3 {
    color: #334155;
    margin-bottom: 10px;
}

.progreso-vacio p {
    color: #64748b;
    max-width: 430px;
    margin: auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .progreso-resumen {
        grid-template-columns: 1fr;
    }

    .progreso-seccion-titulo {
        flex-wrap: wrap;
    }
}

/* ===================================== */
/* REDISEÑO - MIS CURSOS */
/* ===================================== */

.cursos-bienvenida {
    background: linear-gradient(120deg, #102c4c, #2563a6);
    color: white;
    padding: 35px;
    border-radius: 16px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    overflow: hidden;
}

.cursos-bienvenida-texto {
    max-width: 700px;
}

.cursos-etiqueta {
    display: inline-block;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.cursos-bienvenida h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.cursos-bienvenida p {
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.7;
}

.cursos-bienvenida-icono {
    width: 95px;
    height: 95px;
    min-width: 95px;
    border-radius: 22px;
    background: rgba(255,255,255,0.13);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 55px;
    color: white;
}

.cursos-estadisticas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.estadistica-curso {
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 13px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 3px 12px rgba(15,23,42,0.03);
}

.estadistica-icono {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    font-weight: bold;
}

.estadistica-icono.azul {
    background: #dbeafe;
    color: #0072CE;
}

.estadistica-icono.verde {
    background: #dcfce7;
    color: #16a34a;
}

.estadistica-icono.naranja {
    background: #ffedd5;
    color: #ea580c;
}

.estadistica-curso h3 {
    font-size: 25px;
    color: #172b45;
    margin-bottom: 4px;
}

.estadistica-curso p {
    color: #64748b;
    font-size: 13px;
}

.cursos-contenedor {
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 15px;
    padding: 27px;
    box-shadow: 0 3px 12px rgba(15,23,42,0.03);
}

.cursos-encabezado-lista {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.cursos-encabezado-lista h2 {
    color: #172b45;
    font-size: 20px;
    margin-bottom: 7px;
}

.cursos-encabezado-lista p {
    color: #64748b;
    font-size: 13px;
}

.cursos-total {
    background: #eff6ff;
    color: #0072CE;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

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

.curso-card {
    background: #ffffff;
    border: 1px solid #e5eaf0;
    border-radius: 13px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.curso-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(15,23,42,0.09);
}

.curso-imagen {
    height: 125px;
    background: linear-gradient(120deg, #dbeafe, #eff6ff);
    display: flex;
    align-items: center;
    justify-content: center;
}

.curso-imagen span {
    font-size: 48px;
}

.curso-info {
    padding: 22px;
}

.curso-estado {
    display: inline-block;
    background: #eff6ff;
    color: #0072CE;
    font-size: 10px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 5px;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.curso-info h3 {
    color: #172b45;
    font-size: 18px;
    margin-bottom: 9px;
}

.curso-info > p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    min-height: 42px;
}

.curso-progreso {
    margin-top: 22px;
    margin-bottom: 20px;
}

.progreso-texto {
    display: flex;
    justify-content: space-between;
    margin-bottom: 9px;
    font-size: 12px;
}

.progreso-texto span {
    color: #64748b;
}

.progreso-texto strong {
    color: #0072CE;
}

.progreso-barra {
    height: 8px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.progreso-avance {
    height: 100%;
    background: #0072CE;
    border-radius: 20px;
}

.btn-curso {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #005BAC;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s ease;
}

.btn-curso:hover {
    background: #004A99;
}

.btn-curso span {
    font-size: 19px;
}

.curso-vacio {
    grid-column: 1 / -1;
    text-align: center;
    padding: 55px 20px;
}

.curso-vacio-icono {
    font-size: 48px;
    margin-bottom: 15px;
}

.curso-vacio h3 {
    color: #334155;
    margin-bottom: 10px;
}

.curso-vacio p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    max-width: 430px;
    margin: auto;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .lista-cursos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cursos-estadisticas {
        grid-template-columns: 1fr;
    }

    .cursos-bienvenida {
        padding: 25px;
    }

    .cursos-bienvenida h1 {
        font-size: 23px;
    }

    .cursos-bienvenida-icono {
        display: none;
    }

    .cursos-contenedor {
        padding: 18px;
    }
}

@media (max-width: 480px) {
    .cursos-encabezado-lista {
        align-items: flex-start;
        flex-direction: column;
    }
}




/* =====================================
   PANEL DOCENTE
===================================== */

.docente-dashboard {
    min-height: 100vh;
    background: #f1f5f9;
    display: flex;
}

/* SIDEBAR */

.docente-sidebar {
    width: 260px;
    background: #0A2647;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 25px 18px;
    z-index: 100;
}

.docente-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 8px 30px;
    border-bottom: 1px solid #334155;
}

.docente-logo img {
    width: 43px;
    height: 43px;
    object-fit: contain;
    background: white;
    border-radius: 10px;
    padding: 4px;
}

.docente-logo h2 {
    font-size: 20px;
    margin-bottom: 3px;
}

.docente-logo span {
    color: #94a3b8;
    font-size: 12px;
}

.docente-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 30px;
}

.docente-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 13px 14px;
    border-radius: 9px;
    font-size: 14px;
    transition: 0.2s;
}

.docente-menu a span {
    font-size: 19px;
    width: 22px;
    text-align: center;
}

.docente-menu a:hover,
.docente-menu a.activo {
    background: #0072CE;
    color: white;
}

/* USUARIO SIDEBAR */

.docente-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #334155;
    padding-top: 20px;
}

.docente-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    min-width: 0;
}

.docente-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #0072CE;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.docente-usuario strong {
    display: block;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.docente-usuario span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 4px;
}

.docente-cerrar {
    width: 100%;
    border: none;
    background: #12325E;
    color: #cbd5e1;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
}

.docente-cerrar:hover {
    background: #334155;
    color: white;
}

/* CONTENIDO */

.docente-contenido {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 35px 4%;
}

.docente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.docente-etiqueta {
    color: #0072CE;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.2px;
}

.docente-header h1 {
    color: #0A2647;
    font-size: 27px;
    margin: 7px 0;
}

.docente-header p {
    color: #64748b;
    font-size: 14px;
}

.docente-header-perfil {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 13px;
}

/* BIENVENIDA */

.docente-bienvenida {
    background: linear-gradient(120deg, #1e3a8a, #0072CE);
    color: white;
    border-radius: 15px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.docente-bienvenida span {
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: bold;
    color: #bfdbfe;
}

.docente-bienvenida h2 {
    font-size: 25px;
    margin: 12px 0;
}

.docente-bienvenida p {
    max-width: 560px;
    color: #dbeafe;
    font-size: 14px;
    line-height: 1.7;
}

.docente-bienvenida a {
    display: inline-block;
    margin-top: 18px;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.docente-bienvenida a:hover {
    text-decoration: underline;
}

.docente-bienvenida-icono {
    font-size: 75px;
    color: #bfdbfe;
    opacity: 0.8;
    padding: 0 20px;
}

.docente-bienvenida-simple {
    min-height: 155px;
}

/* ESTADÍSTICAS */

.docente-estadisticas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 35px;
}

.docente-stat {
    background: white;
    padding: 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.docente-stat-icono {
    width: 48px;
    height: 48px;
    border-radius: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 23px;
}

.docente-stat-icono.azul {
    background: #dbeafe;
    color: #0072CE;
}

.docente-stat-icono.verde {
    background: #dcfce7;
    color: #16a34a;
}

.docente-stat-icono.naranja {
    background: #ffedd5;
    color: #ea580c;
}

.docente-stat span {
    display: block;
    color: #64748b;
    font-size: 12px;
}

.docente-stat strong {
    display: block;
    color: #0A2647;
    font-size: 25px;
    margin-top: 5px;
}

/* SECCIONES Y CURSOS */

.docente-seccion {
    margin-top: 25px;
}

.docente-seccion-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.docente-seccion-titulo h2 {
    color: #0A2647;
    font-size: 19px;
    margin-bottom: 6px;
}

.docente-seccion-titulo p {
    color: #64748b;
    font-size: 13px;
}

.docente-seccion-titulo a {
    color: #0072CE;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

.docente-cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 20px;
}

.docente-curso-card {
    background: white;
    padding: 23px;
    border-radius: 13px;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
}

.docente-curso-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
}

.docente-curso-icono {
    width: 43px;
    height: 43px;
    background: #dbeafe;
    color: #0072CE;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    margin-bottom: 15px;
}

.docente-curso-codigo {
    color: #0072CE;
    font-size: 11px;
    font-weight: bold;
}

.docente-curso-card h3 {
    color: #0A2647;
    font-size: 17px;
    margin: 10px 0;
}

.docente-curso-card p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    min-height: 42px;
}

.docente-curso-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.docente-curso-footer span,
.docente-curso-info span {
    color: #16a34a;
    font-size: 11px;
    font-weight: bold;
}

.docente-curso-footer a {
    color: #0072CE;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
}

.docente-curso-info {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 18px;
}

.docente-curso-info strong {
    color: #16a34a;
    font-size: 12px;
}

/* ESTADO VACÍO */

.docente-vacio {
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 13px;
    padding: 45px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.docente-vacio div {
    font-size: 35px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.docente-vacio h3 {
    color: #334155;
    font-size: 17px;
    margin-bottom: 8px;
}

.docente-vacio p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .docente-estadisticas {
        grid-template-columns: 1fr;
    }

    .docente-header-perfil {
        display: none;
    }
}

@media (max-width: 650px) {
    .docente-sidebar {
        width: 75px;
        padding: 20px 10px;
    }

    .docente-logo {
        justify-content: center;
        padding: 5px 0 20px;
    }

    .docente-logo img {
        width: 42px;
    }

    .docente-logo div,
    .docente-menu a:not(span),
    .docente-usuario > div:not(.docente-avatar),
    .docente-cerrar {
        font-size: 0;
    }

    .docente-menu a {
        justify-content: center;
        padding: 13px 5px;
    }

    .docente-menu a span {
        font-size: 21px;
    }

    .docente-sidebar-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .docente-usuario {
        justify-content: center;
    }

    .docente-contenido {
        margin-left: 75px;
        width: calc(100% - 75px);
        padding: 25px 15px;
    }

    .docente-bienvenida {
        padding: 22px;
    }

    .docente-bienvenida-icono {
        display: none;
    }

    .docente-bienvenida h2 {
        font-size: 21px;
    }
}



/* =====================================
   GESTIÓN DE MÓDULOS Y MATERIALES
===================================== */

.docente-volver {
    display: inline-block;
    color: #0072CE;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 20px;
}

.docente-volver:hover {
    text-decoration: underline;
}

.docente-panel-formulario {
    background: white;
    padding: 25px;
    border-radius: 13px;
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.docente-formulario-titulo {
    margin-bottom: 22px;
}

.docente-formulario-titulo h2 {
    color: #0A2647;
    font-size: 19px;
    margin-bottom: 6px;
}

.docente-formulario-titulo p {
    color: #64748b;
    font-size: 13px;
}

.docente-formulario {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.docente-campos {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

.docente-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docente-campo label {
    color: #334155;
    font-size: 13px;
    font-weight: bold;
}

.docente-campo input,
.docente-campo select,
.docente-campo textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    color: #334155;
    background: white;
    font-family: Arial, sans-serif;
    font-size: 13px;
}

.docente-campo input:focus,
.docente-campo select:focus,
.docente-campo textarea:focus {
    border-color: #0072CE;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.docente-campo textarea {
    resize: vertical;
}

.docente-campo small {
    color: #64748b;
    font-size: 11px;
}

.docente-boton {
    align-self: flex-start;
    border: none;
    background: #0072CE;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.docente-boton:hover {
    background: #005BAC;
}

/* MÓDULOS */

.docente-modulos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.docente-modulo {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    padding: 23px;
}

.docente-modulo-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.docente-modulo-cabecera span:first-child {
    color: #0072CE;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.docente-modulo-cabecera h3 {
    color: #0A2647;
    font-size: 17px;
    margin-top: 7px;
}

.docente-modulo-contador {
    background: #eff6ff;
    color: #0072CE;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
}

/* MATERIALES */

.docente-materiales {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 0;
}

.docente-material {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.docente-material-icono {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 9px;
    font-size: 19px;
}

.docente-material-info {
    flex: 1;
    min-width: 0;
}

.docente-material-info strong {
    display: block;
    color: #334155;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.docente-material-info span {
    display: block;
    color: #0072CE;
    font-size: 11px;
    margin-top: 5px;
}

.docente-material-info p {
    color: #64748b;
    font-size: 12px;
    margin-top: 5px;
}

.docente-material > a {
    color: #0072CE;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.docente-material > a:hover {
    text-decoration: underline;
}

.docente-material-vacio {
    color: #94a3b8;
    font-size: 13px;
    padding: 10px 0;
}

/* FORMULARIO DESPLEGABLE */

.docente-subir-detalles {
    border-top: 1px solid #e2e8f0;
    padding-top: 17px;
}

.docente-subir-detalles summary {
    color: #0072CE;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.docente-subir-detalles summary::-webkit-details-marker {
    display: none;
}

.docente-subir-detalles[open] summary {
    margin-bottom: 20px;
}

.docente-subir-detalles .docente-formulario {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
}

/* MENSAJES */

.docente-mensajes {
    margin-bottom: 20px;
}

.docente-mensaje {
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.docente-mensaje.success {
    background: #dcfce7;
    color: #166534;
}

.docente-mensaje.error {
    background: #fee2e2;
    color: #991b1b;
}

/* RESPONSIVE */

@media (max-width: 650px) {
    .docente-campos {
        grid-template-columns: 1fr;
    }

    .docente-modulo-cabecera {
        align-items: flex-start;
        flex-direction: column;
    }

    .docente-material {
        flex-wrap: wrap;
    }

    .docente-material > a {
        margin-left: 53px;
    }

    .docente-panel-formulario,
    .docente-modulo {
        padding: 17px;
    }
}



/* ==========================================
   MATERIALES DEL TRABAJADOR
========================================== */

.materiales-trabajador {
    margin: 0 0 25px 65px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.materiales-trabajador h4 {
    color: #12325E;
    font-size: 15px;
    margin-bottom: 15px;
}

.material-trabajador {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.material-info-trabajador strong {
    display: block;
    color: #12325E;
    margin-bottom: 5px;
}

.material-info-trabajador p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 7px;
}

.material-info-trabajador small {
    color: #0072CE;
    font-size: 12px;
    font-weight: bold;
}

.material-accion-trabajador a {
    display: inline-block;
    padding: 9px 16px;
    background: #0072CE;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.material-accion-trabajador a:hover {
    background: #005BAC;
}

.sin-materiales {
    color: #94a3b8;
    font-size: 13px;
    padding: 10px 0;
}

@media (max-width: 650px) {

    .materiales-trabajador {
        margin-left: 0;
        padding: 12px;
    }

    .material-trabajador {
        flex-direction: column;
        align-items: flex-start;
    }

}

/* ==========================================
   SEGUIMIENTO DEL PROGRESO
========================================== */

.progreso-curso {
    background: #ffffff;
    padding: 22px;
    margin: 20px 0 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.progreso-curso-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.progreso-curso-info strong {
    color: #12325E;
    font-size: 16px;
}

.progreso-curso-info p {
    color: #64748b;
    font-size: 13px;
    margin-top: 5px;
}

.progreso-curso-info > strong {
    color: #0072CE;
    font-size: 25px;
}

.barra-progreso {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.barra-progreso-valor {
    height: 100%;
    background: #0072CE;
    border-radius: 20px;
    transition: width 0.3s ease;
}

/* BOTÓN COMPLETAR MATERIAL */

.btn-completar {
    border: none;
    background: #0072CE;
    color: white;
    padding: 10px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.btn-completar:hover {
    background: #005BAC;
}

.material-completado {
    display: inline-block;
    padding: 9px 13px;
    color: #15803d;
    background: #dcfce7;
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
}

/* PÁGINA MI PROGRESO */

.progreso-encabezado {
    margin: 25px 0;
}

.progreso-encabezado h1 {
    color: #12325E;
    font-size: 26px;
    margin-bottom: 8px;
}

.progreso-encabezado p {
    color: #64748b;
    font-size: 14px;
}

.progreso-lista {
    display: grid;
    gap: 20px;
}

.progreso-card {
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.progreso-card-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.progreso-card-cabecera h3 {
    color: #12325E;
    margin: 8px 0;
}

.progreso-card-cabecera p {
    color: #64748b;
    font-size: 13px;
}

.progreso-porcentaje {
    color: #0072CE;
    font-size: 27px;
}

.progreso-card-pie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 13px;
    color: #64748b;
}

.progreso-card-pie a {
    color: #0072CE;
    font-weight: bold;
    text-decoration: none;
}

.estado-curso-completo {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 12px;
    color: #15803d;
    background: #dcfce7;
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
}

@media (max-width: 650px) {

    .progreso-card-cabecera {
        flex-direction: column;
    }

    .progreso-card-pie {
        flex-direction: column;
        align-items: flex-start;
    }

    .progreso-curso-info {
        align-items: flex-start;
    }

    .material-accion-trabajador {
        flex-wrap: wrap;
    }

}


/* =====================================
   DETALLE DEL CURSO - DISEÑO MEJORADO
===================================== */

.detalle-bienvenida {
    background: linear-gradient(120deg, #0A2647, #1e3a5f);
    padding: 30px;
    border-radius: 14px;
    color: white;
    margin-bottom: 22px;
}

.volver-cursos {
    display: inline-block;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 25px;
}

.volver-cursos:hover {
    color: white;
}

.detalle-curso-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.detalle-curso-texto {
    max-width: 750px;
}

.detalle-curso-cabecera h1 {
    font-size: 29px;
    margin: 12px 0;
    color: white;
}

.detalle-curso-cabecera p {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 14px;
}

.etiqueta-curso {
    display: inline-block;
    background: #0072CE;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.docente-info {
    margin-top: 18px;
    font-size: 13px;
    color: #e2e8f0;
}

.detalle-icono {
    font-size: 65px;
    opacity: .9;
}

/* MÓDULOS */

.modulos-seccion {
    margin-top: 30px;
}

.modulos-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.modulos-titulo h2 {
    font-size: 22px;
    color: #12325E;
    margin-bottom: 7px;
}

.modulos-titulo p {
    color: #64748b;
    font-size: 13px;
}

.cantidad-modulos {
    background: #dbeafe;
    color: #005BAC;
    padding: 9px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.lista-modulos {
    display: grid;
    gap: 22px;
}

.modulo-contenedor {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}

.modulo-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.modulo-numero {
    width: 45px;
    height: 45px;
    min-width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #005BAC;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
}

.modulo-datos {
    flex: 1;
}

.modulo-etiqueta {
    color: #0072CE;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.modulo-datos h3 {
    color: #12325E;
    font-size: 16px;
    margin: 5px 0;
}

.modulo-datos p {
    color: #64748b;
    font-size: 12px;
}

.modulo-estado {
    color: #64748b;
    font-size: 11px;
}

/* MATERIALES */

.materiales-trabajador {
    padding: 18px;
    display: grid;
    gap: 15px;
}

.material-trabajador {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
}

.material-cabecera {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.material-icono {
    width: 43px;
    height: 43px;
    min-width: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
    font-weight: bold;
}

.icono-pdf {
    background: #fee2e2;
    color: #dc2626;
}

.icono-video {
    background: #dbeafe;
    color: #0072CE;
    font-size: 20px;
}

.icono-otro {
    background: #f1f5f9;
    color: #475569;
}

.material-info-trabajador {
    flex: 1;
    min-width: 0;
}

.material-info-trabajador h4 {
    font-size: 14px;
    color: #12325E;
    margin-bottom: 5px;
}

.material-info-trabajador p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 5px;
}

.material-info-trabajador small {
    color: #0072CE;
    font-size: 11px;
}

.material-pendiente,
.material-completado {
    white-space: nowrap;
    font-size: 11px;
    padding: 7px 10px;
    border-radius: 20px;
    font-weight: bold;
}

.material-pendiente {
    background: #fef3c7;
    color: #92400e;
}

.material-completado {
    background: #dcfce7;
    color: #15803d;
}

/* VISOR DE DOCUMENTOS */

.visor-material {
    margin-top: 15px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    overflow: hidden;
}

.visor-material summary {
    cursor: pointer;
    padding: 13px 15px;
    background: #eff6ff;
    color: #005BAC;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.visor-material summary::-webkit-details-marker {
    display: none;
}

.visor-material summary:hover {
    background: #dbeafe;
}

.visor-flecha {
    font-size: 19px;
    transition: transform .2s;
}

.visor-material[open] .visor-flecha {
    transform: rotate(180deg);
}

.visor-contenido {
    padding: 12px;
    background: #f1f5f9;
}

.visor-contenido iframe {
    display: block;
    width: 100%;
    height: 650px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: white;
}

.visor-contenido video {
    display: block;
    width: 100%;
    max-height: 600px;
    background: #0A2647;
    border-radius: 7px;
}

.abrir-externo {
    display: inline-block;
    margin-top: 10px;
    color: #0072CE;
    font-size: 12px;
    text-decoration: none;
}

.enlace-archivo {
    display: inline-block;
    color: #0072CE;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    margin: 5px 0 12px;
}

.enlace-archivo:hover,
.abrir-externo:hover {
    text-decoration: underline;
}

/* ACCIONES DEL MATERIAL */

.material-pie {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 14px;
    margin-top: 14px;
}

.btn-completar {
    border: none;
    background: #0072CE;
    color: white;
    padding: 10px 15px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.btn-completar:hover {
    background: #005BAC;
}

.texto-completado {
    color: #15803d;
    font-size: 12px;
    font-weight: bold;
}

.sin-materiales {
    padding: 20px;
    background: #f8fafc;
    color: #64748b;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.curso-vacio {
    padding: 40px;
    background: white;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.curso-vacio h3 {
    color: #12325E;
    margin-bottom: 8px;
}

.curso-vacio p {
    color: #64748b;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 700px) {

    .detalle-curso-cabecera {
        flex-direction: column;
        align-items: flex-start;
    }

    .detalle-icono {
        display: none;
    }

    .modulo-estado {
        display: none;
    }

    .material-cabecera {
        flex-wrap: wrap;
    }

    .material-info-trabajador {
        width: calc(100% - 60px);
    }

    .visor-contenido iframe {
        height: 450px;
    }

    .modulos-titulo {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* VISOR PDF */

.visor-pdf-container {
    width: 100%;
    margin: 20px 0;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
}

.visor-pdf-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #0A2647;
    color: white;
}

.pdf-paginas {
    font-size: 12px;
    color: #bfdbfe;
}

.visor-pdf {
    height: 750px;
    overflow-y: auto;
    padding: 20px;
}

.pdf-paginas-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pdf-pagina-bloque {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pdf-numero-pagina {
    color: #475569;
    font-size: 12px;
    font-weight: bold;
}

.pdf-pagina {
    display: block;
    max-width: 100%;
    height: auto;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.btn-completar:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 0.8;
}

.mensaje-pdf {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
}

.form-completar-material {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}



/* TARJETA DEL MATERIAL */

.material-trabajador {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 22px;
    gap: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

/* INFORMACIÓN DEL MATERIAL */

.material-cabecera {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

.material-info-trabajador {
    flex: 1;
    min-width: 0;
}

/* VISOR PDF A TODO EL ANCHO */

.visor-material {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    background: #e2e8f0;
}

.visor-pdf-cabecera {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    gap: 15px;
    background: #0A2647;
    color: white;
}

.visor-pdf {
    display: block;
    width: 100%;
    height: 850px;
    overflow-y: auto;
    padding: 25px;
    background: #e2e8f0;
}

.pdf-paginas-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 25px;
}

.pdf-pagina-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.pdf-pagina {
    display: block;
    max-width: 100%;
    height: auto;
    background: white;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.pdf-numero-pagina {
    font-size: 12px;
    font-weight: bold;
    color: #475569;
}

.pdf-paginas {
    font-size: 12px;
    color: #bfdbfe;
}

/* VIDEO */

.visor-contenido {
    width: 100%;
    padding: 15px;
    background: #e2e8f0;
}

.visor-contenido video {
    width: 100%;
    max-height: 650px;
    display: block;
    background: #000;
    border-radius: 8px;
}

/* BOTÓN */

.material-pie {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.form-completar-material {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.btn-completar:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.mensaje-pdf {
    color: #64748b;
    font-size: 12px;
    text-align: right;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .material-trabajador {
        padding: 14px;
    }

    .visor-pdf {
        height: 650px;
        padding: 10px;
    }

    .visor-pdf-cabecera {
        flex-direction: column;
        align-items: flex-start;
    }

    .material-cabecera {
        flex-wrap: wrap;
    }

}



/* ==========================================
   EVALUACIONES
========================================== */

.seccion-examenes {
    width: 100%;
    margin-top: 35px;
}

.encabezado-seccion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.encabezado-seccion h2 {
    color: #0A2647;
    font-size: 22px;
    margin-bottom: 6px;
}

.encabezado-seccion p {
    color: #64748b;
    font-size: 14px;
}

.btn-crear-examen {
    background: #0072CE;
    color: white;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-crear-examen:hover {
    background: #005BAC;
}

.lista-examenes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tarjeta-examen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.examen-informacion {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icono-examen {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 12px;
    font-weight: 700;
}

.examen-informacion h3 {
    color: #12325E;
    font-size: 16px;
    margin-bottom: 6px;
}

.examen-informacion p {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 9px;
}

.examen-detalles {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #64748b;
    font-size: 12px;
}

.cantidad-preguntas {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.sin-examenes {
    text-align: center;
    padding: 45px 20px;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

.icono-vacio {
    width: 55px;
    height: 55px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 14px;
    font-weight: 700;
}

.sin-examenes h3 {
    color: #12325E;
    margin-bottom: 8px;
}

.sin-examenes p {
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 650px) {
    .encabezado-seccion {
        align-items: flex-start;
        flex-direction: column;
    }

    .tarjeta-examen {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* ==========================================
   CREAR PREGUNTAS DEL EXAMEN
========================================== */

.crear-pregunta-contenedor {
    max-width: 950px;
    margin: 25px auto;
}

.crear-pregunta-cabecera {
    background: #172554;
    color: white;
    padding: 28px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.crear-pregunta-cabecera span {
    color: #8ED3F5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.crear-pregunta-cabecera h2 {
    margin: 10px 0;
    font-size: 23px;
}

.crear-pregunta-cabecera p {
    color: #cbd5e1;
    font-size: 14px;
}

.crear-pregunta-icono {
    width: 60px;
    height: 60px;
    background: #0072CE;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.formulario-pregunta {
    background: white;
    padding: 30px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
}

.formulario-pregunta h3 {
    color: #172554;
    font-size: 17px;
    margin-bottom: 20px;
}

.pregunta-campo {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 20px;
    flex: 1;
}

.pregunta-campo label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.pregunta-campo input,
.pregunta-campo textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    outline: none;
}

.pregunta-campo input:focus,
.pregunta-campo textarea:focus {
    border-color: #0072CE;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.pregunta-campos-dobles {
    display: flex;
    gap: 20px;
}

.pregunta-separador {
    height: 1px;
    background: #e2e8f0;
    margin: 15px 0 25px;
}

.alternativas-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.alternativas-titulo h3 {
    margin-bottom: 6px;
}

.alternativas-titulo p {
    color: #64748b;
    font-size: 13px;
}

.alternativas-titulo span {
    background: #eff6ff;
    color: #0072CE;
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.alternativas-lista {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.alternativa-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.alternativa-letra {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 8px;
    font-weight: 700;
}

.alternativa-item > input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    outline: none;
}

.alternativa-item > input[type="text"]:focus {
    border-color: #0072CE;
}

.alternativa-correcta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.alternativa-correcta input {
    accent-color: #16a34a;
}

.pregunta-ayuda {
    background: #eff6ff;
    color: #005BAC;
    padding: 12px;
    border-radius: 8px;
    margin-top: 18px;
    font-size: 12px;
}

.pregunta-botones {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
}

.pregunta-cancelar,
.pregunta-guardar {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pregunta-cancelar {
    background: #f1f5f9;
    color: #475569;
}

.pregunta-guardar {
    background: #0072CE;
    color: white;
    border: none;
}

.pregunta-guardar:hover {
    background: #005BAC;
}

@media (max-width: 650px) {

    .crear-pregunta-cabecera {
        padding: 20px;
    }

    .formulario-pregunta {
        padding: 18px;
    }

    .pregunta-campos-dobles {
        flex-direction: column;
        gap: 0;
    }

    .alternativa-item {
        flex-wrap: wrap;
    }

    .alternativa-item > input[type="text"] {
        flex-basis: calc(100% - 50px);
    }

    .alternativa-correcta {
        margin-left: 46px;
    }

    .pregunta-botones {
        flex-direction: column-reverse;
    }

    .pregunta-cancelar,
    .pregunta-guardar {
        text-align: center;
    }

}


/* ==========================================
   PREGUNTAS REGISTRADAS
========================================== */

.preguntas-registradas {
    margin-top: 35px;
}

.preguntas-registradas-titulo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.preguntas-registradas-titulo h2 {
    color: #172554;
    font-size: 21px;
    margin-bottom: 6px;
}

.preguntas-registradas-titulo p {
    color: #64748b;
    font-size: 13px;
}

.preguntas-total {
    background: #eff6ff;
    color: #0072CE;
    padding: 8px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pregunta-registrada {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
}

.pregunta-registrada-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.pregunta-numero {
    color: #0072CE;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pregunta-registrada-cabecera h3 {
    color: #172554;
    font-size: 16px;
    margin-top: 8px;
    line-height: 1.5;
}

.pregunta-puntaje {
    background: #f1f5f9;
    color: #475569;
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 12px;
    white-space: nowrap;
}

.pregunta-alternativas-registradas {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.alternativa-registrada {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.alternativa-registrada > span {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e2e8f0;
    color: #475569;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.alternativa-registrada p {
    flex: 1;
    color: #334155;
    font-size: 13px;
}

.alternativa-es-correcta {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.alternativa-es-correcta > span {
    background: #dcfce7;
    color: #15803d;
}

.alternativa-es-correcta strong {
    color: #15803d;
    font-size: 11px;
}

.preguntas-sin-registros {
    background: white;
    border: 1px dashed #cbd5e1;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.preguntas-sin-registros h3 {
    color: #172554;
    font-size: 16px;
    margin-bottom: 8px;
}

.preguntas-sin-registros p {
    color: #64748b;
    font-size: 13px;
}

@media (max-width: 650px) {

    .pregunta-registrada-cabecera {
        flex-direction: column;
    }

    .alternativa-registrada {
        flex-wrap: wrap;
    }

    .alternativa-registrada strong {
        width: 100%;
        margin-left: 40px;
    }

}
.btn-administrar-preguntas {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 14px;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: 0.2s;
}

.btn-administrar-preguntas:hover {
    background: #dbeafe;
}


/* =====================================
   DISTRIBUCIÓN GENERAL DEL DASHBOARD
===================================== */

.dashboard {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* MENÚ LATERAL */

.sidebar {
    width: 250px;
    min-width: 250px;
    background: #0A2647;
    color: white;
    padding: 25px 18px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
}

.sidebar-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sidebar-logo h2 {
    color: white;
    font-size: 22px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    display: block;
    padding: 13px 15px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #0072CE;
    color: white;
}

.sidebar .logout {
    display: block;
    margin-top: auto;
    padding: 13px 15px;
    background: #12325E;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
}

.sidebar .logout:hover {
    background: #dc2626;
}

/* CONTENIDO PRINCIPAL */

.main-content {
    flex: 1;
    min-width: 0;
    padding: 40px;
    background: #f1f5f9;
}

/* CENTRAR CONTENIDO DEL RESULTADO */

.resultado-page {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar .logout {
        margin-top: 20px;
    }

    .main-content {
        padding: 20px;
    }
}

/* CENTRADO DE LA PANTALLA DE RESULTADOS */

.main-content {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    padding: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.resultado-page {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.resultado-card {
    width: 100%;
    margin: 0 auto;
}











/* ==========================================
   PANTALLA DE EXÁMENES - CLMS
========================================== */

/* CONTENIDO */
.contenido {
    flex: 1;
    min-width: 0;
    padding: 35px 45px;
    background: #f1f5f9;
}

/* ENCABEZADO */
.topbar {
    margin-bottom: 25px;
}

.topbar h1 {
    font-size: 28px;
    color: #0A2647;
    font-weight: 700;
    margin-bottom: 7px;
}

.topbar p {
    color: #64748b;
    font-size: 14px;
}

/* BANNER */
.examenes-banner {
    background: linear-gradient(120deg, #004A99, #0072CE);
    color: white;
    padding: 30px 35px;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.15);
}

.examenes-banner h2 {
    font-size: 23px;
    margin-bottom: 10px;
}

.examenes-banner p {
    max-width: 650px;
    font-size: 14px;
    line-height: 1.7;
    color: #dbeafe;
}

/* RESUMEN */
.examenes-resumen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.examen-resumen-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 23px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.examen-resumen-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

.examen-resumen-card h3 {
    color: #0A2647;
    font-size: 27px;
    margin-bottom: 5px;
}

.examen-resumen-card p {
    color: #64748b;
    font-size: 13px;
}

.examen-resumen-icono {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 23px;
}

.examen-resumen-icono.azul {
    background: #dbeafe;
    color: #0072CE;
}

.examen-resumen-icono.verde {
    background: #dcfce7;
    color: #15803d;
}

.examen-resumen-icono.naranja {
    background: #ffedd5;
    color: #ea580c;
}

/* LISTADO */
.examenes-listado {
    width: 100%;
}

.examenes-titulo {
    margin-bottom: 22px;
}

.examenes-titulo h2 {
    color: #0A2647;
    font-size: 21px;
    margin-bottom: 7px;
}

.examenes-titulo p {
    color: #64748b;
    font-size: 13px;
}

/* GRID DE EXÁMENES */
.examenes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

/* TARJETA */
.examen-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.examen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 9px 22px rgba(15, 23, 42, 0.09);
}

.examen-card-superior {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 12px;
}

.examen-card-icono {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border-radius: 12px;
    font-size: 23px;
}

.examen-estado {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.examen-estado.pendiente {
    background: #fef3c7;
    color: #92400e;
}

.examen-card-contenido {
    padding: 10px 22px 22px;
}

.examen-curso {
    display: inline-block;
    color: #0072CE;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.examen-card-contenido h3 {
    color: #0A2647;
    font-size: 18px;
    margin-bottom: 10px;
}

.examen-card-contenido p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    min-height: 42px;
}

.examen-card-datos {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.examen-card-datos span {
    color: #64748b;
    font-size: 12px;
}

.examen-card-datos strong {
    color: #334155;
}

/* FOOTER DE TARJETA */
.examen-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 22px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.examen-fecha {
    color: #94a3b8;
    font-size: 11px;
}

/* BOTÓN REALIZAR */
.btn-realizar-examen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 17px;
    background: #0072CE;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-realizar-examen:hover {
    background: #005BAC;
    transform: translateY(-2px);
}

/* ESTADO VACÍO */
.examenes-vacio {
    padding: 55px 25px;
    text-align: center;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.examenes-vacio-icono {
    font-size: 45px;
    margin-bottom: 15px;
}

.examenes-vacio h3 {
    color: #0A2647;
    margin-bottom: 10px;
}

.examenes-vacio p {
    max-width: 500px;
    margin: auto;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 1000px) {
    .contenido {
        padding: 25px;
    }

    .examenes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .contenido {
        padding: 18px;
    }

    .examenes-resumen {
        grid-template-columns: 1fr;
    }

    .examenes-banner {
        padding: 24px;
    }

    .examenes-banner h2 {
        font-size: 20px;
    }

    .examen-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-realizar-examen {
        width: 100%;
    }
}

/* ==========================================
   PROGRESO MODERNO DE LOS CURSOS
========================================== */

.progreso-curso {
    margin-top: 22px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e8edf4;
    border-radius: 14px;
}

.progreso-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progreso-etiqueta {
    display: block;
    color: #718096;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.progreso-porcentaje {
    color: #172b4d;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.progreso-porcentaje small {
    font-size: 17px;
    color: #64748b;
    margin-left: 2px;
}

.progreso-estado {
    padding: 7px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.progreso-estado.completado {
    background: #dcfce7;
    color: #15803d;
}

.progreso-estado.en-progreso {
    background: #dbeafe;
    color: #005BAC;
}

.progreso-estado.pendiente {
    background: #f1f5f9;
    color: #64748b;
}

/* BARRA */

.progreso-barra {
    width: 100%;
    height: 11px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.progreso-avance {
    height: 100%;
    background: linear-gradient(90deg, #0072CE, #38bdf8);
    border-radius: 20px;
    transition: width 0.8s ease;
}

.progreso-avance.barra-completada {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}

/* DETALLE */

.progreso-detalle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 11px;
    color: #64748b;
    font-size: 11px;
}

.progreso-desglose {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 17px;
    padding-top: 13px;
    border-top: 1px solid #e2e8f0;
}

.progreso-desglose div {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 11px;
}

.progreso-desglose strong {
    color: #334155;
    font-weight: 700;
}

.desglose-punto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.desglose-punto.materiales {
    background: #0072CE;
}

.desglose-punto.examenes {
    background: #f59e0b;
}

/* RESPONSIVE */

@media (max-width: 600px) {
    .progreso-curso {
        padding: 14px;
    }

    .progreso-porcentaje {
        font-size: 26px;
    }

    .progreso-desglose {
        gap: 12px;
    }
}



/* ==========================================
   DETALLE DEL CURSO - PANEL DOCENTE
========================================== */

.docente-contenido {
    min-width: 0;
}

/* ENCABEZADO */

.docente-header {
    margin-bottom: 25px;
}

.docente-header h1 {
    color: #172b4d;
    font-size: 27px;
    font-weight: 800;
    margin: 7px 0;
}

.docente-header p {
    color: #718096;
    font-size: 13px;
}

/* VOLVER */

.docente-volver {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0072CE;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 20px;
}

.docente-volver:hover {
    color: #004A99;
}

/* PRESENTACIÓN */

.docente-bienvenida-simple {
    padding: 30px;
    border-radius: 17px;
    background: linear-gradient(120deg, #102b50, #1d4e89);
    color: white;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.docente-bienvenida-simple span {
    color: #bfdbfe;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.docente-bienvenida-simple h2 {
    color: white;
    font-size: 25px;
    margin: 10px 0;
}

.docente-bienvenida-simple p {
    color: #dbeafe;
    font-size: 13px;
    line-height: 1.7;
    max-width: 650px;
}

.docente-bienvenida-icono {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.13);
    color: white;
    font-size: 32px;
}

/* FORMULARIOS Y SECCIONES */

.docente-panel-formulario,
.docente-seccion {
    background: #fff;
    border: 1px solid #e8edf4;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(15, 35, 65, .035);
}

.docente-formulario-titulo,
.docente-seccion-titulo {
    margin-bottom: 22px;
}

.docente-formulario-titulo h2,
.docente-seccion-titulo h2,
.encabezado-seccion h2 {
    color: #172b4d;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
}

.docente-formulario-titulo p,
.docente-seccion-titulo p,
.encabezado-seccion p {
    color: #8793a5;
    font-size: 12px;
    line-height: 1.6;
}

/* CAMPOS */

.docente-campos {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.docente-campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 17px;
    min-width: 0;
}

.docente-campo label {
    color: #34445c;
    font-size: 12px;
    font-weight: 700;
}

.docente-campo input,
.docente-campo select,
.docente-campo textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #dce3ed;
    border-radius: 9px;
    background: #fbfcfe;
    color: #334155;
    font-size: 13px;
    outline: none;
    transition: .2s;
}

.docente-campo input:focus,
.docente-campo select:focus,
.docente-campo textarea:focus {
    border-color: #00A0E9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.10);
}

.docente-campo small {
    color: #94a3b8;
    font-size: 11px;
}

/* BOTONES */

.docente-boton,
.btn-crear-examen {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 12px 19px;
    border: none;
    border-radius: 9px;
    background: #0072CE;
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: .2s;
}

.docente-boton:hover,
.btn-crear-examen:hover {
    background: #005BAC;
    transform: translateY(-1px);
}

/* MÓDULOS */

.docente-modulos {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.docente-modulo {
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.docente-modulo-cabecera {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf4;
}

.docente-modulo-cabecera span:first-child {
    color: #0072CE;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.docente-modulo-cabecera h3 {
    color: #233653;
    font-size: 16px;
    margin-top: 7px;
}

.docente-modulo-contador {
    padding: 7px 11px;
    background: #eaf2ff;
    color: #0072CE;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

/* MATERIALES */

.docente-materiales {
    padding: 10px 20px;
}

.docente-material {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f5;
}

.docente-material:last-child {
    border-bottom: none;
}

.docente-material-icono {
    width: 43px;
    height: 43px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
}

.docente-material-info {
    flex: 1;
    min-width: 0;
}

.docente-material-info strong {
    display: block;
    color: #263750;
    font-size: 13px;
    margin-bottom: 5px;
}

.docente-material-info span {
    color: #0072CE;
    font-size: 10px;
    font-weight: 700;
}

.docente-material-info p {
    color: #8793a5;
    font-size: 11px;
    margin-top: 6px;
    line-height: 1.5;
}

.docente-material > a {
    padding: 9px 13px;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.docente-material > a:hover {
    background: #dbeafe;
}

.docente-material-vacio {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
    padding: 22px 10px;
}

/* SUBIR MATERIAL */

.docente-subir-detalles {
    margin: 0 20px 20px;
    border: 1px dashed #bfcee2;
    border-radius: 10px;
    background: #f8fbff;
}

.docente-subir-detalles summary {
    padding: 14px 16px;
    color: #0072CE;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.docente-subir-detalles summary::-webkit-details-marker {
    display: none;
}

.docente-subir-detalles summary::after {
    content: "+";
    float: right;
    font-size: 18px;
}

.docente-subir-detalles[open] summary::after {
    content: "−";
}

.docente-subir-detalles .docente-formulario {
    padding: 10px 18px 18px;
    border-top: 1px solid #e5edf7;
}

/* EVALUACIONES */

.seccion-examenes {
    scroll-margin-top: 25px;
}

.encabezado-seccion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
}

.lista-examenes {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tarjeta-examen {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid #e6ebf2;
    border-radius: 13px;
    background: #fff;
    transition: .2s;
}

.tarjeta-examen:hover {
    border-color: #bfdbfe;
    box-shadow: 0 5px 16px rgba(30,64,175,.06);
}

.examen-informacion {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.icono-examen {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.examen-datos h3 {
    color: #263750;
    font-size: 14px;
    margin-bottom: 6px;
}

.examen-datos > p {
    color: #8793a5;
    font-size: 11px;
    margin-bottom: 10px;
}

.examen-detalles {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 11px;
}

.examen-detalles strong {
    color: #334155;
}

.estado-activo,
.estado-inactivo {
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.estado-activo {
    color: #15803d;
    background: #dcfce7;
}

.estado-inactivo {
    color: #64748b;
    background: #f1f5f9;
}

.examen-acciones {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.cantidad-preguntas {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.btn-administrar-preguntas {
    padding: 10px 13px;
    border-radius: 8px;
    background: #eff6ff;
    color: #0072CE;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.btn-administrar-preguntas:hover {
    background: #dbeafe;
}

/* ESTADOS VACÍOS */

.docente-vacio,
.sin-examenes {
    padding: 40px 20px;
    text-align: center;
    background: #f8fafc;
    border: 1px dashed #d7e0eb;
    border-radius: 13px;
}

.docente-vacio > div,
.icono-vacio {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    background: #eaf2ff;
    color: #0072CE;
    border-radius: 15px;
    font-size: 21px;
    font-weight: 800;
}

.docente-vacio h3,
.sin-examenes h3 {
    color: #263750;
    font-size: 16px;
    margin-bottom: 8px;
}

.docente-vacio p,
.sin-examenes p {
    color: #8793a5;
    font-size: 12px;
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 18px;
}

/* MENSAJES */

.docente-mensajes {
    margin-bottom: 18px;
}

.docente-mensaje {
    padding: 13px 16px;
    margin-bottom: 9px;
    border-radius: 9px;
    font-size: 12px;
}

.docente-mensaje.success {
    background: #dcfce7;
    color: #166534;
}

.docente-mensaje.error {
    background: #fee2e2;
    color: #991b1b;
}

/* RESPONSIVE */

@media (max-width: 850px) {
    .tarjeta-examen {
        align-items: flex-start;
        flex-direction: column;
    }

    .examen-acciones {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .docente-panel-formulario,
    .docente-seccion {
        padding: 17px;
    }

    .docente-bienvenida-simple {
        padding: 22px;
    }

    .docente-bienvenida-simple h2 {
        font-size: 20px;
    }

    .docente-campos {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .docente-modulo-cabecera {
        align-items: flex-start;
        flex-direction: column;
    }

    .docente-material {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .docente-material-info {
        width: calc(100% - 60px);
    }

    .docente-material > a {
        margin-left: 58px;
    }

    .encabezado-seccion {
        align-items: flex-start;
        flex-direction: column;
    }

    .examen-acciones {
        align-items: flex-start;
        flex-direction: column;
    }
}



/* ==========================================
   TARJETAS DE CURSOS - DOCENTE
========================================== */

.docente-cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.docente-curso-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 15px;
    transition: all .25s ease;
}

.docente-curso-card:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 10px 25px rgba(30, 64, 175, .08);
}

.docente-curso-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.docente-curso-icono {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: #eff6ff;
    color: #0072CE;
    border-radius: 13px;
    font-size: 22px;
}

.docente-curso-estado {
    padding: 6px 10px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.docente-curso-codigo {
    color: #0072CE;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.docente-curso-card h3 {
    color: #12325E;
    font-size: 17px;
    margin-bottom: 10px;
}

.docente-curso-card > p {
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
    min-height: 60px;
}

.docente-curso-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    margin-top: 12px;
    border-top: 1px solid #edf0f5;
    color: #64748b;
    font-size: 11px;
}

.docente-curso-info strong {
    color: #15803d;
}

.docente-curso-boton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-top: 5px;
    background: #0072CE;
    color: white;
    border-radius: 9px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.docente-curso-boton:hover {
    background: #005BAC;
}

.docente-curso-boton span {
    font-size: 18px;
}

@media (max-width: 600px) {
    .docente-cursos-grid {
        grid-template-columns: 1fr;
    }
}



/* ==========================================
   PANEL ADMINISTRADOR - CLMS
========================================== */

/* ESTRUCTURA GENERAL */

.dashboard {
    display: flex;
    min-height: 100vh;
    background: #f4f6fa;
}

/* MENÚ LATERAL */

.sidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: #0A2647;
    color: white;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    height: 85px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.sidebar-logo h2 {
    font-size: 21px;
    color: white;
    margin: 0;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 25px 14px;
    gap: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 16px;
    color: #bdc9d8;
    text-decoration: none;
    border-radius: 7px;
    font-size: 14px;
    transition: 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #1765c1;
    color: white;
}

.sidebar-menu a span {
    width: 20px;
    text-align: center;
    font-size: 17px;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-logout {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: #243850;
    color: white;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
}

.sidebar-logout:hover {
    background: #344d6b;
}

/* CONTENIDO PRINCIPAL */

.main-content {
    width: calc(100% - 250px);
    min-height: 100vh;
    margin-left: 250px;
    padding: 35px 40px;
    box-sizing: border-box;
}

/* BARRA SUPERIOR */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 22px 28px;
    border-radius: 12px;
    border: 1px solid #e8edf3;
    margin-bottom: 30px;
}

.topbar h1 {
    margin: 0 0 7px;
    color: #1c2b40;
    font-size: 25px;
}

.topbar p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.admin-profile strong {
    display: block;
    color: #24344a;
    font-size: 14px;
}

.admin-profile small {
    display: block;
    color: #718096;
    margin-top: 5px;
}

.admin-avatar {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #1765c1;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* TARJETAS DE ESTADÍSTICAS */

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.admin-card {
    min-width: 0;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 23px;
    display: flex;
    align-items: center;
    gap: 17px;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(0,0,0,0.025);
}

.admin-card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 11px;
    background: #eaf2ff;
    color: #1765c1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.admin-card p {
    margin: 0 0 8px;
    color: #718096;
    font-size: 13px;
}

.admin-card h2 {
    margin: 0;
    color: #1c2b40;
    font-size: 28px;
}

/* SECCIÓN DE GESTIÓN */

.admin-section {
    margin-top: 38px;
}

.section-heading {
    margin-bottom: 20px;
}

.section-heading h2 {
    color: #1c2b40;
    font-size: 20px;
    margin: 0 0 7px;
}

.section-heading p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

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

.admin-action-card {
    min-width: 0;
    background: white;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    transition: 0.2s;
}

.admin-action-card:hover {
    border-color: #b7d1f3;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.admin-action-card h3 {
    color: #1c2b40;
    font-size: 16px;
    margin: 0 0 12px;
}

.admin-action-card p {
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    min-height: 62px;
}

.admin-action-button {
    display: inline-block;
    margin-top: 18px;
    padding: 10px 16px;
    background: #1765c1;
    color: white;
    text-decoration: none;
    border-radius: 7px;
    font-size: 13px;
}

.admin-action-button:hover {
    background: #104d96;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .main-content {
        padding: 25px;
    }

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

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

@media (max-width: 750px) {
    .sidebar {
        width: 75px;
        min-width: 75px;
    }

    .sidebar-logo {
        justify-content: center;
        padding: 0;
    }

    .sidebar-logo h2,
    .sidebar-menu a:not(.active) {
        /* El menú se adapta a pantallas pequeñas */
    }

    .sidebar-menu a {
        justify-content: center;
        padding: 14px 5px;
        font-size: 0;
    }

    .sidebar-menu a span {
        font-size: 19px;
    }

    .main-content {
        width: calc(100% - 75px);
        margin-left: 75px;
        padding: 18px;
    }

    .admin-stats,
    .admin-actions {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* ==========================================
   CORRECCIÓN DE DISTRIBUCIÓN ADMINISTRADOR
========================================== */

/* GESTIÓN */

.admin-main .admin-section {
    width: 100%;
    margin-top: 35px;
}

.admin-main .admin-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.admin-main .admin-action-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .admin-main {
        padding: 25px;
    }

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

@media (max-width: 750px) {
    .admin-sidebar {
        width: 75px !important;
        min-width: 75px !important;
    }

    .admin-main {
        width: calc(100% - 75px) !important;
        margin-left: 75px !important;
        padding: 18px;
    }

    .admin-main .admin-stats,
    .admin-main .admin-actions {
        grid-template-columns: 1fr;
    }

    .admin-main .topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}



/* ==========================================
   ADMINISTRADOR - GESTION DE USUARIOS
========================================== */

.admin-users-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.admin-users-stat {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-users-stat span {
    color: #64748b;
    font-size: 14px;
}

.admin-users-stat strong {
    color: #102a43;
    font-size: 28px;
}

.admin-users-section,
.admin-form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

.admin-users-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.admin-users-heading h2,
.admin-form-heading h2 {
    color: #102a43;
    font-size: 21px;
    margin-bottom: 6px;
}

.admin-users-heading p,
.admin-form-heading p {
    color: #64748b;
    font-size: 14px;
}

.admin-users-create,
.admin-users-edit,
.admin-form-submit {
    background: #1769aa;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 7px;
    padding: 11px 17px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.admin-users-create:hover,
.admin-users-edit:hover,
.admin-form-submit:hover {
    background: #12568e;
}

.admin-users-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.admin-users-filters input,
.admin-users-filters select {
    padding: 11px 13px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    font-size: 14px;
    background: #ffffff;
    color: #334155;
}

.admin-users-filters input {
    flex: 1;
    min-width: 220px;
}

.admin-users-filters select {
    min-width: 170px;
}

.admin-users-filters button {
    background: #1769aa;
    color: white;
    border: none;
    border-radius: 7px;
    padding: 11px 18px;
    cursor: pointer;
}

.admin-users-filters a {
    color: #475569;
    text-decoration: none;
    padding: 11px;
    font-size: 14px;
}

.admin-users-table-container {
    width: 100%;
    overflow-x: auto;
}

.admin-users-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 750px;
}

.admin-users-table th {
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 15px 12px;
}

.admin-users-table td {
    color: #475569;
    font-size: 14px;
    padding: 15px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.admin-users-table tbody tr:hover {
    background: #f8fafc;
}

.admin-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.admin-status.active {
    background: #dcfce7;
    color: #166534;
}

.admin-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.admin-users-empty {
    text-align: center;
    padding: 30px !important;
    color: #94a3b8 !important;
}


/* ==========================================
   ADMINISTRADOR - FORMULARIOS
========================================== */

.admin-form-section {
    max-width: 850px;
}

.admin-form-heading {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

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

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-group label {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.admin-form-group input,
.admin-form-group select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    outline: none;
}

.admin-form-group input:focus,
.admin-form-group select:focus {
    border-color: #1769aa;
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.12);
}

.admin-form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.admin-form-group input:disabled,
.admin-form-group select:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

.admin-form-help {
    color: #64748b;
    font-size: 12px;
}

.admin-form-errors {
    color: #b91c1c;
    font-size: 13px;
}

.admin-form-errors ul {
    margin: 5px 0;
    padding-left: 20px;
}

.admin-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 15px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.admin-form-cancel {
    background: #e2e8f0;
    color: #334155;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 7px;
    font-size: 14px;
}

.admin-form-cancel:hover {
    background: #cbd5e1;
}

.admin-form-notice {
    grid-column: 1 / -1;
    padding: 12px;
    background: #eff6ff;
    color: #004A99;
    border-radius: 7px;
    font-size: 13px;
}

.admin-message {
    padding: 13px 16px;
    margin: 15px 0;
    border-radius: 7px;
    background: #eff6ff;
    color: #004A99;
    font-size: 14px;
}


/* ==========================================
   RESPONSIVE - ADMINISTRADOR
========================================== */

@media (max-width: 900px) {

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

    .admin-form {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .admin-users-stats {
        grid-template-columns: 1fr;
    }

    .admin-users-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-users-filters {
        flex-direction: column;
    }

    .admin-users-filters input,
    .admin-users-filters select {
        width: 100%;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
    }

    .admin-form-actions a,
    .admin-form-actions button {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

}



/* ==========================================
   IMPORTACIÓN DE TRABAJADORES
========================================== */

.import-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.import-card,
.import-info,
.import-errors {
    background: #ffffff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
}

.import-card-icon {
    font-size: 30px;
    margin-bottom: 15px;
}

.import-card h2,
.import-info h2,
.import-errors h2 {
    color: #17365d;
    font-size: 19px;
    margin-bottom: 12px;
}

.import-card p,
.import-info p,
.import-errors p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.import-form {
    margin-top: 20px;
}

.import-form .form-group {
    margin-bottom: 20px;
}

.import-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 9px;
    color: #334155;
}

.import-form input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #dbe1e8;
    border-radius: 8px;
    background: #f8fafc;
}

.import-card .btn-primary,
.import-form .btn-primary {
    display: inline-block;
    padding: 12px 20px;
    background: #17365d;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.import-card .btn-primary:hover,
.import-form .btn-primary:hover {
    background: #24558c;
}

.import-info {
    margin-top: 25px;
}

.import-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.import-columns span {
    background: #eaf1f8;
    color: #17365d;
    padding: 9px 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
}

.import-info ul {
    padding-left: 22px;
    color: #475569;
    line-height: 2;
    font-size: 14px;
}

.import-errors {
    margin-top: 25px;
    border-left: 4px solid #dc2626;
}

.error-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-item {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 15px;
    border-radius: 7px;
    font-size: 14px;
}

.field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .import-container {
        grid-template-columns: 1fr;
    }
}


.admin-action-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.admin-action-card:hover {
    transform: translateY(-3px);
    transition: 0.2s ease;
}

.admin-action-card .admin-action-button {
    display: inline-block;
}



/* ==========================================
   CLMS - DISTRIBUCIÓN DEL PANEL ADMINISTRADOR
========================================== */

.admin-dashboard {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: #f4f6fa;
    overflow-x: hidden;
}

/* MENÚ LATERAL */

.admin-dashboard .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    min-width: 250px;
    height: 100vh;
    box-sizing: border-box;
    z-index: 100;
    overflow-y: auto;
    background: #102a43;
    color: #ffffff;
}

/* CABECERA DEL MENÚ */

.admin-dashboard .admin-sidebar .sidebar-header {
    padding: 28px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}

.admin-dashboard .admin-sidebar .sidebar-header img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 10px;
}

.admin-dashboard .admin-sidebar .sidebar-header h2 {
    color: #ffffff;
    font-size: 22px;
    margin: 0 0 5px;
}

.admin-dashboard .admin-sidebar .sidebar-header span {
    color: #a9bbce;
    font-size: 12px;
}

/* OPCIONES DEL MENÚ */

.admin-dashboard .admin-sidebar .sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 25px 14px;
}

.admin-dashboard .admin-sidebar .sidebar-menu a {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 0 15px;
    border-radius: 8px;
    color: #d5e0eb;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.admin-dashboard .admin-sidebar .sidebar-menu a:hover {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.admin-dashboard .admin-sidebar .sidebar-menu a.active {
    background: #245b91;
    color: #ffffff;
    font-weight: 600;
}

/* CIERRE DE SESIÓN */

.admin-dashboard .admin-sidebar .sidebar-footer {
    padding: 15px 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.admin-dashboard .admin-sidebar .sidebar-footer a {
    display: block;
    padding: 12px 15px;
    color: #d5e0eb;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
}

.admin-dashboard .admin-sidebar .sidebar-footer a:hover {
    background: rgba(220, 70, 70, 0.16);
    color: #ffffff;
}

/* CONTENIDO PRINCIPAL */

.admin-dashboard .main-content {
    display: block;
    width: calc(100% - 250px);
    min-width: 0;
    min-height: 100vh;
    margin-left: 250px;
    padding: 35px 40px;
    box-sizing: border-box;
}

/* ENCABEZADO */

.admin-dashboard .main-content .content-header {
    margin-bottom: 25px;
}

.admin-dashboard .main-content .content-header h1 {
    color: #172b4d;
    font-size: 27px;
    margin-bottom: 8px;
}

.admin-dashboard .main-content .content-header p {
    color: #64748b;
    font-size: 14px;
}

/* ==========================================
   IMPORTACIÓN DE TRABAJADORES
========================================== */

.admin-dashboard .import-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 22px;
    margin-top: 25px;
}

.admin-dashboard .import-card,
.admin-dashboard .import-info,
.admin-dashboard .import-errors {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 26px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.035);
    box-sizing: border-box;
}

.admin-dashboard .import-card h2,
.admin-dashboard .import-info h2,
.admin-dashboard .import-errors h2 {
    color: #17365d;
    font-size: 18px;
    margin-bottom: 12px;
}

.admin-dashboard .import-card p,
.admin-dashboard .import-info p,
.admin-dashboard .import-errors p {
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.admin-dashboard .import-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf4fc;
    border-radius: 10px;
    font-size: 24px;
    margin-bottom: 18px;
}

.admin-dashboard .import-card .btn-primary,
.admin-dashboard .import-form .btn-primary {
    display: inline-block;
    padding: 12px 18px;
    background: #1d5b91;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-dashboard .import-card .btn-primary:hover,
.admin-dashboard .import-form .btn-primary:hover {
    background: #16456f;
}

.admin-dashboard .import-form {
    margin-top: 18px;
}

.admin-dashboard .import-form .form-group {
    margin-bottom: 18px;
}

.admin-dashboard .import-form label {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.admin-dashboard .file-upload-area {
    padding: 22px 15px;
    background: #f8fafc;
    border: 2px dashed #b8c9dc;
    border-radius: 9px;
    text-align: center;
}

.admin-dashboard .file-upload-area:hover {
    border-color: #1d5b91;
    background: #f2f7fc;
}

.admin-dashboard .file-upload-area input[type="file"] {
    max-width: 100%;
    font-size: 12px;
}

.admin-dashboard .import-submit {
    width: 100%;
}

.admin-dashboard .file-selected {
    overflow-wrap: anywhere;
}

/* INFORMACIÓN DEL EXCEL */

.admin-dashboard .import-info {
    margin-top: 22px;
}

.admin-dashboard .import-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 18px 0;
}

.admin-dashboard .import-columns span {
    padding: 11px 8px;
    text-align: center;
    background: #edf3fa;
    color: #244b7b;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.admin-dashboard .import-rules {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-dashboard .import-rule {
    display: flex;
    gap: 9px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 7px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.admin-dashboard .rule-check {
    color: #258454;
    font-weight: bold;
}

/* MENSAJES */

.admin-dashboard .admin-messages {
    margin: 15px 0;
}

.admin-dashboard .admin-message {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}

.admin-dashboard .admin-message.success {
    background: #eaf7ef;
    color: #17663b;
}

.admin-dashboard .admin-message.error {
    background: #fff0ef;
    color: #a52620;
}

.admin-dashboard .admin-message.warning {
    background: #fff8e7;
    color: #855c12;
}

.admin-dashboard .admin-message.info {
    background: #edf5ff;
    color: #24558b;
}

.admin-dashboard .import-errors {
    margin-top: 22px;
    border-left: 4px solid #dc2626;
}

.admin-dashboard .error-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-dashboard .error-item {
    padding: 12px;
    background: #fff5f4;
    border-radius: 6px;
    color: #8f2923;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-dashboard .field-error {
    color: #b42318;
    font-size: 12px;
    margin-top: 8px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
    .admin-dashboard .main-content {
        padding: 25px;
    }

    .admin-dashboard .import-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .admin-dashboard .admin-sidebar {
        width: 75px;
        min-width: 75px;
    }

    .admin-dashboard .admin-sidebar .sidebar-header {
        padding: 18px 5px;
    }

    .admin-dashboard .admin-sidebar .sidebar-header img {
        width: 45px;
        height: 45px;
    }

    .admin-dashboard .admin-sidebar .sidebar-header h2 {
        font-size: 13px;
    }

    .admin-dashboard .admin-sidebar .sidebar-header span {
        display: none;
    }

    .admin-dashboard .admin-sidebar .sidebar-menu {
        padding: 15px 5px;
    }

    .admin-dashboard .admin-sidebar .sidebar-menu a {
        justify-content: center;
        padding: 10px 3px;
        font-size: 10px;
        text-align: center;
        overflow-wrap: anywhere;
    }

    .admin-dashboard .admin-sidebar .sidebar-footer {
        padding: 8px 4px;
    }

    .admin-dashboard .admin-sidebar .sidebar-footer a {
        padding: 10px 3px;
        font-size: 10px;
        text-align: center;
    }

    .admin-dashboard .main-content {
        width: calc(100% - 75px);
        margin-left: 75px;
        padding: 20px 15px;
    }

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

    .admin-dashboard .import-rules {
        grid-template-columns: 1fr;
    }
}



/* ==========================================
   ASIGNACIÓN DE CURSOS - CSPCP
========================================== */

.admin-dashboard .assignment-section {
    margin-bottom: 25px;
}

.admin-dashboard .assignment-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 14px;
    padding: 25px;
    margin-bottom: 22px;
    box-shadow: 0 3px 12px rgba(15, 35, 65, 0.04);
}

.admin-dashboard .assignment-card-header {
    margin-bottom: 22px;
}

.admin-dashboard .assignment-card-header h2 {
    color: #172b4d;
    font-size: 19px;
    margin: 0 0 8px;
}

.admin-dashboard .assignment-card-header p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* SELECTOR DE ÁREA */

.admin-dashboard .assignment-area-form {
    max-width: 480px;
}

.admin-dashboard .assignment-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.admin-dashboard .assignment-field label {
    color: #344563;
    font-size: 14px;
    font-weight: 600;
}

.admin-dashboard .assignment-field select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d8e0eb;
    border-radius: 9px;
    background: #f9fbfd;
    color: #26364d;
    font-size: 14px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.admin-dashboard .assignment-field select:focus {
    border-color: #0072CE;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* TARJETAS DE RESUMEN */

.admin-dashboard .assignment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.admin-dashboard .assignment-summary-card {
    background: #ffffff;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 3px 12px rgba(15, 35, 65, 0.04);
}

.admin-dashboard .assignment-summary-card span {
    color: #718096;
    font-size: 13px;
    font-weight: 500;
}

.admin-dashboard .assignment-summary-card strong {
    color: #17365d;
    font-size: 25px;
    font-weight: 700;
}

/* OPCIÓN ASIGNAR A TODOS */

.admin-dashboard .assignment-option {
    padding: 15px 17px;
    margin-bottom: 18px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 10px;
}

.admin-dashboard .assignment-option label {
    display: flex;
    align-items: center;
    gap: 11px;
    cursor: pointer;
    color: #004A99;
    font-size: 14px;
}

/* LISTADO DE TRABAJADORES Y CURSOS */

.admin-dashboard .assignment-workers,
.admin-dashboard .assignment-courses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.admin-dashboard .assignment-worker-item,
.admin-dashboard .assignment-course-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s, border 0.2s, transform 0.2s;
}

.admin-dashboard .assignment-worker-item:hover,
.admin-dashboard .assignment-course-item:hover {
    background: #f8fbff;
    border-color: #93baf5;
    transform: translateY(-2px);
}

.admin-dashboard .assignment-worker-item input,
.admin-dashboard .assignment-course-item input,
.admin-dashboard .assignment-option input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #0072CE;
    flex-shrink: 0;
    cursor: pointer;
}

.admin-dashboard .assignment-worker-item div,
.admin-dashboard .assignment-course-item div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.admin-dashboard .assignment-worker-item strong,
.admin-dashboard .assignment-course-item strong {
    color: #26364d;
    font-size: 14px;
    font-weight: 600;
}

.admin-dashboard .assignment-worker-item span,
.admin-dashboard .assignment-course-item span {
    color: #718096;
    font-size: 12px;
}

/* ESTADO VACÍO */

.admin-dashboard .assignment-empty {
    padding: 22px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #718096;
    font-size: 14px;
    text-align: center;
}

.admin-dashboard .assignment-empty-main {
    margin-top: 25px;
    padding: 45px 25px;
}

.admin-dashboard .assignment-empty-main h3 {
    color: #26364d;
    margin: 0 0 10px;
    font-size: 19px;
}

.admin-dashboard .assignment-empty-main p {
    color: #718096;
    margin: 0;
    font-size: 14px;
}

/* BOTÓN DE ASIGNACIÓN */

.admin-dashboard .assignment-actions {
    display: flex;
    justify-content: flex-end;
    margin: 25px 0 35px;
}

.admin-dashboard .assignment-actions .btn-primary {
    min-width: 190px;
    padding: 13px 24px;
    border: none;
    border-radius: 9px;
    background: #0072CE;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.admin-dashboard .assignment-actions .btn-primary:hover:not(:disabled) {
    background: #005BAC;
    transform: translateY(-2px);
}

.admin-dashboard .assignment-actions .btn-primary:disabled {
    background: #aab7ca;
    cursor: not-allowed;
}

/* MENSAJES */

.admin-dashboard .messages-container {
    margin-bottom: 22px;
}

.admin-dashboard .messages-container .message {
    padding: 13px 16px;
    margin-bottom: 10px;
    border-radius: 9px;
    font-size: 14px;
}

.admin-dashboard .messages-container .success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

.admin-dashboard .messages-container .error {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.admin-dashboard .messages-container .info {
    color: #004A99;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .admin-dashboard .assignment-workers,
    .admin-dashboard .assignment-courses {
        grid-template-columns: 1fr;
    }

    .admin-dashboard .assignment-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-dashboard .assignment-card {
        padding: 17px;
    }

    .admin-dashboard .assignment-summary-card {
        padding: 16px;
    }

    .admin-dashboard .assignment-actions {
        justify-content: stretch;
    }

    .admin-dashboard .assignment-actions .btn-primary {
        width: 100%;
    }
}

/* ==========================================
   RECUPERACIÓN DE CONTRASEÑA CSPCP
========================================== */

.recuperar-password {
    text-align: center;
    margin: 18px 0;
    font-size: 14px;
}

.recuperar-password a {
    color: #0072CE;
    text-decoration: none;
    font-weight: 600;
}

.recuperar-password a:hover {
    text-decoration: underline;
}

.boton-recuperacion {
    display: inline-block;
    background: #0072CE;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 15px;
    transition: background 0.2s ease;
}

.boton-recuperacion:hover {
    background: #005BAC;
}

.errorlist {
    color: #dc2626;
    font-size: 13px;
    list-style: none;
    padding: 0;
    margin: 6px 0;
}


/* ==========================================
   CSPCP - PANTALLAS DE ACCESO Y RECUPERACIÓN
========================================== */

.pantalla-acceso {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;
    background:
        radial-gradient(circle at top left, rgba(0, 114, 206, 0.13), transparent 35%),
        linear-gradient(135deg, #eaf2f8 0%, #f8fafc 55%, #e2e8f0 100%);
    font-family: "Segoe UI", Arial, sans-serif;
}

.acceso-card {
    width: 100%;
    max-width: 460px;
    padding: 38px 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.acceso-logo {
    display: block;
    width: 85px;
    height: 65px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto 14px;
}
.acceso-card {
    overflow: hidden;
}

.acceso-logo {
    flex-shrink: 0;
}   
.acceso-marca {
    color: #0A2647;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0 0 7px;
}

.acceso-subtitulo {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 27px;
}

.acceso-titulo {
    color: #0A2647;
    font-size: 23px;
    font-weight: 750;
    margin: 0 0 10px;
}

.acceso-descripcion {
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 25px;
}

.acceso-form {
    text-align: left;
}

.acceso-form p {
    margin: 0 0 18px;
}

.acceso-form label {
    display: block;
    color: #334155;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 8px;
}

.acceso-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0A2647;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.acceso-form input:focus {
    border-color: #0072CE;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 114, 206, .12);
}

.acceso-boton {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 14px 18px;
    margin-top: 10px;
    background: linear-gradient(135deg, #0072CE, #005BAC);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, filter .2s;
}

.acceso-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(0, 114, 206, .22);
    filter: brightness(1.05);
}

.acceso-enlace {
    display: inline-block;
    color: #0072CE;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    margin-top: 22px;
}

.acceso-enlace:hover {
    color: #075985;
    text-decoration: underline;
}

.acceso-alerta {
    padding: 12px 14px;
    margin: 0 0 18px;
    border-radius: 9px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: 13px;
    text-align: left;
}

.acceso-errores {
    padding: 10px 12px;
    margin: 0 0 15px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    text-align: left;
    list-style: none;
}

.acceso-icono {
    width: 66px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0072CE;
    font-size: 30px;
    font-weight: 800;
}

.acceso-pie {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 11px;
}

.acceso-ayuda {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 18px;
}

.acceso-form .helptext {
    display: block;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
    margin-top: 6px;
}

.acceso-form ul {
    padding-left: 18px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 520px) {
    .pantalla-acceso {
        padding: 20px 13px;
    }

    .acceso-card {
        padding: 30px 22px;
        border-radius: 15px;
    }

    .acceso-titulo {
        font-size: 21px;
    }
}


/* ==========================================
   REPORTES - CSPCP
========================================== */

.admin-dashboard {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* BARRA LATERAL */

.admin-dashboard > .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    min-width: 250px;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 1000;
    background: #0A2647;
    color: #ffffff;
}

.admin-dashboard > .sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 15px;
}

.admin-dashboard > .sidebar .logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.admin-dashboard > .sidebar .sidebar-header h2 {
    color: #ffffff;
    font-size: 21px;
    margin: 0;
}

.admin-dashboard > .sidebar nav {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    gap: 6px;
}

.admin-dashboard > .sidebar nav a {
    display: block;
    padding: 13px 15px;
    color: #cbd5e1;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.2s ease;
}

.admin-dashboard > .sidebar nav a:hover,
.admin-dashboard > .sidebar nav a.active {
    background: #0072CE;
    color: #ffffff;
}

/* CONTENIDO PRINCIPAL */

.admin-dashboard > .contenido-reportes {
    display: block;
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 100vh;
    margin-left: 250px;
    padding: 35px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ENCABEZADO */

.encabezado-reportes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.encabezado-reportes h1 {
    margin: 0 0 8px;
    color: #0A2647;
    font-size: 28px;
}

.encabezado-reportes p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.boton-exportar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #0072CE;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
}

.boton-exportar:hover {
    background: #005BAC;
}

/* TARJETAS DE ESTADÍSTICAS */

.resumen-reportes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.tarjeta-reporte {
    background: #ffffff;
    padding: 22px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

.tarjeta-reporte span {
    display: block;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}

.tarjeta-reporte h2 {
    margin: 12px 0 6px;
    color: #0A2647;
    font-size: 30px;
    font-weight: 700;
}

.tarjeta-reporte small {
    color: #94a3b8;
    font-size: 12px;
}

/* SECCIONES Y TABLAS */

.seccion-reporte {
    background: #ffffff;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.titulo-seccion-reporte {
    margin-bottom: 20px;
}

.titulo-seccion-reporte h2 {
    margin: 0 0 6px;
    color: #0A2647;
    font-size: 19px;
}

.titulo-seccion-reporte p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.tabla-contenedor {
    width: 100%;
    overflow-x: auto;
}

.tabla-reportes {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    font-size: 13px;
}

.tabla-reportes thead {
    background: #f1f5f9;
}

.tabla-reportes th {
    padding: 14px 12px;
    color: #475569;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
}

.tabla-reportes td {
    padding: 14px 12px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.tabla-reportes tbody tr:hover {
    background: #f8fafc;
}

.tabla-reportes tbody tr:last-child td {
    border-bottom: none;
}

.nombre-reporte {
    font-weight: 600;
    color: #0A2647 !important;
}

.sin-datos {
    padding: 30px !important;
    text-align: center;
    color: #94a3b8 !important;
}

/* BARRAS DE AVANCE */

.avance-reporte {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 125px;
}

.barra-progreso {
    width: 85px;
    height: 8px;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 20px;
}

.barra-progreso span {
    display: block;
    height: 100%;
    background: #0072CE;
    border-radius: 20px;
}

.avance-reporte strong {
    color: #0A2647;
    font-size: 12px;
}

/* ADAPTACIÓN A PANTALLAS PEQUEÑAS */

@media (max-width: 900px) {
    .admin-dashboard > .contenido-reportes {
        padding: 25px 20px;
    }

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

@media (max-width: 600px) {
    .admin-dashboard > .sidebar {
        width: 190px;
        min-width: 190px;
    }

    .admin-dashboard > .contenido-reportes {
        margin-left: 190px;
        padding: 20px 12px;
    }

    .encabezado-reportes h1 {
        font-size: 22px;
    }

    .resumen-reportes {
        grid-template-columns: 1fr;
    }

    .seccion-reporte {
        padding: 15px;
    }
}

/* ==========================================
   SEGUIMIENTO DE MATRÍCULAS - CSPCP
========================================== */

/* CONTENEDOR PRINCIPAL */

.admin-dashboard > .contenido-seguimiento {
    display: block;
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 100vh;
    margin-left: 250px;
    padding: 35px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ENCABEZADO */

.encabezado-seguimiento {
    margin-bottom: 28px;
}

.encabezado-seguimiento h1 {
    margin: 0 0 8px;
    color: #0A2647;
    font-size: 28px;
}

.encabezado-seguimiento p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* ESTADÍSTICAS */

.estadisticas-seguimiento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 25px;
}

.tarjeta-seguimiento {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.tarjeta-seguimiento-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0072CE;
    font-size: 20px;
    font-weight: 700;
}

.tarjeta-seguimiento p {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.tarjeta-seguimiento h2 {
    margin: 0;
    color: #0A2647;
    font-size: 27px;
}

/* PANELES */

.panel-seguimiento {
    padding: 25px;
    margin-bottom: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}

.titulo-panel-seguimiento {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}

.titulo-panel-seguimiento h2 {
    margin: 0 0 6px;
    color: #0A2647;
    font-size: 19px;
}

.titulo-panel-seguimiento p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

.contador-matriculas {
    padding: 8px 12px;
    border-radius: 20px;
    background: #e0f2fe;
    color: #005BAC;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* FORMULARIO DE FILTROS */

.formulario-filtros-seguimiento {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(150px, 1fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 15px;
}

.campo-filtro-seguimiento {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.campo-filtro-seguimiento label {
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}

.campo-filtro-seguimiento input,
.campo-filtro-seguimiento select {
    width: 100%;
    height: 43px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
}

.campo-filtro-seguimiento input:focus,
.campo-filtro-seguimiento select:focus {
    border-color: #0072CE;
    box-shadow: 0 0 0 3px rgba(0, 114, 206, 0.10);
}

.acciones-filtros-seguimiento {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-buscar-seguimiento,
.btn-limpiar-seguimiento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    padding: 0 17px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.btn-buscar-seguimiento {
    background: #0072CE;
    color: #ffffff;
}

.btn-buscar-seguimiento:hover {
    background: #005BAC;
}

.btn-limpiar-seguimiento {
    background: #e2e8f0;
    color: #334155;
}

.btn-limpiar-seguimiento:hover {
    background: #cbd5e1;
}

/* TABLA */

.tabla-seguimiento-contenedor {
    width: 100%;
    overflow-x: auto;
}

.tabla-seguimiento {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    font-size: 13px;
}

.tabla-seguimiento thead {
    background: #f1f5f9;
}

.tabla-seguimiento th {
    padding: 15px 12px;
    color: #475569;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    border-bottom: 1px solid #e2e8f0;
}

.tabla-seguimiento td {
    padding: 15px 12px;
    color: #475569;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
}

.tabla-seguimiento tbody tr:hover {
    background: #f8fafc;
}

.tabla-seguimiento tbody tr:last-child td {
    border-bottom: none;
}

.dni-seguimiento {
    font-weight: 700;
    color: #0A2647 !important;
}

.trabajador-seguimiento {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
}

.trabajador-seguimiento strong {
    color: #0A2647;
    font-size: 13px;
}

.trabajador-seguimiento small {
    color: #94a3b8;
    font-size: 11px;
}

.curso-seguimiento {
    min-width: 170px;
    font-weight: 600;
    color: #0A2647 !important;
}

.sin-area {
    color: #94a3b8;
    font-style: italic;
}

/* PROGRESO */

.progreso-seguimiento {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 125px;
}

.progreso-seguimiento-fondo {
    width: 85px;
    height: 8px;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 20px;
}

.progreso-seguimiento-valor {
    height: 100%;
    background: #0072CE;
    border-radius: 20px;
}

.progreso-seguimiento strong {
    color: #0A2647;
    font-size: 12px;
}

/* ESTADOS */

.estado-seguimiento {
    display: inline-block;
    padding: 7px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.estado-completado {
    background: #dcfce7;
    color: #15803d;
}

.estado-progreso {
    background: #dbeafe;
    color: #005BAC;
}

.estado-pendiente {
    background: #fef3c7;
    color: #b45309;
}

/* SIN RESULTADOS */

.seguimiento-sin-resultados {
    padding: 35px !important;
    text-align: center;
    color: #94a3b8 !important;
}

/* RESPONSIVE */

@media (max-width: 1200px) {
    .estadisticas-seguimiento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 900px) {
    .admin-dashboard > .contenido-seguimiento {
        padding: 25px 20px;
    }
}

@media (max-width: 600px) {
    .admin-dashboard > .contenido-seguimiento {
        padding: 20px 12px;
    }

    .admin-dashboard > .sidebar {
        width: 190px;
        min-width: 190px;
    }

    .admin-dashboard > .contenido-seguimiento {
        margin-left: 190px;
    }

    .estadisticas-seguimiento {
        grid-template-columns: 1fr;
    }

    .formulario-filtros-seguimiento {
        grid-template-columns: 1fr;
    }

    .acciones-filtros-seguimiento {
        flex-wrap: wrap;
    }

    .titulo-panel-seguimiento {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================
   BARRA LATERAL ADMINISTRADOR - CSPCP
========================================== */

.admin-dashboard > .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 250px;
    min-width: 250px;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    background: #0A2647;
    color: #ffffff;
    z-index: 1000;
}

.admin-dashboard > .sidebar .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 25px 15px;
}

.admin-dashboard > .sidebar .sidebar-header .logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.admin-dashboard > .sidebar .sidebar-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
}

.admin-dashboard > .sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
}

.admin-dashboard > .sidebar nav a {
    display: block;
    padding: 13px 15px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.admin-dashboard > .sidebar nav a:hover,
.admin-dashboard > .sidebar nav a.active {
    background: #0072CE;
    color: #ffffff;
}

.admin-dashboard > .sidebar .sidebar-footer {
    margin-top: auto;
    padding: 18px 12px;
}

.admin-dashboard > .sidebar .sidebar-footer form {
    width: 100%;
}

.admin-dashboard > .sidebar .sidebar-logout {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #12325E;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.admin-dashboard > .sidebar .sidebar-logout:hover {
    background: #334155;
}

/* ==========================================
   CONTENIDO GESTIÓN DE USUARIOS - CSPCP
========================================== */

.admin-dashboard > .contenido-usuarios {
    display: block;
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 100vh;
    margin-left: 250px;
    padding: 35px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contenido-usuarios .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.contenido-usuarios .topbar h1 {
    margin: 0 0 8px;
    color: #0A2647;
    font-size: 28px;
}

.contenido-usuarios .topbar p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.contenido-usuarios .admin-profile {
    display: flex;
    flex-direction: column;
    text-align: right;
    gap: 4px;
}

.contenido-usuarios .admin-profile span {
    color: #0A2647;
    font-weight: 700;
}

.contenido-usuarios .admin-profile small {
    color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .admin-dashboard > .contenido-usuarios {
        padding: 25px 20px;
    }
}

@media (max-width: 600px) {
    .admin-dashboard > .contenido-usuarios {
        padding: 20px 12px;
    }

    .contenido-usuarios .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .contenido-usuarios .admin-profile {
        text-align: left;
    }
}

/* ==========================================
   PANEL PRINCIPAL ADMINISTRADOR - CSPCP
========================================== */

.admin-dashboard > .contenido-inicio-admin {
    display: block;
    flex: 1;
    width: auto;
    min-width: 0;
    min-height: 100vh;
    margin-left: 250px;
    padding: 35px 40px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.contenido-inicio-admin .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.contenido-inicio-admin .topbar h1 {
    margin: 0 0 8px;
    color: #0A2647;
    font-size: 28px;
}

.contenido-inicio-admin .topbar p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.contenido-inicio-admin .admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contenido-inicio-admin .admin-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0072CE;
    color: #ffffff;
    font-weight: 700;
}

.contenido-inicio-admin .admin-profile strong,
.contenido-inicio-admin .admin-profile small {
    display: block;
}

.contenido-inicio-admin .admin-profile strong {
    color: #0A2647;
}

.contenido-inicio-admin .admin-profile small {
    margin-top: 4px;
    color: #64748b;
}

@media (max-width: 900px) {
    .admin-dashboard > .contenido-inicio-admin {
        padding: 25px 20px;
    }
}

@media (max-width: 600px) {
    .admin-dashboard > .contenido-inicio-admin {
        padding: 20px 12px;
    }

    .contenido-inicio-admin .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ==========================================
   IMPORTACIÓN DE TRABAJADORES - CSPCP
========================================== */

.admin-dashboard > .contenido-importacion {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
    padding: 35px 40px;
    box-sizing: border-box;
}

.contenido-importacion .content-header {
    margin-bottom: 25px;
}

.contenido-importacion .content-header h1 {
    color: #0A2647;
    font-size: 27px;
    margin-bottom: 8px;
}

.contenido-importacion .content-header p {
    color: #64748b;
    font-size: 14px;
}

.contenido-importacion .import-container,
.contenido-importacion .import-info,
.contenido-importacion .import-errors {
    width: 100%;
    box-sizing: border-box;
}

.contenido-importacion .import-submit {
    margin-top: 5px;
}

@media (max-width: 900px) {
    .admin-dashboard > .contenido-importacion {
        padding: 25px;
    }
}

@media (max-width: 600px) {
    .admin-dashboard > .contenido-importacion {
        margin-left: 190px;
        width: calc(100% - 190px);
        padding: 18px;
    }
}

/* ==========================================
   ASIGNACIÓN DE CURSOS - CSPCP
========================================== */

.admin-dashboard > .contenido-asignacion {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-width: 0;
    min-height: 100vh;
    padding: 35px 40px;
    box-sizing: border-box;
}

.contenido-asignacion .assignment-wrapper {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}

.contenido-asignacion .content-header {
    max-width: 1150px;
    margin: 0 auto 28px;
}

.contenido-asignacion .messages-container {
    max-width: 1150px;
}

.contenido-asignacion .assignment-card,
.contenido-asignacion .assignment-summary-card {
    min-width: 0;
}

.contenido-asignacion .assignment-course-current form {
    flex-shrink: 0;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .admin-dashboard > .contenido-asignacion {
        padding: 28px 24px;
    }
}

@media (max-width: 800px) {
    .contenido-asignacion .assignment-grid,
    .contenido-asignacion .assignment-workers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-dashboard > .contenido-asignacion {
        margin-left: 190px;
        width: calc(100% - 190px);
        padding: 18px 12px;
    }

    .contenido-asignacion .assignment-card {
        padding: 16px;
    }
}
/* ==========================================
   IDENTIDAD COSCO SHIPPING
   Azul corporativo #0057B8, azul marino #0A2647, celeste #00A0E9 y rojo de acento #E60012
   ========================================== */
.sidebar, .sb { border-top: 4px solid transparent; border-image: linear-gradient(90deg, #00A0E9 0%, #0057B8 60%, #E60012 100%) 1; }
.sb .sb-menu a.activo::before { background: linear-gradient(180deg, #00A0E9, #0057B8) !important; }

/* Logo COSCO SHIPPING del panel de administración y de jefatura (blanco sobre el fondo oscuro) */
.admin-dashboard .admin-sidebar .sidebar-header img.logo-cosco,
.admin-dashboard > .sidebar img.logo-cosco { width: 84px !important; max-width: 84px !important; height: auto !important; border-radius: 0; margin: 0 auto 8px; background: none; padding: 0; }
.admin-dashboard > .sidebar .sidebar-header { flex-direction: column; text-align: center; }
.admin-dashboard .sidebar-header h2 { font-size: 14px; line-height: 1.3; letter-spacing: .03em; font-weight: 700; margin: 0; }
.sb .sb-marca { flex-direction: column; align-items: flex-start; gap: 10px; }
.sb .sb-marca img.logo-cosco { width: 110px !important; max-width: 110px !important; height: auto !important; background: none; padding: 0; border-radius: 0; }
.sb .sb-marca strong { font-size: 13px; line-height: 1.25; letter-spacing: .02em; }

/* Menú del usuario común: el mismo logo de COSCO (blanco, de 120 px) que usan los menús del administrador y de las jefaturas,
   con el título debajo. Antes se usaba una imagen grande y difuminada encogida a 42 px, que se veía como una mancha. */
.sidebar .sidebar-logo.sidebar-logo-cosco { height: auto; flex-direction: column; justify-content: center; align-items: center; gap: 10px; margin-bottom: 8px; padding: 22px 14px 18px; border-bottom: 1px solid rgba(148, 163, 184, .16); text-align: center; }
.sidebar .sidebar-logo.sidebar-logo-cosco img.logo-cosco { width: 120px; max-width: 100%; height: auto; object-fit: contain; }
.sidebar .sidebar-logo.sidebar-logo-cosco strong { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.25; }
