/* ****************** INICIO CSS PARA LA VISTA DE LOGIN ****************** */

/* =========================================================
   LOGIN - ESTILOS EXCLUSIVOS
   ========================================================= */

:root {
    --login-primary: #2563eb;
    --login-primary-hover: #1d4ed8;
    --login-secondary: #16a34a;
    --login-secondary-hover: #15803d;

    --login-text: #1f2937;
    --login-text-light: #6b7280;
    --login-border: #dbe1ea;
    --login-background: #ffffff;

    --login-error: #dc2626;

    --login-radius: 18px;
}


/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.login-page {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;

    pointer-events: none;
}


/* =========================================================
   CAPA SOBRE EL SLIDER
   ========================================================= */

.login-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.28);

    z-index: -1;
}


/* =========================================================
   CONTENEDOR DEL LOGIN
   ========================================================= */

.login-wrapper {
    width: 100%;
    max-width: 430px;

    display: flex;
    justify-content: center;

    pointer-events: auto;
}


/* =========================================================
   TARJETA
   ========================================================= */

.login-card {
    width: 100%;

    padding: 36px 38px 32px;

    box-sizing: border-box;

    background: rgba(255, 255, 255, 0.5);

    border: 1px solid rgba(255, 255, 255, 0.75);

    border-radius: var(--login-radius);

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.22),
        0 8px 20px rgba(0, 0, 0, 0.10);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


/* =========================================================
   LOGO
   ========================================================= */

.login-logo {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 28px;
}

