/* =========================================== */
/* SISTEMA DE DISEÑO PREMIUM - STOP TECH PRO */
/* =========================================== */

/* Variables del Sistema de Diseño - Premium */
:root {
    /* Sistema de color - Premium con gradientes */
    --red-primary: #E50914;
    --red-secondary: #B20710;
    --red-accent: rgba(229, 9, 20, 0.1);
    --red-border: rgba(229, 9, 20, 0.2);
    --red-gradient: linear-gradient(135deg, #E50914, #FF2E2E);
    --red-gradient-hover: linear-gradient(135deg, #FF2E2E, #E50914);
    
    /* Escala de grises - Premium */
    --black: #000000;
    --gray-950: #0A0A0A;
    --gray-900: #111111;
    --gray-850: #1A1A1A;
    --gray-800: #222222;
    --gray-700: #333333;
    --gray-600: #444444;
    --gray-500: #666666;
    --gray-400: #888888;
    --gray-300: #AAAAAA;
    --gray-200: #CCCCCC;
    --gray-100: #E5E5E5;
    --white: #FFFFFF;
    
    /* Sistema de espaciado optimizado */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 28px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;
    --space-10: 56px;
    --space-12: 64px;
    --space-14: 72px;
    --space-16: 80px;
    
    /* Sistema de border-radius - Suave */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    
    /* Tipografía optimizada */
    --text-xs: 13px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-md: 18px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 28px;
    --text-3xl: 32px;
    --text-4xl: 36px;
    
    /* Efectos premium */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-red: 0 8px 32px rgba(229, 9, 20, 0.25);
    --glow-red: 0 0 60px rgba(229, 9, 20, 0.2);
}

/* Reset premium */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* =========================================== */
/* FONDO SIMPLIFICADO SIN IMAGEN */
/* =========================================== */

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: var(--text-base);
    font-weight: 400;
    line-height: 1.5;
    color: var(--gray-200);
    
    /* FONDO SIMPLE Y ELEGANTE */
    background: linear-gradient(
        135deg,
        #0A0A0A 0%,
        #111111 50%,
        #000000 100%
    );
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

/* =========================================== */
/* MENÚ MÓVIL - NUEVA ESTRUCTURA */
/* =========================================== */

/* Menú superior móvil */
.menu-movil {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    padding: 0 var(--space-4);
    align-items: center;
    justify-content: space-between;
}

.boton-menu-movil {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: var(--red-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--text-lg);
    transition: all 0.3s ease;
}

.boton-menu-movil:hover {
    background: rgba(229, 9, 20, 0.2);
    transform: scale(1.05);
}

.logo-movil {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-mini {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-movil span {
    font-weight: 600;
    color: var(--white);
    font-size: var(--text-md);
}

/* Panel del menú móvil */
.panel-menu-movil {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(165deg, 
        rgba(25, 25, 25, 0.98) 0%,
        rgba(20, 20, 20, 0.99) 100%);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.panel-menu-movil.mostrar {
    left: 0;
}

.cabecera-menu-movil {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
}

.logo-menu-movil {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.logo-menu-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(var(--glow-red));
}

.logo-menu-texto h3 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: 2px;
}

.logo-menu-texto p {
    color: var(--gray-400);
    font-size: var(--text-xs);
}

.cerrar-menu-movil {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-300);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cerrar-menu-movil:hover {
    background: rgba(229, 9, 20, 0.2);
    color: var(--white);
    transform: rotate(90deg);
}

.contenido-menu-movil {
    padding: var(--space-5) var(--space-4);
}

.titulo-menu-movil {
    color: var(--gray-300);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Características en menú móvil */
.caracteristicas-menu {
    margin-bottom: var(--space-6);
}

.caracteristica-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.caracteristica-menu:hover {
    background: rgba(229, 9, 20, 0.08);
    border-color: rgba(229, 9, 20, 0.2);
    transform: translateX(5px);
}

.caracteristica-menu i {
    font-size: var(--text-lg);
    color: var(--red-primary);
    width: 40px;
    height: 40px;
    background: rgba(229, 9, 20, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.caracteristica-menu h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-100);
    margin-bottom: 2px;
}

.caracteristica-menu p {
    font-size: var(--text-xs);
    color: var(--gray-400);
}

/* Información del sistema en móvil */
.info-sistema-movil {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--space-6);
}

.info-sistema-movil h4 {
    color: var(--white);
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.info-sistema-movil p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.enlace-soporte-movil {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-300);
    text-decoration: none;
    font-size: var(--text-sm);
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.enlace-soporte-movil:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--red-primary);
}

/* Overlay del menú */
.overlay-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 1001;
}

.overlay-menu.mostrar {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* =========================================== */
/* CONTENEDOR PRINCIPAL */
/* =========================================== */

.contenedor-login {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-6);
    position: relative;
    z-index: 1;
}

/* =========================================== */
/* PANEL IZQUIERDO - PREMIUM COMPACTO */
/* =========================================== */

.panel-izquierdo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    position: relative;
}

/* Línea decorativa sutil */
.panel-izquierdo::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(229, 9, 20, 0.3), 
        transparent);
}

