﻿html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.login-main {
    min-height: 100vh;
    background: radial-gradient(circle at center, #1e3a8a, #0f172a);
    position: relative;
}

.login-card-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-card {
    border-radius: 14px;
}

.form-control {
    height: 46px;
    border-radius: 8px;
}

.btn-success {
    background: #10B981;
    border: none;
}

    .btn-success:hover {
        background: #059669;
    }

.login-main {
    min-height: 100vh;
    background: radial-gradient(circle at center, #0f172a, #1e3a8a);
}

.login-card {
    border-radius: 16px;
}

    .login-card img {
        filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.15));
    }

.btn-skillcore {
    background: #10B981;
    color: white;
    border: none;
}

    .btn-skillcore:hover {
        background: #059669;
        color: white;
    }

.login-card {
    animation: fadeLogin .5s ease;
}

@keyframes fadeLogin {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-divider {
    width: 60px;
    height: 3px;
    background: #10B981;
    margin: 12px auto 0;
    border-radius: 2px;
}
/* BODY */

.skillcore-body {
    background: #f4f7fb;
}

/* NAVBAR */

.skillcore-navbar {
    background: white;
    border-bottom: 1px solid #e6e6e6;
}

/* HERO */

.skillcore-hero {
    padding: 80px 0;
}

.skillcore-title {
    font-size: 42px;
    font-weight: 700;
}

.skillcore-subtitle {
    font-size: 18px;
    color: #6b7280;
}

/* FEATURES */

.skillcore-features {
    padding: 60px 0;
}

.skillcore-icon {
    font-size: 40px;
    color: #10B981;
    margin-bottom: 15px;
}

/* BUTTON */

.btn-skillcore {
    background: #10B981;
    border: none;
    color: white;
}

    .btn-skillcore:hover {
        background: #059669;
    }

/* FOOTER */

.skillcore-footer {
    margin-top: 60px;
    padding: 20px 0;
    border-top: 1px solid #e6e6e6;
    background: white;
}

.skillcore-body {
    background: #f4f7fb;
}

.skillcore-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 14px 0;
    font-size: 14px;
}

.skillcore-logo {
    height: 100px;
    width: auto;
    transition: transform .2s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.skillcore-logo:hover {
    transform: scale(1.05);
}

.skillcore-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px 0;
    font-size: 14px;
}

.btn-skillcore {
    background: #10B981;
    border: none;
    color: white;
}

    .btn-skillcore:hover {
        background: #059669;
        color: white;
    }
/* ── Sidebar ─────────────────────────────────── */
#sidebar {
    width: 240px;
    min-height: 100%;
    background-color: #1e2a38;
    transition: width 0.25s ease;
    flex-shrink: 0;
}

    #sidebar.collapsed {
        width: 56px;
    }

    #sidebar .sidebar-brand {
        height: 60px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

        #sidebar .sidebar-brand img {
            height: 32px;
            object-fit: contain;
        }

    #sidebar .nav-label {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.35);
        padding: 16px 16px 4px;
        white-space: nowrap;
        overflow: hidden;
    }

    #sidebar .nav-link {
        color: rgba(255,255,255,0.75);
        padding: 8px 16px;
        border-radius: 6px;
        margin: 1px 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
    }

        #sidebar .nav-link:hover,
        #sidebar .nav-link.active {
            background-color: rgba(255,255,255,0.1);
            color: #fff;
        }

        #sidebar .nav-link i {
            font-size: 1rem;
            flex-shrink: 0;
            width: 20px;
            text-align: center;
        }

        #sidebar .nav-link .link-text {
            transition: opacity 0.2s;
        }

    #sidebar.collapsed .nav-link .link-text,
    #sidebar.collapsed .nav-label {
        opacity: 0;
        pointer-events: none;
    }

    #sidebar .submenu {
        padding-left: 12px;
    }

        #sidebar .submenu .nav-link {
            font-size: 0.82rem;
            padding: 6px 16px;
            color: rgba(255,255,255,0.6);
        }

    #sidebar.collapsed .submenu {
        display: none !important;
    }

