* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 1. Registrar la fuente de Glyphicons */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('glyphicons-halflings-regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}
/* ==========================================================================
   PANTALLA DE CARGA (LOADING SCREEN) SOBREPUESTA Y CENTRADA
   ========================================================================== */

#loadingScreen {
    display: none; /* Oculto por defecto */
    position: fixed; /* Se fija en toda la pantalla, sin importar el scroll */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.85); 
    z-index: 9999; /* Asegura que esté por encima de cualquier otro elemento visual (modales, inputs, etc.) */
    
    /* Flexbox para centrar horizontal y verticalmente el spinner-container */
    align-items: center;
    justify-content: center;
}

/* Cuando se le añade la clase .active desde JS, se activa el contenedor con flex */
#loadingScreen.active {
    display: flex !important;
}

/* Animación de rotación infinita para el Spinner */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Opcional: Si quieres que el spinner sea redondo, 
   asegúrate de que tenga border-radius: 50% en el CSS 
   por si el atributo inline tiene problemas de mayúsculas (borderRadius)
*/
#loadingScreen .spinner {
    border-radius: 50%;
}

/* Oculta los pasos por defecto */
.step-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s evase-in-out;
}

/* Muestra el paso que tiene la clase activa */
.step-container.active {
    display: block;
    opacity: 1;
}

/* Estilo para el overlay de carga (loader) */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
/* 2. Clase base para aplicar la fuente */
.glyphicon {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: "Glyphicons Halflings" !important; /* Forzamos que los que lleven esta clase SÍ usen la fuente */
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; 
}

/* Lista de iconos mapeados */
.glyphicon-exclamation-sign::before {
    color: #0097a7;
    content: "\e101"; 
}
.glyphicon-lock::before {
    content: "\e033"; 
}
.glyphicon-eye-open::before {
    content: "\e105"; 
}
.glyphicon-ok::before {
    content: "\e013"; 
}

.container {
    display: flex;
    width: 100%;
    height: 100vh;
}

/* PANELES PRINCIPALES */
.left-panel {
    width: 35%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    overflow-y: auto;
}

