/* =============================================
   G-CAPITAL — Onboarding / Solicitud de Acceso
   ============================================= */

.onboarding-body {
    min-height: 100vh;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
}

/* Top bar */
.ob-topbar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Progress bar */
.ob-progress-track {
    height: 3px;
    background: var(--border);
}

.ob-progress-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(.16, 1, .3, 1);
    width: 0%;
}

/* Main wrapper */
.ob-wrapper {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 24px 80px;
}

/* Steps — hidden by default */
.ob-step {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    animation: stepIn 0.35s cubic-bezier(.16, 1, .3, 1);
}

.ob-step.active {
    display: flex;
}

@keyframes stepIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ob-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--accent);
    margin-bottom: 14px;
}

.ob-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 10px;
}

.ob-sub {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Process list (step 0) */
.ob-process-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.ob-process-item {
    display: flex;
    gap: 16px;
    position: relative;
}

.ob-process-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: -12px;
    width: 2px;
    background: var(--border);
}

.ob-process-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    z-index: 1;
}

.ob-process-body {
    padding-bottom: 24px;
}

.ob-process-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ob-process-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Legal note */
.ob-legal-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid rgba(29, 191, 115, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.ob-legal-note svg {
    width: 15px;
    height: 15px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.ob-cta {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 0.95rem;
    font-weight: 700;
}

/* Form fields */
.ob-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.ob-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ob-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.ob-input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.ob-input:focus {
    border-color: var(--accent);
}

.ob-input::placeholder {
    color: var(--text-muted);
}

.ob-input.error {
    border-color: var(--risk-high-color);
}

/* Options grid */
.ob-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}

.ob-option {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
}

.ob-option:hover {
    border-color: rgba(29, 191, 115, 0.3);
}

.ob-option.selected {
    border-color: var(--accent);
    background: var(--accent-glow-sm);
}

.ob-option-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.ob-option-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.ob-option.selected .ob-option-label {
    color: var(--accent);
}

/* NDA Checks */
.ob-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.ob-check-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.ob-check-item.error {
    border-color: var(--risk-high-color);
}

.ob-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}

.ob-check-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.65;
    cursor: pointer;
}

.ob-check-label strong {
    color: var(--text-primary);
}

/* Disclaimer */
.ob-disclaimer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

.ob-disclaimer svg {
    width: 15px;
    height: 15px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Nav row */
.ob-nav {
    display: flex;
    gap: 10px;
}

.ob-nav .btn-outline {
    padding: 14px 20px;
}

.ob-nav .btn-primary {
    flex: 1;
    justify-content: center;
    padding: 14px;
    font-weight: 700;
}

/* Success screen */
.ob-success-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 16px;
}

.ob-success-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
}

.ob-s-item {
    display: flex;
    gap: 14px;
    position: relative;
}

.ob-s-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: -8px;
    width: 2px;
    background: var(--border);
}

.ob-s-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-glow-sm);
    border: 1.5px solid rgba(29, 191, 115, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    z-index: 1;
}

.ob-s-body {
    padding-bottom: 20px;
}

.ob-s-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.ob-s-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .ob-topbar {
        padding: 12px 16px;
    }

    .ob-wrapper {
        padding: 32px 16px 60px;
    }

    .ob-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}