.login-logo img {
    display: block;

    max-width: 210px;
    max-height: 130px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.login-form {
    width: 100%;
}


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

.login-input-group {
    position: relative;

    width: 100%;

    margin-bottom: 15px;
}


.login-input {
    width: 100%;
    height: 52px;


    padding: 0 48px 0 48px;

    box-sizing: border-box;

    border: 1px solid var(--login-border);
    border-radius: 11px;

    background: #f8fafc;

    color: var(--login-text);

    font-family: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.login-input::placeholder {
    color: #9ca3af;
}


.login-input:hover {
    border-color: #cbd5e1;
}


.login-input:focus {
    background: #ffffff;

    border-color: var(--login-primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* =========================================================
   ICONOS DE INPUT
   ========================================================= */

.login-input-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform: translateY(-50%);

    width: 20px;

    text-align: center;

    color: #94a3b8;

    font-size: 17px;

    z-index: 2;

    transition: color 0.2s ease;
}


.login-password-icon {
    left: auto;
    right: 17px;

    cursor: pointer;
}


.login-password-icon:hover {
    color: var(--login-primary);
}


.login-input-group:focus-within .login-input-icon {
    color: var(--login-primary);
}


/* =========================================================
   MENSAJE DE ERROR
   ========================================================= */

.login-error {
    width: 100%;

    min-height: 20px;

    margin: 4px 0 15px;

    box-sizing: border-box;

    color: var(--login-error);

    font-size: 14px;

    line-height: 20px;

    text-align: center;
}


/* =========================================================
   ACCESO PARA
   ========================================================= */

.login-access {
    width: 100%;

    margin-top: 5px;
}


.login-access-title {
    margin-bottom: 12px;

    color: var(--login-text);

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


/* =========================================================
   TIPOS DE USUARIO
   ========================================================= */

.login-user-types {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    width: 100%;
}


/* =========================================================
   RADIO
   ========================================================= */

.login-radio {
    position: relative;

    display: flex;
    align-items: center;

    min-height: 43px;

    padding: 0 12px;

    box-sizing: border-box;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    background: #f8fafc;

    color: #475569;

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}


.login-radio:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}


.login-radio input {
    position: absolute;

    opacity: 0;

    width: 0;
    height: 0;
}


.login-radio-mark {
    width: 17px;
    height: 17px;

    margin-right: 9px;

    box-sizing: border-box;

    border: 2px solid #94a3b8;

    border-radius: 50%;

    background: #ffffff;

    flex-shrink: 0;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.login-radio input:checked+.login-radio-mark {
    border-color: var(--login-primary);

    background:
        radial-gradient(circle,
            var(--login-primary) 0 4px,
            #ffffff 4.5px);

    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.08);
}


.login-radio:has(input:checked) {
    background: #eff6ff;
    border-color: #bfdbfe;

    color: #1d4ed8;
}


.login-radio-label {
    line-height: 18px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.login-actions {
    width: 100%;

    margin-top: 23px;
}


.login-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 50px;

    margin: 0 0 10px;

    padding: 12px 18px;

    box-sizing: border-box;

    border: none;
    border-radius: 10px;

    font-family: inherit;

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

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.login-button:last-of-type {
    margin-bottom: 0;
}


.login-button:hover {
    transform: translateY(-1px);
}


.login-button:active {
    transform: translateY(0);
}


/* =========================================================
   BOTÓN PRINCIPAL
   ========================================================= */

.login-button-primary {
    background: var(--login-primary);

    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(37, 99, 235, 0.25);
}


.login-button-primary:hover {
    background: var(--login-primary-hover);

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.32);
}


/* =========================================================
   BOTÓN PREINSCRIPCIÓN
   ========================================================= */

.login-button-secondary {
    background: var(--login-secondary);

    color: #ffffff;

    box-shadow:
        0 5px 14px rgba(22, 163, 74, 0.20);
}


.login-button-secondary:hover {
    background: var(--login-secondary-hover);

    box-shadow:
        0 7px 18px rgba(22, 163, 74, 0.27);
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 700px) {

    .login-page {
        padding: 20px;
    }

    .login-card {
        padding: 30px 28px 28px;
    }

}


/* =========================================================
   RESPONSIVE - TELEFONO
   ========================================================= */

@media (max-width: 480px) {

    .login-page {
        padding: 15px;
    }

    .login-wrapper {
        max-width: 100%;
    }

    .login-card {
        padding: 26px 22px 24px;

        border-radius: 15px;
    }

    .login-logo {
        margin-bottom: 22px;
    }

    .login-logo img {
        max-width: 175px;
        max-height: 105px;
    }

    .login-input {
        height: 49px;

        font-size: 14px;
    }

    .login-user-types {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .login-radio {
        min-height: 40px;
    }

}


/* ===================================================F======
   TELEFONOS MUY PEQUEÑOS
   ========================================================= */

@media (max-height: 650px) {

    .login-page {
        overflow-y: auto;

        align-items: flex-start;

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

    .login-card {
        padding-top: 22px;
        padding-bottom: 22px;
    }

    .login-logo {
        margin-bottom: 16px;
    }

    .login-logo img {
        max-height: 85px;
    }

}

/* ****************** FIN CSS PARA LA VISTA DE LOGIN ****************** */



/* ****************** INICIO CSS PARA LA VISTA DE PANEL ADMIN ****************** */

/* =========================================================
   MENU ADMINISTRATIVO
   CSS AISLADO
   ========================================================= */

:root {
    --admin-menu-width: 300px;

    --admin-menu-bg: #111827;
    --admin-menu-bg-secondary: #172033;

    --admin-menu-border: rgba(255, 255, 255, 0.08);

    --admin-menu-text: #e5e7eb;
    --admin-menu-text-muted: #9ca3af;

    --admin-menu-primary: #3b82f6;
    --admin-menu-primary-hover: #2563eb;

    --admin-menu-active-bg: rgba(59, 130, 246, 0.16);
    --admin-menu-active-border: #3b82f6;

    --admin-menu-hover: rgba(255, 255, 255, 0.06);

    --admin-menu-radius: 9px;
}


/* =========================================================
   BOTÓN MOBILE
   ========================================================= */

.admin-menu-mobile-button {
    position: fixed;

    top: 0;
    left: 0;

    width: 74px;
    height: 74px;

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    pointer-events: none;
}

.admin-menu-mobile-button.admin-menu-button-hidden {
    display: none !important;
}

.admin-menu-mobile-button button {
    pointer-events: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    padding: 0;

    border: none;
    border-radius: 10px;

    background: var(--admin-menu-bg);

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.20);

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.admin-menu-mobile-button button:hover {
    background: #1f2937;

    transform: translateY(-1px);
}


/* =========================================================
   MENU PRINCIPAL
   ========================================================= */

.admin-menu-sidebar {
    position: relative;

    top: 0;
    left: 0;

    width: var(--admin-menu-width);
    height: 100vh;

    display: flex;
    flex-direction: column;

    box-sizing: border-box;

    background: var(--admin-menu-bg);

    color: var(--admin-menu-text);

    border-right: 1px solid var(--admin-menu-border);

    box-shadow:
        8px 0 30px rgba(0, 0, 0, 0.12);

    z-index: 9997;

    overflow: hidden;
}


/* =========================================================
   BOTÓN CERRAR.
   ========================================================= */

.admin-menu-close {
    display: none;

    justify-content: flex-end;
    align-items: center;

    height: 55px;

    padding: 0 15px;

    box-sizing: border-box;
}


.admin-menu-close button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    padding: 0;

    border: none;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);

    color: #d1d5db;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.admin-menu-close button:hover {
    background: rgba(239, 68, 68, 0.15);

    color: #f87171;
}


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

.admin-menu-header {
    flex-shrink: 0;

    padding: 26px 20px 18px;

    box-sizing: border-box;

    border-bottom: 1px solid var(--admin-menu-border);
}


/* =========================================================
   LOGO
   ========================================================= */

.admin-menu-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 80px;

    margin-bottom: 22px;
}


.admin-menu-logo img {
    display: block;

    max-width: 185px;
    max-height: 80px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.admin-menu-search-wrapper {
    position: relative;

    width: 100%;
}


.admin-menu-search-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #6b7280;

    font-size: 14px;

    pointer-events: none;
}


.admin-menu-search {
    width: 100%;
    height: 42px;

    padding: 0 14px 0 40px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 9px;

    outline: none;

    background: rgba(255, 255, 255, 0.06);

    color: #f9fafb;

    font-family: inherit;

    font-size: 14px;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.admin-menu-search::placeholder {
    color: #6b7280;
}


.admin-menu-search:hover {
    background: rgba(255, 255, 255, 0.08);
}


.admin-menu-search:focus {
    background: rgba(255, 255, 255, 0.09);

    border-color: rgba(59, 130, 246, 0.65);

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.10);
}


/* =========================================================
   CUERPO DEL MENU
   ========================================================= */

.admin-menu-body {
    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 12px 12px 20px;

    box-sizing: border-box;
}


/* SCROLLBAR */

.admin-menu-body::-webkit-scrollbar {
    width: 6px;
}


.admin-menu-body::-webkit-scrollbar-track {
    background: transparent;
}


.admin-menu-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);

    border-radius: 10px;
}


.admin-menu-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   LISTA
   ========================================================= */

.admin-menu-body ul {
    list-style: none;

    margin: 0;
    padding: 0;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.admin-menu-section {
    display: flex;
    align-items: center;

    gap: 10px;

    min-height: 38px;

    margin-top: 10px;
    margin-bottom: 5px;

    padding: 0 10px;

    box-sizing: border-box;

    color: var(--admin-menu-text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.admin-menu-section:first-child {
    margin-top: 2px;
}


.admin-menu-section i {
    width: 18px;

    color: #64748b;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   ELEMENTO DEL MENU
   ========================================================= */

.admin-menu-item {
    position: relative;

    width: 100%;

    margin-bottom: 3px;

    border-radius: var(--admin-menu-radius);

    overflow: hidden;
}


.admin-menu-link {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 44px;

    padding: 7px 10px;

    box-sizing: border-box;

    border-radius: var(--admin-menu-radius);

    color: var(--admin-menu-text);

    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.15s ease;
}


.admin-menu-link:hover {
    background: var(--admin-menu-hover);

    color: #ffffff;

    text-decoration: none;

    transform: translateX(2px);
}


/* =========================================================
   NUMERO
   ========================================================= */

.admin-menu-number {
    flex-shrink: 0;

    width: 30px;

    color: #64748b;

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

    text-align: center;
}


/* =========================================================
   DESCRIPCION
   ========================================================= */

.admin-menu-description {
    flex: 1;

    padding-left: 4px;

    color: inherit;

    font-size: 13px;

    /* line-height: 18px; */
}


/* =========================================================
   ITEM ACTIVO
   ========================================================= */

.admin-menu-item-active {
    background: var(--admin-menu-active-bg);

    box-shadow:
        inset 3px 0 0 var(--admin-menu-active-border);
}


.admin-menu-item-active .admin-menu-link {
    color: #ffffff;
}


.admin-menu-item-active .admin-menu-number {
    color: #60a5fa;
}


.admin-menu-item-active .admin-menu-link:hover {
    background: var(--admin-menu-active-bg);

    transform: none;
}


/* =========================================================
   ESPACIO FINAL
   ========================================================= */

.admin-menu-footer-space {
    height: 10px;

    list-style: none;
}


/* =========================================================
   PIE DEL MENU
   ========================================================= */

.admin-menu-footer {
    flex-shrink: 0;

    padding: 14px 16px;

    box-sizing: border-box;

    background: var(--admin-menu-bg-secondary);

    border-top: 1px solid var(--admin-menu-border);
}


.admin-menu-footer-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr 1fr;

    gap: 7px;
}


.admin-menu-footer-buttons a {
    display: block;

    text-decoration: none;
}


/* =========================================================
   BOTONES DEL PIE
   ========================================================= */

.admin-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 38px;

    padding: 0 8px;

    box-sizing: border-box;

    border: 1px solid transparent;

    border-radius: 8px;

    font-family: inherit;

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

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.15s ease;
}


.admin-menu-button:hover {
    transform: translateY(-1px);
}


.admin-menu-button-dark {
    background: rgba(255, 255, 255, 0.07);

    border-color: rgba(255, 255, 255, 0.07);

    color: #e5e7eb;
}


.admin-menu-button-dark:hover {
    background: rgba(255, 255, 255, 0.12);
}


.admin-menu-button-gray {
    background: rgba(107, 114, 128, 0.20);

    border-color: rgba(156, 163, 175, 0.10);

    color: #d1d5db;
}


.admin-menu-button-gray:hover {
    background: rgba(239, 68, 68, 0.16);

    border-color: rgba(248, 113, 113, 0.15);

    color: #fca5a5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .admin-menu-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: var(--admin-menu-width);
        height: 100vh;

        transform: translateX(-100%);

        transition: transform 0.25s ease;

        z-index: 3000000;
    }

    .admin-menu-mobile-button {
        display: flex !important;

        position: fixed !important;

        top: 15px !important;
        left: 15px !important;

        width: 44px !important;
        height: 44px !important;

        z-index: 3000001 !important;
    }

    .admin-menu-close {
        display: flex;
    }
}


@media (min-width: 901px) {

    .admin-menu-mobile-button {
        display: none;
    }

}


/* =========================================================
   TELEFONOS
   ========================================================= */

@media (max-width: 480px) {

    :root {
        --admin-menu-width: 285px;
    }


    .admin-menu-header {
        padding: 18px 16px 15px;
    }


    .admin-menu-logo {
        min-height: 65px;

        margin-bottom: 16px;
    }


    .admin-menu-logo img {
        max-width: 160px;
        max-height: 65px;
    }


    .admin-menu-body {
        padding-left: 9px;
        padding-right: 9px;
    }


    .admin-menu-footer {
        padding: 12px;
    }

}

/* ****************** FIN CSS PARA LA VISTA DE PANEL ADMIN ****************** */


/* ****************** INICO CSS PARA LA VISTA DE PANEL DOCENTE ****************** */

/* =========================================================
   MENU DOCENTE
   CSS AISLADO
   ========================================================= */

:root {

    --doc-menu-width: 300px;

    --doc-menu-bg: #111827;
    --doc-menu-bg-secondary: #172033;

    --doc-menu-border: rgba(255, 255, 255, 0.08);

    --doc-menu-text: #e5e7eb;
    --doc-menu-text-muted: #9ca3af;

    --doc-menu-primary: #3b82f6;
    --doc-menu-primary-hover: #2563eb;

    --doc-menu-hover: rgba(255, 255, 255, 0.06);

    --doc-menu-active-bg: rgba(59, 130, 246, 0.16);

    --doc-menu-radius: 9px;
}


/* =========================================================
   BOTON MOBILE
   ========================================================= */

.doc-menu-mobile-button {

    position: fixed;

    top: 15px;
    left: 15px;

    width: 44px;
    height: 44px;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 3000001;
}


.doc-menu-mobile-button button {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 10px;

    background: var(--doc-menu-bg);

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.20);

    transition:
        background 0.2s ease,
        transform 0.15s ease;
}


.doc-menu-mobile-button button:hover {

    background: #1f2937;

    transform: translateY(-1px);
}


/* =========================================================
   PANEL
   ========================================================= */

.doc-menu-sidebar {

    position: relative;

    top: 0;
    left: 0;

    width: var(--doc-menu-width);
    height: 100vh;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

    background: var(--doc-menu-bg);

    color: var(--doc-menu-text);

    border-right:
        1px solid var(--doc-menu-border);

    box-shadow:
        8px 0 30px rgba(0, 0, 0, 0.12);

    z-index: 9997;

    overflow: hidden;
}


/* =========================================================
   BOTON CERRAR
   ========================================================= */

.doc-menu-close {

    display: none;

    justify-content: flex-end;
    align-items: center;

    height: 55px;

    padding: 0 15px;

    box-sizing: border-box;
}


.doc-menu-close button {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);

    color: #d1d5db;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.doc-menu-close button:hover {

    background: rgba(239, 68, 68, 0.15);

    color: #f87171;
}


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

