/* Estilos para el wizard de confirmación de pedidos */

/* Barra de progreso del wizard */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #e9ecef;
    z-index: 1;
}

.wizard-progress .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background-color: white;
    padding: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-align: center;
}

.step.active .step-number {
    background-color: var(--primary-color, #007bff);
    color: white;
    transform: scale(1.1);
}

.step.active .step-label {
    color: var(--primary-color, #007bff);
    font-weight: 600;
}

.step.completed .step-number {
    background-color: #28a745;
    color: white;
}

.step.completed .step-label {
    color: #28a745;
}

/* Pasos del wizard */
.wizard-step {
    min-height: 300px;
}

/* Tarjetas de dirección */
.direccion-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.direccion-card:hover {
    border-color: var(--primary-color, #007bff);
    background-color: #f0f8ff;
}

.direccion-card.selected {
    border-color: var(--primary-color, #007bff);
    background-color: #e3f2fd;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.direccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.direccion-header h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.direccion-text {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Tarjetas de método de pago */
.metodo-card {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    position: relative;
}

.metodo-card:hover {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.metodo-card.selected {
    border-color: var(--primary-color, #007bff);
    background-color: #f8f9ff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.metodo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.metodo-header h6 {
    margin: 0;
    color: #333;
    font-weight: 600;
}

.metodo-check {
    color: #e9ecef;
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.metodo-card.selected .metodo-check {
    color: var(--primary-color, #007bff);
}

.metodo-descripcion {
    margin: 0 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* Datos específicos de métodos de pago */
.datos-transferencia,
.datos-deposito,
.datos-contraentrega {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 0.75rem;
}

.datos-transferencia h6,
.datos-deposito h6 {
    margin: 0 0 0.75rem 0;
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

.datos-transferencia p,
.datos-deposito p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.85rem;
}

.datos-transferencia strong,
.datos-deposito strong {
    color: #333;
    font-weight: 600;
}

/* Botones del wizard */
.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

.modal-footer .btn {
    min-width: 120px;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-progress {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .wizard-step {
        min-height: 250px;
    }
    
    .direccion-card,
    .metodo-card {
        padding: 0.75rem;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Animaciones */
.wizard-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de validación */
.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Mejoras visuales para el modal */
.modal-xl {
    max-width: 900px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

/* Estilos para alertas en el wizard */
.wizard-step .alert {
    margin-bottom: 1rem;
}

.wizard-step .alert-info {
    background-color: #e3f2fd;
    border-color: #bbdefb;
    color: #1565c0;
}

/* Estilos para formularios en el wizard */
.wizard-step .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.wizard-step .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.wizard-step .form-control:focus {
    border-color: var(--primary-color, #007bff);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilos para checkboxes */
.form-check-input:checked {
    background-color: var(--primary-color, #007bff);
    border-color: var(--primary-color, #007bff);
}

/* Mejoras para el texto de ayuda */
.form-text {
    color: #6c757d;
    font-size: 0.8rem;
}






