/* ── Toggle button ───────────────────────────── */
#sidebarToggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}

    #sidebarToggle:hover {
        color: #fff;
    }

/* ── Top navbar ──────────────────────────────── */
.skillcore-topbar {
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ── Main content ────────────────────────────── */
#mainContent {
    flex: 1;
    overflow-y: auto;
    background-color: #f4f6f9;
    min-height: calc(100vh - 60px);
}
/* ════════════════════════════════════════════
   TOP NAVBAR
════════════════════════════════════════════ */
.skillcore-topbar {
    height: 60px;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 200;
    flex-shrink: 0;
}

.topbar-brand img {
    height: 48px;
    object-fit: contain;
}

.topbar-title {
    font-weight: 600;
    color: #1e2a38;
    font-size: .95rem;
}

#sidebarToggle {
    background: none;
    border: none;
    color: #1e2a38;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    flex-shrink: 0;
}

    #sidebarToggle:hover {
        color: #000;
    }


/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
#sidebar {
    width: 220px;
    background-color: #1e2a38;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.25s ease;
    flex-shrink: 0;
}

    #sidebar.collapsed {
        width: 50px;
    }

    /* Label de sección */
    #sidebar .nav-label {
        font-size: 0.68rem;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: rgba(255,255,255,.35);
        padding: 12px 14px 4px;
        white-space: nowrap;
        overflow: hidden;
    }

    /* Links */
    #sidebar .nav-link {
        color: rgba(255,255,255,.75);
        padding: 8px 14px;
        border-radius: 6px;
        margin: 1px 6px;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: .875rem;
        white-space: nowrap;
        overflow: hidden;
        cursor: pointer;
    }

        #sidebar .nav-link:hover {
            background-color: rgba(255,255,255,.1);
            color: #fff;
        }

        #sidebar .nav-link.active {
            background-color: rgba(255,255,255,.15);
            color: #fff;
        }

        #sidebar .nav-link i {
            font-size: 1rem;
            flex-shrink: 0;
            width: 20px;
            text-align: center;
        }

.sidebar-chevron {
    font-size: .7rem;
    margin-left: auto;
}

/* Submenu */
#sidebar .submenu {
    padding-left: 10px;
}

    #sidebar .submenu .nav-link {
        font-size: .82rem;
        color: rgba(255,255,255,.6);
        padding: 6px 14px;
    }

/* Collapsed — ocultar textos */
#sidebar.collapsed .link-text,
#sidebar.collapsed .nav-label,
#sidebar.collapsed .submenu {
    display: none !important;
}

#sidebar.collapsed .nav-link {
    justify-content: center;
    margin: 1px 4px;
    padding: 10px 0;
}


/* ════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════ */
#mainContent {
    background-color: #f4f6f9;
}


/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.skillcore-footer {
    border-top: 1px solid #e5e7eb;
    background: #fff;
    font-size: .85rem;
    color: #6b7280;
}
/* Footer siempre al fondo del contenido */
#mainContent {
    display: flex;
    flex-direction: column;
}

    #mainContent main {
        flex: 1;
    }

/* ════════════════════════════════════════════
   BREADCRUMB
════════════════════════════════════════════ */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
}

.breadcrumb-item a {
    color: #4a90a4;
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: #1e2a38;
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: #6b7280;
    font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1;
}
.dashboard-kpi {
    border-radius: 10px;
    transition: 0.2s;
}

    .dashboard-kpi:hover {
        transform: translateY(-3px);
    }
.chart-container {
    height: 260px;
    min-height: 260px;
    max-height: 260px;
}
.dash-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.dash-kpi {
    flex: 1 1 140px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    transition: box-shadow .15s;
}

    .dash-kpi:hover {
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
    }

    .dash-kpi::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--kc, #6366f1);
    }

    .dash-kpi .lbl {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #6b7280;
        margin-bottom: 8px;
    }

    .dash-kpi .val {
        font-size: 28px;
        font-weight: 700;
        color: #111827;
        line-height: 1;
    }

    .dash-kpi .sub {
        font-size: 11px;
        color: #9ca3af;
        margin-top: 6px;
    }

    .dash-kpi .badge-pill {
        display: inline-block;
        font-size: 10px;
        font-weight: 600;
        padding: 2px 8px;
        border-radius: 20px;
        margin-top: 6px;
    }

