body {
    background-color: #f4f6f9;
}
.card-header {
    font-weight: 600;
}
.estado-select.estado-A { background-color: #d1e7dd; }
.estado-select.estado-F { background-color: #f8d7da; }
.estado-select.estado-T { background-color: #fff3cd; }
.estado-select.estado-J { background-color: #cff4fc; }
table th, table td {
    vertical-align: middle;
}

/* Tarjetas de cursos */
.curso-card {
    overflow: hidden;
    border: 1px solid #dee2e6;
}
.curso-banner {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}
.curso-banner-placeholder {
    background: linear-gradient(135deg, #0b2a6b 0%, #1447e6 50%, #00c6ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.curso-banner-placeholder span {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.85;
}
.curso-icono {
    font-size: 0.95rem;
    color: #495057;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: .75rem;
}
.menu-grid .btn { text-align: left; padding: .8rem 1rem; }

/* Identidad visual / acceso */
.login-body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #eef5ff 0%, #f7f9fc 52%, #e5f6fb 100%);
}
.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
}
.login-visual {
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(145deg, #062e69, #0b4ca1);
}
.login-illustration {
    width: min(100%, 760px);
    max-height: 78vh;
    filter: drop-shadow(0 24px 40px rgba(0,0,0,.22));
}
.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.login-card {
    width: min(100%, 470px);
    background: #fff;
    padding: 2.4rem;
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(20,47,85,.14);
}
.login-logo { width: 215px; height: auto; }
.login-note { color: #6c757d; font-size: .88rem; text-align: center; }
.app-topbar, .course-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    box-shadow: 0 8px 25px rgba(22,45,75,.06);
}
.topbar-logo { width: 145px; height: auto; }
.course-code { color: #0b5ed7; font-size: .86rem; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 991.98px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-panel { min-height: 100vh; }
}
@media (max-width: 767.98px) {
    .app-topbar, .course-titlebar { align-items: flex-start; flex-direction: column; }
    .login-card { padding: 1.5rem; }
}