.right-panel {
    width: 65%;
    background-color: #2d2d2d;
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* COMPONENTES INTERNOS */
.login-box {
    width: 100%;
    max-width: 360px;
}

.logo {
    max-width: 350px;
    margin-bottom: 25px;
}

.subtitle {
    font-size: 18px;
    color: #555;
    font-weight: normal;
    margin-bottom: 20px;
}

.alert-box {
    background-color: #e6f7f8;
    border: 1px solid #b2e3e6;
    padding: 12px;
    border-radius: 4px;
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.alert-icon {
    color: #0097a7;
    font-weight: bold;
}

.alert-box p {
    font-size: 13px;
    color: #00a4a8;
    line-height: 1.42857143;
}

/* FORMULARIO */
.checkbox-container {
    margin-bottom: 15px;
    font-size: 13px;
    color: #333;
}

.input-group {
    margin-bottom: 18px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.label-row label {
    font-size: 12px;
    font-weight: bold;
    color: #555;
}

.forgot-link {
    font-size: 12px;
    color: #0097a7;
    text-decoration: none;
    font-weight: bold;
}

/* ENVOLTORIO DE INPUTS */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    height: 35px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    background-color: #f5f5f5;
    outline: none;
    transition: border-color 0.2s;
}

.input-wrapper input:focus {
    border-color: #0097a7;
    background-color: #f9f9f9;
}

.password-wrapper input {
    padding-left: 35px;
}

.lock-icon {
    position: absolute;
    left: 12px;
    top: 10px;
    color: #bcbbbb;
    font-size: 13px;
}

/* SOLUCIÓN TOTAL A LOS CHULOS INVISIBLES Y GRUESOS */
.check-icon {
    position: absolute;
    right: -25px; 
    color: #0097a7;
    font-size: 16px;
    display: none; /* JS controla su visibilidad */
    
    /* Forzamos a que use la tipografía del sistema (Arial) para pintar el caracter ✓ limpio y delgado */
    font-family: Arial, sans-serif !important; 
    font-weight: normal !important;                 
    font-style: normal !important;
}

/* MOSTRAR CONTRASEÑA */
.toggle-password-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 25px;
}

.toggle-btn {
    background: none;
    border: none;
    color: #0097a7;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* BOTONES */
.btn-submit {
    width: 50%;
    padding: 14px;
    background-color: #f4f3f2; 
    color: #393939;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    cursor: not-allowed;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    margin-bottom: 12px;
}

.btn-submit:enabled {
    background-color: #0097a7;
    color: white;
    border: none;
    cursor: pointer;
}

.btn-register {
    width: 50%;
    padding: 14px;
    background-color: #0097a7;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.arrow {
    font-weight: bold;
}

.footer-logos {
    margin-top: 30px;
    text-align: center;
}

.norton-logo {
    max-width: 50%;
}
/* CONTROL DE PASOS (SPA FLUJO) */
.step-container {
    display: none; /* Oculta los pasos por defecto */
    width: 100%;
}

.step-container.active {
    display: block; /* Solo muestra el paso que tenga la clase 'active' */
}

/* ESTILOS PASO 2 */
.welcome-section {
    margin-bottom: 25px;
}

.greeting {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.user-fullname {
    font-size: 24px;
    color: #333;
    font-weight: normal;
    line-height: 1.2;
    text-transform: uppercase;
}

.info-text {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 25px;
}

.timer-bold {
    font-weight: bold;
}

.input-wrapper input::placeholder {
    color: #bbb;
}
/* ==========================================
   ESTILOS DE LA INTERFAZ DE PREGUNTAS (INTERNA)
   ========================================== */
.dashboard-layout {
    display: none; /* Oculto inicialmente */
    width: 100%;
    height: 100vh;
    background-color: #f7f9fa;
    flex-direction: column;
}

/* NAVBAR SUPERIOR */
.navbar {
    height: 65px;
    background: #ffffff;
    border-bottom: 1px solid #e3e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
}
.nav-logo { max-height: 32px; }
.nav-actions { display: flex; align-items: center; gap: 20px; font-size: 13px; color: #555; }
.nav-item { cursor: pointer; position: relative; }
.badge { background: #0097a7; color: white; padding: 2px 6px; border-radius: 50%; font-size: 10px; }
.lang-select { border: 1px solid #ccc; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.btn-logout { background: none; border: 1px solid #333; padding: 5px 15px; border-radius: 15px; font-weight: bold; cursor: pointer; }

/* CUERPO CENTRAL */
.dashboard-body { display: flex; flex: 1; height: calc(100vh - 65px); }

/* SIDEBAR LATERAL */
.sidebar { width: 260px; background: #ffffff; border-right: 1px solid #e3e7eb; padding: 20px; }
.user-avatar-box { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.avatar-circle { width: 45px; height: 45px; background: #0097a7; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 16px; }
.user-info-side h3 { font-size: 12px; color: #333; margin-bottom: 2px; }
.user-info-side p { font-size: 11px; color: #888; }
.menu-dropdown { border: 1px solid #00a4a8; color: #0097a7; padding: 10px; border-radius: 4px; display: flex; justify-content: space-between; font-weight: bold; font-size: 14px; cursor: pointer; margin-bottom: 15px; }
.video-box { background: #5bc0de; color: white; padding: 25px 15px; text-align: center; font-weight: bold; border-radius: 4px; cursor: pointer; font-size: 16px; }

/* PANEL DE CONTENIDO PRINCIPAL */
.main-content { flex: 1; padding: 40px; overflow-y: auto; background: #ffffff; }
.section-title { font-size: 26px; font-weight: normal; color: #444; margin-bottom: 30px; }

/* STEPPER */
.stepper { display: flex; align-items: center; margin-bottom: 40px; max-width: 600px; }
.step { display: flex; flex-direction: column; align-items: center; font-size: 13px; color: #bbb; position: relative; width: 80px; }
.step p { margin-top: 8px; font-weight: bold; white-space: nowrap; }
.step-number { width: 30px; height: 30px; border: 2px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; background: white; }
.step-line { flex: 1; height: 2px; background: #ddd; margin-bottom: 22px; }

/* Estados activos del Stepper */
.step.active .step-number { border-color: #0097a7; color: #0097a7; }
.step.active p { color: #0097a7; }
.step-line.active { background: #0097a7; }

/* GRILLA DE PREGUNTAS (DOS COLUMNAS SIMÉTRICAS) */
.questions-grid { display: none; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 30px; }
.questions-grid.active { display: grid; }
.question-item { display: flex; flex-direction: column; gap: 8px; }
.question-item label { font-size: 13px; color: #555; font-weight: 500; }
.input-q { width: 100%; height: 38px; border: 1px solid #ccc; border-radius: 4px; padding: 10px; background-color: #fcfcfc; outline: none; transition: border-color 0.2s; }
.input-q:focus { border-color: #0097a7; background-color: #fff; }

/* Botones en gris por defecto */
.btn-gray { background-color: #d6d6d6 !important; color: #ffffff !important; border: none !important; cursor: not-allowed; width: 120px !important; }
.btn-gray:enabled { background-color: #0097a7 !important; cursor: pointer; }
.btn-container-right { display: flex; justify-content: flex-end; margin-top: 20px; }

/* Icono de la campana para Alertas */
.glyphicon-bell::before {
    content: "\e123";
    margin-right: 5px; /* Separa sutilmente el icono del texto "Alertas" */
}

/* Icono del avatar para Mi Cuenta */
.glyphicon-user::before {
    content: "\e008";
    margin-right: 5px; /* Separa sutilmente el icono del texto "Mi Cuenta" */
}
/* ==========================================
   CSS RESPONSIVE PARA DISPOSITIVOS MÓVILES
   ========================================== */
@media (max-width: 768px) {
    /* 1. Ocultar el panel derecho del banner */
    .right-panel {
        display: none !important;
    }

    /* 2. Hacer que el panel del formulario ocupe todo el ancho */
    .left-panel {
        width: 100% !important;
        padding: 20px;
        background-color: #ffffff; /* Fondo grisáceo claro como el de tu captura */
    }

    .container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .login-box {
        max-width: 100%;
        padding: 10px;
    }

    /* 3. Invertir y alinear los botones (Regístrese izquierda, Ingresar derecha) */
    form div[style*="text-align: -webkit-right"] {
        display: flex !important;
        flex-direction: row-reverse !important; /* Esto cambia el orden visual sin tocar el HTML */
        justify-content: space-between !important;
        gap: 15px !important;
        text-align: left !important;
        margin-top: 20px;
    }

    .btn-submit, .btn-register {
        width: 48% !important; /* Ajustan perfecto uno al lado del otro */
        margin-bottom: 0 !important;
    }
    
    /* Ajuste de posición de los chulitos en pantallas pequeñas */
    .check-icon {
        right: 10px !important; /* Los mete sutilmente dentro o al borde por si la pantalla es muy angosta */
    }
}
/* ==========================================
   CSS RESPONSIVE COMPLETO (LOGIN + PREGUNTAS)
   ========================================== */
@media (max-width: 768px) {
    /* --- 1. AJUSTES GENERALES DEL CONTENEDOR --- */
    .right-panel {
        display: none !important;
    }

    .left-panel {
        width: 100% !important;
        padding: 0 !important; /* Dejamos en 0 para que el Navbar interno pegue a los bordes */
        background-color: #f7f9fa;
    }

    .container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    /* Padding de respaldo solo para la caja de login pública */
    .login-box {
        max-width: 100%;
        padding: 30px 20px;
        margin: 0 auto;
    }

    /* --- 2. LOGICA DE BOTONES DEL LOGIN (INVERSIÓN) --- */
    form div[style*="text-align: -webkit-right"] {
        display: flex !important;
        flex-direction: row-reverse !important; 
        justify-content: space-between !important;
        gap: 15px !important;
        text-align: left !important;
        margin-top: 20px;
    }

    .btn-submit, .btn-register {
        width: 48% !important;
        margin-bottom: 0 !important;
    }

    /* --- 3. RESPONSIVE DE PREGUNTAS (INTERFAZ INTERNA) --- */
    
    /* El cuerpo del dashboard se vuelve vertical en mobile */
    .dashboard-body {
        flex-direction: column !important;
        height: auto !important;
    }

    /* Ocultamos o colapsamos el Sidebar lateral en mobile como los bancos reales */
    .sidebar {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid #e3e7eb;
        padding: 15px 20px !important;
    }
    
    .user-avatar-box {
        margin-bottom: 15px !important;
    }

    .video-box {
        padding: 15px !important; /* Más compacto en mobile */
    }

    /* Ajuste del contenedor de contenido principal */
    .main-content {
        padding: 20px !important;
    }

    .section-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
    }

    /* Reducimos el Stepper para que no se desborde */
    .stepper {
        margin-bottom: 30px !important;
    }
    
    .step p {
        font-size: 11px !important;
    }

    /* CRÍTICO: La grilla de preguntas pasa de 2 columnas a 1 sola columna */
    .questions-grid {
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }

    /* Ajuste fino para la posición de los chulitos en mobile */
    .check-icon {
        right: 10px !important; /* Los mete sutilmente dentro del input al borde derecho */
    }

    /* El botón Aceptar de las preguntas toma el 100% en pantallas pequeñas */
    .btn-container-right {
        width: 100% !important;
    }
    
    .btn-gray {
        width: 100% !important;
    }
}