.doc-menu-header {

    flex-shrink: 0;

    padding: 25px 20px 18px;

    box-sizing: border-box;

    border-bottom:
        1px solid var(--doc-menu-border);
}


/* =========================================================
   LOGO
   ========================================================= */

.doc-menu-logo {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 80px;

    margin-bottom: 20px;
}


.doc-menu-logo img {

    display: block;

    max-width: 185px;
    max-height: 80px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   INFORMACION USUARIO
   ========================================================= */

.doc-menu-user {

    width: 100%;

    text-align: center;
}


.doc-menu-user-name {

    color: #f9fafb;

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

    line-height: 20px;
}


.doc-menu-cycle {

    margin-top: 5px;

    color: var(--doc-menu-text-muted);

    font-size: 12px;
    font-weight: 500;

    line-height: 18px;
}


/* =========================================================
   CUERPO
   ========================================================= */

.doc-menu-body {

    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 12px;

    box-sizing: border-box;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.doc-menu-body::-webkit-scrollbar {

    width: 6px;
}


.doc-menu-body::-webkit-scrollbar-track {

    background: transparent;
}


.doc-menu-body::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.12);

    border-radius: 10px;
}


.doc-menu-body::-webkit-scrollbar-thumb:hover {

    background: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   LISTA
   ========================================================= */

.doc-menu-body ul {

    list-style: none;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ITEM
   ========================================================= */

.doc-menu-item {

    width: 100%;

    margin-bottom: 3px;

    border-radius: var(--doc-menu-radius);

    overflow: hidden;
}


/* =========================================================
   LINK
   ========================================================= */

.doc-menu-link {

    display: flex;

    align-items: center;

    width: 100%;
    min-height: 45px;

    padding: 7px 10px;

    box-sizing: border-box;

    border-radius: var(--doc-menu-radius);

    color: var(--doc-menu-text);

    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.15s ease;
}


.doc-menu-link:hover {

    background: var(--doc-menu-hover);

    color: #ffffff;

    text-decoration: none;

    transform: translateX(2px);
}


/* =========================================================
   ICONO
   ========================================================= */

.doc-menu-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 34px;

    color: #94a3b8;

    font-size: 15px;

    text-align: center;
}


.doc-menu-icon img {

    width: 18px;
    height: 18px;

    object-fit: contain;
}


/* =========================================================
   DESCRIPCION
   ========================================================= */

.doc-menu-description {

    flex: 1;

    padding-left: 7px;

    color: inherit;

    font-size: 13px;

    line-height: 18px;
}


/* =========================================================
   ESTADO HOVER ICONO
   ========================================================= */

.doc-menu-link:hover .doc-menu-icon {

    color: #60a5fa;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .doc-menu-sidebar {

        position: fixed;

        top: 0;
        left: 0;

        width: var(--doc-menu-width);
        height: 100vh;

        transform: translateX(-100%);

        transition:
            transform 0.25s ease;

        z-index: 3000000;
    }


    .doc-menu-mobile-button {

        display: flex;

        position: fixed;

        top: 15px;
        left: 15px;

        z-index: 3000001;
    }


    .doc-menu-close {

        display: flex;
    }

}


