:root {
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.5);
    --glass-bg: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Luces animadas de fondo */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out alternate;
}

.glow-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.4) 0%, transparent 60%);
    animation-delay: 0s;
}

.glow-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 60%);
    animation-delay: -3s;
}

.glow-3 {
    top: 30%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.3) 0%, transparent 60%);
    animation-delay: -6s;
    animation-duration: 12s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Contenido Principal */
.container {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 550px;
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Icono en el centro */
.icon-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    border-radius: 50%;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.loader-icon {
    color: var(--accent-color);
    animation: spin 8s linear infinite;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Tipografía */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.subtitle span {
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

/* Barra de progreso / carga */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--accent-color), #a855f7);
    border-radius: 999px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    animation: pulseWidth 3s ease-in-out infinite alternate;
}

@keyframes pulseWidth {
    0% { width: 30%; }
    100% { width: 60%; }
}

/* Responsive */
@media (max-width: 480px) {
    .title { font-size: 2rem; }
    .glass-card { padding: 2.5rem 1.5rem; }
    .icon-container { width: 80px; height: 80px; }
    .loader-icon { width: 48px; height: 48px; }
}
