.htk-login-box {
    max-width: 440px;
    margin: 40px auto;
    background: #0f172a;
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    font-family: sans-serif;
}
.htk-login-head {
    text-align: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.htk-login-head h2 { color: #ef4444; margin: 0 0 5px 0; font-size: 26px; }
.htk-login-head h3 { color: #f1f5f9; margin: 0 0 5px 0; font-size: 15px; font-weight: 400; }
.htk-login-head p { color: #94a3b8; font-size: 11px; letter-spacing: 1px; }
.htk-input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #020617;
    color: #fff;
    box-sizing: border-box;
}
.htk-btn-primary {
    width: 100%;
    background: #b91c1c;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}
.htk-btn-primary:hover { background: #dc2626; }
.htk-aula-portal {
    max-width: 1100px;
    margin: 30px auto;
    font-family: sans-serif;
    color: #0f172a;
}
.htk-portal-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.htk-portal-bar h2 { margin: 0 0 5px 0; font-size: 20px; color: #fff; }
.htk-portal-bar p { margin: 0; color: #cbd5e1; font-size: 13px; }
.htk-btn-logout {
    background: #334155;
    color: #fff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
}
.htk-disc-tabs {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f1f5f9;
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.htk-disc-tabs a {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
}
.htk-disc-tabs a.active {
    background: #b91c1c;
    color: #fff;
}
.htk-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.htk-module-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
}
.htk-module-card.htk-locked {
    opacity: 0.65;
    background: #f8fafc;
    border-style: dashed;
}
.htk-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.htk-belt-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid #ccc;
}
.htk-status-badge {
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
}
.htk-status-badge.current { background: #dcfce7; color: #15803d; }
.htk-status-badge.past { background: #e0f2fe; color: #0369a1; }
.htk-status-badge.target { background: #fef08a; color: #854d0e; }
.htk-status-badge.locked { background: #fee2e2; color: #991b1b; }
.htk-locked-overlay {
    margin-top: auto;
    background: #fef2f2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    font-weight: 500;
}
.htk-access-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 15px;
}
.htk-btn-req {
    flex: 1;
    min-width: 140px;
    background: #b91c1c;
    color: #fff;
    border: none;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s;
}
.htk-btn-req:hover { background: #991b1b; }
.htk-btn-req.active,
.htk-btn-req.htk-btn-active {
    background: #7f1d1d !important;
    box-shadow: 0 0 0 2px #f87171, 0 4px 6px -1px rgba(185, 28, 28, 0.4) !important;
    transform: translateY(-1px);
}
.htk-btn-mat {
    flex: 1;
    min-width: 140px;
    background: #d97706;
    color: #fff;
    border: none;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s;
}
.htk-btn-mat:hover { background: #b45309; }
.htk-btn-mat.active,
.htk-btn-mat.htk-btn-active {
    background: #92400e !important;
    box-shadow: 0 0 0 2px #fbbf24, 0 4px 6px -1px rgba(217, 119, 6, 0.4) !important;
    transform: translateY(-1px);
}
.htk-btn-exam {
    flex: 1;
    min-width: 140px;
    background: #0f172a;
    color: #fff;
    border: 1px solid #334155;
    padding: 9px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    transition: background 0.2s;
}
.htk-btn-exam:hover { background: #1e293b; }
.htk-module-panel {
    animation: fadeIn 0.2s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Proteccion Absoluta Anti-Impresion (No Imprimir) */
@media print {
    html, body, div, p, span, h1, h2, h3, h4, h5, h6, table, img, video, iframe, .htk-aula-portal, #htk-material-modal {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
    }
    body {
        background: #000000 !important;
    }
    body::before {
        content: "⚠️ IMPRESIÓN PROHIBIDA - HTK® EVO. El material técnico y los programas de grado están protegidos por el Departamento de Derechos Intelectuales (DDI) y Marca Registrada INAPI. Francisco Mutis Mutis.";
        display: block !important;
        visibility: visible !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        font-size: 16pt !important;
        color: #b91c1c !important;
        font-weight: 800 !important;
        text-align: center !important;
        margin: 120px 40px !important;
        line-height: 1.6 !important;
    }
}

/* Proteccion Anti-Copia y Anti-Seleccion (No Guardar / No Copiar) */
.htk-aula-portal,
.htk-module-card,
.htk-module-panel,
#htk-material-modal,
#htk-security-shield {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Transicion para escudo anti-capturas de pantalla */
.htk-aula-portal,
#htk-material-modal {
    transition: filter 0.15s ease-out;
}

.htk-btn-regresar {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 12px 36px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(220,38,38,0.5);
    transition: background 0.2s, transform 0.1s;
}
.htk-btn-regresar:hover {
    background: #ef4444;
    transform: translateY(-1px);
}
.htk-btn-regresar:active {
    background: #b91c1c;
    transform: translateY(0);
}

.htk-copyright-footer {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin-top: 35px;
    line-height: 1.5;
    border-top: 1px solid #cbd5e1;
    padding-top: 16px;
}