/* =========================================================
   ESCRITORIO
   ========================================================= */

@media (min-width: 901px) {

    .doc-menu-mobile-button {

        display: none;
    }

}


/* =========================================================
   TELEFONOS
   ========================================================= */

@media (max-width: 480px) {

    :root {

        --doc-menu-width: 285px;
    }


    .doc-menu-header {

        padding: 18px 16px 15px;
    }


    .doc-menu-logo {

        min-height: 65px;

        margin-bottom: 16px;
    }

    .doc-menu-logo img {

        max-width: 160px;
        max-height: 65px;
    }


    .doc-menu-body {

        padding-left: 9px;
        padding-right: 9px;
    }

}

/* =========================================================
   ESTADO ACTIVO
   ========================================================= */

.doc-menu-item.active .doc-menu-link,
.doc-menu-link.active {
    background: var(--doc-menu-active-bg);
    color: #ffffff;
}

.doc-menu-item.active .doc-menu-icon,
.doc-menu-link.active .doc-menu-icon {
    color: #60a5fa;
}

/* ****************** FIN CSS PARA LA VISTA DE PANEL DOCENTE ****************** */

/* ****************** INICIO CSS PARA LA VISTA DE PANEL ESTUDIANTE ****************** */

/* =========================================================
   MENU ESTUDIANTE
   CSS AISLADO
   ========================================================= */

