.contenedor_checkout {
    max-width: 1100px;
    margin: auto;

    display: flex;
    flex-direction: column;
    gap: 20px;
}

.barra_progreso {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.paso {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.paso.activo {
    background: #00a650;
    color: white;
}

.paso.completado {
    background: #007d3c;
    color: white;
}

.linea {
    width: 60px;
    height: 3px;
    background: #ddd;
}

.contenido_checkout {
    display: flex;
    gap: 30px;
}

.tarjetas_pago {
    flex: 2;
}

.resumen_compra {
    flex: 1;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.btn_metodo {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    text-align: left;
}

.btn_metodo:hover {
    border-color: #00a650;
}

.btn_metodo.deshabilitado {
    background: #f1f1f1;
    cursor: not-allowed;
}

.btn_pagar {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 6px;
    background: #6f42c1;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.btn_factura {
    margin-top: 10px;
    padding: 8px 12px;
    border: 1px solid #666;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}
.checkout-container {
    
    margin: 20px auto;
    max-width: 1200px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active {
    background: #4CAF50;
}

.step.completed {
    background: #007bff;
}

.line {
    flex: 1;
    height: 2px;
    background: #ccc;
}

.checkout-content {
    display: flex;
    gap: 30px;
}

/* Métodos de pago */
.payment-methods {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
    cursor: pointer;
    transition: 0.2s;
}

.payment-btn:hover {
    background: #e6f0ff;
    border-color: #007bff;
}

.payment-btn.disabled {
    background: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

/* Resumen */
.summary {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-item, .summary-total {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.summary-item.discount {
    color: green;
}

.summary-total.falabella {
    font-weight: bold;
    color: #d32f2f;
}

.btn-pay {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-pay:hover {
    background: #0056b3;
}

.btn-invoice {
    padding: 8px 12px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.terms {
    margin-top: 15px;
    font-size: 14px;
}
.checkout-container {
    
    margin: 20px auto;
    max-width: 1200px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.step.active {
    background: #4CAF50;
}

.step.completed {
    background: #007bff;
}

.line {
    flex: 1;
    height: 2px;
    background: #ccc;
}

.checkout-content {
    display: flex;
    gap: 30px;
}

/* Métodos de pago */
.payment-methods {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #f8f8f8;
    cursor: pointer;
    transition: 0.2s;
}

.payment-btn:hover {
    background: #e6f0ff;
    border-color: #007bff;
}

.payment-btn.disabled {
    background: #f1f1f1;
    color: #999;
    cursor: not-allowed;
}

/* Resumen */
.summary {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-item, .summary-total {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.summary-item.discount {
    color: green;
}

.summary-total.falabella {
    font-weight: bold;
    color: #d32f2f;
}

.btn-pay {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-pay:hover {
    background: #0056b3;
}

.btn-invoice {
    padding: 8px 12px;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
}

.terms {
    margin-top: 15px;
    font-size: 14px;
}
.checkout-container {
   
    max-width: 1200px;
    margin: 30px auto;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.step {
    width: 30px;
    height: 30px;
    background: #ccc;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step.active { background: #4CAF50; }
.step.completed { background: #2196F3; }
.line {
    flex: 1;
    height: 2px;
    background: #ccc;
}

.checkout-content {
    display: flex;
    gap: 20px;
}

.payment-methods {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.payment-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    transition: all .2s;
}
.payment-btn img {
    width: 24px;
    height: 24px;
}
.payment-btn:hover {
    background: #eef6ff;
    border-color: #2196F3;
}
.payment-btn.disabled {
    color: #aaa;
    background: #f5f5f5;
    cursor: not-allowed;
}
.payment-btn.yape {
    background: #7d2ae8;
    color: #fff;
    font-weight: bold;
}

.summary {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin: 12px 0;
}
.btn-pay {
    width: 100%;
    padding: 12px;
    background: #2196F3;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.btn-pay:hover { background: #1976d2; }

.invoice {
    margin-top: 15px;
}
.btn-invoice {
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.modal-card input {
    width: 100%;
    padding: 10px;
    margin: 6px 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.modal-actions {
    display: flex;
    justify-content: space-between;
}
.btn-cancel {
    padding: 10px 15px;
    background: #ccc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.btn-confirm {
    padding: 10px 15px;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.metodo {
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.btn_metodo {
    width: 100%;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn_metodo:hover {
    background: #f1f1f1;
}

.btn_metodo.activo {
    border-left: 4px solid #6a0dad;
    background: #eef5ff;
}

.contenido_metodo {
    padding: 15px;
    border-top: 1px solid #ddd;
    background: #fafafa;
}
.checkout-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.checkout-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Métodos de pago */
.payment-methods {
    flex: 2;
}

.payment-btn {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.payment-btn:hover {
    background: #f5f5f5;
}

.payment-btn.active {
    border: 2px solid #6a0dad;
    background: #f9f6ff;
}

.payment-btn img {
    width: 28px;
    height: 28px;
}

/* Colores por tipo */
.credito { border-left: 4px solid #007bff; }
.debito { border-left: 4px solid #17a2b8; }
.yape { border-left: 4px solid #8e44ad; }
.pagoefectivo { border-left: 4px solid #f39c12; }
.cupon { border-left: 4px solid #27ae60; }
.disabled { opacity: 0.5; cursor: not-allowed; }

/* Contenido desplegable */
.contenido-metodo {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: -8px;
    margin-bottom: 12px;
    background: #fafafa;
}

/* Resumen */
.summary {
    flex: 1;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
}

.summary-item,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 15px;
}

.summary-total {
    font-weight: 700;
    font-size: 17px;
}

.btn-pay {
    width: 100%;
    padding: 12px;
    background: #6a0dad;
    color: #fff;
    font-weight: 600;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    margin: 12px 0;
}

.btn-invoice {
    border: 1px solid #6a0dad;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

/* Modal tarjetas */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
}

.modal-card input {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel {
    background: #ddd;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-confirm {
    background: #6a0dad;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}
.contenido-metodo {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-top: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.input-metodo {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
}

.input-metodo:focus {
    border-color: #6a0dad; /* morado tipo Yape */
    outline: none;
    box-shadow: 0 0 4px rgba(106,13,173,0.3);
}

.aviso {
    font-size: 13px;
    color: #e67e22;
    display: block;
    margin-top: 8px;
}
.aviso {
    display: inline-block; /* hace que el fondo se ajuste al texto */
    background-color: rgb(255, 210, 126);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: #444;
    margin-top: 6px;
}
