body.ava-cursus-theme {
    background: #f4f6fb;
    color: #1f2937;
    font-family: Roboto,Segoe UI,Arial,sans-serif
}

.ava-cursus-theme .navbar {
    backdrop-filter: blur(10px);
    background: linear-gradient(135deg,#ffffff 0%,#f8fafc 100%) !important;
    border: none !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.08)
}

.ava-cursus-theme .navbar-toggler {
    border-color: rgba(177,31,31,.55);
}

.ava-cursus-theme .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(177,31,31,.18);
}

/* Asegura que el ícono "hamburguesa" sea visible en fondos claros (mobile). */
.ava-cursus-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(177,31,31,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.ava-cursus-theme .navbar-brand, .ava-cursus-theme .nav-link, .ava-cursus-theme .btn-link.nav-link {
    color: #1f2937 !important
}

    .ava-cursus-theme .nav-link:hover, .ava-cursus-theme .nav-link.active {
        color: #b11f1f !important;
        text-decoration: none
    }

.ava-cursus-theme .ava-main-shell {
    max-width: 1280px
}

.ava-cursus-theme .ava-page-panel {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(15,23,42,.06);
    padding: 1.5rem
}

.ava-cursus-theme .card {
    border: 1px solid #e9edf5;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15,23,42,.06)
}

.ava-cursus-theme .card-header, .ava-cursus-theme .card-footer {
    background: #fff;
    border-color: #eef2f7
}

.ava-cursus-theme .btn-primary, .ava-cursus-theme .btn-success, .ava-cursus-theme .btn-warning {
    background: #b11f1f;
    border-color: #b11f1f;
    color: #fff
}

    .ava-cursus-theme .btn-primary:hover, .ava-cursus-theme .btn-success:hover, .ava-cursus-theme .btn-warning:hover {
        background: #941919;
        border-color: #941919;
        color: #fff
    }

.ava-cursus-theme .btn-outline-primary {
    color: #b11f1f;
    border-color: #b11f1f
}

    .ava-cursus-theme .btn-outline-primary:hover {
        background: #b11f1f;
        border-color: #b11f1f;
        color: #fff
    }

.ava-cursus-theme .btn-outline-secondary {
    border-color: #cbd5e1;
    color: #334155
}

.ava-cursus-theme .btn-outline-dark {
    border-color: #334155;
    color: #334155
}

.ava-cursus-theme .btn-outline-danger {
    border-color: #dc2626;
    color: #dc2626
}

.ava-cursus-theme .table {
    background: #fff;
    border-radius: 18px;
    overflow: hidden
}

    .ava-cursus-theme .table thead th {
        background: #f8fafc;
        color: #334155;
        border-bottom: 1px solid #e5e7eb;
        font-weight: 700
    }

    .ava-cursus-theme .table td, .ava-cursus-theme .table th {
        padding: .9rem 1rem;
        vertical-align: middle
    }

.ava-cursus-theme .form-control, .ava-cursus-theme .form-select {
    border-radius: 14px;
    border: 1px solid #d7deea;
    padding: .8rem .95rem;
    box-shadow: none
}

    .ava-cursus-theme .form-control:focus, .ava-cursus-theme .form-select:focus {
        border-color: #b11f1f;
        box-shadow: 0 0 0 .2rem rgba(177,31,31,.12)
    }

.ava-cursus-theme .alert {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15,23,42,.06)
}

.ava-cursus-theme .list-group-item {
    border: 1px solid #e9edf5;
    border-radius: 18px !important;
    margin-bottom: .75rem;
    box-shadow: 0 8px 24px rgba(15,23,42,.05)
}

.ava-cursus-theme .footer {
    background: #fff !important;
    border-top: 1px solid #e9edf5 !important
}

.ava-cursus-theme h1, .ava-cursus-theme h2, .ava-cursus-theme h3, .ava-cursus-theme h4, .ava-cursus-theme h5 {
    color: #0f172a;
    font-weight: 700
}

