/* ============================================================
   DONACIONES — Modal profesional (mobile-first)
   ============================================================ */

/* ── Botón CTA legacy en nav ───────────────────── */
.nav-cta-donate {
  background: linear-gradient(135deg, #00B14F 0%, #00D563 100%) !important;
  color: #fff !important;
  border: 2px solid #00B14F !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1.1rem !important;
  border-radius: 999px !important;
  transition: all .25s;
  box-shadow: 0 4px 14px rgba(0, 177, 79, .25);
}
.nav-cta-donate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 177, 79, .45);
}

/* ── Modal overlay (mobile-first: fullscreen en celular) ── */
.donate-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 30, 15, .85);
  backdrop-filter: blur(8px);
  display: flex; align-items: stretch; justify-content: stretch;
  padding: 0;            /* sin padding en mobile */
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  -webkit-overflow-scrolling: touch;
}
.donate-overlay.open { opacity: 1; pointer-events: auto; }

.donate-card {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 0;       /* fullscreen en mobile */
  box-shadow: none;
  transform: translateY(20px);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
  overflow: hidden;
}
.donate-overlay.open .donate-card { transform: translateY(0); }

.donate-close {
  position: absolute; top: max(.75rem, env(safe-area-inset-top, .75rem));
  right: max(.75rem, env(safe-area-inset-right, .75rem));
  width: 42px; height: 42px;
  background: rgba(0, 0, 0, .55);
  border: none; border-radius: 50%;
  color: #fff;
  font-size: 1.1rem; font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 20;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.donate-close:hover { background: rgba(0, 0, 0, .85); transform: rotate(90deg); }

/* ═══ HERO ═══════════════════════════════════════ */
.donate-hero {
  position: relative;
  flex-shrink: 0;
  background-image:
    linear-gradient(180deg, rgba(0, 30, 15, .35) 0%, rgba(0, 30, 15, .88) 100%),
    url('../img/hero_amazonia.png');
  background-size: cover;
  background-position: center 35%;
  color: #fff;
  padding: 2.2rem 1.2rem 1.6rem;
  min-height: 220px;
  max-height: 280px;
  display: flex;
  align-items: flex-end;
}
.donate-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 63, 92, .35) 0%, rgba(0, 107, 47, .35) 100%);
  mix-blend-mode: multiply;
}
.donate-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}
.donate-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  padding: .3rem .75rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: .7rem;
}
.donate-hero h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 .6rem;
  letter-spacing: -.3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.donate-hero-lead {
  font-size: .85rem;
  line-height: 1.5;
  margin: 0 0 .5rem;
  opacity: .96;
}
.donate-hero-sub {
  font-size: .8rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  opacity: .85;
  font-style: italic;
}
.donate-hero-ctas {
  display: flex; flex-direction: column;
  gap: .5rem;
  margin-top: .5rem;
}
.donate-hero-cta-primary,
.donate-hero-cta-secondary {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: .8rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: .9rem;
  transition: all .2s;
  text-align: center;
}
.donate-hero-cta-primary {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #003F5C;
  box-shadow: 0 4px 14px rgba(255, 165, 0, .4);
}
.donate-hero-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 165, 0, .5); }
.donate-hero-cta-secondary {
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, .4);
  color: #fff;
}
.donate-hero-cta-secondary:hover { background: rgba(255, 255, 255, .22); }

/* ═══ SCROLL CONTAINER ═══════════════════════════ */
.donate-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fafbfa;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* ═══ SECCIONES ═════════════════════════════════ */
.donate-section {
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.donate-section:last-child { border-bottom: none; }
.donate-section-head {
  text-align: center;
  margin-bottom: 1.2rem;
}
.donate-section-kicker {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #006B2F;
  background: rgba(0, 177, 79, .12);
  padding: .25rem .7rem;
  border-radius: 999px;
  margin-bottom: .5rem;
}
.donate-section-head h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #003F5C;
  margin: 0 0 .4rem;
  line-height: 1.2;
}
.donate-section-head p {
  font-size: .85rem;
  color: #4a6b5d;
  margin: 0;
  line-height: 1.5;
}

/* ═══ IMPACT CARDS ══════════════════════════════ */
.impact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
}
.impact-card {
  display: flex;
  gap: .8rem;
  padding: .85rem;
  background: #fff;
  border: 1.5px solid #e8efe9;
  border-radius: 12px;
  transition: all .2s;
}
.impact-card:hover {
  border-color: #00B14F;
  box-shadow: 0 4px 12px rgba(0, 177, 79, .15);
}
.impact-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0, 177, 79, .15), rgba(0, 177, 79, .05));
  color: #00B14F;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.impact-body { flex: 1; min-width: 0; }
