
/* DT Centro de Creación y Gestión v1.2.0 */
.ccf-app{
    --ccf-primary:#1769ff;
    --ccf-navy:#0d2d57;
    --ccf-ink:#152a47;
    --ccf-muted:#71839f;
    --ccf-line:#dce6f3;
    --ccf-soft:#f5f8fc;
    max-width:1480px;
    margin:0 auto;
    padding:18px 18px 60px;
    color:var(--ccf-ink);
    font-size:16px;
}

.ccf-hero{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:28px;
    padding:38px 42px;
    border-radius:28px;
    background:
        radial-gradient(circle at 88% 15%,rgba(70,137,255,.30),transparent 28%),
        linear-gradient(135deg,#0d2d57,#163f76 72%,#1769ff);
    color:#fff;
    box-shadow:0 24px 65px rgba(16,49,95,.18);
}

.ccf-kicker{
    display:block;
    margin-bottom:8px;
    color:#c9ddfb;
    font-size:12px;
    font-weight:900;
    letter-spacing:2px;
}

.ccf-hero h1{
    margin:0!important;
    color:#fff!important;
    font-size:38px!important;
    line-height:1.05!important;
    font-weight:900!important;
    letter-spacing:-.7px;
}

.ccf-hero p{
    max-width:760px;
    margin:10px 0 0;
    color:#dbe8f8;
    font-size:16px;
    line-height:1.5;
}

.ccf-hero-button{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:52px;
    padding:0 20px;
    border-radius:14px;
    background:#fff;
    color:#1769ff!important;
    text-decoration:none!important;
    font-size:14px;
    font-weight:900;
    box-shadow:0 12px 28px rgba(0,0,0,.13);
    white-space:nowrap;
    transition:.2s ease;
}

.ccf-hero-button:hover{
    transform:translateY(-2px);
    box-shadow:0 16px 32px rgba(0,0,0,.16);
}

.ccf-section{
    margin-top:20px;
    padding:28px;
    border:1px solid var(--ccf-line);
    border-radius:26px;
    background:#fff;
    box-shadow:0 12px 38px rgba(22,58,105,.055);
}

.ccf-section-head{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:flex-end;
    margin-bottom:21px;
}

.ccf-section-head>div:first-child>span{
    display:block;
    color:var(--ccf-primary);
    font-size:11px;
    font-weight:900;
    letter-spacing:2px;
}

.ccf-section-head h2{
    margin:5px 0!important;
    color:var(--ccf-ink)!important;
    font-size:28px!important;
    font-weight:900!important;
    letter-spacing:-.4px;
}

.ccf-section-head p{
    margin:0;
    color:var(--ccf-muted);
    font-size:14px;
    line-height:1.5;
}

/* Section 1 */
.ccf-create-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:15px;
}

.ccf-create-card{
    display:flex;
    flex-direction:column;
    min-height:260px;
    padding:20px;
    border:1px solid #dde7f4;
    border-radius:20px;
    background:
        linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
    box-shadow:0 8px 25px rgba(25,60,105,.045);
    transition:.2s ease;
}

.ccf-create-card:hover{
    transform:translateY(-3px);
    border-color:#c8d9ee;
    box-shadow:0 16px 38px rgba(25,60,105,.09);
}

