/* ═══════════════════════════════════════════════════════════════
   PAGO PARA CONTINUAR — estilos del modal
   ═══════════════════════════════════════════════════════════════ */

#pago-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, .72);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: pago-fade .18s ease-out;
}
@keyframes pago-fade { from { opacity: 0; } to { opacity: 1; } }

.pago-modal {
  background: #fff;
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  animation: pago-pop .2s ease-out;
}
@keyframes pago-pop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.pago-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 18px;
  background: #0b3d91;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.pago-x {
  background: transparent !important;
  border: 0 !important;
  color: #fff !important;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}

.pago-modal-body { padding: 20px 22px 24px; }
.pago-modal-body p { margin: 0 0 12px; font-size: 15px; color: #333; }

.pago-resumen, .pago-monto, .pago-pedido { text-align: center; }
.pago-monto b { font-size: 22px; color: #0b3d91; }

/* Rótulo "Pagar vía PayPal" + logotipo */
.pago-metodo {
  text-align: center !important;
  font-size: 16px;
  font-weight: 700;
  color: #333 !important;
  margin: 14px 0 10px !important;
}
.pago-paypal-word { font-style: italic; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; }
.pago-paypal-word i { color: #003087; font-style: italic; }
.pago-paypal-word em { color: #0079c1; font-style: italic; }

/* Botón dorado estilo PayPal (modo demo sin claves) */
.pago-btn-paypal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100% !important;
  border: 0 !important;
  border-radius: 24px !important;
  padding: 13px 16px !important;
  background: #ffc439 !important;
  color: #003087 !important;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25) !important;
  margin: 4px 0 12px !important;
  height: auto !important;
}
.pago-btn-paypal:hover { background: #f2ba36 !important; }
.pago-btn-paypal .pago-paypal-word { font-size: 19px; }

.pago-parpadeo { animation: pago-flash .35s ease-in-out 3; }
@keyframes pago-flash {
  0%, 100% { background: #fff7e0; }
  50% { background: #ffe9a8; }
}

.pago-btns { min-height: 48px; margin: 14px 0 6px; }
.pago-nota { font-size: 13px !important; color: #777 !important; text-align: center; }

.pago-cargando { text-align: center; padding: 26px 0 18px; }
.pago-spinner {
  width: 42px; height: 42px;
  margin: 0 auto 14px;
  border: 4px solid #e5e9f2;
  border-top-color: #0b3d91;
  border-radius: 50%;
  animation: pago-girar .8s linear infinite;
}
@keyframes pago-girar { to { transform: rotate(360deg); } }

.pago-aviso {
  background: #fff7e0;
  border: 1px solid #eedc9a;
  color: #7a5b00;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}
.pago-aviso-config { text-align: center; line-height: 1.5; }
.pago-aviso-config code {
  background: #f2f2f2;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 13px;
}

.pago-error {
  background: #fdecec;
  border: 1px solid #f2b8b5;
  color: #8c1d18;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 14px;
}

.pago-boton-prueba, .pago-boton-listo, .pago-boton-cerrar {
  display: block;
  width: 100% !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: none !important;
  text-transform: none !important;
  max-width: none !important;
  height: auto !important;
}
.pago-boton-prueba { background: #0b3d91 !important; color: #fff !important; }
.pago-boton-listo  { background: #1a7f37 !important; color: #fff !important; }
.pago-boton-cerrar { background: #e8e8e8 !important; color: #333 !important; }

.pago-exito { text-align: center; padding: 8px 0 4px; }
.pago-exito h3 { margin: 10px 0 8px; color: #1a7f37; font-size: 20px; }
.pago-check {
  width: 64px; height: 64px;
  margin: 6px auto 4px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #1a7f37;
  font-size: 34px;
  line-height: 64px;
}
