/* FacturaSimple Onboarding & Registration Redesign */
:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --accent: #ff8c00;
    --text-main: #2d3436;
    --text-light: #636e72;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.4);
    --shadow-premium: 0 20px 60px rgba(0,0,0,0.1);
}

.onboarding-flow-wrapper {
    background: url('../images/onboarding_bg.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

.onboarding-top-spacer {
    height: 180px; /* Reliable clearance for header + banner */
    width: 100%;
}

.onboarding-container {
    width: 100%;
    max-width: 700px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    padding: 3rem;
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 2rem;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 3rem;
}

.onboarding-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.onboarding-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dfe6e9;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--primary);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0,123,255,0.4);
}

.step-dot.completed {
    background: var(--primary);
}

/* Forms */
.form-group-premium {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group-premium label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    z-index: 5;
}

.input-premium {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #e1e8ed;
    background: rgba(255,255,255,0.9);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
    outline: none;
}

.btn-premium {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-premium:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-secondary-onboarding {
    background: transparent;
    color: var(--text-light);
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 10px;
}

/* Logo Upload Area */
.logo-upload-box {
    cursor: pointer;
    border: 2px dashed var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    margin-bottom: 1.5rem; /* Kept original margin-bottom */
}

.logo-upload-box:hover {
    border-color: var(--primary);
    background: rgba(254, 138, 33, 0.05);
}

.logo-preview-container {
    display: none;
    margin-bottom: 1rem;
}

.logo-preview-img {
    max-width: 180px;
    max-height: 120px;
    border-radius: 12px;
    box-shadow: var(--shadow-premium);
    object-fit: contain;
    background: white;
    padding: 10px;
}

.logo-placeholder-icon {
    font-size: 2.5rem;
    color: #aab8c2;
    margin-bottom: 1rem;
}

/* Success Animations */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    animation: scaleIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Module Selection */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 1.5rem 0;
}

.module-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    border-radius: 15px;
    padding: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.module-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
}

.module-card.selected {
    background: rgba(254, 138, 33, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(254, 138, 33, 0.2);
}

.module-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: block;
}

.module-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-main);
}

/* Quick Wins Buttons */
.quick-win-card {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e1e8ed;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.quick-win-card:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateX(5px);
}

.quick-win-icon {
    width: 50px;
    height: 50px;
    background: #f0f4ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

.quick-win-info h4 {
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
}

.quick-win-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}