.ava-cursus-theme .text-muted {
    color: #64748b !important
}

.ava-cursus-theme .display-6 {
    letter-spacing: -.02em
}

.ava-cursus-theme .badge.bg-success {
    background: #dcfce7 !important;
    color: #166534
}

.ava-cursus-theme .badge.bg-secondary {
    background: #e2e8f0 !important;
    color: #334155
}

.ava-cursus-theme .dashboard-card-ava {
    background: linear-gradient(135deg,#ffffff 0%,#f8fafc 100%);
    border: 1px solid #e9edf5;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15,23,42,.07)
}

    .ava-cursus-theme .dashboard-card-ava .display-6 {
        color: #b11f1f
    }

.ava-cursus-theme .ava-hero-panel {
    background: linear-gradient(135deg,#111827 0%,#374151 50%,#b11f1f 100%);
    border-radius: 28px;
    padding: 2.25rem;
    color: #fff;
    position: relative;
    overflow: hidden
}

    .ava-cursus-theme .ava-hero-panel p {
        color: rgba(255,255,255,.88)
    }

    .ava-cursus-theme .ava-hero-panel::after {
        content: "";
        position: absolute;
        right: -70px;
        top: -70px;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        background: rgba(255,255,255,.08)
    }

.ava-auth-shell {
    max-width: 1040px;
    margin: 0 auto
}

.ava-auth-card {
    display: grid;
    grid-template-columns: minmax(260px,1fr) minmax(320px,1.1fr);
    overflow: hidden
}

.ava-auth-side {
    background: linear-gradient(160deg,#111827 0%,#334155 45%,#b11f1f 100%);
    color: #fff;
    padding: 2rem;
    position: relative
}

    .ava-auth-side p {
        color: rgba(255,255,255,.85)
    }

    .ava-auth-side::after {
        content: "";
        position: absolute;
        right: -40px;
        bottom: -40px;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        background: rgba(255,255,255,.08)
    }

.ava-auth-main {
    padding: 2rem
}

.ava-auth-links a {
    color: #b11f1f;
    font-weight: 600;
    text-decoration: none
}

.ava-data-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem
}

.ava-data-title {
    display: flex;
    flex-direction: column;
    gap: .2rem
}

.ava-data-table-card {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
    overflow: hidden
}

.ava-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 1rem
}

.ava-stat-card {
    padding: 1.35rem;
    border-radius: 22px;
    background: linear-gradient(135deg,#fff 0%,#f8fafc 100%);
    border: 1px solid #e9edf5;
    box-shadow: 0 12px 28px rgba(15,23,42,.06)
}

    .ava-stat-card .ava-stat-label {
        font-size: .85rem;
        color: #64748b;
        text-transform: uppercase;
        letter-spacing: .04em
    }

    .ava-stat-card .ava-stat-value {
        font-size: 2rem;
        font-weight: 800;
        color: #b11f1f;
        line-height: 1.1
    }

.ava-surface {
    background: #fff;
    border: 1px solid #e9edf5;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(15,23,42,.05);
    padding: 1.25rem
}

.ava-actions-inline {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap
}

.ava-pill-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .95rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #334155;
    text-decoration: none;
    font-weight: 600
}

    .ava-pill-link:hover {
        border-color: #b11f1f;
        color: #b11f1f
    }

.ava-page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem
}

    .ava-page-heading p {
        margin-bottom: 0;
        color: #64748b
    }

.ava-section-caption {
    font-size: .9rem;
    color: #64748b
}

.ava-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(177,31,31,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b11f1f;
    font-weight: 700
}

@media (max-width:991.98px) {
    .ava-auth-card {
        grid-template-columns: 1fr
    }
}

@media (max-width:768px) {
    .ava-cursus-theme .ava-page-panel {
        padding: 1rem
    }

    .ava-auth-side, .ava-auth-main {
        padding: 1.35rem
    }
}
