@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800&display=swap');

:root{
    --dw-primary: #5b5df0;
    --dw-primary-dark: #4749d7;
    --dw-secondary: #12c7b7;
    --dw-accent: #ff7a59;
    --dw-accent-soft: #ffd166;
    --dw-bg-1: #f5f8ff;
    --dw-bg-2: #eefbf9;
    --dw-bg-3: #fff7f2;
    --dw-text: #223046;
    --dw-text-soft: #5d6b82;
    --dw-white: #ffffff;
    --dw-border: rgba(34, 48, 70, 0.10);
    --dw-shadow: 0 20px 60px rgba(34, 48, 70, 0.14);
    --dw-radius-xl: 30px;
    --dw-radius-lg: 22px;
    --dw-radius-md: 16px;
    --dw-radius-sm: 12px;
    --dw-transition: all .25s ease;
}

*{
    box-sizing: border-box;
}

html,
body{
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: 'Raleway', sans-serif;
}

body.login-body{
    background:
        radial-gradient(circle at top left, rgba(91, 93, 240, .18), transparent 24%),
        radial-gradient(circle at bottom right, rgba(18, 199, 183, .18), transparent 20%),
        linear-gradient(135deg, var(--dw-bg-1) 0%, var(--dw-bg-2) 55%, var(--dw-bg-3) 100%);
    color: var(--dw-text);
}

.login-page{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-wrapper{
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: rgba(255,255,255,.70);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--dw-radius-xl);
    box-shadow: var(--dw-shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-panel{
    min-height: 720px;
}

.login-panel--brand{
    padding: 54px 48px;
    background: linear-gradient(155deg, #5b5df0 0%, #3f79ff 48%, #12c7b7 100%);
    color: var(--dw-white);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.login-panel--brand::before,
.login-panel--brand::after{
    content: "";
    position: absolute;
    border-radius: 50%;
    opacity: .14;
    background: #fff;
}

.login-panel--brand::before{
    width: 240px;
    height: 240px;
    top: -70px;
    right: -80px;
}

.login-panel--brand::after{
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -50px;
}

.brand-badge{
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
}

.brand-title{
    margin: 18px 0 12px;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.brand-text{
    margin: 0;
    max-width: 500px;
    color: rgba(255,255,255,.88);
    font-size: 1rem;
    line-height: 1.7;
}

.brand-features{
    display: grid;
    gap: 14px;
}

.feature-card{
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.14);
}

.feature-icon{
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255,255,255,.18);
    font-size: 1.15rem;
}

.feature-card strong{
    display: block;
    margin-bottom: 4px;
    font-size: .98rem;
    font-weight: 700;
}

.feature-card p{
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: .90rem;
    line-height: 1.55;
}

.login-panel--form{
    padding: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card{
    width: 100%;
    max-width: 480px;
    padding: 34px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--dw-border);
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(34, 48, 70, .08);
}

.app-mark{
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 26px;
}

.app-mark__icon{
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--dw-primary), var(--dw-secondary));
    color: var(--dw-white);
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(91, 93, 240, .24);
}

.app-mark h2{
    margin: 0 0 4px;
    font-size: 1.85rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--dw-text);
}

.app-mark p{
    margin: 0;
    color: var(--dw-text-soft);
    font-size: .95rem;
}

.login-form{
    display: block;
}

.form-group{
    margin-bottom: 18px;
}

.form-group label{
    display: inline-block;
    margin-bottom: 8px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--dw-text);
}

.form-control-modern{
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(34, 48, 70, .12);
    border-radius: 16px;
    background: #fff;
    color: var(--dw-text);
    font-size: .98rem;
    outline: none;
    transition: var(--dw-transition);
}

.form-control-modern:focus{
    border-color: rgba(91, 93, 240, .48);
    box-shadow: 0 0 0 4px rgba(91, 93, 240, .10);
}

.password-field{
    position: relative;
}

.password-field .form-control-modern{
    padding-right: 110px;
}

.password-toggle{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--dw-primary);
    font-weight: 700;
    cursor: poRaleway;
    padding: 8px 10px;
    border-radius: 10px;
    transition: var(--dw-transition);
}

.password-toggle:hover{
    background: rgba(91, 93, 240, .08);
}

.btn-primary-login{
    width: 100%;
    height: 56px;
    margin-top: 8px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--dw-primary), var(--dw-secondary));
    color: var(--dw-white);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: poRaleway;
    transition: var(--dw-transition);
    box-shadow: 0 16px 28px rgba(91, 93, 240, .22);
}