.impact-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #003F5C;
  margin-bottom: .2rem;
  line-height: 1.25;
}
.impact-copy {
  font-size: .8rem;
  color: #4a6b5d;
  line-height: 1.4;
  margin: 0 0 .4rem;
}
.impact-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  color: #00B14F;
  background: rgba(0, 177, 79, .08);
  padding: .2rem .55rem;
  border-radius: 5px;
  display: inline-block;
}

/* ═══ NEQUI CARD ═════════════════════════════════ */
.nequi-card {
  background: linear-gradient(135deg, #200122 0%, #6f0000 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.1rem;
  box-shadow: 0 8px 20px rgba(32, 1, 34, .35);
  position: relative;
  overflow: hidden;
}
.nequi-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none;
}
.nequi-header {
  display: flex; align-items: center; gap: .7rem;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  position: relative;
}
.nequi-logo {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, .15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  backdrop-filter: blur(8px);
}
.nequi-bank {
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .5px;
}
.nequi-account-type {
  font-size: .72rem;
  opacity: .75;
  margin-top: 2px;
}
.nequi-rows {
  position: relative;
  margin-bottom: 1rem;
}
.nequi-row {
  display: flex; flex-direction: column;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  gap: .25rem;
}
.nequi-row:last-child { border-bottom: none; }
.nequi-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .65;
}
.nequi-value {
  font-family: 'Montserrat', sans-serif;
  font-size: .92rem;
  font-weight: 700;
  word-break: break-all;
}
.nequi-phone {
  font-size: 1.2rem !important;
  letter-spacing: 1px;
}
.nequi-phone-wrap {
  display: flex; align-items: center; gap: .5rem;
  flex-wrap: wrap;
}
.nequi-copy {
  background: #FFD700;
  color: #200122;
  border: none;
  border-radius: 6px;
  padding: .35rem .65rem;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
  transition: all .2s;
  font-family: 'Montserrat', sans-serif;
}
.nequi-copy:hover { background: #FFE44D; }
.nequi-copy.copied { background: #00B14F; color: #fff; }
.nequi-copy-label { display: inline; }

.nequi-steps {
  background: rgba(0, 0, 0, .28);
  border-radius: 10px;
  padding: .85rem;
  margin-bottom: 1rem;
  position: relative;
}
.nequi-step {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .3rem 0;
}
.nequi-step-num {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: #FFD700;
  color: #200122;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .72rem;
  font-family: 'Montserrat', sans-serif;
}
.nequi-step-text {
  font-size: .8rem;
  line-height: 1.45;
  opacity: .94;
}
.nequi-step-text strong { font-weight: 700; color: #FFD700; }

.nequi-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  background: #FFD700;
  color: #200122;
  border: none;
  border-radius: 10px;
  padding: .85rem;
  font-size: .9rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 215, 0, .35);
  transition: all .2s;
  position: relative;
}
.nequi-cta:hover { background: #FFE44D; }

/* ═══ ALLOCATION ════════════════════════════════ */
.alloc-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: .5rem;
}
.alloc-row {
  display: flex; align-items: center;
  gap: .85rem;
  padding: .7rem .85rem;
  background: #fff;
  border-radius: 10px;
  border: 1.5px solid #e8efe9;
}
.alloc-pct {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: conic-gradient(#00B14F 0% var(--pct), #e8efe9 var(--pct) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.alloc-pct::before {
  content: '';
  position: absolute;
  inset: 4px;
  background: #fff;
  border-radius: 50%;
}
.alloc-pct-num {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  font-size: .76rem;
  font-weight: 800;
  color: #003F5C;
}
.alloc-info { flex: 1; min-width: 0; }
.alloc-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  color: #003F5C;
  margin-bottom: 2px;
}
.alloc-desc {
  font-size: .74rem;
  color: #4a6b5d;
  line-height: 1.4;
}
.alloc-cta {
  display: block;
  margin-top: 1rem;
  color: #00B14F;
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  text-align: center;
}
.alloc-cta:hover { text-decoration: underline; }

/* ═══ OTHER WAYS ════════════════════════════════ */
.other-grid {
  display: flex; flex-direction: column;
  gap: .6rem;
}
.other-card {
  display: flex; gap: .8rem;
  padding: .85rem;
  background: #fff;
  border: 1.5px solid #e8efe9;
  border-radius: 12px;
}
.other-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(0, 174, 239, .15), rgba(0, 174, 239, .05));
  color: #00AEEF;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.other-body { flex: 1; min-width: 0; }
