body {
    background: #f7f8fb
}

.ava-cursos-hero {
    background: linear-gradient(135deg,#1f2937 0%,#374151 45%,#b11f1f 100%);
    border-radius: 24px;
    padding: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden
}

   /* .ava-cursos-hero:after {
        content: "";
        position: absolute;
        right: -60px;
        top: -60px;
        width: 220px;
        height: 220px;
        background: rgba(255,255,255,.08);
        border-radius: 50%
    }*/

    .ava-cursos-hero p {
        max-width: 760px;
        color: rgba(255,255,255,.88)
    }

.ava-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 1.5rem
}

.ava-course-card {
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15,23,42,.08);
    transition: transform .2s ease,box-shadow .2s ease;
    height: 100%
}

    .ava-course-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px rgba(15,23,42,.14)
    }

.ava-course-banner {
    /*height: 250px;*/
    width: 100%;
    object-fit: cover;
    background: #e5e7eb
}

.ava-course-body {
    padding: 1.25rem
}

.ava-course-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: .5rem
}

.ava-course-description {
    color: #6b7280;
    min-height: 72px
}

.ava-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .9rem 0 1rem
}

.ava-chip {
    background: #f3f4f6;
    color: #374151;
    border-radius: 999px;
    padding: .35rem .8rem;
    font-size: .86rem
}

.ava-chip-publicado {
    background: rgba(34,197,94,.16);
    color: #166534
}

.ava-chip-borrador {
    background: rgba(107,114,128,.16);
    color: #374151
}

.ava-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.ava-detail-shell {
    display: grid;
    grid-template-columns: minmax(0,2fr) minmax(280px,1fr);
    gap: 1.5rem
}

.ava-detail-card, .ava-sidebar-card, .ava-unit-card {
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(15,23,42,.06)
}

.ava-detail-banner {
    width: 100%;
    /*max-height: 420px;*/
    object-fit: cover;
    border-radius: 20px 20px 0 0
}

.ava-detail-content {
    padding: 1.5rem
}

.ava-sidebar-card {
    padding: 1.25rem;
    position: sticky;
    top: 1rem
}

.ava-unit-list {
    display: grid;
    gap: 1rem
}

.ava-unit-card {
    padding: 1.2rem
}

    .ava-unit-card h5 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: .35rem;
        color: #1f2937
    }

    .ava-unit-card p {
        color: #6b7280;
        margin-bottom: 1rem
    }

.ava-breadcrumb-lite {
    font-size: .92rem;
    color: #6b7280;
    margin-bottom: 1rem
}

    .ava-breadcrumb-lite a {
        color: #b11f1f;
        text-decoration: none
    }

.ava-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap
}

.ava-empty-state {
    background: #fff;
    border: 1px dashed #d1d5db;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: #6b7280
}

.ava-highlight {
    color: #b11f1f;
    font-weight: 700
}

@media (max-width:991.98px) {
    .ava-detail-shell {
        grid-template-columns: 1fr
    }

    .ava-sidebar-card {
        position: static
    }
}
