/* Splash, Login y Hub */
.auth-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: #020617; z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; font-family: 'Inter', sans-serif; }
.bg-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); z-index: -2; object-fit: cover; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 50% 0%, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.7) 100%); z-index: -1; }
.auth-overlay::before { content: ''; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(15, 98, 254, 0.15) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }

.splash-screen { display: flex; flex-direction: column; align-items: center; text-align: center; animation: fadeIn 0.8s ease; z-index: 1; }
.splash-logo img { width: 140px; height: auto; object-fit: contain; margin-bottom: 28px; filter: drop-shadow(0 0 25px rgba(15, 98, 254, 0.5)); animation: floatLogo 3s ease-in-out infinite; }
.splash-title { color: #ffffff; font-size: 32px; font-weight: 800; margin: 0 0 8px 0; letter-spacing: -0.03em; }
.splash-subtitle { color: #94a3b8; font-size: 15px; margin: 0; letter-spacing: 0.1em; font-weight: 500; text-transform: uppercase; }
.loading-bar { width: 220px; height: 3px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; margin-top: 40px; overflow: hidden; position: relative; backdrop-filter: blur(4px); }
.loading-progress { position: absolute; top: 0; left: 0; height: 100%; background: linear-gradient(90deg, transparent, #0f62fe, #60a5fa); width: 0%; animation: loadProgress 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards; box-shadow: 0 0 15px rgba(15, 98, 254, 0.8); }

.login-screen { display: none; flex-direction: column; align-items: center; width: 100%; animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1); z-index: 1; }
.glass-panel { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(24px); border: 1px solid rgba(255, 255, 255, 0.08); padding: 48px 40px; border-radius: 28px; width: 100%; max-width: 340px; text-align: center; box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.1); }
.glass-panel img { width: 80px; margin-bottom: 24px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.glass-panel h2 { color: #f8fafc; font-size: 24px; margin: 0 0 8px 0; font-weight: 700; letter-spacing: -0.02em; }
.glass-panel p { color: #94a3b8; font-size: 14px; margin: 0 0 32px 0; line-height: 1.5;}
.input-group { position: relative; width: 100%; margin-bottom: 20px; }
.input-group .material-icons { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 20px; transition: color 0.3s; }
.login-input { width: 100%; box-sizing: border-box; padding: 16px 16px 16px 48px; background: rgba(0, 0, 0, 0.2); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; color: white; font-size: 15px; font-family: 'Inter', sans-serif; outline: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); letter-spacing: 2px; }
.login-input:focus { border-color: #3b82f6; background: rgba(0, 0, 0, 0.4); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.login-input:focus + .material-icons { color: #3b82f6; }
.btn-desbloquear { width: 100%; padding: 16px; background: linear-gradient(135deg, #0f62fe 0%, #3b82f6 100%); color: white; border: none; border-radius: 14px; font-weight: 600; font-size: 15px; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 15px rgba(15, 98, 254, 0.3); }
.btn-desbloquear:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(15, 98, 254, 0.5); filter: brightness(1.1); }
.login-error { color: #ef4444; font-size: 13px; margin-top: 16px; font-weight: 500; opacity: 0; transition: opacity 0.3s; background: rgba(239, 68, 68, 0.1); padding: 8px; border-radius: 8px; border: 1px solid rgba(239, 68, 68, 0.2); }
.biometrics { margin-top: 32px; color: #475569; display: flex; justify-content: center; gap: 24px; }
.biometrics .material-icons { font-size: 24px; cursor: pointer; transition: color 0.3s; }
.biometrics .material-icons:hover { color: #94a3b8; }

.hub-screen { display: none; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 1100px; padding: 60px 20px; animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1); margin: auto; z-index: 1; }
.hub-header { text-align: center; margin-bottom: 56px; }
.hub-header img { width: 90px; margin-bottom: 20px; filter: drop-shadow(0 10px 25px rgba(15, 98, 254, 0.4)); animation: floatLogo 4s ease-in-out infinite;}
.hub-header h2 { color: #f8fafc; font-size: 36px; margin: 0 0 12px 0; font-weight: 800; letter-spacing: -0.03em; }
.hub-header p { color: #94a3b8; font-size: 16px; margin: 0; font-weight: 400; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; width: 100%; }

.hub-card { background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px; padding: 36px; text-align: left; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
.hub-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 100%; background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%); pointer-events: none; }
.hub-card.active { cursor: pointer; }
.hub-card.active:hover { transform: translateY(-6px); background: rgba(30, 41, 59, 0.7); border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 20px 40px -10px rgba(15, 98, 254, 0.2); }
.hub-card.disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(0.5); }
.card-icon-wrapper { width: 56px; height: 56px; border-radius: 16px; background: rgba(15, 98, 254, 0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; border: 1px solid rgba(15, 98, 254, 0.2); transition: all 0.3s; }
.hub-card.active:hover .card-icon-wrapper { background: #0f62fe; border-color: #3b82f6; transform: scale(1.05); box-shadow: 0 0 20px rgba(15, 98, 254, 0.4); }
.card-icon { font-size: 28px; color: #3b82f6; transition: color 0.3s; }
.hub-card.active:hover .card-icon { color: white; }
.hub-card.disabled .card-icon-wrapper { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); }
.hub-card.disabled .card-icon { color: #64748b; }
.hub-card h3 { color: #f8fafc; font-size: 20px; margin: 0 0 12px 0; font-weight: 700; letter-spacing: -0.01em; }
.hub-card p { color: #94a3b8; font-size: 14px; margin: 0 0 28px 0; line-height: 1.6; flex: 1; }

.card-status { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 6px 12px; border-radius: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.card-status::before { content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%; box-shadow: 0 0 8px currentColor; }

.btn-logout { margin-top: 60px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); color: #94a3b8; padding: 12px 28px; border-radius: 14px; font-size: 14px; font-family: 'Inter', sans-serif; font-weight: 600; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.3s; backdrop-filter: blur(10px); }
.btn-logout:hover { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.3); transform: translateY(-2px); }