/* ============ DONACIÓN ECONÓMICA ============ */
.donation {
  background: var(--color-purple-primary);
}

.donation__container {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.donation__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  min-height: 38rem;
  padding: 5rem 4rem;
  color: var(--color-white);
}

.donation__title {
  font-size: var(--font-size-h2);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.donation__lead {
  font-size: var(--font-size-body);
  margin-bottom: 2.5rem;
}

.donation__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Cream pill with an icon, distinct from the site's primary button. */
.donation__method {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--button-min-height);
  padding: var(--button-padding-y) var(--button-padding-x);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-cream);
  color: var(--color-navy-900);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.donation__method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.donation__method-icon {
  flex-shrink: 0;
}

.donation__note {
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

/* min-height: 0 stops the photo's intrinsic height from setting the row, which
   would otherwise decide the panel's height instead of the copy. */
.donation__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

/* The two crops are different images, so each is hidden at the other's size
   rather than reusing one file. */
.donation__image--mobile {
  display: none;
}

@media (max-width: 1024px) {
  .donation__panel {
    min-height: 30rem;
    padding: 3.5rem 2rem;
  }
}

/* Single column: the panel stacks and takes the mobile crop inside it, so the
   desktop image drops out entirely. */
@media (max-width: 768px) {
  .donation__container {
    grid-template-columns: 1fr;
  }

  .donation__panel {
    align-items: center;
    min-height: 0;
    padding: 3rem 1.5rem;
    text-align: center;
    overflow-y: auto;
  }

  .donation__actions {
    justify-content: center;
  }

  .donation__method {
    font-size: var(--font-size-label);
    padding: 0.75rem 1rem;
  }

  .donation__whatsapp {
    align-self: center;
  }

  .donation__image--desktop {
    display: none;
  }

  .donation__image--mobile {
    display: block;
    height: auto;
    margin-top: 2.5rem;
    border-radius: 1rem;
  }
}

/* ---- Datos bancarios ---- */
/* Centred explicitly rather than leaning on the UA stylesheet's margin: auto,
   which the width override otherwise fights with. */
.bank {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(37.5rem, calc(100% - 3rem));
  max-height: calc(100dvh - 4rem);
  padding: 2.5rem;
  border: none;
  border-radius: 1.5rem;
  background: var(--color-white);
  color: var(--color-navy-900);
  overflow-y: auto;
}

.bank::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.bank__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bank__title {
  font-family: var(--font-family-base);
  font-size: 2rem;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

.bank__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: -0.5rem -0.5rem 0 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-navy-900);
  cursor: pointer;
}

.bank__lead {
  font-size: var(--font-size-body);
  line-height: var(--line-height-normal);
  margin-bottom: 2rem;
}

.bank__list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 2rem;
  margin: 0;
}

.bank__term {
  font-size: var(--font-size-body);
  color: var(--color-navy-900);
}

.bank__value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
}

.bank__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--color-blue-primary);
  cursor: pointer;
}

.bank__copy:hover {
  background: var(--color-blue-light);
}

.bank__status {
  display: block;
  min-height: 1.25rem;
  margin-top: 1.25rem;
  font-size: var(--font-size-label);
  color: var(--color-green-900);
}

/* Bottom sheet on small screens: full width, anchored to the bottom edge. */
@media (max-width: 768px) {
  .bank {
    inset: auto 0 0;
    min-width: 100%;
    max-height: 85dvh;
    margin: 0;
    padding: 1.75rem 1.5rem 2.5rem;
    border-radius: 1.5rem 1.5rem 0 0;
  }

  .bank__title {
    font-size: 1.5rem;
  }

  .bank__lead {
    margin-bottom: 1.5rem;
  }

  .bank__list {
    gap: 0.875rem 1.5rem;
  }

  .bank__term,
  .bank__value {
    font-size: var(--font-size-section);
  }
}