.kpi-activos {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

    .kpi-activos .val {
        color: #15803d;
    }

.kpi-billing {
    background: #fffbeb;
    border-color: #fde68a;
}

    .kpi-billing .val {
        color: #b45309;
    }

.billing-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 18px 24px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

    .billing-bar .bb-title {
        font-size: 13px;
        font-weight: 700;
        color: #b45309;
        margin-bottom: 2px;
    }

    .billing-bar .bb-desc {
        font-size: 12px;
        color: #6b7280;
    }

    .billing-bar .bb-stat {
        text-align: center;
    }

    .billing-bar .bb-val {
        font-size: 24px;
        font-weight: 700;
        color: #b45309;
    }

    .billing-bar .bb-lbl {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #9ca3af;
        margin-top: 2px;
    }

    .billing-bar .bb-hint {
        font-size: 10px;
        color: #f59e0b;
        margin-top: 1px;
    }

.billing-divider {
    width: 1px;
    height: 44px;
    background: #e5e7eb;
}

.billing-bar .btn-config {
    margin-left: auto;
    font-size: 12px;
    padding: 6px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
}

    .billing-bar .btn-config:hover {
        background: #f9fafb;
    }

.charts-row {
    display: flex;
    gap: 14px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.chart-card {
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

    .chart-card .cc-title {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 2px;
    }

    .chart-card .cc-sub {
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 14px;
    }

    .chart-card .chart-wrap {
        height: 200px;
        position: relative;
    }

.bottom-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.enroll-card {
    flex: 1 1 400px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

    .enroll-card .ec-title {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.enroll-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .enroll-table th {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #9ca3af;
        padding: 0 8px 10px;
        text-align: left;
        border-bottom: 1px solid #f3f4f6;
    }

    .enroll-table td {
        padding: 9px 8px;
        color: #6b7280;
        border-bottom: 1px solid #f9fafb;
        vertical-align: middle;
    }

    .enroll-table tr:last-child td {
        border-bottom: none;
    }

    .enroll-table .nm {
        color: #111827;
        font-weight: 600;
    }

    .enroll-table .rut {
        font-size: 10px;
        color: #9ca3af;
    }

.st {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

    .st::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
    }

.st-a {
    background: #dcfce7;
    color: #15803d;
}

.st-p {
    background: #fef9c3;
    color: #a16207;
}

.st-c {
    background: #dbeafe;
    color: #1d4ed8;
}

.st-i {
    background: #fee2e2;
    color: #b91c1c;
}

.quick-card {
    width: 260px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

    .quick-card .qc-title {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 12px;
    }

.ql {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    margin-bottom: 8px;
    transition: border-color .15s, background .15s;
}

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

    .ql:hover {
        border-color: #d1d5db;
        background: #f9fafb;
    }

.qi {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.qn {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.qd {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 1px;
}

.moodle-sync {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f0ff;
    border: 1px solid #e9d5ff;
    color: #7c3aed;
}

.moodle-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
    animation: blink 2s infinite;
}

@@keyframes blink {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

@@media (max-width: 768px) {
    .billing-bar {
        gap: 16px;
    }

        .billing-bar .btn-config {
            margin-left: 0;
        }

    .quick-card {
        width: 100%;
    }
}
.dash-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.dash-kpi {
    flex: 1 1 140px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

    .dash-kpi::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--kc, #6366f1);
    }

    .dash-kpi .lbl {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #6b7280;
        margin-bottom: 8px;
    }

    .dash-kpi .val {
        font-size: 28px;
        font-weight: 700;
        color: #111827;
        line-height: 1;
    }

    .dash-kpi .sub {
        font-size: 11px;
        color: #9ca3af;
        margin-top: 6px;
    }

.charts-row {
    display: flex;
    gap: 14px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.chart-card {
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

    .chart-card .cc-title {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 2px;
    }

    .chart-card .cc-sub {
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 14px;
    }

    .chart-card .chart-wrap {
        height: 200px;
        position: relative;
    }

.tenant-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 1.5rem;
}

    .tenant-card .tc-title {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 14px;
    }

.ttbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .ttbl th {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #9ca3af;
        padding: 0 10px 10px;
        text-align: left;
        border-bottom: 1px solid #f3f4f6;
    }

    .ttbl td {
        padding: 10px;
        color: #6b7280;
        border-bottom: 1px solid #f9fafb;
        vertical-align: middle;
    }

    .ttbl tr:last-child td {
        border-bottom: none;
    }

    .ttbl .nm {
        color: #111827;
        font-weight: 600;
    }

    .ttbl .rut-col {
        font-family: monospace;
        font-size: 11px;
    }

.bar-wrap {
    background: #f3f4f6;
    border-radius: 4px;
    height: 6px;
    width: 100%;
    min-width: 80px;
}

.bar-fill {
    height: 6px;
    border-radius: 4px;
    background: #6366f1;
}

.pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 20px;
}

.pill-up {
    background: #dcfce7;
    color: #15803d;
}

.pill-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

@@media (max-width: 768px) {
    .charts-row {
        flex-direction: column;
    }
}
.dash-kpi-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.dash-kpi {
    flex: 1 1 140px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
}

    .dash-kpi::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--kc, #6366f1);
    }

    .dash-kpi .lbl {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #6b7280;
        margin-bottom: 8px;
    }

    .dash-kpi .val {
        font-size: 28px;
        font-weight: 700;
        color: #111827;
        line-height: 1;
    }

    .dash-kpi .sub {
        font-size: 11px;
        color: #9ca3af;
        margin-top: 6px;
    }

.charts-row {
    display: flex;
    gap: 14px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.chart-card {
    flex: 1 1 220px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

    .chart-card .cc-title {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 2px;
    }

    .chart-card .cc-sub {
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 14px;
    }

    .chart-card .chart-wrap {
        height: 200px;
        position: relative;
    }

.workers-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px;
}

    .workers-card .wc-title {
        font-size: 13px;
        font-weight: 600;
        color: #374151;
        margin-bottom: 14px;
    }

.wtbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

    .wtbl th {
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #9ca3af;
        padding: 0 10px 10px;
        text-align: left;
        border-bottom: 1px solid #f3f4f6;
    }

    .wtbl td {
        padding: 10px;
        color: #6b7280;
        border-bottom: 1px solid #f9fafb;
        vertical-align: middle;
    }

    .wtbl tr:last-child td {
        border-bottom: none;
    }

    .wtbl .nm {
        color: #111827;
        font-weight: 600;
    }

    .wtbl .rut {
        font-size: 10px;
        color: #9ca3af;
        font-family: monospace;
    }

.st {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

    .st::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: currentColor;
    }

.st-a {
    background: #dcfce7;
    color: #15803d;
}

.st-i {
    background: #fee2e2;
    color: #b91c1c;
}

.prog-wrap {
    background: #f3f4f6;
    border-radius: 4px;
    height: 6px;
    width: 100%;
    min-width: 60px;
}

.prog-fill {
    height: 6px;
    border-radius: 4px;
    background: #3b82f6;
}

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

/* ═══════════════════════════════════════════════════════════
   FACTURACIÓN - ALERTAS Y BADGES
   ═══════════════════════════════════════════════════════════ */

.billing-alert {
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.billing-alert .alert {
    margin-bottom: 0;
    border-radius: 0;
    border-left: 5px solid;
}

.billing-alert.alert-danger .alert {
    border-left-color: #dc3545;
}

.billing-alert.alert-warning .alert {
    border-left-color: #ffc107;
}

.billing-days-remaining {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

    .billing-days-remaining.urgent {
        background: #dc3545;
        color: white;
        animation: pulse 2s infinite;
    }

    .billing-days-remaining.warning {
        background: #ffc107;
        color: #000;
    }

    .billing-days-remaining.info {
        background: #17a2b8;
        color: white;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Tablas de facturación */
.table-billing tbody tr.table-danger {
    background-color: rgba(220, 53, 69, 0.1);
}

.table-billing tbody tr.table-warning {
    background-color: rgba(255, 193, 7, 0.1);
}

.table-billing tbody tr.table-success {
    background-color: rgba(25, 135, 84, 0.1);
}

/* Tarjetas de resumen */
.billing-summary-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

    .billing-summary-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

/* Iconos animados */
.billing-icon-pulse {
    animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Página de bloqueo */
.blocked-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blocked-card {
    max-width: 600px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transbank logo */
.transbank-logo {
    max-width: 200px;
    margin: 2rem auto;
    display: block;
}

/* Badges de estado de pago */
.payment-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .payment-status-badge.pending {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffc107;
    }

    .payment-status-badge.paid {
        background: #d4edda;
        color: #155724;
        border: 1px solid #28a745;
    }

    .payment-status-badge.overdue {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #dc3545;
    }
/* ═══════════════════════════════════════════════════════════
   DASHBOARD - KPI CARDS
   ═══════════════════════════════════════════════════════════ */

.dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-kpi {
    background: white;
    border-left: 4px solid var(--kc, #6366f1);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .dash-kpi:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .dash-kpi .lbl {
        font-size: 0.75rem;
        text-transform: uppercase;
        color: #6b7280;
        font-weight: 600;
        letter-spacing: 0.025em;
        margin-bottom: 0.5rem;
    }

    .dash-kpi .val {
        font-size: 2rem;
        font-weight: 700;
        color: var(--kc, #6366f1);
        line-height: 1;
        margin-bottom: 0.5rem;
    }

    .dash-kpi .sub {
        font-size: 0.875rem;
        color: #6b7280;
    }

    .dash-kpi.kpi-billing {
        background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    }

/* Responsive */
@media (max-width: 768px) {
    .dash-kpi-row {
        grid-template-columns: 1fr;
    }

    .dash-kpi .val {
        font-size: 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   INSTRUCTORES Y EJECUCIONES - ESTILOS ADICIONALES
   ═══════════════════════════════════════════════════════════ */

/* Badges de sincronización Moodle */
.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

    .sync-badge.synced {
        background: #dcfce7;
        color: #15803d;
        border: 1px solid #bbf7d0;
    }

    .sync-badge.pending {
        background: #fef9c3;
        color: #a16207;
        border: 1px solid #fde68a;
    }

/* Progress bars personalizadas */
.progress-custom {
    height: 24px;
    border-radius: 8px;
    background: #e5e7eb;
}

    .progress-custom .progress-bar {
        font-size: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Tabla de asistencia - estados */
.table-success {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

.table-danger {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

.table-warning {
    background-color: rgba(245, 158, 11, 0.1) !important;
}

.table-info {
    background-color: rgba(59, 130, 246, 0.1) !important;
}

/* Cards de estadísticas */
.stat-card {
    border-left: 4px solid var(--stat-color, #6366f1);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .stat-card .stat-value {
        font-size: 2rem;
        font-weight: 700;
        line-height: 1;
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6b7280;
    }

/* Badges de estado de evaluación */
.assessment-type-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

/* Input de calificaciones */
.score-input {
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

    .score-input:focus {
        border-color: #10B981;
        box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.25);
    }

/* Tabs personalizados */
.nav-tabs .nav-link {
    color: #6b7280;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1.5rem;
}

    .nav-tabs .nav-link:hover {
        border-color: #e5e7eb;
        color: #111827;
    }

    .nav-tabs .nav-link.active {
        color: #10B981;
        border-bottom-color: #10B981;
        background: transparent;
    }

/* Modal de módulos */
.module-modal .form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
}

/* Animación de carga */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
    animation: spin 0.75s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .progress-custom {
        height: 20px;
    }

    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Certificados */
.certificate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

    .certificate-badge.generated {
        background: #dcfce7;
        color: #15803d;
    }

    .certificate-badge.pending {
        background: #fef9c3;
        color: #a16207;
    }

/* Resumen de progreso */
.progress-summary-card {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    background: white;
    transition: box-shadow 0.2s;
}

    .progress-summary-card:hover {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }