/* =========================================================
   MULTIKA - PANEL INSTRUCTOR V10
   Rediseño visual premium y responsive
   ========================================================= */

:root{
    --ins-bg:#eaf1f5;
    --ins-surface:#ffffff;
    --ins-surface-soft:#f4f8fb;
    --ins-border:#d4e0e7;
    --ins-text:#284b63;
    --ins-muted:#778b98;
    --ins-blue:#327ba5;
    --ins-blue-2:#4ba3d3;
    --ins-violet:#665bc0;
    --ins-green:#1a9a7c;
    --ins-red:#dc5967;
    --ins-shadow:0 12px 30px rgba(38,61,78,.08);
}

/* =========================================================
   LAYOUT GENERAL
   ========================================================= */

.instructor-layout{
    min-height:100vh;
    background:
        radial-gradient(circle at 86% 0%,rgba(101,90,190,.08),transparent 28%),
        linear-gradient(180deg,#e8f0f4,#edf3f6);
}

.instructor-content{
    min-height:100vh;
    margin-left:294px;
    padding:26px 28px 60px;
    box-sizing:border-box;
    min-width:0;
}

.instructor-page{
    width:min(1320px,100%);
    margin:0 auto;
    min-width:0;
}

/* =========================================================
   SIDEBAR INSTRUCTOR
   ========================================================= */

.sidebar-instructor{
    position:fixed;
    inset:0 auto 0 0;
    z-index:1100;
    width:294px;
    height:100vh;
    padding:20px 16px 22px;
    overflow-y:auto;
    overflow-x:hidden;
    box-sizing:border-box;
    background:
        radial-gradient(circle at 20% 8%,rgba(255,255,255,.12),transparent 20%),
        linear-gradient(180deg,#2e6b96 0%,#3f6f9f 42%,#6057ad 100%);
    border-right:1px solid rgba(255,255,255,.15);
    box-shadow:12px 0 34px rgba(31,53,71,.12);
    color:#fff;
    scrollbar-width:thin;
    scrollbar-color:rgba(255,255,255,.34) transparent;
}

.sidebar-instructor::-webkit-scrollbar{width:6px}
.sidebar-instructor::-webkit-scrollbar-thumb{
    background:rgba(255,255,255,.32);
    border-radius:999px;
}

.instructor-sidebar-logo{
    display:flex;
    align-items:center;
    gap:13px;
    padding:5px 8px 19px;
    border-bottom:1px solid rgba(255,255,255,.16);
}

.instructor-sidebar-logo img{
    width:52px;
    height:52px;
    flex:0 0 52px;
    object-fit:cover;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.24);
    box-shadow:0 5px 15px rgba(24,42,59,.22);
}

.instructor-sidebar-logo h2{
    margin:0!important;
    color:#fff!important;
    font-size:22px!important;
    line-height:1!important;
    letter-spacing:.12em;
    font-weight:900!important;
}

.instructor-sidebar-logo small{
    display:block;
    margin-top:5px;
    color:rgba(255,255,255,.78);
    font-size:9px;
    font-weight:600;
}

.instructor-sidebar-profile{
    display:flex;
    align-items:center;
    gap:11px;
    margin:18px 0 20px;
    padding:14px;
    border:1px solid rgba(255,255,255,.17);
    border-radius:17px;
    background:rgba(255,255,255,.10);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
    backdrop-filter:blur(4px);
}

.instructor-sidebar-profile>span{
    width:48px;
    height:48px;
    flex:0 0 48px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:linear-gradient(135deg,#eef6fb,#d6e6f1);
    color:#345e78;
    font-size:18px;
    font-weight:900;
    box-shadow:0 4px 12px rgba(29,52,70,.18);
}

.instructor-sidebar-profile strong{
    display:block;
    color:#fff;
    font-size:10px;
    line-height:1.3;
    font-weight:800;
}

.instructor-sidebar-profile small{
    display:flex;
    align-items:center;
    gap:5px;
    margin-top:4px;
    color:rgba(255,255,255,.80);
    font-size:7px;
    font-weight:800;
    letter-spacing:.05em;
}

.instructor-sidebar-menu{
    display:grid;
    gap:5px;
}

.instructor-sidebar-menu a,
.instructor-sidebar-menu .sidebar-group-toggle{
    min-height:46px;
    border-radius:12px!important;
    color:#fff!important;
    font-weight:800!important;
    text-shadow:0 1px 1px rgba(0,0,0,.10);
}

.instructor-sidebar-menu>a,
.instructor-sidebar-menu .sidebar-group-toggle{
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.055)!important;
}

.instructor-sidebar-menu>a:hover,
.instructor-sidebar-menu .sidebar-group-toggle:hover{
    background:rgba(255,255,255,.13)!important;
    transform:translateX(2px);
}

.instructor-sidebar-menu .sidebar-group.open>.sidebar-group-toggle{
    background:rgba(255,255,255,.15)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.instructor-sidebar-menu .sidebar-group-menu a{
    margin-left:16px!important;
    background:rgba(20,48,78,.18)!important;
    color:#f8fbff!important;
    border:1px solid rgba(255,255,255,.055)!important;
}

.instructor-sidebar-menu .sidebar-group-menu a:hover{
    background:rgba(20,48,78,.34)!important;
}

.instructor-sidebar-menu .sidebar-group-menu a.is-current,
.instructor-sidebar-menu>a.is-current{
    background:#fff!important;
    color:#2d5b78!important;
    text-shadow:none!important;
    box-shadow:0 7px 18px rgba(31,50,69,.20);
}

.instructor-sidebar-menu .salir{
    margin-top:10px;
    background:rgba(164,48,64,.12)!important;
}

.instructor-sidebar-menu .salir:hover{
    background:rgba(164,48,64,.25)!important;
}

/* =========================================================
   CABECERA PRINCIPAL
   ========================================================= */

.instructor-hero,
.instructor-admin-hero{
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:22px;
    margin:0 0 18px;
    padding:28px 30px;
    border:1px solid #cedde6;
    border-radius:24px;
    background:
        radial-gradient(circle at 89% 10%,rgba(102,91,192,.12),transparent 30%),
        linear-gradient(135deg,#ffffff 0%,#edf5f9 100%);
    box-shadow:var(--ins-shadow);
}

.instructor-hero::after,
.instructor-admin-hero::after{
    content:"";
    position:absolute;
    right:-55px;
    bottom:-80px;
    width:190px;
    height:190px;
    border-radius:50%;
    background:rgba(95,84,180,.045);
    pointer-events:none;
}

.instructor-hero>div:first-child,
.instructor-admin-hero>div:first-child{
    position:relative;
    z-index:1;
}

.instructor-hero>div:first-child>span,
.instructor-admin-hero>div>span{
    display:inline-flex;
    align-items:center;
    gap:7px;
    color:#6258b9;
    font-size:8px;
    font-weight:900;
    letter-spacing:.13em;
    text-transform:uppercase;
}

.instructor-hero h1,
.instructor-admin-hero h1{
    margin:7px 0 6px!important;
    color:#2c5067!important;
    font-size:32px!important;
    line-height:1.05!important;
    font-weight:850!important;
    letter-spacing:-.025em;
}

.instructor-hero p,
.instructor-admin-hero p{
    max-width:720px;
    margin:0!important;
    color:#748895!important;
    font-size:10px!important;
    line-height:1.55!important;
}

.instructor-hero>a,
.instructor-hero-actions a,
.instructor-admin-hero>a{
    position:relative;
    z-index:1;
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    padding:0 15px;
    border:1px solid transparent;
    border-radius:12px;
    background:linear-gradient(135deg,var(--ins-blue),var(--ins-blue-2));
    color:#fff!important;
    text-decoration:none!important;
    font-size:8px;
    font-weight:900;
    box-shadow:0 8px 18px rgba(50,123,165,.18);
    transition:.16s ease;
}

.instructor-hero>a:hover,
.instructor-hero-actions a:hover,
.instructor-admin-hero>a:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(50,123,165,.22);
}

.instructor-hero .secondary,
.instructor-admin-hero .secondary{
    border-color:#d5e1e8!important;
    background:#fff!important;
    color:#3c6279!important;
    box-shadow:0 7px 16px rgba(42,67,84,.07);
}

.instructor-hero-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap;
}

/* =========================================================
   TARJETAS DE INDICADORES
   ========================================================= */

.instructor-stats{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}

.instructor-stats article{
    min-width:0;
    display:flex;
    align-items:center;
    gap:12px;
    min-height:92px;
    padding:16px;
    border:1px solid #d4e0e7;
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 20px rgba(40,62,78,.05);
}

.instructor-stats article>i{
    width:48px;
    height:48px;
    flex:0 0 48px;
    display:grid;
    place-items:center;
    border-radius:14px;
    background:linear-gradient(135deg,#ece9fb,#dceaf3);
    color:#5f59b4;
    font-size:19px;
}

.instructor-stats small{
    display:block;
    color:#81929d;
    font-size:7px;
    font-weight:900;
    letter-spacing:.06em;
}

.instructor-stats strong{
    display:block;
    margin-top:2px;
    color:#31566e;
    font-size:23px;
    line-height:1;
}

/* =========================================================
   PANELES
   ========================================================= */

.instructor-panel{
    padding:19px;
    border:1px solid #d3e0e7;
    border-radius:19px;
    background:#fff;
    box-shadow:0 8px 22px rgba(40,61,77,.05);
}

.instructor-panel.compact{
    margin-top:16px;
}

.instructor-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:15px;
}

.instructor-panel-head small{
    display:block;
    color:#7d909d;
    font-size:7px;
    font-weight:900;
    letter-spacing:.09em;
}

.instructor-panel-head h2{
    margin:3px 0 0!important;
    color:#34566d!important;
    font-size:17px!important;
    font-weight:800!important;
}

.instructor-panel-head>a{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:#47738c!important;
    text-decoration:none!important;
    font-size:8px;
    font-weight:900;
}

/* =========================================================
   CURSOS
   ========================================================= */

.instructor-course-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.instructor-course-grid.full{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.instructor-course-card{
    position:relative;
    overflow:hidden;
    display:grid;
    grid-template-columns:50px 1fr;
    gap:11px;
    min-width:0;
    padding:16px;
    border:1px solid #d8e3e9;
    border-radius:16px;
    background:
        linear-gradient(180deg,#fff,#f8fafc);
    box-shadow:0 7px 18px rgba(37,59,74,.045);
    transition:.16s ease;
}

.instructor-course-card:hover{
    transform:translateY(-2px);
    border-color:#bed5e1;
    box-shadow:0 11px 24px rgba(42,68,85,.08);
}

.instructor-course-card>span{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:13px;
    background:linear-gradient(135deg,#dceaf3,#ece9fb);
    color:#4c728c;
    font-size:18px;
}

.instructor-course-card small{
    display:block;
    color:#7f919d;
    font-size:7px;
    font-weight:900;
    letter-spacing:.06em;
}

.instructor-course-card h3{
    margin:4px 0!important;
    color:#33556c!important;
    font-size:14px!important;
    font-weight:850!important;
}

.instructor-course-card p{
    margin:0!important;
    color:#84949f!important;
    font-size:8px!important;
    line-height:1.45!important;
}

.instructor-course-card>a{
    grid-column:1/-1;
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-top:3px;
    border-radius:10px;
    background:linear-gradient(135deg,#3b7fa6,#4ca5d3);
    color:#fff!important;
    text-decoration:none!important;
    font-size:8px;
    font-weight:900;
}

/* =========================================================
   MÓDULOS
   ========================================================= */

.instructor-module-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:13px;
}

.instructor-module-card{
    display:grid;
    grid-template-columns:54px minmax(0,1fr);
    gap:12px;
    padding:17px;
    border:1px solid #d4e1e8;
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 19px rgba(40,61,77,.05);
}

.instructor-module-number{
    width:50px;
    height:50px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:linear-gradient(135deg,#377ea6,#665bb9);
    color:#fff;
    font-size:17px;
    font-weight:900;
    box-shadow:0 7px 16px rgba(71,101,161,.18);
}

.instructor-module-copy small,
.instructor-list small{
    color:#6e84a0;
    font-size:7px;
    font-weight:900;
    letter-spacing:.05em;
}

.instructor-module-copy h2,
.instructor-list h2{
    margin:4px 0!important;
    color:#33556c!important;
    font-size:15px!important;
    font-weight:850!important;
}

.instructor-module-copy p,
.instructor-list p{
    margin:0!important;
    color:#86959f!important;
    font-size:8px!important;
    line-height:1.45!important;
}

.instructor-module-actions{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:8px;
    margin-top:3px;
}

.instructor-module-actions>a,
.instructor-module-actions button{
    width:100%;
    min-width:0;
    min-height:41px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin:0;
    padding:0 9px;
    border:1px solid #d8e3e9;
    border-radius:10px;
    background:#edf4f7;
    color:#3e657c!important;
    text-decoration:none!important;
    font-size:8px;
    font-weight:900;
    cursor:pointer;
}

.instructor-module-actions>a:nth-child(1){
    background:#e7f6f2;
    border-color:#cce9e0;
    color:#15775f!important;
}

.instructor-module-actions>a:nth-child(2){
    background:#eeeafb;
    border-color:#ddd8f5;
    color:#6558b9!important;
}

.instructor-module-actions>a:nth-child(3){
    background:#e9f3f9;
    border-color:#d3e6f0;
    color:#397495!important;
}

.instructor-module-actions form{
    width:100%;
    margin:0;
}

.instructor-module-actions form button{
    background:#fff0f2;
    border-color:#f2d6da;
    color:#bc4a59!important;
}

/* =========================================================
   LISTADOS
   ========================================================= */

.instructor-list{
    display:grid;
    gap:9px;
}

.instructor-list>article{
    min-width:0;
    display:grid;
    grid-template-columns:42px minmax(0,1fr) auto auto;
    align-items:center;
    gap:11px;
    padding:13px 14px;
    border:1px solid #d7e2e8;
    border-radius:13px;
    background:#fff;
    box-shadow:0 5px 14px rgba(41,62,77,.035);
}

.instructor-list>article>b{
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:11px;
    background:#e7eef4;
    color:#4a7089;
    font-size:11px;
    font-weight:900;
}

.instructor-list-actions{
    display:flex;
    align-items:center;
    gap:6px;
}

.instructor-list-actions a,
.instructor-list-actions button{
    min-height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    padding:0 10px;
    border:1px solid #d6e2e8;
    border-radius:9px;
    background:#edf4f7;
    color:#3d6279!important;
    text-decoration:none!important;
    font-size:7px;
    font-weight:900;
    cursor:pointer;
}

.instructor-list-actions button{
    background:#fff0f2;
    border-color:#f1d6da;
    color:#b84b59!important;
}

/* =========================================================
   FORMULARIOS
   ========================================================= */

.instructor-form,
.instructor-assignment-form{
    padding:22px;
    border:1px solid #d1dfe7;
    border-radius:19px;
    background:#fff;
    box-shadow:0 9px 24px rgba(38,61,78,.055);
}

.instructor-form-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px 20px;
}

.instructor-form-grid>.full{
    grid-column:1/-1;
}

.instructor-form label{
    display:block;
    margin:0 0 7px;
    color:#31546a;
    font-size:9px;
    font-weight:850;
}

.instructor-form input,
.instructor-form select,
.instructor-form textarea{
    width:100%;
    min-width:0;
    min-height:46px;
    padding:10px 12px;
    border:1px solid #bed1dd;
    border-radius:11px;
    background:#f9fbfc;
    color:#27495f;
    font-size:9px;
    box-sizing:border-box;
    outline:none;
    transition:.15s ease;
}

.instructor-form input:focus,
.instructor-form select:focus,
.instructor-form textarea:focus{
    border-color:#6395b0;
    background:#fff;
    box-shadow:0 0 0 3px rgba(75,132,164,.10);
}

.instructor-form textarea{
    min-height:115px;
    resize:vertical;
}

.instructor-form textarea.large{
    min-height:200px;
}

.instructor-form small{
    display:block;
    margin-top:5px;
    color:#81919c;
    font-size:7px;
}

.instructor-form-actions,
.instructor-assignment-actions{
    display:flex;
    justify-content:flex-end;
    gap:9px;
    margin-top:20px;
    padding-top:17px;
    border-top:1px solid #e3eaee;
}

.instructor-form-actions a,
.instructor-form-actions button,
.instructor-assignment-actions a,
.instructor-assignment-actions button{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 14px;
    border:0;
    border-radius:10px;
    text-decoration:none!important;
    font-size:8px;
    font-weight:900;
    cursor:pointer;
}

.instructor-form-actions a,
.instructor-assignment-actions a{
    background:#edf2f5;
    color:#46677d!important;
}

.instructor-form-actions button,
.instructor-assignment-actions button{
    background:linear-gradient(135deg,#387ba4,#4ca3d2);
    color:#fff!important;
    box-shadow:0 7px 16px rgba(56,123,164,.17);
}

/* respuestas */
.instructor-answer-grid{
    display:grid;
    gap:8px;
}

.answer-row{
    display:grid!important;
    grid-template-columns:28px minmax(0,1fr);
    align-items:center;
    gap:8px;
    margin:0!important;
}

.answer-row>input[type="radio"]{
    width:18px!important;
    min-height:18px!important;
    margin:0 auto;
}

/* =========================================================
   TABLAS
   ========================================================= */

.instructor-table-scroll{
    width:100%;
    max-width:100%;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border:1px solid #d4e0e7;
    border-radius:16px;
    background:#fff;
    box-shadow:0 7px 20px rgba(40,61,77,.045);
}

.instructor-table{
    width:100%;
    min-width:780px;
    border-collapse:collapse;
    background:#fff;
}

.instructor-table th,
.instructor-table td{
    padding:12px 13px;
    border-bottom:1px solid #e2eaee;
    text-align:left;
    white-space:nowrap;
    font-size:8px;
}

.instructor-table th{
    background:linear-gradient(90deg,#4f7f9d,#627ab5);
    color:#fff;
    font-size:7px;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.instructor-table tbody tr:hover{
    background:#f7fafb;
}

/* =========================================================
   ESTADO VACÍO
   ========================================================= */

.instructor-empty{
    min-height:240px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:30px;
    border:1px dashed #c9d8e0;
    border-radius:18px;
    background:rgba(255,255,255,.68);
    text-align:center;
}

.instructor-empty>i{
    width:62px;
    height:62px;
    display:grid;
    place-items:center;
    border-radius:18px;
    background:#e9eef8;
    color:#6171ad;
    font-size:27px;
}

.instructor-empty h2{
    margin:4px 0 0!important;
    color:#38596f!important;
    font-size:17px!important;
}

.instructor-empty p{
    margin:0!important;
    color:#8796a0!important;
    font-size:8px!important;
}

.instructor-empty a{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-top:7px;
    padding:0 13px;
    border-radius:9px;
    background:linear-gradient(135deg,#3c7fa6,#4ca4d2);
    color:#fff!important;
    text-decoration:none!important;
    font-size:8px;
    font-weight:900;
}

/* =========================================================
   ADMIN - INSTRUCTORES
   ========================================================= */

.instructor-admin-page{
    width:min(1260px,calc(100% - 32px));
    margin:0 auto;
    padding:18px 0 58px;
}

.instructor-admin-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.instructor-admin-card{
    position:relative;
    display:grid;
    grid-template-columns:56px minmax(0,1fr) auto;
    gap:12px;
    align-items:center;
    padding:16px;
    border:1px solid #d4e0e7;
    border-radius:17px;
    background:#fff;
    box-shadow:0 7px 20px rgba(40,61,77,.045);
}

.instructor-admin-avatar{
    width:54px;
    height:54px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:linear-gradient(135deg,#dbe9f2,#ece9fa);
    color:#355e78;
    font-size:18px;
    font-weight:900;
}

.instructor-admin-copy small{
    display:block;
    color:#665bb8;
    font-size:7px;
    font-weight:900;
}

.instructor-admin-copy h2{
    margin:3px 0!important;
    color:#35566d!important;
    font-size:14px!important;
}

.instructor-admin-copy p{
    margin:0!important;
    color:#84949f!important;
    font-size:8px!important;
}

.instructor-admin-count{
    min-width:78px;
    padding:9px 10px;
    border-radius:11px;
    background:#f1f6f9;
    text-align:center;
}

.instructor-admin-count strong{
    display:block;
    color:#315a74;
    font-size:18px;
}

.instructor-admin-count span{
    color:#8998a3;
    font-size:6px;
}

.instructor-admin-state{
    grid-column:1;
    justify-self:start;
    padding:6px 8px;
    border-radius:999px;
    font-size:6px;
    font-weight:900;
}

.instructor-admin-state.active{
    background:#e3f5ec;
    color:#267254;
}

.instructor-admin-state.inactive{
    background:#f2f2f2;
    color:#777;
}

.instructor-admin-manage{
    grid-column:2/-1;
    min-height:39px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    border-radius:9px;
    background:linear-gradient(135deg,#3b7fa5,#4ca4d2);
    color:#fff!important;
    text-decoration:none!important;
    font-size:8px;
    font-weight:900;
}

/* selector de cursos */
.instructor-course-picker{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
}

.instructor-course-option{
    position:relative;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    align-items:center;
    gap:11px;
    min-height:88px;
    padding:13px;
    border:1px solid #d8e3e9;
    border-radius:13px;
    background:#f9fbfc;
    cursor:pointer;
    transition:.15s ease;
}

.instructor-course-option:hover{
    border-color:#bdd4df;
    transform:translateY(-1px);
}

.instructor-course-option input{
    position:absolute;
    opacity:0;
    pointer-events:none;
}

.course-check{
    width:36px;
    height:36px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#e5edf2;
    color:transparent;
    border:1px solid #d6e2e8;
}

.instructor-course-option.selected{
    border-color:#4b8eb5;
    background:#eef8fb;
    box-shadow:inset 0 0 0 1px rgba(75,142,181,.07);
}

.instructor-course-option.selected .course-check{
    background:linear-gradient(135deg,#3b83aa,#4ca4d2);
    border-color:transparent;
    color:#fff;
}

.instructor-course-option small{
    display:block;
    color:#7e909c;
    font-size:6px;
    font-weight:900;
}

.instructor-course-option strong{
    display:block;
    margin-top:2px;
    color:#35566d;
    font-size:10px;
}

.instructor-course-option p{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    margin:3px 0 0!important;
    color:#8998a2!important;
    font-size:7px!important;
    line-height:1.4!important;
}

.instructor-course-option>b{
    padding:6px 8px;
    border-radius:999px;
    background:#e4f5ed;
    color:#267254;
    font-size:6px;
}

/* =========================================================
   MÓVIL / TABLET
   ========================================================= */

.btn-menu-instructor{
    display:none;
}

.instructor-overlay{
    display:none;
}

@media(max-width:1180px){
    .instructor-course-grid.full{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .instructor-stats{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .instructor-course-picker{
        grid-template-columns:1fr;
    }
}

@media(max-width:900px){
    .sidebar-instructor{
        width:286px;
        transform:translateX(-102%);
        transition:transform .22s ease;
    }

    .sidebar-instructor.open{
        transform:translateX(0);
    }

    .instructor-content{
        margin-left:0;
        padding:72px 16px 35px;
    }

    .btn-menu-instructor{
        position:fixed;
        top:14px;
        left:14px;
        z-index:1200;
        width:46px;
        height:46px;
        display:grid;
        place-items:center;
        border:1px solid rgba(255,255,255,.18);
        border-radius:12px;
        background:linear-gradient(135deg,#326d95,#5b5daf);
        color:#fff;
        font-size:21px;
        box-shadow:0 8px 20px rgba(35,55,72,.18);
    }

    .instructor-overlay{
        position:fixed;
        inset:0;
        z-index:1050;
        background:rgba(18,34,47,.48);
        backdrop-filter:blur(2px);
    }

    .instructor-overlay.show{
        display:block;
    }

    .instructor-hero,
    .instructor-admin-hero{
        grid-template-columns:1fr;
        align-items:start;
        padding:22px;
    }

    .instructor-hero-actions{
        justify-content:flex-start;
    }

    .instructor-course-grid,
    .instructor-course-grid.full,
    .instructor-module-grid,
    .instructor-admin-grid{
        grid-template-columns:1fr;
    }

    .instructor-admin-page{
        width:calc(100% - 22px);
    }
}

@media(max-width:650px){
    .instructor-content{
        padding-left:10px;
        padding-right:10px;
    }

    .instructor-hero,
    .instructor-admin-hero{
        padding:18px;
        border-radius:18px;
    }

    .instructor-hero h1,
    .instructor-admin-hero h1{
        font-size:26px!important;
    }

    .instructor-stats{
        grid-template-columns:1fr;
    }

    .instructor-form{
        padding:15px;
    }

    .instructor-form-grid{
        grid-template-columns:1fr;
    }

    .instructor-form-grid>.full{
        grid-column:auto;
    }

    .instructor-module-actions{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .instructor-list>article{
        grid-template-columns:42px minmax(0,1fr);
        align-items:start;
    }

    .instructor-list>article>span,
    .instructor-list-actions{
        grid-column:2;
    }

    .instructor-list-actions{
        flex-wrap:wrap;
    }

    .instructor-hero-actions{
        display:grid;
        grid-template-columns:1fr;
        width:100%;
    }

    .instructor-hero-actions a{
        width:100%;
    }

    .instructor-form-actions,
    .instructor-assignment-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .instructor-form-actions>*,
    .instructor-assignment-actions>*{
        width:100%;
        box-sizing:border-box;
    }

    .instructor-admin-card{
        grid-template-columns:54px minmax(0,1fr);
    }

    .instructor-admin-count{
        grid-column:2;
        justify-self:start;
    }

    .instructor-admin-state{
        grid-column:1;
    }

    .instructor-admin-manage{
        grid-column:2;
    }

    .instructor-course-option{
        grid-template-columns:38px minmax(0,1fr);
    }

    .instructor-course-option>b{
        grid-column:2;
        justify-self:start;
    }
}


/* =========================================================
   V11 - IDENTIDAD EXCLUSIVA DEL INSTRUCTOR
   Verde petróleo / grafito. Diferente del panel Admin.
   ========================================================= */

.sidebar-instructor{
    background:
        radial-gradient(circle at 15% 5%,rgba(255,255,255,.10),transparent 22%),
        linear-gradient(180deg,#173f46 0%,#1f5960 48%,#28746f 100%)!important;
    border-right:1px solid rgba(255,255,255,.12)!important;
    box-shadow:12px 0 34px rgba(17,50,55,.18)!important;
}

.instructor-sidebar-logo{
    border-bottom-color:rgba(255,255,255,.14)!important;
}

.instructor-sidebar-profile{
    background:rgba(255,255,255,.085)!important;
    border-color:rgba(255,255,255,.14)!important;
}

.instructor-sidebar-profile>span{
    background:#e6f3f1!important;
    color:#225c5b!important;
}

.instructor-sidebar-menu>a,
.instructor-sidebar-menu .sidebar-group-toggle{
    background:rgba(255,255,255,.045)!important;
    border-color:rgba(255,255,255,.045)!important;
}

.instructor-sidebar-menu>a:hover,
.instructor-sidebar-menu .sidebar-group-toggle:hover,
.instructor-sidebar-menu .sidebar-group.open>.sidebar-group-toggle{
    background:rgba(255,255,255,.12)!important;
}

.instructor-sidebar-menu .sidebar-group-menu a{
    background:rgba(8,40,43,.22)!important;
}

.instructor-sidebar-menu .sidebar-group-menu a:hover{
    background:rgba(8,40,43,.38)!important;
}

.instructor-sidebar-menu .sidebar-group-menu a.is-current,
.instructor-sidebar-menu>a.is-current{
    background:#f6fbfa!important;
    color:#205b5a!important;
}

.instructor-sidebar-menu .salir{
    margin-top:14px!important;
    background:rgba(113,35,49,.24)!important;
    border-color:rgba(255,255,255,.06)!important;
}

.instructor-sidebar-menu .salir:hover{
    background:rgba(130,39,54,.40)!important;
}

.instructor-hero>div:first-child>span,
.instructor-admin-hero>div>span{
    color:#21877d!important;
}

.instructor-hero,
.instructor-admin-hero{
    background:
        radial-gradient(circle at 89% 10%,rgba(31,139,126,.11),transparent 30%),
        linear-gradient(135deg,#ffffff 0%,#edf7f5 100%)!important;
}

.instructor-hero>a,
.instructor-hero-actions a,
.instructor-admin-hero>a,
.instructor-course-card>a,
.instructor-admin-manage,
.instructor-form-actions button,
.instructor-assignment-actions button,
.instructor-empty a{
    background:linear-gradient(135deg,#18766f,#29a090)!important;
    box-shadow:0 8px 18px rgba(24,118,111,.17)!important;
}

.instructor-stats article>i{
    background:linear-gradient(135deg,#e2f3f0,#e8f1f4)!important;
    color:#237d75!important;
}

.instructor-module-number{
    background:linear-gradient(135deg,#18766f,#2b9b8e)!important;
}

.btn-menu-instructor{
    background:linear-gradient(135deg,#174e53,#278178)!important;
}

/* El contenido del instructor no debe heredar espacios visuales del sitio público */
.instructor-layout + .public-footer,
.instructor-layout ~ .public-footer,
body:has(.instructor-layout) .public-header,
body:has(.instructor-layout) .public-footer{
    display:none!important;
}


/* =========================================================
   V12 - LEGIBILIDAD DEL PANEL DEL INSTRUCTOR
   ========================================================= */

/* ---------- SIDEBAR ---------- */

.instructor-sidebar-menu{
    gap:8px!important;
}

.instructor-sidebar-menu>a.sidebar-main-link,
.instructor-sidebar-menu .sidebar-group-toggle{
    min-height:52px!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    padding:0 16px!important;
    border-radius:13px!important;
    font-size:16px!important;
    font-weight:800!important;
    line-height:1!important;
    text-decoration:none!important;
}

.instructor-sidebar-menu>a.sidebar-main-link i,
.instructor-sidebar-menu .sidebar-group-toggle>i:first-child{
    width:22px!important;
    min-width:22px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:18px!important;
    line-height:1!important;
}

.instructor-sidebar-menu>a.sidebar-main-link span,
.instructor-sidebar-menu .sidebar-group-toggle span{
    font-size:16px!important;
    line-height:1.15!important;
    font-weight:800!important;
}

.instructor-sidebar-menu .sidebar-group-arrow{
    margin-left:auto!important;
    font-size:13px!important;
}

.instructor-sidebar-menu .sidebar-group-menu{
    margin-top:6px!important;
}

.instructor-sidebar-menu .sidebar-group-menu a{
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    margin:0 0 5px 18px!important;
    padding:0 14px!important;
    border-radius:11px!important;
    font-size:14px!important;
    font-weight:750!important;
}

.instructor-sidebar-menu .sidebar-group-menu a i{
    width:20px!important;
    min-width:20px!important;
    font-size:15px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
}

.instructor-sidebar-menu .sidebar-group-menu a span{
    font-size:14px!important;
    line-height:1.15!important;
}

.instructor-sidebar-menu .salir{
    margin-top:18px!important;
    background:rgba(125,35,49,.28)!important;
    color:#fff!important;
    border:1px solid rgba(255,255,255,.09)!important;
}

.instructor-sidebar-menu .salir i,
.instructor-sidebar-menu .salir span{
    color:#fff!important;
}

/* Evitar que estilos globales deformen Dashboard/Cerrar sesión */
.instructor-sidebar-menu>a.sidebar-main-link::before,
.instructor-sidebar-menu>a.sidebar-main-link::after{
    display:none!important;
    content:none!important;
}

.instructor-sidebar-menu>a.sidebar-main-link{
    width:100%!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
}

.instructor-sidebar-menu>a.sidebar-main-link span{
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
}

/* Perfil */
.instructor-sidebar-profile strong{
    font-size:14px!important;
    line-height:1.25!important;
}

.instructor-sidebar-profile small{
    font-size:11px!important;
    line-height:1.2!important;
}

.instructor-sidebar-logo h2{
    font-size:26px!important;
}

.instructor-sidebar-logo small{
    font-size:11px!important;
}

/* ---------- ÁREA DE TRABAJO ---------- */

.instructor-hero>div:first-child>span,
.instructor-admin-hero>div>span{
    font-size:11px!important;
    letter-spacing:.10em!important;
}

.instructor-hero h1,
.instructor-admin-hero h1{
    font-size:34px!important;
}

.instructor-hero p,
.instructor-admin-hero p{
    font-size:15px!important;
    line-height:1.55!important;
}

/* botones cabecera */
.instructor-hero>a,
.instructor-hero-actions a,
.instructor-admin-hero>a{
    min-height:46px!important;
    padding:0 17px!important;
    font-size:13px!important;
}

/* estadísticas */
.instructor-stats small{
    font-size:11px!important;
}

.instructor-stats strong{
    font-size:28px!important;
}

.instructor-stats article{
    min-height:104px!important;
}

.instructor-stats article>i{
    font-size:22px!important;
}

/* paneles */
.instructor-panel-head small{
    font-size:10px!important;
}

.instructor-panel-head h2{
    font-size:20px!important;
}

.instructor-panel-head>a{
    font-size:13px!important;
}

/* cards cursos */
.instructor-course-card small{
    font-size:10px!important;
}

.instructor-course-card h3{
    font-size:18px!important;
}

.instructor-course-card p{
    font-size:13px!important;
    line-height:1.5!important;
}

.instructor-course-card>a{
    min-height:44px!important;
    font-size:13px!important;
}

/* módulos */
.instructor-module-copy small,
.instructor-list small{
    font-size:10px!important;
}

.instructor-module-copy h2,
.instructor-list h2{
    font-size:19px!important;
}

.instructor-module-copy p,
.instructor-list p{
    font-size:13px!important;
}

.instructor-module-actions>a,
.instructor-module-actions button{
    min-height:44px!important;
    font-size:12px!important;
}

/* listados */
.instructor-list>article{
    padding:16px!important;
}

.instructor-list>article>b{
    font-size:15px!important;
}

.instructor-list-actions a,
.instructor-list-actions button{
    min-height:40px!important;
    padding:0 12px!important;
    font-size:12px!important;
}

/* formularios */
.instructor-form label{
    font-size:14px!important;
    margin-bottom:8px!important;
}

.instructor-form input,
.instructor-form select,
.instructor-form textarea{
    min-height:50px!important;
    font-size:14px!important;
    padding:12px 14px!important;
}

.instructor-form small{
    font-size:11px!important;
}

.instructor-form-actions a,
.instructor-form-actions button,
.instructor-assignment-actions a,
.instructor-assignment-actions button{
    min-height:46px!important;
    padding:0 16px!important;
    font-size:13px!important;
}

/* tablas */
.instructor-table th{
    font-size:11px!important;
}

.instructor-table td{
    font-size:13px!important;
}

/* admin instructor */
.instructor-admin-copy small{
    font-size:10px!important;
}

.instructor-admin-copy h2{
    font-size:18px!important;
}

.instructor-admin-copy p{
    font-size:12px!important;
}

.instructor-admin-count span{
    font-size:9px!important;
}

.instructor-admin-state{
    font-size:9px!important;
}

.instructor-admin-manage{
    min-height:42px!important;
    font-size:12px!important;
}

/* selector de cursos */
.instructor-course-option small{
    font-size:9px!important;
}

.instructor-course-option strong{
    font-size:15px!important;
}

.instructor-course-option p{
    font-size:11px!important;
}

.instructor-course-option>b{
    font-size:9px!important;
}

/* responsive */
@media(max-width:650px){
    .instructor-sidebar-menu>a.sidebar-main-link,
    .instructor-sidebar-menu .sidebar-group-toggle{
        font-size:15px!important;
    }

    .instructor-sidebar-menu>a.sidebar-main-link span,
    .instructor-sidebar-menu .sidebar-group-toggle span{
        font-size:15px!important;
    }

    .instructor-hero h1,
    .instructor-admin-hero h1{
        font-size:28px!important;
    }

    .instructor-hero p,
    .instructor-admin-hero p{
        font-size:13px!important;
    }
}


/* V13 - editor de lecciones del instructor */
.instructor-lesson-builder{display:grid;gap:16px}
.instructor-lesson-section{padding:22px;border:1px solid #d1e0e5;border-radius:18px;background:#fff;box-shadow:0 8px 22px rgba(32,69,70,.045)}
.instructor-lesson-section-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.instructor-lesson-section-head>span{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:13px;background:#e4f3f0;color:#21877d;font-size:19px}
.instructor-lesson-section-head h2{margin:0!important;color:#2c5260!important;font-size:20px!important;font-weight:850!important}
.instructor-lesson-section-head p{margin:3px 0 0!important;color:#80929b!important;font-size:12px!important}
.instructor-field{margin-top:17px}
.instructor-field label{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:#2f5664;font-size:14px;font-weight:850}
.instructor-field input,.instructor-field select,.instructor-field textarea{width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid #bad0d5;border-radius:11px;background:#fafcfc;color:#294e5c;font-size:14px;box-sizing:border-box;outline:none}
.instructor-field textarea{min-height:130px;resize:vertical}
.instructor-field textarea#contenido{min-height:220px}
.instructor-field input:focus,.instructor-field select:focus,.instructor-field textarea:focus{border-color:#4b918a;background:#fff;box-shadow:0 0 0 3px rgba(41,139,128,.09)}
.instructor-field>small{display:block;margin-top:6px;color:#81929b;font-size:11px}
.instructor-lesson-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.instructor-input-suffix{display:grid;grid-template-columns:1fr auto;align-items:center;border:1px solid #bad0d5;border-radius:11px;background:#fafcfc;overflow:hidden}
.instructor-input-suffix input{border:0!important;border-radius:0!important;box-shadow:none!important}
.instructor-input-suffix span{padding:0 13px;color:#72878f;font-size:12px}
.instructor-current-resource{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding:11px;border:1px solid #d4e2e5;border-radius:11px;background:#f4f9f8}
.instructor-current-resource.image img{width:76px;height:54px;object-fit:cover;border-radius:8px}
.instructor-current-resource.document>span{width:42px;height:42px;display:grid;place-items:center;border-radius:10px;background:#dff1ed;color:#208478;font-size:18px}
.instructor-current-resource div{min-width:0;flex:1}
.instructor-current-resource small{display:block;color:#788d94;font-size:9px;font-weight:900}
.instructor-current-resource strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#315760;font-size:13px}
.instructor-current-resource>a{min-height:34px;display:inline-flex;align-items:center;padding:0 10px;border-radius:8px;background:#278a80;color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:800}
.instructor-remove-resource{display:inline-flex!important;align-items:center!important;gap:7px!important;margin:0 0 10px!important;font-size:12px!important;color:#a44d56!important}
.instructor-remove-resource input{width:16px!important;min-height:16px!important}
.instructor-form-error{display:flex;align-items:center;gap:8px;margin-bottom:14px;padding:12px 14px;border:1px solid #f0cfd3;border-radius:11px;background:#fff1f2;color:#a34853;font-size:13px;font-weight:700}
@media(max-width:700px){.instructor-lesson-section{padding:15px}.instructor-lesson-config-grid{grid-template-columns:1fr}}




/* =========================================================
   V16 - ACCIONES TARJETAS "MIS CURSOS" DEL INSTRUCTOR
   Corrige superposición, texto cortado y responsive.
   ========================================================= */
.instructor-course-card .instructor-course-card-actions,
.instructor-course-card-actions{
    width:100% !important;
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:12px !important;
    align-items:stretch !important;
    margin:18px 0 0 !important;
    padding:0 !important;
    position:static !important;
    transform:none !important;
}

.instructor-course-card .instructor-course-card-actions > a,
.instructor-course-card-actions > a{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:54px !important;
    height:auto !important;
    margin:0 !important;
    padding:12px 14px !important;
    position:static !important;
    inset:auto !important;
    transform:none !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex-direction:row !important;
    gap:8px !important;

    border-radius:13px !important;
    box-sizing:border-box !important;
    overflow:hidden !important;

    font-size:14px !important;
    line-height:1.2 !important;
    font-weight:800 !important;
    white-space:normal !important;
    text-align:center !important;
    text-decoration:none !important;
}

.instructor-course-card .instructor-course-card-actions > a:first-child,
.instructor-course-card-actions > a:first-child{
    background:#23988c !important;
    border:2px solid #23988c !important;
    color:#fff !important;
    box-shadow:0 8px 18px rgba(35,152,140,.16) !important;
}

.instructor-course-card .instructor-course-card-actions > .certificate-button,
.instructor-course-card-actions > .certificate-button{
    background:#fff !important;
    border:2px solid #23988c !important;
    color:#17796f !important;
    box-shadow:none !important;
}

.instructor-course-card .instructor-course-card-actions > a:hover,
.instructor-course-card-actions > a:hover{
    transform:translateY(-2px) !important;
}

.instructor-course-card .instructor-course-card-actions > a i,
.instructor-course-card-actions > a i{
    flex:0 0 auto !important;
    font-size:16px !important;
    line-height:1 !important;
}

@media (max-width:760px){
    .instructor-course-card .instructor-course-card-actions,
    .instructor-course-card-actions{
        grid-template-columns:1fr !important;
        gap:10px !important;
    }

    .instructor-course-card .instructor-course-card-actions > a,
    .instructor-course-card-actions > a{
        min-height:52px !important;
        font-size:14px !important;
    }
}


/* =========================================================
   V17 - TARJETAS "MIS CURSOS" DEL INSTRUCTOR
   Rehechas para evitar herencia de reglas antiguas.
   ========================================================= */

.instructor-course-card-v17{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    padding:18px !important;
    overflow:visible !important;
    box-sizing:border-box !important;
}

.instructor-course-card-v17 > *{
    min-width:0 !important;
    max-width:100% !important;
}

.instructor-course-card-top{
    display:flex !important;
    align-items:flex-start !important;
    gap:14px !important;
    width:100% !important;
    min-width:0 !important;
}

.instructor-course-card-top .instructor-course-icon{
    width:54px !important;
    height:54px !important;
    min-width:54px !important;
    flex:0 0 54px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:14px !important;
    background:linear-gradient(135deg,#e4f3f0,#ece9fb) !important;
    color:#287e76 !important;
    font-size:20px !important;
}

.instructor-course-info{
    flex:1 1 auto !important;
    min-width:0 !important;
}

.instructor-course-info small{
    display:block !important;
    margin:1px 0 4px !important;
    color:#72899a !important;
    font-size:11px !important;
    font-weight:900 !important;
    letter-spacing:.05em !important;
}

.instructor-course-info h3{
    margin:0 0 6px !important;
    color:#2f5269 !important;
    font-size:19px !important;
    line-height:1.15 !important;
    font-weight:850 !important;
    word-break:break-word !important;
}

.instructor-course-info p{
    margin:0 !important;
    color:#7b8f9c !important;
    font-size:13px !important;
    line-height:1.45 !important;
}

/* Reset completo para que reglas antiguas de .instructor-course-card > a no interfieran */
.instructor-course-card-v17 .instructor-course-card-actions-v17{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:12px !important;
    width:100% !important;
    min-width:0 !important;
    margin:18px 0 0 !important;
    padding:0 !important;
    position:static !important;
    inset:auto !important;
    transform:none !important;
}

.instructor-course-card-v17 .instructor-course-card-actions-v17 > a{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
    min-height:52px !important;
    height:auto !important;
    margin:0 !important;
    padding:12px 16px !important;
    position:static !important;
    inset:auto !important;
    transform:none !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;

    border-radius:12px !important;
    box-sizing:border-box !important;
    overflow:visible !important;

    font-size:14px !important;
    line-height:1.2 !important;
    font-weight:850 !important;
    text-decoration:none !important;
    text-align:center !important;
    white-space:normal !important;
}

.instructor-course-card-v17 .instructor-course-card-actions-v17 > a span{
    display:inline !important;
    min-width:0 !important;
    overflow:visible !important;
    white-space:normal !important;
    text-overflow:clip !important;
}

.instructor-course-card-v17 .instructor-course-card-actions-v17 > a i{
    flex:0 0 auto !important;
    width:auto !important;
    height:auto !important;
    margin:0 !important;
    font-size:16px !important;
    line-height:1 !important;
}

.instructor-course-card-v17 .course-admin-btn{
    background:linear-gradient(135deg,#1f8d83,#2da394) !important;
    border:2px solid #1f8d83 !important;
    color:#fff !important;
    box-shadow:0 8px 18px rgba(31,141,131,.16) !important;
}

.instructor-course-card-v17 .course-certificate-btn{
    background:#fff !important;
    border:2px solid #27988d !important;
    color:#1b7c73 !important;
    box-shadow:none !important;
}

.instructor-course-card-v17 .instructor-course-card-actions-v17 > a:hover{
    transform:translateY(-1px) !important;
}

@media(max-width:760px){
    .instructor-course-card-v17 .instructor-course-card-actions-v17{
        grid-template-columns:1fr !important;
    }
}

@media(max-width:520px){
    .instructor-course-card-v17{
        padding:15px !important;
    }

    .instructor-course-card-top{
        gap:11px !important;
    }

    .instructor-course-card-top .instructor-course-icon{
        width:48px !important;
        height:48px !important;
        min-width:48px !important;
        flex-basis:48px !important;
    }

    .instructor-course-info h3{
        font-size:17px !important;
    }

    .instructor-course-info p{
        font-size:12px !important;
    }

    .instructor-course-card-v17 .instructor-course-card-actions-v17 > a{
        min-height:50px !important;
        font-size:13px !important;
    }
}

/* V18 examen general instructor */
.general-exam-card{display:flex!important;justify-content:space-between;gap:24px;align-items:center;padding:28px!important}.general-exam-card h2{font-size:26px;margin:5px 0}.exam-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.exam-meta span{background:#edf6f4;padding:8px 12px;border-radius:10px;font-weight:700}.exam-actions,.hero-actions{display:flex;gap:10px;flex-wrap:wrap}.exam-actions a,.instructor-btn,.form-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:48px;padding:10px 18px;border:0;border-radius:12px;background:#218f84;color:#fff!important;text-decoration:none;font-weight:800}.instructor-btn.ghost,.form-actions a{background:#fff!important;color:#31566c!important;border:1px solid #c7d7df!important}.instructor-form-card{display:grid;gap:18px;background:#eef5f8;border:1px solid #c6d8e0;border-radius:22px;padding:28px}.instructor-form-card .form-section{display:grid;gap:10px;background:#fff;border:1px solid #dbe5e9;border-radius:17px;padding:22px}.instructor-form-card label{font-weight:800;color:#294e64}.instructor-form-card input,.instructor-form-card textarea,.instructor-form-card select{width:100%;box-sizing:border-box;border:1px solid #bcd1da;border-radius:11px;padding:13px;background:#fbfdfe;color:#26485c}.instructor-form-card .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-actions{display:flex;justify-content:flex-end;gap:10px}.form-actions a{display:inline-flex;align-items:center;padding:10px 18px;border-radius:12px;text-decoration:none;font-weight:800}.general-question-list{display:grid;gap:14px}.general-question-list>article{display:grid;grid-template-columns:52px 1fr auto;gap:16px;background:#fff;border:1px solid #cadbe2;border-radius:18px;padding:20px}.q-number{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#e7f4f2;color:#167b72;font-weight:900}.q-body h3{margin:5px 0 12px}.q-body p{margin:5px 0;padding:7px 10px;background:#f6f9fa;border-radius:8px}.q-body p.correct{background:#e9f8ef;color:#15733f;font-weight:800}.q-actions{display:flex;gap:8px;align-items:start}.q-actions a,.q-actions button{border:1px solid #c9d8de;background:#f7fafb;color:#31566c;padding:9px 12px;border-radius:9px;text-decoration:none;font-weight:700}.q-actions button{color:#b8424d;background:#fff1f2}.answer-row{display:grid;grid-template-columns:28px 1fr;gap:8px;align-items:center;margin:8px 0}.answer-row input[type=radio]{width:auto}.general-exam-access{margin-left:auto}
@media(max-width:760px){.general-exam-card{flex-direction:column;align-items:stretch}.instructor-form-card .form-grid{grid-template-columns:1fr}.general-question-list>article{grid-template-columns:44px 1fr}.q-actions{grid-column:1/-1}.hero-actions{width:100%}.hero-actions a{flex:1}.general-exam-access{margin:12px 0 0;width:100%}}


/* =========================================================
   V19 - EDICIÓN DEL CURSO POR INSTRUCTOR
   ========================================================= */

.instructor-course-edit-form{
    display:grid;
    gap:16px;
}

.instructor-course-edit-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 18px;
}

.instructor-course-current-image{
    display:flex;
    align-items:center;
    gap:14px;
    padding:13px;
    margin-bottom:15px;
    border:1px solid #d2e2e4;
    border-radius:13px;
    background:#f6faf9;
}

.instructor-course-current-image img{
    width:150px;
    height:95px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid #d3e1e4;
}

.instructor-course-current-image small{
    display:block;
    margin-bottom:4px;
    color:#789099;
    font-size:10px;
    font-weight:900;
}

.instructor-course-current-image strong{
    color:#315760;
    font-size:14px;
}

@media(max-width:720px){
    .instructor-course-edit-grid{
        grid-template-columns:1fr;
    }

    .instructor-course-current-image{
        align-items:flex-start;
        flex-direction:column;
    }

    .instructor-course-current-image img{
        width:100%;
        height:auto;
        max-height:220px;
    }
}


/* =========================================================
   V21 - RESTAURACIÓN SEGURA DE ESTILOS DEL INSTRUCTOR
   ========================================================= */

.instructor-layout,
.instructor-layout *,
.instructor-content,
.instructor-content *{
    box-sizing:border-box;
}

.instructor-content .instructor-hero{
    border:1px solid #cbdedc!important;
    background:
        radial-gradient(circle at 90% 5%,rgba(38,151,139,.10),transparent 30%),
        linear-gradient(135deg,#ffffff 0%,#eef8f6 100%)!important;
    box-shadow:0 12px 28px rgba(31,83,79,.07)!important;
}

.instructor-content .instructor-hero>div:first-child>span{
    color:#1f8d83!important;
}

.instructor-content .instructor-hero h1{
    color:#294f5f!important;
}

.instructor-content .instructor-hero p{
    color:#718791!important;
}

.instructor-content .instructor-panel,
.instructor-content .instructor-course-card,
.instructor-content .instructor-module-card,
.instructor-content .instructor-list>article,
.instructor-content .instructor-form,
.instructor-content .instructor-lesson-section,
.instructor-content .instructor-form-card{
    border-color:#d2e3e0!important;
    background:#ffffff!important;
    box-shadow:0 8px 22px rgba(32,76,73,.05)!important;
}

.instructor-content .instructor-hero>a:not(.secondary),
.instructor-content .instructor-hero-actions>a:not(.secondary),
.instructor-content .instructor-form-actions button,
.instructor-content .instructor-course-card>a,
.instructor-content .instructor-course-card-actions-v17 .course-admin-btn{
    background:linear-gradient(135deg,#1f8d83,#2da598)!important;
    border-color:#1f8d83!important;
    color:#fff!important;
}

.instructor-content .secondary,
.instructor-content .btn-cancelar{
    background:#ffffff!important;
    border:1px solid #cbdcda!important;
    color:#355e67!important;
}

.instructor-content input,
.instructor-content select,
.instructor-content textarea{
    border-color:#bdd2d5!important;
    background:#fbfdfd!important;
    color:#294d59!important;
}

.instructor-content input:focus,
.instructor-content select:focus,
.instructor-content textarea:focus{
    border-color:#4e9c94!important;
    background:#fff!important;
    box-shadow:0 0 0 3px rgba(31,141,131,.10)!important;
}

.instructor-content label{
    color:#315760!important;
}

.instructor-content .instructor-course-icon,
.instructor-content .instructor-stats article>i,
.instructor-content .instructor-lesson-section-head>span{
    background:linear-gradient(135deg,#e4f4f1,#edf6f5)!important;
    color:#1f8d83!important;
}

.instructor-content .instructor-module-number{
    background:linear-gradient(135deg,#1f8d83,#2ca496)!important;
    color:#fff!important;
}

.instructor-content .instructor-table th{
    background:linear-gradient(90deg,#2b726f,#3f8d89)!important;
}

.sidebar-instructor{
    background:
        radial-gradient(circle at 15% 5%,rgba(255,255,255,.10),transparent 22%),
        linear-gradient(180deg,#173f46 0%,#1f5960 48%,#28746f 100%)!important;
}

@media(max-width:900px){
    .instructor-content{
        width:100%!important;
        max-width:100%!important;
        overflow-x:hidden!important;
    }

    .instructor-page{
        width:100%!important;
        max-width:100%!important;
    }
}

@media(max-width:700px){
    .instructor-content .instructor-form-grid,
    .instructor-content .instructor-lesson-config-grid,
    .instructor-content .instructor-course-edit-grid{
        grid-template-columns:1fr!important;
    }
}


/* =========================================================
   V22 - PREGUNTAS EXACTAMENTE COMO ADMIN, PALETA INSTRUCTOR
   ========================================================= */

.instructor-question-admin-theme{
    --iq-primary:#1f8d83;
    --iq-primary-2:#2ca496;
    --iq-soft:#e7f5f2;
    --iq-border:#c9dfdb;
}

.instructor-question-admin-theme .admin-section-header{
    background:
        radial-gradient(circle at 92% 5%,rgba(31,141,131,.11),transparent 30%),
        linear-gradient(135deg,#ffffff,#edf7f5)!important;
    border-color:var(--iq-border)!important;
}

.instructor-question-admin-theme .admin-section-kicker,
.instructor-question-admin-theme .form-section-title>i{
    color:var(--iq-primary)!important;
}

.instructor-question-admin-theme .form-section-title>i{
    background:var(--iq-soft)!important;
}

.instructor-question-admin-theme .btn-guardar,
.instructor-question-admin-theme button[type="submit"]{
    background:linear-gradient(135deg,var(--iq-primary),var(--iq-primary-2))!important;
    border-color:var(--iq-primary)!important;
    color:#fff!important;
}

.instructor-question-admin-theme input:focus,
.instructor-question-admin-theme textarea:focus,
.instructor-question-admin-theme select:focus{
    border-color:#4e9f97!important;
    box-shadow:0 0 0 3px rgba(31,141,131,.10)!important;
}

/* =========================================================
   V22 - PREVIEW EXACTAMENTE COMO ADMIN, PALETA INSTRUCTOR
   ========================================================= */

.instructor-lesson-preview-theme .lesson-preview-topbar span{
    color:#1f8d83!important;
}

.instructor-lesson-preview-theme .lesson-preview-actions a:hover,
.instructor-lesson-preview-theme .lesson-preview-actions button:hover{
    background:#1f8d83!important;
    border-color:#1f8d83!important;
    color:#fff!important;
}

.instructor-lesson-preview-theme .lesson-preview-module{
    background:#e7f5f2!important;
    color:#1f7b73!important;
}

.instructor-lesson-preview-theme .lesson-preview-material>i{
    color:#1f8d83!important;
}


/* V24 - mensajes de guardado de preguntas */
.instructor-question-admin-theme .form-success{
    display:flex;
    align-items:center;
    gap:9px;
    margin:0 0 16px;
    padding:13px 15px;
    border:1px solid #bfe4d6;
    border-radius:11px;
    background:#eaf8f2;
    color:#176d51;
    font-size:13px;
    font-weight:750;
}

.instructor-question-admin-theme .form-error{
    display:flex;
    align-items:center;
    gap:9px;
}


/* =========================================================
   V27 - SEGUIMIENTO ACADÉMICO DEL INSTRUCTOR
   Estilos completamente aislados para no alterar módulos existentes.
   ========================================================= */

.instructor-tracking-page{
    --track-primary:#1f8d83;
    --track-primary-2:#2ca496;
    --track-soft:#e8f6f3;
    --track-border:#cfdfdf;
    --track-text:#2d5261;
    --track-muted:#7b8f98;
}

.instructor-tracking-filter{
    display:grid;
    grid-template-columns:minmax(260px,1fr) 230px auto auto;
    align-items:center;
    gap:10px;
    margin-bottom:14px;
    padding:13px;
    border:1px solid var(--track-border);
    border-radius:14px;
    background:#fff;
    box-shadow:0 6px 18px rgba(31,72,70,.04);
}

.instructor-tracking-filter.exam{
    grid-template-columns:minmax(250px,1fr) 210px 155px 180px auto;
}

.instructor-tracking-filter input,
.instructor-tracking-filter select{
    width:100%;
    min-height:44px;
    padding:0 12px;
    border:1px solid #c7d8dc!important;
    border-radius:10px;
    background:#fbfdfd!important;
    color:#2d5261!important;
    font-size:13px;
}

.tracking-search{
    position:relative;
}

.tracking-search>i{
    position:absolute;
    left:13px;
    top:50%;
    transform:translateY(-50%);
    color:#769097;
}

.tracking-search input{
    padding-left:38px!important;
}

.instructor-tracking-filter button,
.tracking-filter-clear{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 14px;
    border:0;
    border-radius:10px;
    background:linear-gradient(135deg,var(--track-primary),var(--track-primary-2));
    color:#fff!important;
    text-decoration:none!important;
    font-size:12px;
    font-weight:850;
    cursor:pointer;
}

.tracking-filter-clear{
    background:#edf2f3!important;
    color:#526f78!important;
}

.tracking-summary-grid{
    display:grid;
    grid-template-columns:minmax(0,280px);
    gap:10px;
    margin-bottom:14px;
}

.tracking-summary-grid.four{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.tracking-summary-grid article{
    min-width:0;
    display:flex;
    align-items:center;
    gap:11px;
    min-height:88px;
    padding:14px;
    border:1px solid var(--track-border);
    border-radius:14px;
    background:#fff;
}

.tracking-summary-grid article>i{
    width:43px;
    height:43px;
    flex:0 0 43px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:var(--track-soft);
    color:var(--track-primary);
    font-size:18px;
}

.tracking-summary-grid small{
    display:block;
    color:#81939b;
    font-size:9px;
    font-weight:900;
    letter-spacing:.05em;
}

.tracking-summary-grid strong{
    display:block;
    margin:2px 0;
    color:var(--track-text);
    font-size:22px;
}

.tracking-summary-grid span{
    color:#8b9aa1;
    font-size:10px;
}

.tracking-student-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.tracking-student-card{
    min-width:0;
    padding:15px;
    border:1px solid var(--track-border);
    border-radius:16px;
    background:#fff;
    box-shadow:0 7px 18px rgba(31,72,70,.04);
}

.tracking-student-head{
    display:grid;
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
}

.tracking-avatar,
.tracking-profile-avatar{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:var(--track-soft);
    color:var(--track-primary);
    font-size:17px;
    font-weight:900;
}

.tracking-student-head small,
.tracking-profile-card small,
.tracking-course-progress-card small,
.tracking-section-head small,
.tracking-attempt-header small,
.tracking-answer-list small{
    display:block;
    color:#81939b;
    font-size:9px;
    font-weight:900;
    letter-spacing:.06em;
}

.tracking-student-head h2{
    margin:2px 0!important;
    color:var(--track-text)!important;
    font-size:15px!important;
}

.tracking-student-head p{
    margin:0!important;
    color:#83949c!important;
    font-size:11px!important;
}

.tracking-user-state{
    padding:5px 7px;
    border-radius:999px;
    font-size:8px;
    font-weight:900;
}

.tracking-user-state.active{
    background:#e6f6ef;
    color:#18714f;
}

.tracking-user-state.inactive{
    background:#f2f2f2;
    color:#777;
}

.tracking-student-data{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:13px 0;
}

.tracking-student-data span{
    padding:6px 8px;
    border-radius:8px;
    background:#f2f6f7;
    color:#607781;
    font-size:10px;
}

.tracking-progress-block>div:first-child{
    display:flex;
    justify-content:space-between;
    gap:10px;
    margin-bottom:6px;
    color:#617982;
    font-size:10px;
}

.tracking-progress-block strong{
    color:var(--track-primary);
}

.tracking-progress-bar{
    height:8px;
    overflow:hidden;
    border-radius:999px;
    background:#e6edee;
}

.tracking-progress-bar span{
    display:block;
    height:100%;
    border-radius:inherit;
    background:linear-gradient(90deg,var(--track-primary),var(--track-primary-2));
}

.tracking-progress-bar.large{
    height:11px;
}

.tracking-student-action{
    min-height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-top:14px;
    border-radius:9px;
    background:#edf7f5!important;
    color:#1f7d75!important;
    text-decoration:none!important;
    font-size:11px;
    font-weight:850;
}

.tracking-table-scroll{
    width:100%;
    overflow-x:auto;
    border:1px solid var(--track-border);
    border-radius:15px;
    background:#fff;
}

.tracking-table{
    width:100%;
    min-width:1050px;
    border-collapse:collapse;
}

.tracking-table th{
    padding:12px;
    background:linear-gradient(90deg,#266e69,#34857e);
    color:#fff;
    text-align:left;
    font-size:10px;
    letter-spacing:.03em;
}

.tracking-table td{
    padding:12px;
    border-bottom:1px solid #e5ecee;
    color:#4a6570;
    font-size:11px;
    vertical-align:middle;
}

.tracking-table td strong{
    display:block;
    color:#2d5261;
    font-size:12px;
}

.tracking-table td small{
    display:block;
    margin-top:2px;
    color:#87989f;
    font-size:9px;
}

.tracking-table-progress{
    min-width:130px;
}

.tracking-table-progress>span{
    display:block;
    margin-bottom:4px;
    color:#257f76;
    font-weight:900;
}

.tracking-table-progress>div{
    height:7px;
    overflow:hidden;
    border-radius:999px;
    background:#e5edee;
}

.tracking-table-progress b{
    display:block;
    height:100%;
    background:#299589;
}

.tracking-status{
    display:inline-flex;
    padding:6px 8px;
    border-radius:999px;
    font-size:9px;
    font-weight:900;
    text-transform:capitalize;
}

.tracking-status.completado{
    background:#e4f5ec;
    color:#19714f;
}

.tracking-status.en_progreso{
    background:#e7f3f8;
    color:#2b708f;
}

.tracking-status.sin_iniciar{
    background:#f2f2f2;
    color:#6f7478;
}

.tracking-row-action{
    min-height:34px;
    display:inline-flex;
    align-items:center;
    padding:0 10px;
    border-radius:8px;
    background:#edf7f5!important;
    color:#1f7d75!important;
    text-decoration:none!important;
    font-size:10px;
    font-weight:850;
    white-space:nowrap;
}

.tracking-results-list{
    display:grid;
    gap:10px;
}

.tracking-result-card{
    display:grid;
    grid-template-columns:105px minmax(0,1fr) auto;
    gap:14px;
    align-items:center;
    padding:14px;
    border:1px solid var(--track-border);
    border-radius:14px;
    background:#fff;
}

.tracking-result-score{
    min-height:76px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border-radius:12px;
}

.tracking-result-score.passed{
    background:#e6f6ef;
    color:#176e4e;
}

.tracking-result-score.failed{
    background:#fff0f1;
    color:#b84854;
}

.tracking-result-score strong{
    font-size:20px;
}

.tracking-result-score span{
    margin-top:3px;
    font-size:8px;
    font-weight:900;
}

.tracking-result-type{
    display:inline-flex;
    align-items:center;
    gap:5px;
    color:#21877d;
    font-size:9px;
    font-weight:900;
    letter-spacing:.05em;
}

.tracking-result-main h2{
    margin:4px 0!important;
    color:#2d5261!important;
    font-size:15px!important;
}

.tracking-result-main p{
    margin:0!important;
    color:#748a94!important;
    font-size:11px!important;
}

.tracking-result-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:8px;
    color:#7e929a;
    font-size:10px;
}

.tracking-result-action{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:0 11px;
    border-radius:9px;
    background:#edf7f5!important;
    color:#1f7d75!important;
    text-decoration:none!important;
    font-size:10px;
    font-weight:850;
    white-space:nowrap;
}

.tracking-profile-grid{
    display:grid;
    grid-template-columns:1.25fr .75fr;
    gap:12px;
    margin-bottom:14px;
}

.tracking-profile-card,
.tracking-course-progress-card,
.tracking-detail-section,
.tracking-attempt-header{
    padding:17px;
    border:1px solid var(--track-border);
    border-radius:16px;
    background:#fff;
}

.tracking-profile-card{
    display:flex;
    align-items:center;
    gap:13px;
}

.tracking-profile-avatar{
    width:62px;
    height:62px;
    flex:0 0 62px;
    font-size:21px;
}

.tracking-profile-card h2{
    margin:3px 0!important;
    color:#2d5261!important;
    font-size:18px!important;
}

.tracking-profile-card p{
    margin:0!important;
    color:#7f929a!important;
    font-size:11px!important;
}

.tracking-profile-data{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:9px;
    color:#647c85;
    font-size:10px;
}

.tracking-course-progress-card strong{
    display:block;
    margin:4px 0 9px;
    color:#21877d;
    font-size:30px;
}

.tracking-course-progress-card p{
    margin:8px 0 0!important;
    color:#7d9099!important;
    font-size:10px!important;
}

.tracking-detail-section{
    margin-top:12px;
}

.tracking-section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:13px;
}

.tracking-section-head h2{
    margin:2px 0 0!important;
    color:#2d5261!important;
    font-size:17px!important;
}

.tracking-section-head>span{
    padding:6px 8px;
    border-radius:8px;
    background:#eef5f5;
    color:#617982;
    font-size:10px;
}

.tracking-module-list{
    display:grid;
    gap:8px;
}

.tracking-module-list article{
    display:grid;
    grid-template-columns:38px minmax(0,1fr) 180px;
    align-items:center;
    gap:10px;
    padding:10px;
    border:1px solid #e0e8ea;
    border-radius:11px;
    background:#fafcfc;
}

.tracking-module-number{
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border-radius:9px;
    background:#e7f5f2;
    color:#1f8379;
    font-weight:900;
}

.tracking-module-list h3{
    margin:0!important;
    color:#385a67!important;
    font-size:12px!important;
}

.tracking-module-list p{
    margin:2px 0 0!important;
    color:#84959c!important;
    font-size:9px!important;
}

.tracking-mini-progress{
    display:grid;
    grid-template-columns:42px 1fr;
    align-items:center;
    gap:7px;
}

.tracking-mini-progress strong{
    color:#1f8379;
    font-size:11px;
}

.tracking-mini-progress>div{
    height:7px;
    overflow:hidden;
    border-radius:999px;
    background:#e5edee;
}

.tracking-mini-progress span{
    display:block;
    height:100%;
    background:#299589;
}

.tracking-inline-empty{
    display:flex;
    align-items:center;
    gap:7px;
    padding:13px;
    border-radius:10px;
    background:#f6f9fa;
    color:#718790;
    font-size:11px;
}

.tracking-attempt-header{
    display:grid;
    grid-template-columns:180px 1fr;
    gap:16px;
    align-items:center;
    margin-bottom:12px;
}

.tracking-attempt-header>div:first-child{
    padding:14px;
    border-radius:12px;
}

.tracking-attempt-header.passed>div:first-child{
    background:#e6f6ef;
    color:#176e4e;
}

.tracking-attempt-header.failed>div:first-child{
    background:#fff0f1;
    color:#b84854;
}

.tracking-attempt-header strong{
    display:block;
    margin:3px 0;
    font-size:28px;
}

.tracking-attempt-header span{
    font-size:9px;
    font-weight:900;
}

.tracking-attempt-info{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
}

.tracking-attempt-info span{
    padding:10px;
    border-radius:9px;
    background:#f5f8f9;
    color:#5e7780;
    font-size:10px;
}

.tracking-attempt-info b{
    display:block;
    margin-bottom:3px;
    color:#355864;
}

.tracking-answer-list{
    display:grid;
    gap:8px;
}

.tracking-answer-list article{
    display:grid;
    grid-template-columns:34px minmax(0,1fr) 24px;
    gap:10px;
    align-items:start;
    padding:11px;
    border:1px solid #e1e8ea;
    border-radius:11px;
    background:#fbfcfc;
}

.tracking-answer-list article>span{
    width:30px;
    height:30px;
    display:grid;
    place-items:center;
    border-radius:8px;
    background:#e9eff0;
    color:#527078;
    font-size:10px;
    font-weight:900;
}

.tracking-answer-list article.correct{
    border-color:#cce7db;
    background:#f5fbf8;
}

.tracking-answer-list article.incorrect{
    border-color:#efd5d8;
    background:#fff9f9;
}

.tracking-answer-list h3{
    margin:2px 0 5px!important;
    color:#355863!important;
    font-size:12px!important;
}

.tracking-answer-list p{
    margin:0!important;
    color:#657d85!important;
    font-size:10px!important;
}

.tracking-answer-list article.correct>i{
    color:#218659;
}

.tracking-answer-list article.incorrect>i{
    color:#c14c58;
}

@media(max-width:1100px){
    .tracking-student-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .tracking-summary-grid.four{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .instructor-tracking-filter,
    .instructor-tracking-filter.exam{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:760px){
    .tracking-student-grid,
    .tracking-summary-grid.four,
    .tracking-profile-grid{
        grid-template-columns:1fr;
    }

    .instructor-tracking-filter,
    .instructor-tracking-filter.exam{
        grid-template-columns:1fr;
    }

    .tracking-result-card{
        grid-template-columns:86px minmax(0,1fr);
    }

    .tracking-result-action{
        grid-column:1/-1;
    }

    .tracking-module-list article{
        grid-template-columns:38px minmax(0,1fr);
    }

    .tracking-mini-progress{
        grid-column:2;
        grid-template-columns:42px minmax(0,1fr);
    }

    .tracking-attempt-header{
        grid-template-columns:1fr;
    }

    .tracking-attempt-info{
        grid-template-columns:1fr;
    }
}

@media(max-width:520px){
    .tracking-student-head{
        grid-template-columns:48px minmax(0,1fr);
    }

    .tracking-user-state{
        grid-column:2;
        justify-self:start;
    }
}


/* V29 - filtros de seguimiento: permitir botón Limpiar sin deformar */
.instructor-tracking-filter.exam{
    grid-template-columns:minmax(250px,1fr) 210px 155px 180px auto auto;
}
@media(max-width:1100px){
    .instructor-tracking-filter.exam{
        grid-template-columns:1fr 1fr;
    }
}
@media(max-width:760px){
    .instructor-tracking-filter.exam{
        grid-template-columns:1fr;
    }
}


/* =========================================================
   V30 - MIS CURSOS / TARJETAS PREMIUM INSTRUCTOR
   Mantiene la paleta verde petróleo/turquesa.
   ========================================================= */

.instructor-course-grid-v30{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:18px!important;
    align-items:stretch!important;
}

.instructor-course-card-v30{
    position:relative!important;
    min-width:0!important;
    overflow:hidden!important;
    display:flex!important;
    flex-direction:column!important;
    padding:0!important;
    border:1px solid #d1e1df!important;
    border-radius:22px!important;
    background:
        radial-gradient(circle at 100% 0%,rgba(42,164,150,.08),transparent 28%),
        linear-gradient(180deg,#ffffff 0%,#fbfdfd 100%)!important;
    box-shadow:
        0 10px 26px rgba(31,77,73,.06),
        0 2px 6px rgba(31,77,73,.03)!important;
    transition:
        transform .20s ease,
        box-shadow .20s ease,
        border-color .20s ease!important;
}

.instructor-course-card-v30:hover{
    transform:translateY(-4px)!important;
    border-color:#a9d2cd!important;
    box-shadow:
        0 18px 38px rgba(31,77,73,.11),
        0 4px 10px rgba(31,77,73,.04)!important;
}

.course-v30-accent{
    width:100%!important;
    height:5px!important;
    flex:0 0 5px!important;
    background:linear-gradient(
        90deg,
        #1f8d83 0%,
        #2ca496 52%,
        #6bc1b6 100%
    )!important;
}

.course-v30-head{
    display:flex!important;
    align-items:flex-start!important;
    gap:14px!important;
    padding:20px 20px 16px!important;
}

.course-v30-icon{
    width:58px!important;
    height:58px!important;
    min-width:58px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:17px!important;
    background:
        linear-gradient(145deg,#e8f6f3,#dff1ed)!important;
    color:#1f8d83!important;
    font-size:22px!important;
    box-shadow:
        inset 0 0 0 1px rgba(31,141,131,.08)!important;
}

.course-v30-heading{
    flex:1 1 auto!important;
    min-width:0!important;
}

.course-v30-status{
    width:max-content!important;
    max-width:100%!important;
    display:inline-flex!important;
    align-items:center!important;
    gap:5px!important;
    margin:0 0 7px!important;
    padding:5px 8px!important;
    border-radius:999px!important;
    font-size:9px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.055em!important;
}

.course-v30-status.is-active{
    background:#e4f6ee!important;
    color:#187650!important;
}

.course-v30-status.is-inactive{
    background:#f1f2f3!important;
    color:#6e7a7e!important;
}

.course-v30-heading h2{
    margin:0!important;
    color:#284f60!important;
    font-size:21px!important;
    line-height:1.18!important;
    font-weight:900!important;
    word-break:break-word!important;
}

.course-v30-heading p{
    display:-webkit-box!important;
    overflow:hidden!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
    margin:7px 0 0!important;
    color:#7f9198!important;
    font-size:11px!important;
    line-height:1.5!important;
}

.course-v30-stats{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin:0 20px!important;
    padding:14px 0 18px!important;
    border-top:1px solid #edf2f2!important;
    border-bottom:1px solid #edf2f2!important;
}

.course-v30-stats>div{
    min-width:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:7px!important;
    padding:8px 6px!important;
    border-radius:12px!important;
    background:#f6faf9!important;
}

.course-v30-stat-icon{
    width:29px!important;
    height:29px!important;
    min-width:29px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:9px!important;
    background:#e5f4f1!important;
    color:#238a80!important;
    font-size:12px!important;
}

.course-v30-stats b{
    display:block!important;
    color:#315863!important;
    font-size:13px!important;
    line-height:1!important;
    font-weight:900!important;
}

.course-v30-stats small{
    display:block!important;
    margin-top:3px!important;
    color:#84949a!important;
    font-size:8px!important;
    line-height:1!important;
    font-weight:700!important;
}

.course-v30-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:9px!important;
    margin-top:auto!important;
    padding:16px 20px 20px!important;
}

.course-v30-actions>a{
    width:100%!important;
    min-width:0!important;
    min-height:58px!important;
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr) 20px!important;
    align-items:center!important;
    gap:10px!important;
    margin:0!important;
    padding:9px 12px!important;
    border-radius:14px!important;
    box-sizing:border-box!important;
    text-decoration:none!important;
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease!important;
}

.course-v30-primary{
    border:1px solid #1f8d83!important;
    background:
        linear-gradient(135deg,#1f8d83,#2ca496)!important;
    color:#fff!important;
    box-shadow:0 8px 18px rgba(31,141,131,.16)!important;
}

.course-v30-secondary{
    border:1px solid #b8dcd7!important;
    background:#f3faf8!important;
    color:#1d796f!important;
    box-shadow:none!important;
}

.course-v30-actions>a:hover{
    transform:translateY(-1px)!important;
}

.course-v30-primary:hover{
    box-shadow:0 11px 22px rgba(31,141,131,.22)!important;
}

.course-v30-secondary:hover{
    border-color:#82c1b9!important;
    background:#eaf7f4!important;
}

.course-v30-action-icon{
    width:36px!important;
    height:36px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:10px!important;
    font-size:15px!important;
}

.course-v30-primary .course-v30-action-icon{
    background:rgba(255,255,255,.14)!important;
    color:#fff!important;
}

.course-v30-secondary .course-v30-action-icon{
    background:#dff2ee!important;
    color:#1f8379!important;
}

.course-v30-action-copy{
    min-width:0!important;
    display:block!important;
    text-align:left!important;
}

.course-v30-action-copy small{
    display:block!important;
    margin:0 0 3px!important;
    font-size:7px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.07em!important;
    opacity:.76!important;
}

.course-v30-action-copy strong{
    display:block!important;
    overflow:hidden!important;
    font-size:12px!important;
    line-height:1.2!important;
    font-weight:900!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}

.course-v30-arrow{
    justify-self:end!important;
    font-size:13px!important;
    opacity:.75!important;
    transition:transform .16s ease!important;
}

.course-v30-actions>a:hover .course-v30-arrow{
    transform:translateX(2px)!important;
}

@media(max-width:1200px){
    .instructor-course-grid-v30{
        grid-template-columns:repeat(2,minmax(0,1fr))!important;
    }
}

@media(max-width:760px){
    .instructor-course-grid-v30{
        grid-template-columns:1fr!important;
        gap:14px!important;
    }

    .course-v30-head{
        padding:17px 16px 14px!important;
    }

    .course-v30-stats{
        margin:0 16px!important;
    }

    .course-v30-actions{
        padding:14px 16px 17px!important;
    }
}

@media(max-width:430px){
    .course-v30-head{
        gap:11px!important;
    }

    .course-v30-icon{
        width:50px!important;
        height:50px!important;
        min-width:50px!important;
        border-radius:14px!important;
        font-size:19px!important;
    }

    .course-v30-heading h2{
        font-size:18px!important;
    }

    .course-v30-stats{
        gap:5px!important;
    }

    .course-v30-stats>div{
        flex-direction:column!important;
        text-align:center!important;
        gap:4px!important;
    }

    .course-v30-action-copy strong{
        white-space:normal!important;
    }
}


/* V38 - dashboard instructor con certificación presencial */
.instructor-dashboard-v38 .instructor-stats-v38{grid-template-columns:repeat(6,minmax(0,1fr))}
.instructor-dashboard-v38 .instructor-stats-v38 article{min-height:88px;padding:13px}
.instructor-dashboard-v38 .instructor-stats-v38 article>i{width:42px;height:42px;flex:0 0 42px;background:linear-gradient(135deg,#e6f5f2,#dcefeb);color:#23867b}
.instructor-dashboard-v38 .instructor-stats-v38 strong{font-size:20px}
.instructor-dashboard-v38-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:13px}
.instructor-presential-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:12px}
.instructor-presential-summary article{padding:10px;border-radius:10px;background:#f1f8f6;text-align:center}
.instructor-presential-summary small{display:block;color:#7c918d;font-size:6px;font-weight:900}
.instructor-presential-summary strong{display:block;margin-top:3px;color:#247d73;font-size:17px}
.instructor-presential-list{display:grid;gap:7px}
.instructor-presential-list>a{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;border:1px solid #dce8e5;border-radius:11px;background:#fbfdfc;color:inherit!important;text-decoration:none!important}
.instructor-presential-list>a>span{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#e6f5f1;color:#23867b}
.instructor-presential-list strong{display:block;color:#355a62;font-size:8px}
.instructor-presential-list small{display:block;color:#87999d;font-size:6px}
.instructor-presential-list b{color:#247d73;font-size:9px}
.instructor-presential-new{min-height:42px;display:flex;align-items:center;justify-content:center;gap:7px;margin-top:12px;border-radius:10px;background:linear-gradient(135deg,#1f8d83,#2ca496)!important;color:#fff!important;text-decoration:none!important;font-size:8px;font-weight:900}
@media(max-width:1250px){.instructor-dashboard-v38 .instructor-stats-v38{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.instructor-dashboard-v38-grid{grid-template-columns:1fr}}
@media(max-width:700px){.instructor-dashboard-v38 .instructor-stats-v38{grid-template-columns:repeat(2,minmax(0,1fr))}.instructor-presential-summary{grid-template-columns:1fr}}
@media(max-width:430px){.instructor-dashboard-v38 .instructor-stats-v38{grid-template-columns:1fr}}
