/* =========================
   CHECKOUT
========================= */

.checkout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

@media(max-width: 768px){
    .checkout {
        grid-template-columns: 1fr;
    }
}

/* CONTENEDORES */
.section {
    background: #f0f2ff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #d5d9ff;
}

/* FORMULARIOS */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    color: #0d114c;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #0d6efd;
    border-radius: 4px;
}

/* RESUMEN */
.summary {
    background: #fff;
    border: 2px solid #0d114c;
    padding: 1rem;
    border-radius: 8px;
}

.item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e3e7ff;
}

.total {
    font-weight: bold;
    color: #0d114c;
    font-size: 1.2rem;
    border-top: 2px solid #0d114c;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
}

/* BOTÓN */
.btn-pay {
    background: #0d6efd;
    color: #fff;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
}

.btn-pay:hover {
    background: #0b5ed7;
}

/* MODAL */
.modal-pago {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-pago.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    border-top: 6px solid #0d114c;
}

/* LOADER */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0d6efd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}