.contenido-panel {
    max-width: 520px;
    width: 100%;
}

/* Logo container - ELEGANTE */
.logo-contenedor-grande {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-sistema-grande {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(var(--glow-red));
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.logo-sistema-grande:hover {
    transform: scale(1.05);
}

.efecto-luminoso-grande {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, 
        rgba(229, 9, 20, 0.15) 0%, 
        rgba(229, 9, 20, 0.05) 40%, 
        transparent 70%);
    border-radius: 50%;
    animation: resplandor-sutil 6s ease-in-out infinite;
}

@keyframes resplandor-sutil {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.05);
    }
}

/* Características - COMPACTAS Y ELEGANTES */
.caracteristicas {
    margin: var(--space-8) 0;
}

.caracteristica {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.caracteristica:hover {
    border-color: rgba(229, 9, 20, 0.3);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.caracteristica:last-child {
    margin-bottom: 0;
}

.caracteristica i {
    font-size: var(--text-lg);
    color: var(--red-primary);
    width: 44px;
    height: 44px;
    background: rgba(229, 9, 20, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.caracteristica:hover i {
    background: rgba(229, 9, 20, 0.15);
    transform: scale(1.1);
}

.caracteristica h3 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-100);
    margin-bottom: 2px;
    line-height: 1.3;
}

.caracteristica p {
    font-size: var(--text-sm);
    color: var(--gray-400);
    line-height: 1.4;
}

/* Información del sistema (solo en desktop) */
.info-sistema {
    margin-top: var(--space-8);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-sistema h4 {
    color: var(--white);
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.info-sistema p {
    color: var(--gray-400);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* =========================================== */
/* PANEL DERECHO - FORMULARIO COMPACTO PREMIUM */
/* =========================================== */

.panel-derecho {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

/* Contenedor del formulario - COMPACTO Y PREMIUM */
.contenedor-formulario {
    max-width: 440px;
    width: 100%;
    background: linear-gradient(165deg, 
        rgba(30, 30, 30, 0.95) 0%,
        rgba(25, 25, 25, 0.98) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-8) var(--space-7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        var(--shadow-lg),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

/* Borde animado superior */
.contenedor-formulario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--red-primary),
        var(--red-secondary),
        transparent);
    animation: borde-animado 3s linear infinite;
}

@keyframes borde-animado {
    0% { background-position: -200px 0; }
    100% { background-position: calc(100% + 200px) 0; }
}

/* Encabezado del formulario - COMPACTO */
.encabezado-formulario {
    text-align: center;
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.icono-seguridad {
    width: 68px;
    height: 68px;
    background: var(--red-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
    font-size: var(--text-xl);
    color: white;
    box-shadow: var(--shadow-red);
    position: relative;
    transition: all 0.3s ease;
}

.icono-seguridad:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 12px 40px rgba(229, 9, 20, 0.4);
}

.icono-seguridad::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--red-gradient);
    border-radius: inherit;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}

.titulo-formulario {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-1);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.subtitulo-formulario {
    font-size: var(--text-sm);
    color: var(--gray-300);
    font-weight: 400;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Formulario - COMPACTO */
.formulario-login {
    margin-bottom: var(--space-6);
    position: relative;
    z-index: 1;
}

.grupo-entrada {
    margin-bottom: var(--space-4);
}

.etiqueta-entrada {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-200);
    margin-bottom: var(--space-2);
    padding-left: 2px;
}

.etiqueta-entrada i {
    font-size: var(--text-sm);
    color: var(--red-primary);
    opacity: 0.9;
}

.contenedor-input {
    position: relative;
    min-height: 48px;
}

/* Inputs con efecto de vidrio */
.entrada-texto {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    padding-right: 56px !important;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--text-base);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.entrada-texto:focus {
    outline: none;
    border-color: var(--red-primary);
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 
        0 0 0 3px rgba(229, 9, 20, 0.15),
        inset 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.entrada-texto::placeholder {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* =========================================== */
/* BOTÓN VER CONTRASEÑA - POSICIÓN FIJA */
/* =========================================== */

.boton-ver-contrasena {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) !important;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-400);
    cursor: pointer;
    font-size: var(--text-base);
    padding: 8px;
    transition: all 0.2s ease;
    z-index: 10;
    border-radius: var(--radius-sm);
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(5px);
    margin: 0 !important;
    line-height: 1 !important;
}

.boton-ver-contrasena:hover {
    color: var(--gray-200);
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    transform: translateY(-50%) scale(1.05) !important;
}

.boton-ver-contrasena.active {
    color: var(--red-primary);
}

/* =========================================== */
/* OPCIONES DE LOGIN - SIN RECORDAR SESIÓN */
/* =========================================== */

.opciones-login {
    display: flex;
    justify-content: flex-end;
    margin: var(--space-6) 0 var(--space-6);
    min-height: 24px;
}

.enlace-olvido {
    font-size: var(--text-sm);
    color: var(--gray-400);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    padding-bottom: 1px;
}

.enlace-olvido::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red-primary);
    transition: width 0.3s ease;
}

.enlace-olvido:hover {
    color: var(--white);
}

.enlace-olvido:hover::after {
    width: 100%;
}

/* =========================================== */
/* BOTÓN DE LOGIN - PREMIUM */
/* =========================================== */

.boton-login {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--red-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-red);
    height: 48px;
    position: relative;
    overflow: hidden;
}

.boton-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.boton-login:hover {
    background: var(--red-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(229, 9, 20, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.boton-login:hover::before {
    left: 100%;
}

.boton-login:active {
    transform: translateY(0);
}

.boton-login i {
    font-size: var(--text-base);
    transition: transform 0.3s ease;
}

.boton-login:hover i {
    transform: translateX(3px);
}

.boton-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Pie del formulario - MINIMALISTA */
.pie-formulario {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.enlaces-pie {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
}

.enlace-pie {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--gray-400);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.enlace-pie:hover {
    color: var(--gray-200);
    background: rgba(255, 255, 255, 0.05);
}

.enlace-pie i {
    font-size: var(--text-sm);
}

/* =========================================== */
/* MENSAJES DE ERROR Y ÉXITO */
/* =========================================== */

.mensaje-error {
    background: rgba(229, 9, 20, 0.1);
    border: 1px solid rgba(229, 9, 20, 0.3);
    color: #ff6b6b;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: fadeInUp 0.3s ease-out;
    font-size: var(--text-sm);
}

.mensaje-exito {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: fadeInUp 0.3s ease-out;
    font-size: var(--text-sm);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

/* =========================================== */
/* MODAL RECUPERAR CONTRASEÑA */
/* =========================================== */

.modal-recuperar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease-out;
}

.modal-recuperar.mostrar {
    display: flex;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-contenido {
    background: linear-gradient(165deg, 
        rgba(30, 30, 30, 0.98) 0%,
        rgba(25, 25, 25, 0.99) 100%);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 420px;
    padding: var(--space-7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    animation: slideInModal 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

@keyframes slideInModal {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-titulo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.modal-cerrar {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-300);
    cursor: pointer;
    font-size: var(--text-base);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.modal-cerrar:hover {
    background: rgba(229, 9, 20, 0.2);
    color: var(--white);
    transform: rotate(90deg);
    border-color: rgba(229, 9, 20, 0.3);
}

.modal-body {
    margin-top: var(--space-4);
}

.modal-descripcion {
    font-size: var(--text-sm);
    color: var(--gray-300);
    line-height: 1.5;
    margin-bottom: var(--space-6);
    text-align: center;
    font-weight: 400;
}

/* Estilos específicos para el formulario del modal */
.grupo-entrada-modal {
    margin-bottom: var(--space-6);
}

.etiqueta-entrada-modal {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-200);
    margin-bottom: var(--space-2);
    padding-left: 2px;
}

.etiqueta-entrada-modal i {
    font-size: var(--text-sm);
    color: var(--red-primary);
    opacity: 0.9;
}

.contenedor-input-modal {
    position: relative;
    min-height: 48px;
}

.entrada-texto-modal {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: var(--text-base);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    line-height: 1.5;
}

.entrada-texto-modal:focus {
    outline: none;
    border-color: var(--red-primary);
    background: rgba(15, 15, 15, 0.6);
    box-shadow: 
        0 0 0 3px rgba(229, 9, 20, 0.2),
        inset 0 2px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.entrada-texto-modal::placeholder {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* Botón enviar código */
.boton-enviar-codigo {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--red-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-red);
    height: 48px;
    position: relative;
    overflow: hidden;
    margin-top: var(--space-2);
}

.boton-enviar-codigo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.boton-enviar-codigo:hover {
    background: var(--red-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(229, 9, 20, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.boton-enviar-codigo:hover::before {
    left: 100%;
}

.boton-enviar-codigo:active {
    transform: translateY(0);
}

.boton-enviar-codigo i {
    font-size: var(--text-base);
    transition: transform 0.3s ease;
}

.boton-enviar-codigo:hover i {
    transform: translateX(3px);
}

.boton-enviar-codigo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* =========================================== */
/* ESTILOS PARA EL NUEVO MODAL DE RECUPERACIÓN */
/* =========================================== */

/* Estados de los pasos */
.paso-activo {
    display: block;
    animation: fadeIn 0.3s ease;
}

.paso-oculto {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Correo destacado */
.correo-destacado {
    color: var(--red-primary);
    font-weight: 600;
    background: rgba(229, 9, 20, 0.1);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    word-break: break-all;
}

/* Contenedor del código */
.codigo-container {
    margin-top: var(--space-6);
}

/* Inputs de código */
.codigo-inputs {
    display: flex;
    gap: var(--space-2);
    margin: var(--space-3) 0 var(--space-4);
    justify-content: center;
}

.codigo-input {
    width: 48px;
    height: 60px;
    text-align: center;
    font-size: var(--text-2xl);
    font-weight: 700;
    background: rgba(10, 10, 10, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-family: 'Inter', monospace;
    transition: all 0.2s ease;
}

.codigo-input:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
    transform: translateY(-2px);
    background: rgba(15, 15, 15, 0.8);
}

.codigo-input.completado {
    border-color: rgba(46, 204, 113, 0.5);
    background: rgba(46, 204, 113, 0.1);
}

.codigo-input.error {
    border-color: rgba(231, 76, 60, 0.5);
    background: rgba(231, 76, 60, 0.1);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Tiempo restante */
.tiempo-codigo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    padding: var(--space-2);
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--gray-300);
}

.tiempo-codigo i {
    color: var(--red-primary);
}

#tiempoRestante {
    font-family: 'Inter', monospace;
    font-weight: 600;
    color: var(--gray-100);
}

.tiempo-codigo.urgente {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.tiempo-codigo.urgente #tiempoRestante {
    color: #ff6b6b;
}

/* Botones del código */
.botones-codigo {
    display: flex;
    gap: var(--space-4);
    flex-direction: column;
    align-items: center;
}

.boton-verificar-codigo {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: 0 8px 32px rgba(46, 204, 113, 0.25);
    height: 48px;
    position: relative;
    overflow: hidden;
}

.boton-verificar-codigo:hover {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(46, 204, 113, 0.4);
}

.boton-verificar-codigo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.boton-renviar {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--gray-400);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.boton-renviar:hover:not(:disabled) {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
    color: var(--red-primary);
    transform: translateY(-1px);
}

.boton-renviar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mensaje de envío */
.mensaje-envio {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-6);
    padding: var(--space-3);
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.15);
    border-radius: var(--radius-md);
    color: #2ecc71;
    font-size: var(--text-sm);
    animation: fadeIn 0.5s ease;
}

.mensaje-envio i {
    font-size: var(--text-base);
}

/* =========================================== */
/* RESPONSIVE - TOTALMENTE ADAPTADO */
/* =========================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .contenedor-login {
        flex-direction: column;
        padding: var(--space-4);
    }
    
    .panel-izquierdo,
    .panel-derecho {
        width: 100%;
        padding: var(--space-8) var(--space-6);
    }
    
    .panel-izquierdo::after {
        display: none;
    }
    
    .contenedor-formulario {
        max-width: 500px;
        padding: var(--space-7) var(--space-6);
    }
    
    .logo-contenedor-grande {
        width: 140px;
        height: 140px;
        margin-bottom: var(--space-6);
    }
    
    .caracteristicas {
        margin: var(--space-6) 0;
    }
}

/* Móviles grandes (480px - 768px) */
@media (max-width: 768px) {
    /* Mostrar menú móvil */
    .menu-movil {
        display: flex;
    }
    
    /* Ajustar padding del body para el menú fijo */
    body {
        padding-top: 60px;
    }
    
    /* Ocultar panel izquierdo en móvil */
    .panel-izquierdo {
        display: none;
    }
    
    /* Panel derecho ocupa todo el ancho */
    .panel-derecho {
        width: 100%;
        padding: var(--space-4);
        align-items: flex-start;
        padding-top: var(--space-8);
    }
    
    /* Contenedor del formulario más compacto */
    .contenedor-formulario {
        max-width: 100%;
        padding: var(--space-6) var(--space-4);
        border-radius: var(--radius-lg);
        margin-top: 0;
    }
    
    /* Ajustar icono de seguridad */
    .icono-seguridad {
        width: 60px;
        height: 60px;
        font-size: var(--text-lg);
        margin-bottom: var(--space-3);
    }
    
    /* Ajustar tipografía */
    .titulo-formulario {
        font-size: var(--text-lg);
    }
    
    .subtitulo-formulario {
        font-size: var(--text-sm);
    }
    
    /* Inputs más compactos */
    .entrada-texto {
        padding: var(--space-2) var(--space-3);
        font-size: 16px;
    }
    
    .boton-ver-contrasena {
        width: 36px;
        height: 36px;
        right: 12px;
    }
    
    /* Botón de login más compacto */
    .boton-login {
        height: 44px;
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }
    
    /* Pie del formulario en columna */
    .enlaces-pie {
        flex-direction: column;
        gap: var(--space-3);
        align-items: center;
    }
    
    /* Modal responsive */
    .modal-contenido {
        width: 95%;
        padding: var(--space-6) var(--space-5);
        margin: var(--space-4);
    }
    
    .modal-titulo {
        font-size: var(--text-lg);
    }
    
    /* Inputs de código más pequeños */
    .codigo-input {
        width: 40px;
        height: 52px;
        font-size: var(--text-xl);
    }
    
    .codigo-inputs {
        gap: var(--space-1);
    }
    
    .botones-codigo {
        gap: var(--space-3);
    }
}

/* Móviles pequeños (0 - 480px) */
@media (max-width: 480px) {
    /* Ajustes generales para móviles pequeños */
    .contenedor-login {
        padding: var(--space-2);
    }
    
    .panel-derecho {
        padding: var(--space-2);
        padding-top: var(--space-6);
    }
    
    .contenedor-formulario {
        padding: var(--space-5) var(--space-3);
    }
    
    /* Icono de seguridad más pequeño */
    .icono-seguridad {
        width: 56px;
        height: 56px;
        font-size: var(--text-base);
    }
    
    .titulo-formulario {
        font-size: var(--text-md);
    }
    
    .subtitulo-formulario {
        font-size: var(--text-xs);
    }
    
    /* Inputs optimizados */
    .entrada-texto {
        padding: var(--space-2) var(--space-3);
        font-size: 16px;
    }
    
    .boton-login {
        padding: var(--space-2) var(--space-3);
        height: 44px;
        font-size: var(--text-sm);
    }
    
    .boton-ver-contrasena {
        width: 36px;
        height: 36px;
        font-size: var(--text-sm);
        right: 12px;
    }
    
    /* Opciones de login centradas */
    .opciones-login {
        justify-content: center;
    }
    
    /* Panel menú móvil más estrecho */
    .panel-menu-movil {
        width: 280px;
        left: -280px;
    }
    
    /* Modal más compacto */
    .modal-contenido {
        padding: var(--space-5) var(--space-4);
    }
    
    .modal-titulo {
        font-size: var(--text-md);
    }
    
    .modal-descripcion {
        font-size: var(--text-xs);
    }
    
    .entrada-texto-modal {
        padding: var(--space-2) var(--space-3);
        font-size: 16px;
    }
    
    .boton-enviar-codigo,
    .boton-verificar-codigo {
        padding: var(--space-2) var(--space-3);
        height: 44px;
        font-size: var(--text-sm);
    }
    
    .codigo-input {
        width: 36px;
        height: 48px;
        font-size: var(--text-lg);
    }
    
    /* Características del menú más compactas */
    .caracteristica-menu {
        padding: var(--space-2);
        gap: var(--space-2);
    }
    
    .caracteristica-menu i {
        width: 36px;
        height: 36px;
        font-size: var(--text-base);
    }
}

/* Tablets en modo vertical (600px - 768px) */
@media (min-width: 600px) and (max-width: 768px) {
    .panel-menu-movil {
        width: 300px;
        left: -300px;
    }
    
    .contenedor-formulario {
        max-width: 450px;
        margin: 0 auto;
    }
}

/* Pantallas muy pequeñas (menos de 360px) */
@media (max-width: 360px) {
    .menu-movil {
        padding: 0 var(--space-2);
    }
    
    .logo-movil span {
        font-size: var(--text-base);
    }
    
    .contenedor-formulario {
        padding: var(--space-4) var(--space-2);
    }
    
    .panel-menu-movil {
        width: 260px;
        left: -260px;
    }
    
    .codigo-input {
        width: 32px;
        height: 44px;
        font-size: var(--text-base);
    }
}

/* =========================================== */
/* PREFERENCIAS DE USUARIO */
/* =========================================== */

/* Reduce motion para usuarios que lo prefieren */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Modo oscuro siempre activo (ya que nuestro diseño es oscuro) */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(
            135deg,
            #0A0A0A 0%,
            #111111 50%,
            #000000 100%
        );
    }
}

/* =========================================== */
/* ANIMACIONES */
/* =========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-izquierdo {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.panel-derecho {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Estados de carga */
.boton-login.cargando {
    position: relative;
    color: transparent;
}

.boton-login.cargando::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ripple effect */
@keyframes rippleEfecto {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-primary);
}

/* Mejoras de focus para accesibilidad */
:focus-visible {
    outline: 2px solid var(--red-primary);
    outline-offset: 2px;
}

/* Mensaje de confirmación */
.mensaje-confirmacion {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: fadeInUp 0.3s ease-out;
    font-size: var(--text-sm);
    z-index: 2001;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    text-align: center;
}

/* Prevenir zoom en iOS */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    .codigo-input,
    .entrada-texto-modal {
        font-size: 16px !important;
        min-height: 44px;
    }
    
    button {
        min-height: 44px;
    }
    
    .boton-ver-contrasena {
        min-width: 44px;
        min-height: 44px;
    }
}