:root {
    --primary: #6E56FF;
    --bg: #6E56FF;
    --glass: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.15);
    --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { 
    font-family: 'Outfit', sans-serif; 
    background: var(--bg); 
    color: #FFFFFF; 
    overflow: hidden;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FONDO DINÁMICO */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg); }
.shape { position: absolute; color: rgba(255, 255, 255, 0.1); animation: float 30s infinite linear; pointer-events: none; }
@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translate(100px, -100dvh) rotate(360deg); opacity: 0; }
}

/* TOP NAVIGATION */
.nav-header {
    width: 100%; padding: 25px; display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; z-index: 100;
}
.back-btn { 
    width: 45px; height: 45px; border-radius: 50%; background: var(--glass);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: 0.3s;
}
.back-btn.show { opacity: 1; pointer-events: all; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -1px; }

/* MAIN CONTAINER */
.onboarding-wrapper {
    flex: 1; width: 100%; max-width: 450px; display: flex; align-items: center;
    justify-content: center; padding: 20px; position: relative;
}

.step {
    position: absolute; width: calc(100% - 40px);
    opacity: 0; transform: translateX(50px);
    transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
    pointer-events: none;
    display: flex; flex-direction: column; align-items: center;
}
.step.active { opacity: 1; transform: translateX(0); pointer-events: all; position: relative; }
.step.exit { opacity: 0; transform: translateX(-50px); position: absolute; }

h1 { font-size: clamp(32px, 8vw, 42px); font-weight: 800; letter-spacing: -2px; margin-bottom: 12px; line-height: 1; text-align: center; }
p { color: rgba(255, 255, 255, 0.6); font-size: clamp(16px, 4vw, 18px); margin-bottom: 35px; text-align: center; max-width: 85%; }

/* INPUTS NATIVOS */
.input-group { width: 100%; margin-bottom: 25px; }
input {
    width: 100%; background: var(--glass); border: 1px solid var(--border);
    border-radius: 24px; padding: 22px; font-size: 20px; color: #FFFFFF;
    font-family: 'Outfit', sans-serif; outline: none; text-align: center;
    transition: all 0.3s var(--ease);
}
input:focus { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 40px rgba(110, 86, 255, 0.3); }
input::placeholder { color: rgba(255,255,255,0.3); }

/* CARDS DE ROL */
.role-grid { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.role-card {
    background: var(--glass); border: 1px solid var(--border);
    padding: 24px; border-radius: 28px; cursor: pointer;
    display: flex; align-items: center; gap: 20px; transition: 0.3s var(--ease);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.role-card:active { transform: scale(0.96); background: rgba(255,255,255,0.12); }
.role-icon { width: 52px; height: 52px; background: rgba(255,255,255,0.05); border-radius: 18px; display: grid; place-items: center; }
.role-content h3 { font-size: 19px; font-weight: 800; margin-bottom: 2px; }
.role-content p { font-size: 14px; color: rgba(255,255,255,0.5); margin: 0; text-align: left; max-width: 100%; }

/* BOTÓN ACCIÓN */
.btn-action {
    width: 100%; background: #FFFFFF; color: #000000;
    border: none; border-radius: 100px; padding: 22px;
    font-size: 19px; font-weight: 800; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2); transition: 0.3s var(--ease);
}
.btn-action:active { transform: scale(0.95); opacity: 0.9; }

/* BARRA PROGRESO */
.progress-bar {
    position: fixed; top: 0; left: 0; height: 5px; width: 0%;
    background: linear-gradient(90deg, #6E56FF, #FFD600, #007AFF);
    transition: 0.8s var(--ease); z-index: 1000;
}

/* TOAST CAPSULE */
.toast {
    position: fixed; bottom: 40px; background: #FFD600; color: #000000;
    padding: 18px 40px; border-radius: 100px; font-weight: 800;
    display: flex; align-items: center; gap: 12px;
    transform: translateY(150px); transition: 0.6s var(--ease);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3); z-index: 2000;
}
.toast.show { transform: translateY(0); }

.loader { width: 50px; height: 50px; border: 4px solid rgba(255,255,255,0.1); border-top-color: #FFFFFF; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