:root {

    --est-menu-width: 230px;

    --est-menu-bg: #111827;
    --est-menu-bg-secondary: #172033;

    --est-menu-border: rgba(255, 255, 255, 0.08);

    --est-menu-text: #e5e7eb;
    --est-menu-text-muted: #9ca3af;

    --est-menu-primary: #3b82f6;
    --est-menu-primary-hover: #2563eb;

    --est-menu-hover: rgba(255, 255, 255, 0.06);

    --est-menu-active-bg: rgba(59, 130, 246, 0.16);

    --est-menu-radius: 9px;
}


/* =========================================================
   BOTON MOBILE
   ========================================================= */

.est-menu-mobile-button {

    position: fixed;

    top: 15px;
    left: 15px;

    width: 44px;
    height: 44px;

    display: none;

    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 10px;

    background: var(--est-menu-bg);

    color: #ffffff;

    font-size: 18px;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.20);

    transition:
        background 0.2s ease,
        transform 0.15s ease;

    z-index: 3000001;
}


.est-menu-mobile-button:hover {

    background: #1f2937;

    transform: translateY(-1px);
}


/* =========================================================
   PANEL
   ========================================================= */

.est-menu-sidebar {

    position: relative;

    top: 0;
    left: 0;

    width: var(--est-menu-width);
    height: 100vh;

    display: flex;

    flex-direction: column;

    box-sizing: border-box;

    background: var(--est-menu-bg);

    color: var(--est-menu-text);

    border-right:
        1px solid var(--est-menu-border);

    box-shadow:
        8px 0 30px rgba(0, 0, 0, 0.12);

    z-index: 9997;

    overflow: hidden;
}


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