.other-title {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #003F5C;
  margin-bottom: .2rem;
}
.other-copy {
  font-size: .78rem;
  color: #4a6b5d;
  line-height: 1.4;
  margin: 0 0 .5rem;
}
.other-cta {
  display: inline-flex; align-items: center; gap: .3rem;
  background: transparent;
  color: #00B14F;
  border: none;
  padding: 0;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.other-cta:hover { text-decoration: underline; }

/* ═══ FOOTER ═══════════════════════════════════ */
.donate-footer {
  flex-shrink: 0;
  background: linear-gradient(180deg, #f6fcf8 0%, #ecf8f0 100%);
  border-top: 1px solid rgba(0, 177, 79, .12);
  padding: 1.2rem 1.2rem calc(1rem + env(safe-area-inset-bottom, 0px));
}
.donate-footer-stamp {
  display: flex; gap: .7rem; align-items: flex-start;
}
.donate-footer-icon {
  width: 34px; height: 34px;
  background: #00B14F;
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 177, 79, .35);
}
.donate-footer-stamp > div:last-child { flex: 1; min-width: 0; }
.donate-footer-stamp strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  color: #003F5C;
  margin-bottom: .25rem;
}
.donate-footer-stamp p {
  font-size: .75rem;
  color: #4a6b5d;
  line-height: 1.5;
  margin: 0 0 .35rem;
}
.donate-footer-contact a {
  color: #00B14F;
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

/* ── Botón flotante (esquina inferior IZQUIERDA, opuesto al WhatsApp) ── */
.donate-float {
  position: fixed;
  left: 1.2rem;
  bottom: 1.2rem;
  z-index: 9990;
  background: linear-gradient(135deg, #00B14F, #00D563);
  color: #fff;
  border: none;
  height: 60px;
  padding: 0 22px 0 18px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 177, 79, .5);
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .3px;
  transition: all .25s;
  text-decoration: none;
  white-space: nowrap;
}
.donate-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 14px 32px rgba(0, 177, 79, .65);
  background: linear-gradient(135deg, #00D563, #00E873);
}
.donate-float-icon {
  color: #fff;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25));
  animation: donateHeartbeat 1.8s ease-in-out infinite;
}
@keyframes donateHeartbeat {
  0%, 100% { transform: scale(1); }
  15%      { transform: scale(1.18); }
  30%      { transform: scale(1); }
  45%      { transform: scale(1.10); }
  60%      { transform: scale(1); }
}
.donate-float-label { color: #fff; white-space: nowrap; }

@media (max-width: 480px) {
  .donate-float { font-size: .9rem; height: 52px; padding: 0 16px 0 12px; }
}

/* Ocultar scroll-top si existe (choca con el donate) */
@media (max-width: 768px) {
  .scroll-top { bottom: 5rem !important; left: auto !important; right: 1.2rem !important; }
}

/* ═══ DESKTOP (≥ 700px) ═══════════════════════ */
@media (min-width: 700px) {
  .donate-overlay {
    padding: 1rem;
    align-items: center;
    justify-content: center;
  }
  .donate-card {
    width: auto;
    max-width: 640px;
    max-height: calc(100vh - 2rem);
    height: auto;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  }
  .donate-hero {
    min-height: 0;
    max-height: none;
    padding: 3rem 2rem 2.5rem;
    align-items: center;
  }
  .donate-hero h2 { font-size: 1.85rem; }
  .donate-hero-lead { font-size: 1rem; }
  .donate-hero-sub { font-size: .88rem; }
  .donate-hero-ctas { flex-direction: row; }
  .donate-hero-cta-primary, .donate-hero-cta-secondary {
    width: auto;
    font-size: .95rem;
    padding: .9rem 1.4rem;
  }
  .donate-section { padding: 2rem 1.8rem; }
  .donate-section-head h3 { font-size: 1.4rem; }
  .donate-section-head p { font-size: .9rem; }
  .impact-grid { grid-template-columns: 1fr 1fr; }
  .nequi-row { flex-direction: row; align-items: center; justify-content: space-between; }
  .nequi-value { text-align: right; }
  .nequi-header { gap: .8rem; }
  .nequi-logo { width: 48px; height: 48px; }
  .nequi-bank { font-size: 1.05rem; }
  .donate-footer { padding: 1.5rem 1.8rem; }
  .donate-footer-stamp { flex-direction: row; }
  .donate-footer-stamp strong { font-size: .88rem; }
  .donate-footer-stamp p { font-size: .78rem; }
}

/* ── Mobile muy pequeño ──────────────────────── */
@media (max-width: 380px) {
  .donate-hero h2 { font-size: 1.25rem; }
  .donate-hero-lead { font-size: .82rem; }
  .donate-hero-cta-primary, .donate-hero-cta-secondary { font-size: .85rem; padding: .7rem 1rem; }
  .donate-section { padding: 1.2rem 1rem; }
  .nequi-card { padding: 1rem .9rem; }
}
