/* ****************** 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 ****************** */



/* 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;
}