.est-menu-header {

    flex-shrink: 0;

    padding: 25px 20px 18px;

    box-sizing: border-box;

    border-bottom:
        1px solid var(--est-menu-border);
}


/* =========================================================
   LOGO
   ========================================================= */

.est-menu-logo {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 80px;

    margin-bottom: 20px;
}


.est-menu-logo img {

    display: block;

    max-width: 185px;
    max-height: 80px;

    width: auto;
    height: auto;

    object-fit: contain;
}


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

.est-menu-user {

    width: 100%;

    text-align: center;
}


.est-menu-user-name {

    color: #f9fafb;

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

    line-height: 20px;
}


.est-menu-cycle {

    margin-top: 5px;

    color: var(--est-menu-text-muted);

    font-size: 12px;
    font-weight: 500;

    line-height: 18px;
}


/* =========================================================
   CUERPO
   ========================================================= */

.est-menu-body {

    flex: 1;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 12px;

    box-sizing: border-box;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.est-menu-body::-webkit-scrollbar {

    width: 6px;
}


.est-menu-body::-webkit-scrollbar-track {

    background: transparent;
}


.est-menu-body::-webkit-scrollbar-thumb {

    background: rgba(255, 255, 255, 0.12);

    border-radius: 10px;
}


.est-menu-body::-webkit-scrollbar-thumb:hover {

    background: rgba(255, 255, 255, 0.20);
}


/* =========================================================
   LISTA
   ========================================================= */

.est-menu-body ul {

    list-style: none;

    margin: 0;
    padding: 0;
}


/* =========================================================
   ITEM
   ========================================================= */

.est-menu-item {

    width: 100%;

    margin-bottom: 3px;

    border-radius: var(--est-menu-radius);

    overflow: hidden;

    /* display: flex;
    flex-direction: row; */
}


/* =========================================================
   LINK
   ========================================================= */

.est-menu-link {

    display: flex;

    align-items: center;

    width: 100%;
    min-height: 45px;

    padding: 7px 10px;

    box-sizing: border-box;

    border-radius: var(--est-menu-radius);

    color: var(--est-menu-text);

    text-decoration: none;

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.15s ease;
}


.est-menu-link:hover {

    background: var(--est-menu-hover);

    color: #ffffff;

    text-decoration: none;

    transform: translateX(2px);
}


/* =========================================================
   ICONO
   ========================================================= */

.est-menu-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 34px;

    color: #94a3b8;

    font-size: 15px;

    text-align: center;
}


