:root {
    --primary-color: #2c3e50;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --danger-color: #e74c3c;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f8f9fa;
}

.pedido-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pedido-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eef2f7;
    margin-bottom: 1.5rem;
}

.estado-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.estado-pendiente {
    background-color: #ffeeba;
    color: var(--warning-color);
    border: 1px solid #ffe5bc;
}

.estado-preparacion {
    background-color: #cce5ff;
    color: var(--info-color);
    border: 1px solid #b6d4fe;
}

.estado-enviado {
    background-color: #d1e7dd;
    color: var(--success-color);
    border: 1px solid #badbcc;
}

.estado-entregado {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
}

.productos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.producto-item {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.producto-item:hover {
    background-color: #f1f4f6;
}

.tracking-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, #e0e0e0 50%, #ddd 50%);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    background-color: #fff;
    padding: 1rem;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.timeline-step.active {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    color: white;
    transform: scale(1.1);
}

@media (max-width: 992px) {
    .container {
        padding: 1rem;
    }
    
    .productos-lista {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pedido-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .timeline {
        overflow-x: auto;
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .estado-badge {
        width: 100%;
        text-align: center;
    }
    
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-step {
        width: 100%;
        border-radius: 8px;
        text-align: left;
    }
}