.btn-primary-login:hover{
    transform: translateY(-1px);
    box-shadow: 0 20px 32px rgba(91, 93, 240, .28);
}

.divider{
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0 18px;
    color: var(--dw-text-soft);
    font-size: .88rem;
    font-weight: 600;
}

.divider::before,
.divider::after{
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(34, 48, 70, .12);
}

.oauth-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.oauth-btn{
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    border-radius: 16px;
    border: 1px solid rgba(34, 48, 70, .10);
    background: #fff;
    color: var(--dw-text);
    font-weight: 700;
    transition: var(--dw-transition);
}

.oauth-btn:hover{
    transform: translateY(-1px);
    border-color: rgba(34, 48, 70, .18);
    box-shadow: 0 10px 22px rgba(34, 48, 70, .08);
}

.oauth-btn__icon{
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 800;
}

.oauth-btn--google .oauth-btn__icon{
    background: rgba(234, 67, 53, .12);
    color: #ea4335;
}

.oauth-btn--microsoft .oauth-btn__icon{
    background: rgba(0, 120, 215, .12);
    color: #0078d7;
}

.login-extra{
    margin-top: 20px;
    text-align: center;
}

.link-soft{
    color: var(--dw-primary);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 700;
}

.link-soft:hover{
    text-decoration: underline;
}

@media (max-width: 991px){
    .login-wrapper{
        grid-template-columns: 1fr;
    }

    .login-panel{
        min-height: auto;
    }

    .login-panel--brand{
        padding: 36px 28px;
    }

    .login-panel--form{
        padding: 28px;
    }
}

@media (max-width: 576px){
    .login-page{
        padding: 14px;
    }

    .login-panel--brand,
    .login-panel--form{
        padding: 22px;
    }

    .login-card{
        padding: 24px 18px;
        border-radius: 22px;
    }

    .oauth-grid{
        grid-template-columns: 1fr;
    }

    .brand-title{
        font-size: 2.2rem;
    }
}
/* =========================================================
   DIGITALWUT - PANEL RalewayNO
========================================================= */

.dw-app-body{
    margin: 0;
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #f4f7fb 0%, #eef7ff 100%);
    color: #223046;
}

.dw-app-layout{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.dw-sidebar{
    background: linear-gradient(180deg, #4f5cf0 0%, #1eb7c1 100%);
    color: #ffffff;
    padding: 28px 22px;
    box-shadow: 8px 0 30px rgba(34, 48, 70, .08);
}

.dw-sidebar__brand h1{
    margin: 0;
    font-size: 30px;
    font-weight: 800;
}

.dw-sidebar__brand p{
    margin: 8px 0 0;
    font-size: 14px;
    opacity: .92;
}

.dw-sidebar__user{
    margin-top: 28px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.12);
    display: grid;
    gap: 6px;
}

.dw-sidebar__user strong{
    font-size: 16px;
    font-weight: 700;
}

.dw-sidebar__user span{
    font-size: 13px;
    opacity: .92;
}

.dw-sidebar__menu{
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.dw-sidebar__menu a{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 16px;
    color: #fff;
    text-decoration: none;
    background: rgba(255,255,255,.08);
    transition: all .22s ease;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,.06);
}

.dw-sidebar__menu a i{
    width: 18px;
    text-align: center;
    font-size: 15px;
    opacity: .95;
}

.dw-sidebar__menu a span{
    flex: 1;
}

.dw-sidebar__menu a:hover{
    background: rgba(255,255,255,.18);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0,0,0,.08);
}

.dw-main{
    padding: 30px;
}

.dw-main__topbar{
    margin-bottom: 22px;
}

.dw-main__topbar h2{
    margin: 0 0 6px;
    font-size: 32px;
    font-weight: 800;
    color: #223046;
}

.dw-main__topbar p{
    margin: 0;
    color: #667085;
}

.dw-main__content{
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(34,48,70,.08);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 16px 40px rgba(34,48,70,.06);
}

.dw-page-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 22px;
}

.dw-page-header h1,
.dw-page-header h2{
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #223046;
}

.dw-page-header p{
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

.dw-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.dw-card-action{
    display: block;
    text-decoration: none;
    color: #223046;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid #e8eef5;
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 12px 24px rgba(34,48,70,.05);
    transition: all .22s ease;
    text-align: center;
}

.dw-card-action:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(34,48,70,.08);
    border-color: #d7e4ff;
}

.dw-card-action__icon{
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    background: linear-gradient(135deg, rgba(79,92,240,.14), rgba(30,183,193,.16));
    color: #3f5df5;
    font-size: 20px;
}