.est-menu-icon img {

    width: 18px;
    height: 18px;

    object-fit: contain;
}


/* =========================================================
   DESCRIPCION
   ========================================================= */

.est-menu-description {

    flex: 1;

    padding-left: 7px;

    color: inherit;

    font-size: 13px;

    line-height: 18px;
}


/* =========================================================
   ESTADO HOVER ICONO
   ========================================================= */

.est-menu-link:hover .est-menu-icon {

    color: #60a5fa;
}


/* =========================================================
   BOTON CERRAR
   ========================================================= */

.est-menu-close {

    display: none;

    justify-content: flex-end;
    align-items: center;

    height: 55px;

    padding: 0 15px;

    box-sizing: border-box;
}


.est-menu-close button {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 9px;

    background: rgba(255, 255, 255, 0.07);

    color: #d1d5db;

    font-size: 17px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.est-menu-close button:hover {

    background: rgba(239, 68, 68, 0.15);

    color: #f87171;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .est-menu-sidebar {

        position: fixed;

        top: 0;
        left: 0;

        width: var(--est-menu-width);
        height: 100vh;

        transform: translateX(-100%);

        transition:
            transform 0.25s ease;

        z-index: 3000000;
    }


    .est-menu-mobile-button {

        display: flex;

        position: fixed;

        top: 15px;
        left: 15px;

        z-index: 3000001;
    }


    .est-menu-close {

        display: flex;
    }

}