.ccf-create-icon{
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    margin-bottom:17px;
    border-radius:17px;
    background:linear-gradient(145deg,#e8f1ff,#d9e8ff);
    font-size:27px;
    box-shadow:inset 0 1px 0 #fff;
}

.ccf-create-copy{
    flex:1;
}

.ccf-create-copy h3{
    margin:0 0 8px!important;
    color:#1d395d!important;
    font-size:20px!important;
    font-weight:900!important;
}

.ccf-create-copy p{
    margin:0;
    color:#778aa5;
    font-size:13px;
    line-height:1.55;
}

.ccf-create-action{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:44px;
    margin-top:20px;
    padding:0 14px;
    border-radius:12px;
    background:#f2f7ff;
    color:#1769ff!important;
    text-decoration:none!important;
    font-size:13px;
    font-weight:900;
    transition:.18s ease;
}

.ccf-create-action:hover{
    background:#1769ff;
    color:#fff!important;
}

.ccf-create-card.is-disabled{
    opacity:.58;
}

.ccf-disabled-action{
    cursor:not-allowed;
    background:#f2f3f5;
    color:#8995a6!important;
}

/* Section 2 */
.ccf-course-count{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 14px;
    border-radius:14px;
    background:#f1f6fd;
    color:#7185a2;
}

.ccf-course-count b{
    color:#1769ff;
    font-size:20px;
}

.ccf-course-count span{
    font-size:12px;
    font-weight:800;
}

.ccf-summary{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:12px;
    margin-bottom:16px;
}

.ccf-summary>div{
    padding:15px 16px;
    border:1px solid #e0e8f3;
    border-radius:15px;
    background:#fafcff;
}

.ccf-summary small{
    display:block;
    color:#8798af;
    font-size:11px;
    font-weight:800;
}

.ccf-summary strong{
    display:block;
    margin-top:4px;
    color:#214468;
    font-size:24px;
}

.ccf-toolbar{
    display:grid;
    grid-template-columns:1fr 220px;
    gap:12px;
    margin-bottom:16px;
}

.ccf-search{
    position:relative;
}

.ccf-search span{
    position:absolute;
    left:15px;
    top:50%;
    transform:translateY(-50%);
    color:#7189a8;
    font-size:18px;
}

.ccf-search input,
.ccf-toolbar select{
    width:100%;
    height:48px;
    border:1px solid #dbe5f2;
    border-radius:14px;
    background:#fbfdff;
    color:#294b6e;
    font-size:14px;
    box-sizing:border-box;
}

.ccf-search input{
    padding:0 15px 0 42px;
}

.ccf-toolbar select{
    padding:0 12px;
}

.ccf-search input:focus,
.ccf-toolbar select:focus{
    outline:none;
    border-color:#1769ff;
    box-shadow:0 0 0 2px rgba(23,105,255,.10);
}

.ccf-course-list{
    overflow:hidden;
    border:1px solid #dce6f3;
    border-radius:20px;
}

.ccf-course-row{
    display:grid;
    grid-template-columns:90px 1fr auto;
    gap:17px;
    align-items:center;
    padding:16px;
    border-bottom:1px solid #edf2f8;
    background:#fff;
    transition:.18s ease;
}

.ccf-course-row:last-child{
    border-bottom:0;
}

.ccf-course-row:hover{
    background:#fbfdff;
}

.ccf-course-cover{
    display:grid;
    place-items:center;
    width:90px;
    height:66px;
    border-radius:14px;
    background:linear-gradient(145deg,#e8f1ff,#d8e8ff);
    background-size:cover;
    background-position:center;
    overflow:hidden;
}

.ccf-course-cover span{
    color:#1769ff;
    font-size:22px;
    font-weight:900;
}

.ccf-course-title-line{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.ccf-course-title-line h3{
    margin:0!important;
    color:#244667!important;
    font-size:17px!important;
    font-weight:900!important;
}

.ccf-status{
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:0 9px;
    border-radius:999px;
    font-size:10px;
    font-weight:900;
}

.ccf-status-publish{
    background:#e8f8f2;
    color:#087d59;
}

.ccf-status-draft{
    background:#fff3dd;
    color:#966218;
}

.ccf-status-private{
    background:#eef2f7;
    color:#66778d;
}

.ccf-status-pending{
    background:#f2edff;
    color:#7350bc;
}

.ccf-course-meta{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:8px;
}

.ccf-course-meta span{
    padding:5px 8px;
    border-radius:8px;
    background:#f4f7fb;
    color:#7d8ea5;
    font-size:10px;
    font-weight:650;
}

.ccf-course-meta b{
    color:#315372;
}

.ccf-course-actions{
    display:flex;
    gap:7px;
    align-items:center;
}

.ccf-action-button{
    min-height:38px;
    padding:0 12px;
    border:1px solid #dce5f1;
    border-radius:10px;
    background:#fff;
    color:#365879!important;
    text-decoration:none!important;
    font-size:12px;
    font-weight:850;
    cursor:pointer;
    transition:.17s ease;
}

a.ccf-action-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.ccf-action-button:hover{
    transform:translateY(-1px);
    border-color:#bdcfe3;
}

.ccf-action-button.edit{
    background:#eef5ff;
    color:#1769ff!important;
    border-color:#d5e5fc;
}

.ccf-action-button.delete{
    background:#fff5f6;
    color:#cf3f59!important;
    border-color:#f3d8df;
}

.ccf-empty-state{
    padding:52px 20px;
    text-align:center;
    color:#7589a5;
}

.ccf-empty-state>div{
    font-size:38px;
}

.ccf-empty-state h3{
    margin:10px 0 5px!important;
    color:#294b6c!important;
}

/* Modal */
.ccf-modal[hidden]{
    display:none!important;
}

.ccf-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.ccf-modal-backdrop{
    position:absolute;
    inset:0;
    background:rgba(8,24,47,.68);
    backdrop-filter:blur(6px);
}

.ccf-modal-card{
    position:relative;
    z-index:2;
    width:min(480px,94vw);
    padding:30px;
    border-radius:22px;
    background:#fff;
    text-align:center;
    box-shadow:0 28px 85px rgba(4,23,48,.32);
}

.ccf-modal-icon{
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    margin:0 auto 15px;
    border-radius:50%;
    background:#fff1f3;
    color:#d93c58;
    font-size:27px;
    font-weight:900;
}

.ccf-modal-card h2{
    margin:0!important;
    color:#203d60!important;
    font-size:22px!important;
    font-weight:900!important;
}

.ccf-modal-card p{
    margin:11px 0 0;
    color:#71849e;
    font-size:14px;
    line-height:1.5;
}

.ccf-modal-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:22px;
}

.ccf-modal-actions button{
    min-height:44px;
    border-radius:11px;
    font-size:13px;
    font-weight:850;
    cursor:pointer;
}

.ccf-modal-cancel{
    border:1px solid #dbe5f1;
    background:#f6f9fc;
    color:#496682;
}

.ccf-modal-confirm{
    border:0;
    background:#dc405d;
    color:#fff;
}

.ccf-access-card{
    display:flex;
    flex-direction:column;
    gap:5px;
    max-width:800px;
    margin:30px auto;
    padding:20px;
    border:1px solid #ecd8aa;
    border-radius:14px;
    background:#fff7e8;
    color:#795816;
}

@media(max-width:1050px){
    .ccf-create-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .ccf-course-row{
        grid-template-columns:75px 1fr;
    }

    .ccf-course-cover{
        width:75px;
    }

    .ccf-course-actions{
        grid-column:1/-1;
        justify-content:flex-end;
    }
}

@media(max-width:720px){
    .ccf-app{
        padding:10px 10px 40px;
    }

    .ccf-hero{
        padding:28px 22px;
        flex-direction:column;
        align-items:flex-start;
    }

    .ccf-hero h1{
        font-size:31px!important;
    }

    .ccf-section{
        padding:20px;
    }

    .ccf-create-grid,
    .ccf-summary,
    .ccf-toolbar{
        grid-template-columns:1fr;
    }

    .ccf-course-row{
        grid-template-columns:1fr;
    }

    .ccf-course-cover{
        width:100%;
        height:130px;
    }

    .ccf-course-actions{
        grid-column:auto;
        justify-content:flex-start;
        flex-wrap:wrap;
    }

    .ccf-course-heading{
        align-items:flex-start;
    }
}
