/* CHECKOUT */
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }

.pay-option {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; cursor: pointer; transition: all 0.15s;
}
.pay-option:hover { background: var(--bg-2); }
.pay-option.active { border-color: var(--ink); background: rgba(11,37,69,0.04); }
.pay-option input { width: 18px; height: 18px; accent-color: var(--ink); }
.pay-option-body { flex: 1; }

.checkout-summary { position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.sum-total { padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--border); font-size: 17px; font-weight: 700; }

/* MODAL SHELL para checkouts */
.modal-shell {
  min-height: 100vh; padding: 40px 20px;
  background: linear-gradient(180deg, rgba(11,37,69,0.65), rgba(11,37,69,0.85));
  display: flex; align-items: flex-start; justify-content: center;
}

/* Mercado Pago window */
.mp-window {
  background: var(--surface); border-radius: var(--radius-xl);
  width: 100%; max-width: 460px; box-shadow: var(--shadow-lg);
  overflow: hidden; margin-top: 40px;
}
.mp-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(180deg, #FFF8E0, #FFFCE8); }
.mp-body { padding: 28px; }

/* Oxxo window */
.oxxo-window {
  background: var(--surface); border-radius: var(--radius-xl);
  width: 100%; max-width: 480px; box-shadow: var(--shadow-lg);
  overflow: hidden; margin-top: 40px;
}
.oxxo-head { padding: 16px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; background: #FFF1F1; }
.oxxo-logo { font-family: 'Fraunces', serif; font-weight: 800; font-size: 14px; background: #E50000; color: #FFD800; padding: 4px 10px; border-radius: 4px; letter-spacing: 1px; }
.oxxo-body { padding: 28px; }
.oxxo-amount { display: flex; flex-direction: column; align-items: center; padding: 20px; background: var(--bg-2); border-radius: var(--radius); margin-bottom: 18px; }
.oxxo-amount span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; }
.oxxo-amount strong { font-family: 'Fraunces', serif; font-size: 38px; font-weight: 600; }
.oxxo-ref { padding: 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); }
.oxxo-barcode { display: flex; gap: 1px; height: 50px; margin-top: 8px; align-items: stretch; }
.oxxo-barcode span { background: var(--ink); display: block; }
.oxxo-steps { margin-top: 18px; padding-left: 22px; font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.oxxo-steps li { margin-bottom: 6px; }
.oxxo-actions { display: flex; gap: 10px; margin-top: 20px; }
.oxxo-actions .btn { flex: 1; }

/* ESTADO CIRCLE */
.estado-circle {
  width: 96px; height: 96px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 700; color: #fff;
  margin: 0 auto;
}
.estado-confirmado { background: var(--green); box-shadow: 0 12px 32px rgba(21,128,61,0.3); }
.estado-pendiente { background: var(--amber); position: relative; }
.estado-spin {
  display: block; width: 44px; height: 44px;
  border: 4px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 999px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 880px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
