/* Payment Process */
.payment-process {
    padding: 30px 0;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 50%;
    height: 4px;
    background: var(--primary);
    z-index: 2;
    transition: width 0.5s ease;
}

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

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--gray);
}

.progress-step.completed .step-number {
    background: var(--primary);
    color: white;
}

.progress-step.completed .step-label {
    color: var(--light);
}

/* Payment Container */
.payment-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .payment-container {
        grid-template-columns: 1fr;
    }
}

.order-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    align-self: start;
}

.order-summary h2 {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary);
}

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

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item:last-child {
    border-bottom: none;
}

.order-totals {
    border-top: 2px solid var(--primary);
    padding-top: 15px;
}

.total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.total-line.grand-total {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Yape Payment */
.yape-payment {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.yape-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.yape-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.yape-logo img {
    width: 30px;
    height: 30px;
}

.secure-payment {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--success);
    font-size: 0.9rem;
}

.yape-instructions {
    margin-bottom: 25px;
}

.yape-instructions p {
    margin-bottom: 15px;
}

.yape-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 168, 156, 0.1);
    border: 1px solid rgba(0, 168, 156, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.yape-number span {
    color: var(--yape-green);
}

.copy-btn {
    background: rgba(0, 168, 156, 0.2);
    border: none;
    border-radius: 5px;
    padding: 8px;
    color: var(--yape-green);
    cursor: pointer;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: rgba(0, 168, 156, 0.3);
}

.yape-qr {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 10px;
    position: relative;
}

.qr-code {
    margin-bottom: 15px;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    display: inline-block;
}

.qr-code img {
    width: 200px;
    height: 200px;
    display: block;
}

.yape-qr p {
    color: #333;
    font-weight: 500;
    margin-top: 10px;
}

.change-qr-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--yape-green);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

.payment-steps {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.payment-steps h3 {
    margin-bottom: 15px;
    color: var(--yape-green);
}

.payment-steps ol {
    padding-left: 20px;
}

.payment-steps li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.payment-form {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 15px;
}

/* Payment Support */
.payment-support {
    text-align: center;
}

.support-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

.support-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.support-card h3 {
    margin-bottom: 10px;
}

.support-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Payment Status */
.payment-status {
    text-align: center;
    padding: 40px 0;
}

.status-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.status-success {
    color: var(--success);
}

.status-error {
    color: var(--accent);
}

.status-pending {
    color: #ffc107;
}

.payment-status h2 {
    margin-bottom: 15px;
}

.payment-status p {
    margin-bottom: 30px;
    color: var(--gray);
}

.status-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Modal para cambiar QR */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--dark);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--light);
}

.modal-title {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.qr-upload-container {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.qr-upload-container:hover {
    border-color: var(--primary);
}

.qr-upload-container i {
    font-size: 3rem;
    color: var(--gray);
    margin-bottom: 15px;
}

.qr-preview {
    max-width: 100%;
    margin-top: 20px;
    display: none;
    text-align: center;
}

.qr-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}