/* onboarding.css */
/* Sliding Cards Wizard Styles */

/* Overlay */
#onboarding-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#onboarding-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Container - Now wider for sliding cards */
.onboarding-modal {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark .onboarding-modal {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#onboarding-overlay.active .onboarding-modal {
    transform: scale(1);
}

/* Progress Dots (replacing bar) */
.progress-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.dark .progress-dot {
    background: rgba(255, 255, 255, 0.2);
}

.progress-dot.active {
    width: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
}

/* Slides Container */
.slides-container {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    /* Centra verticalmente */
}

.slides-wrapper {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
}

/* Individual Step/Card */
.step-content {
    width: 100%;
    /* Cambio de min-width a width */
    max-width: 100%;
    /* Asegurar que no exceda */
    flex-shrink: 0;
    padding: 1rem 2rem;
    /* Padding interno */
    box-sizing: border-box;
    /* Incluye padding en el width */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centra verticalmente el contenido interno */
    align-items: center;
    /* Centra horizontalmente */
    text-align: center;
    word-wrap: break-word;
    /* Permitir saltos de línea */
    overflow-wrap: break-word;
    /* Compatibilidad */
}

/* Asegurar que los elementos internos se ajusten */
.step-content>* {
    max-width: 100%;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Step Content */
.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: #3b82f6;
    font-size: 40px;
}

.dark .step-icon {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    color: #93c5fd;
}

/* Navigation Arrows */
.nav-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.arrow-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #64748b;
}

.dark .arrow-button {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.arrow-button:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    transform: scale(1.1);
}

.dark .arrow-button:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.arrow-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Action buttons in center */
.step-actions {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.btn-onboarding-primary {
    background: #10b981;
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
}

.btn-onboarding-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4);
}

.btn-onboarding-secondary {
    background: transparent;
    color: #64748b;
    font-weight: 500;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.dark .btn-onboarding-secondary {
    color: #94a3b8;
}

.btn-onboarding-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark .btn-onboarding-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}