/* Estilos para el sistema de progreso */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-text {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    margin-top: 4px;
}

/* Animación para el estado de loading */
@keyframes loading-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading .progress-text {
    animation: loading-pulse 2s infinite;
}

/* Estilos para botones con progreso */
.btn-primary-large.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary-large .loading-container {
    color: white;
}

.btn-primary-large .progress-bar {
    background-color: rgba(255, 255, 255, 0.3);
}

.btn-primary-large .progress-fill {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
}

.btn-primary-large .progress-text {
    color: white;
    font-weight: 500;
}

/* Responsividad */
@media (max-width: 640px) {
    .progress-bar {
        width: 160px;
    }
    
    .progress-text {
        font-size: 0.8rem;
    }
}