.dw-card-action h3{
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

.dw-card-action p{
    margin: 0;
    color: #667085;
    line-height: 1.7;
    text-align: center;
}

.dw-card-static{
    cursor: default;
}

.dw-summary{
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.dw-summary-item{
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 16px;
    padding: 16px 18px;
}

.dw-alert{
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.dw-alert-info{
    background:#fff8e1;
    border:1px solid #ffe082;
    color:#8a6d3b;
    padding:10px 14px;
    border-radius:8px;
    margin-top:10px;
    font-size:13px;
}

.dw-alert-error{
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.dw-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.dw-actions .dw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dw-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f5cf0, #1eb7c1);
    color: #fff;
    text-decoration: none;
    border: none;
    font-weight: 700;
    cursor: poRaleway;
    transition: all .2s ease;
}

.dw-btn:hover{
    transform: translateY(-1px);
}

.dw-btn-light{
    background: #eef2ff;
    color: #344054;
}

.dw-table-wrap{
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    overflow: auto;
}

.dw-table{
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.dw-table th,
.dw-table td{
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #edf2f7;
    white-space: nowrap;
}

.dw-table th{
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
}

.dw-table td:nth-child(1),
.dw-table td:nth-child(2) {
    white-space: nowrap;
    font-weight: 500;
    color: #6b7280;
    font-size: 13px;
}
.dw-table td:nth-child(4) {
    text-align: left;
}
.dw-table td:nth-child(4) span {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dw-table td {
    vertical-align: middle;
}
.dw-badge-curso {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.dw-form{
    display: block;
}

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

.dw-form-group{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dw-form-group-full{
    grid-column: 1 / -1;
}

.dw-form-group label{
    font-size: 14px;
    font-weight: 700;
    color: #223046;
}

.dw-input{
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    background: #fff;
    font-size: 15px;
    color: #223046;
    outline: none;
    transition: all .2s ease;
}

.dw-input:focus{
    border-color: #4f5cf0;
    box-shadow: 0 0 0 4px rgba(79, 92, 240, .10);
}

.dw-separador{
    border: none;
    border-top: 1px solid #e6edf5;
    margin: 28px 0;
}

.dw-loading-box{
    padding:30px;
    text-align:center;
    color:#12365A;
    font-weight:600;
}

.dw-alert-info{
    background:#eef4ff;
    border:1px solid #c9dafc;
    padding:15px;
    border-radius:10px;
    color:#12365A;
}

.dw-alert-error{
    background:#ffecec;
    border:1px solid #ffbcbc;
    padding:15px;
    border-radius:10px;
    color:#a30000;
}

.dw-input-modificado{
    background:#fff8cc !important;
    border:2px solid #f0c400 !important;
}

@media (max-width: 920px){
    .dw-app-layout{
        grid-template-columns: 1fr;
    }

    .dw-sidebar{
        padding: 20px;
    }

    .dw-main{
        padding: 18px;
    }

    .dw-main__content{
        padding: 20px;
    }

    .dw-form-grid{
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   SIDEBAR MEJORADO
========================================================= */

.dw-sidebar__brand{
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.dw-sidebar__logo-wrap{
    width: 90px;
    height: 90px;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dw-sidebar__logo-img{
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    padding: 6px;
}

.dw-sidebar__logo-fallback{
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 24px;
}

.dw-sidebar__brand-copy h1{
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.dw-sidebar__brand-copy p{
    margin: 4px 0 0;
    font-size: 13px;
    opacity: .92;
    line-height: 1.4;
}

.dw-period-form{
    margin-bottom: 20px;
    display: grid;
    gap: 8px;
}

.dw-period-form label{
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.dw-select{
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 14px;
    padding: 10px 12px;

    background: #fff; /* 🔥 fondo blanco */
    color: #223046;

    font-size: 14px;
    outline: none;
}

.dw-select:focus{
    border-color: #4f8cff;
    box-shadow: 0 0 0 2px rgba(79,140,255,.2);
}

.dw-select option{
    color: #223046;
}

.dw-sidebar{
    display: flex;
    flex-direction: column;
}

.dw-sidebar__footer{
    margin-top: auto;
    padding-top: 40px;
    font-size: 10px;
    color: rgba(255,255,255,.85);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.dw-sidebar__footer strong{
    font-size: 12px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .3px;
    text-align: center
}
/* =========================================================
   CONFIGURACIÓN
========================================================= */

.dw-config-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.dw-config-block{
    background: #ffffff;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(34,48,70,.05);
}

.dw-config-block h3{
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 800;
    color: #223046;
}

.dw-config-links{
    display: grid;
    gap: 10px;
}

.dw-config-links a{
    display: block;
    text-decoration: none;
    color: #344054;
    background: #f8fafc;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    transition: all .2s ease;
}

.dw-config-links a:hover{
    background: #eef4ff;
    border-color: #cddcff;
    color: #223046;
    transform: translateY(-1px);
}
/*---------------------------*/
/* INSTITUCIONES
/*---------------------------*/

.dw-logo-preview{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 20px;
}

.dw-logo-preview img{
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
}

/*---------------------------*/
/* BOTON EDITAR
/*---------------------------*/
.dw-btn-sm{
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
}
/*---------------------------*/
/* BOTON ELIMINAR
/*---------------------------*/
.dw-btn-danger{
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: #fff;
}

.dw-badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.dw-badge-success{
    background: #dcfce7;
    color: #166534;
}

.dw-badge-muted{
    background: #e5e7eb;
    color: #374151;
}

.dw-btn-success{
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.dw-btn-warning{
    background: linear-gradient(135deg, #d97706, #f59e0b);
    color: #fff;
}

.dw-select-light{
    width: 100%;
    min-height: 48px;
    border: 1px solid #d7e0ea;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
    color: #223046;
    font-size: 15px;
    outline: none;
    transition: all .2s ease;
}

.dw-select-light:focus{
    border-color: #4f5cf0;
    box-shadow: 0 0 0 4px rgba(79, 92, 240, .10);
}
/* ESTO ES PARA LOS BOTONES DE ELIMINAR */
.dw-btn-danger i {
    color: #fff;
}
/* =========================
   DOCUMENTOS (IMPRESIÓN)
========================= */

.pagina-doc {
    width: 100%;
    min-height: 100vh;
    position: relative;
    padding: 3cm 2cm 4cm 2cm;
    page-break-after: always;
}

/* Fondo solo cuando se imprime */
@media print {
    .pagina-doc::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        z-index: -1;
    }
    .pagina-doc {
        page-break-after: always;
    }
}
.dw-go-top{
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999;
    display: none;
    border: none;
    border-radius: 999px;
    width: 54px;
    height: 54px;
    cursor: poRaleway;
    font-size: 1.2rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
/* =========================
   TABLA CREDENCIALES (MEJORA VISUAL)
========================= */

.dw-table td{
    font-size: 14px;
    line-height: 1.4;
    vertical-align: middle;
}

.dw-table td:first-child{
    font-weight: 600;
    font-size: 14px;
    color: #223046;
}

.dw-table td:nth-child(2){
    font-size: 12px;
    color: #6b7280;
}

.dw-table td:nth-child(2) .dw-badge{
    margin-top: 4px;
    font-size: 11px;
    padding: 4px 8px;
}

.dw-table td:nth-child(3){
    font-size: 13px;
    color: #475569;
}

.dw-table td:nth-child(4){
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.dw-table td:nth-child(5){
    font-size: 12px;
    color: #6b7280;
}

.dw-table td:nth-child(6){
    text-align: center;
}

.dw-table td:nth-child(7){
    text-align: center;
}

/* BOTONES MÁS LIMPIOS */
.dw-btn-sm{
    padding: 6px 8px;
    font-size: 12px;
}

/* ESPACIADO ENTRE BOTONES */
.dw-table td .dw-btn{
    margin: 0 2px;
}
.dw-table tr:hover{
    background: #f8fafc;
}


/* REQUISITOS MATRICULAS */
/* 🔹 GRID */
.dw-requisitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* 🔹 TARJETA */
.dw-requisito-item {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 10px;
    border-radius: 8px;

    background: #f8fafc;
    border: 1px solid #e2e8f0;

    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13px;
}

/* 🔹 HOVER */
.dw-requisito-item:hover {
    background: #eef2ff;
    border-color: #6366f1;
}

/* 🔹 CHECKBOX */
.dw-requisito-item input {
    transform: scale(1.1);
}

/* 🔹 ACTIVO */
.dw-requisito-item input:checked + span {
    font-weight: 600;
    color: #2563eb;
}
/* 
mensaje de actualiza matricula
*/
.dw-toast-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28c76f, #20a45a);
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 9999;
    animation: fadeInOut 3s ease forwards;
}



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}


.dw-textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px 12px;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: all 0.2s ease;
}

.dw-textarea:focus {
    border-color: #0E1590;
    outline: none;
    box-shadow: 0 0 0 2px rgba(14, 21, 144, 0.1);
}



/* DASHBOARD RESUMEN */

/* Contenedor principal en rejilla */
.dw-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* La Tarjeta (Card) */
.dw-topic-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dw-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #0E1590;
}

/* Cabecera de la tarjeta */
.dw-topic-header {
    padding: 12px 16px;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
}

.dw-topic-number {
    font-weight: 800;
    color: #0E1590;
    font-size: 14px;
}

.dw-topic-badge {
    background: #e0e7ff;
    color: #0E1590;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Cuerpo de la tarjeta */
.dw-topic-body {
    padding: 16px;
    flex-grow: 1;
}

.dw-topic-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 700;
    line-height: 1.4;
}

.dw-topic-goal {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
    font-style: italic;
}

/* Efecto al pasar el mouse para suavizar */
.dw-time-item:hover .dw-time-dot {
    transform: scale(1.3);
    transition: all 0.2s ease;
    box-shadow: 0 0 0 5px rgba(14, 21, 144, 0.1);
}
.info-unidad {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    font-size: 13px;
    margin-top: 10px;
}

.info-unidad div {
    padding: 2px 0;
}
.dw-block {
    margin-top: 12px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #0E1590;
}

.dw-block-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0E1590;
    display: block;
    margin-bottom: 6px;
}

.dw-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}
.dw-topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 10px;
}

.dw-mini-title {
    font-size: 11px;
    font-weight: 700;
    color: #0E1590;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.dw-topic-footer {
    margin-top: 12px;
    font-size: 12px;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}

/* =========================================================
   TABS ACADÉMICOS
========================================================= */

.dw-tabs-nav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.dw-tab-link{
    border:1px solid #d7dee9;
    background:#f8fafc;
    color:#334155;
    padding:10px 18px;
    border-radius:10px;
    font-size:14px;
    font-weight:600;
    cursor:pointer;
    transition:all .2s ease;
}

.dw-tab-link:hover{
    background:#eef4ff;
    border-color:#b8c7e6;
}

.dw-tab-link.active{
    background:linear-gradient(135deg,#2563eb,#0ea5e9);
    color:#fff;
    border-color:transparent;
}

.dw-tab-link i{
    margin-right:6px;
}

.dw-tab-content{
    min-height:20px;
}

.dw-nee-info{
    margin-bottom:10px;
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.dw-nee-item{
    display:flex;
    align-items:center;
    gap:5px;
    font-size:13px;
    color:#5b7f14;
    font-weight:600;
}

.dw-nee-icon{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#9ac43c;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    cursor:pointer;
}
/* ============================================================
   MATRIZ CALIFICACIONES
============================================================ */

.dw-tabla-calificaciones tbody tr:nth-child(even){
    background: #f2f2f2;
}

.dw-tabla-calificaciones tbody tr:hover{
    background: #e1efff;
    transition: 0.2s;
}

.dw-tabla-calificaciones th,
.dw-tabla-calificaciones td{
    padding: 6px 8px;
    vertical-align: middle;
}

/* ============================================================
   ESTUDIANTE
============================================================ */

.dw-estudiante-cell{
    width: 340px;
    min-width: 340px;
    max-width: 340px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    font-size: 14px;
    font-weight: 500;
}

/* ============================================================
   COLUMNAS ACTIVIDADES
============================================================ */

.dw-col-actividad{
    width: 90px;
    min-width: 90px;
    text-align: center;
}

/* ============================================================
   INPUTS
============================================================ */

.dw-calificacion-input{
    width: 70px;
    text-align: center;
}

.dw-razon-input{
    width: 100%;
    margin-top: 4px;
    font-size: 11px;
}

/* ============================================================
   SCROLL HORIZONTAL
============================================================ */

.dw-calificaciones-wrapper{
    overflow-x: auto;
    overflow-y: hidden;
}

/* ============================================================
   NOTAS
============================================================ */

.dw-nota-readonly,
.dw-nota-recuperacion{
    display: inline-block;
    min-width: 60px;
    text-align: center;
    font-weight: 600;
}
/* ============================================================
   PAGINACIÓN CALIFICACIONES
============================================================ */

.dw-paginacion-calificaciones{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 20px;
    margin-bottom: 20px;
}

/* ============================================================
   BOTONES PAGINACIÓN
============================================================ */

.dw-page-btn{
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 12px;

    background: #edf2f7;
    color: #1e293b;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition: all .2s ease;
}

/* HOVER */

.dw-page-btn:hover{
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff;

    transform: translateY(-2px);
}

/* ACTIVA */

.dw-page-active{
    background: linear-gradient(135deg,#2563eb,#06b6d4);
    color: #fff;

    box-shadow: 0 6px 14px rgba(37,99,235,.25);
}
.dw-input-error{
    border:2px solid #dc2626 !important;
    background:#fef2f2 !important;
}
