/* =====================================================
   Modal "Dar ahora" – Diezmos y ofrendas
   Archivo: css/modal-ofrendas.css
   ===================================================== */

.dar-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(20, 18, 60, .65);
}
.dar-overlay.abierto { display: flex; }

.dar-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 28px 22px 22px;
  border-radius: 16px;
  background: #f6efdc;
  color: #1f1d55;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  animation: darIn .2s ease-out;
}
@keyframes darIn {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.dar-modal h3 { margin: 0 0 6px; font-size: 1.6rem; }
.dar-sub      { margin: 0 0 16px; font-size: .95rem; opacity: .85; }

.dar-cerrar {
  position: absolute;
  top: 8px;
  right: 12px;
  border: 0;
  background: none;
  color: #1f1d55;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.dar-bloque { margin-bottom: 18px; }
.dar-bloque h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.dar-qr {
  display: block;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 8px;
  border-radius: 12px;
  background: #fff;
}
.dar-nota { margin: 0; font-size: .82rem; opacity: .8; }

.dar-dato {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  text-align: left;
}
.dar-dato small   { display: block; font-size: .75rem; opacity: .7; }
.dar-dato strong  { display: block; font-size: 1.05rem; letter-spacing: .3px; word-break: break-all; }

.dar-copiar {
  flex: none;
  padding: 9px 13px;
  border: 0;
  border-radius: 8px;
  background: #e8832b;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.dar-label   { margin: 0 0 8px; font-size: .9rem; font-weight: 700; text-align: left; }
.dar-motivos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.motivo {
  padding: 10px 8px;
  border: 2px solid #1f1d55;
  border-radius: 10px;
  background: #fff;
  color: #1f1d55;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.motivo:hover,
.motivo.copiado { background: #1f1d55; color: #fff; }

.dar-toast {
  min-height: 1.2em;
  margin: 14px 0 0;
  font-size: .9rem;
  font-weight: 600;
  color: #2a7a3b;
}

@media (max-width: 420px) {
  .dar-motivos { grid-template-columns: 1fr; }
}

/* ---------- Yape: guardar QR en el celular ---------- */
.dar-solo-movil { display: none; }
.dar-modal.es-movil .dar-solo-movil { display: block; }
.dar-modal.es-movil .dar-solo-pc    { display: none; }

.dar-qr { -webkit-touch-callout: default; user-select: auto; }

.dar-btn-qr {
  display: block;
  width: 100%;
  margin: 4px 0 12px;
  padding: 14px 16px;
  border: 0;
  border-radius: 12px;
  background: #742284;           /* morado Yape */
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(116, 34, 132, .35);
}
.dar-btn-qr:active { transform: scale(.98); }

.dar-pasos {
  margin: 0 0 10px;
  padding: 10px 12px 10px 30px;
  border-radius: 12px;
  background: #fff;
  font-size: .85rem;
  line-height: 1.4;
  text-align: left;
}
.dar-pasos li + li { margin-top: 6px; }

/* ---------- Sección "Diezmos y ofrendas": botones de motivo ---------- */
.give-elige { margin: 18px 0 12px; }
.give-motivos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}
.give-motivo {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  padding: 14px 10px;
  border: 2px solid #1f1d55;
  border-radius: 12px;
  background: #fff;
  color: #1f1d55;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: .15s;
}
.give-motivo:hover,
.give-motivo:focus-visible { background: #1f1d55; color: #fff; }
@media (max-width: 760px) { .give-motivos { grid-template-columns: 1fr 1fr; padding: 0 4px; } }
@media (max-width: 420px) { .give-motivo { padding: 14px 8px; font-size: .9rem; min-height: 60px; } }

/* ---------- Modal: aviso del motivo copiado ---------- */
.dar-motivo-activo {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e3f3e6;
  color: #1d5a2b;
  text-align: left;
  font-size: .92rem;
}
.dar-motivo-activo.visible { display: block; }
.dar-motivo-activo small { display: block; margin: 2px 0 0; opacity: .85; }

