/* ===========================
    TRACKING PAGE STYLES
    =========================== */

.tracking-section {
    padding: 40px 0;
    background: #f8f9fa;
}

/* Search Form Styles */
.tracking-search {
    background: #fff;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.tracking-search h3 {
    color: #333;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.tracking-search p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.tracking-search .form-group {
    margin-bottom: 15px;
}

.tracking-search .form-control {
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    padding: 10px 15px;
    transition: border-color 0.3s;
}

.tracking-search .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Button Styles */
.btn-search {
    margin-top: 5px;
    background: #007bff;
    color: #fff;
    padding: 12px 28px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.btn-search:hover,
.btn-search:focus {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Error State */
.tracking-error {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid #f8d7da;
}

.tracking-error i {
    font-size: 36px;
    color: #dc3545;
    margin-bottom: 15px;
}

/* Order Header */
.order-header {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e9ecef;
}

.order-header h2 {
    color: #333;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.order-status {
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.order-status.status-pending,
.order-status.status-pendiente {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.order-status.status-pending_customization {
    background: #fce4ec;
    color: #c2185b;
    border: 1px solid #f8bbd0;
}

.order-status.status-customized {
    background: #e8eaf6;
    color: #3f51b5;
    border: 1px solid #c5cae9;
}

.order-status.status-confirmed,
.order-status.status-confirmado {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.order-status.status-processing,
.order-status.status-en_proceso {
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.order-status.status-completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-status.status-shipped,
.order-status.status-enviado {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffe0b2;
}

.order-status.status-delivered,
.order-status.status-entregado {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.order-status.status-cancelled,
.order-status.status-cancelado {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Payment Status Styles */
.payment-status {
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.payment-status.status-pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.payment-status.status-paid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payment-status.status-failed {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.payment-status.status-refunded {
    background: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Progress Steps */
.order-progress {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.order-progress h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 25px 0 15px 0;
}

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

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.step-icon.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    transform: scale(1.1);
}

.step-icon.completed {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.step-label {
    font-size: 11px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
    max-width: 80px;
}

.step-label.active {
    color: #007bff;
    font-weight: 600;
}

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

/* Order Details */
.order-details {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

/* NUEVO: Estilos para sección de personalización */
.customization-action {
    margin-top: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    transition: all 0.3s ease;
}

.customization-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.35);
}

.customization-action h4 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 17px;
    font-weight: 600;
}

.customization-action p {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 12px 0;
    font-size: 14px;
}

.customization-action .btn {
    background-color: white;
    color: #007bff;
    padding: 10px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.customization-action .btn:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    border-color: white;
    color: #0056b3;
    text-decoration: none;
}

.customization-action .btn i {
    margin-right: 6px;
}

/* NUEVO: Customization Section */
.customization-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e9ecef;
}

.customization-section h3 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 600;
}

.customization-item {
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.customization-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    border-color: #dee2e6;
}

.customization-item h5 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
}

.customization-item p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
}

.btn-customize-order-item {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.btn-customize-order-item.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-customize-order-item.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.btn-customize-order-item.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-customize-order-item.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    letter-spacing: 0.3px;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.order-details h3,
.order-details h4 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 17px;
}

.order-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
}

.info-row .value {
    color: #333;
    font-size: 14px;
}

.info-row .value.price {
    color: #007bff;
    font-weight: 600;
    font-size: 16px;
}

/* Product Items Styles */
.order-items {
    margin-top: 15px;
}

.order-item {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-color: #dee2e6;
}

.item-image {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    position: relative;
    border: 1px solid #e9ecef;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-details h5 {
    color: #333;
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
}

.item-details p {
    margin: 4px 0;
    color: #6c757d;
    font-size: 13px;
}

.item-details .item-price {
    color: #007bff;
    font-weight: 600;
    font-size: 15px;
    margin-top: 6px;
}

/* Product Customization Details */
.item-customization {
    margin-top: 10px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    border: 1px solid #e3f2fd;
    background: #f8f9fa;
}

.item-customization h6 {
    margin: 0 0 6px 0;
    color: #007bff;
    font-size: 13px;
    font-weight: 600;
}

.customization-detail {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 12px;
}

.customization-detail:last-child {
    margin-bottom: 0;
}

.customization-detail .detail-label {
    font-weight: 600;
    color: #6c757d;
    margin-right: 6px;
    min-width: 55px;
}

.customization-detail .detail-value {
    color: #333;
}

.color-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
    margin-left: 6px;
}

/* Shipping Address */
.shipping-address {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.shipping-address h3 {
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 17px;
}

.address-info p {
    margin: 6px 0;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.address-info strong {
    color: #007bff;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracking-section {
        padding: 25px 0;
    }

    .tracking-search,
    .order-header,
    .order-progress,
    .order-details,
    .shipping-address {
        padding: 15px 18px;
        margin-bottom: 15px;
    }

    .order-header {
        flex-direction: column;
        text-align: center;
    }

    .order-header h2 {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .order-status {
        padding: 5px 12px;
        font-size: 11px;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 15px;
        margin: 20px 0 12px 0;
    }

    .progress-steps::before {
        display: none;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .step-label {
        font-size: 10px;
        max-width: 70px;
    }

    .order-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }

    .item-image {
        margin-right: 0;
        margin-bottom: 12px;
        width: 60px;
        height: 60px;
    }

    .item-details h5 {
        font-size: 14px;
    }

    .item-details p {
        font-size: 12px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }

    .info-row .label,
    .info-row .value {
        font-size: 13px;
    }

    .info-row .value.price {
        font-size: 15px;
    }

    .customization-action {
        padding: 15px;
    }

    .customization-action h4 {
        font-size: 15px;
    }

    .customization-action p {
        font-size: 13px;
    }

    .customization-action .btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .btn-search {
        padding: 10px 22px;
        font-size: 14px;
    }
}