/* =========================================================
   ESCRITORIO
   ========================================================= */

@media (min-width: 901px) {

    .est-menu-mobile-button {

        display: none;
    }

}


/* =========================================================
   TELEFONOS
   ========================================================= */

@media (max-width: 480px) {

    :root {

        --est-menu-width: 285px;
    }


    .est-menu-header {

        padding: 18px 16px 15px;
    }


    .est-menu-logo {

        min-height: 65px;

        margin-bottom: 16px;
    }


    .est-menu-logo img {

        max-width: 160px;
        max-height: 65px;
    }


    .est-menu-body {

        padding-left: 9px;
        padding-right: 9px;
    }

}


/* =========================================================
   ESTADO ACTIVO
   ========================================================= */

.est-menu-item.active .est-menu-link,
.est-menu-link.active {

    background: var(--est-menu-active-bg);

    color: #ffffff;
}


.est-menu-item.active .est-menu-icon,
.est-menu-link.active .est-menu-icon {

    color: #60a5fa;
}

/* =========================================================
   ESTRUCTURA LEGACY DEL MENU
   <a>
       <li>
           <i>
           <label>
       </li>
   </a>
   ========================================================= */

.est-menu-body>ul>a {

    display: block;

    width: 100%;

    color: inherit;

    text-decoration: none;
}


.est-menu-body>ul>a:hover {

    text-decoration: none;
}


.est-menu-body>ul>a>.est-menu-item {

    display: flex;

    align-items: center;

    width: 100%;
    /* min-height: 45px; */

    /* padding: 7px 10px; */

    box-sizing: border-box;

    border-radius: var(--est-menu-radius);

    color: var(--est-menu-text);

    transition:
        background 0.18s ease,
        color 0.18s ease,
        transform 0.15s ease;
}


/* ICONO */

.est-menu-body>ul>a>.est-menu-item>.est-menu-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 34px;

    color: #94a3b8;

    font-size: 15px;

    text-align: center;
}


/* TEXTO */

.est-menu-body>ul>a>.est-menu-item>.est-menu-description {

    flex: 1;

    padding-left: 7px;

    color: inherit;

    font-size: 13px;

    line-height: 18px;
}


/* HOVER */

.est-menu-body>ul>a:hover>.est-menu-item {

    background: var(--est-menu-hover);

    color: #ffffff;

    transform: translateX(2px);
}


.est-menu-body>ul>a:hover>.est-menu-item>.est-menu-icon {

    color: #60a5fa;
}



/* ****************** FIN CSS PARA LA VISTA DE PANEL ESTUDIANTE ****************** */






/* 21-09-2026 */

/* --- Estilos de la Modal --- */
.ns-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fondo oscuro semitransparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.ns-modal-container {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 600px;
    /* Ancho máximo adaptable */
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cabecera */
.ns-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.ns-modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.ns-modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.ns-modal-close-btn:hover {
    color: #000;
}

/* Formulario y Grupos */
.ns-modal-form {
    padding: 20px;
    overflow-y: auto;
    /* Permite scroll si el contenido excede la pantalla */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ns-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ns-form-group label {
    font-size: 0.85rem;
    font-weight: bold;
    color: #555;
}

.ns-form-select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
}

.ns-form-select:focus {
    border-color: #007bff;
    outline: none;
}

.ns-form-select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Tabla */
.ns-courses-section {
    margin-top: 10px;
}

.ns-section-subtitle {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #333;
}

.ns-table-responsive {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}


.ns-text-center {
    text-align: center;
    color: #777;
}

/* Footer / Botones */
.ns-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}
