.donacion {
  font-family: 'Lato', sans-serif;
  background-color: var(--color-blanco);
  color: var(--color-negro);
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  box-sizing: border-box;
  background-image: url(../assets/img/fondo.png);
}

.donacion h2 {
  font-family: 'Breathing', sans-serif;
  font-size: 4rem;
  color: var(--color-verde, #456344);
  margin-bottom: 0.5rem;
  font-weight: 500;
  border-bottom: 2px solid #456344;
  padding-bottom: 0.5rem;
  width: fit-content;
}

.donacion-subtitulo {
  font-size: 1.2rem;
  color: var(--color-negro);
  margin: 0;
}

/* Botón abrir */
.donacion-btn {
  width: 100%;
  max-width: 200px;
  margin-top: 1rem;
  background-color: var(--color-celeste);
  color: var(--color-negro);
  border: none;
  border-radius: 4px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-family: 'Raleway', sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  min-height: 48px;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.donacion-btn:hover {
  background-color: #88acf0;
  transform: translateY(-1px);
  color: var(--color-blanco);
}

.donacion-btn:active {
  transform: translateY(0);
}

/* Modal base */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  padding: 1rem;
  box-sizing: border-box;
}

/* Contenido del modal */
.modal-content {
  background-color: var(--color-blanco, #fff);
  color: var(--color-negro, #000);
  padding: 4rem 2.5rem 3rem;
  border-radius: 20px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease forwards;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}

.modal-content.cerrar-animacion {
  animation: fadeOut 0.3s ease forwards;
}

/* Botón cerrar */
.cerrar2 {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 3rem;
  font-weight: bold;
  color: #444;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.cerrar2:hover {
  color: #000;
}

.modal-content .donacion-subtitulo {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Opciones de donación en dos columnas */
.donacion-opciones {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2rem;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 1.5rem 0;
  margin: 0 auto 2rem;
  list-style: none;
  flex-wrap: wrap;
  font-size: 1.1rem;
}

.donacion-opciones li {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 1rem;
}

.donacion-opciones li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: #ccc;
}

.donacion-opciones a {
  color: var(--color-verde, #456344);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.donacion-opciones a:hover {
  color: #2e4c2d;
}

.donacion-gracias {
  font-family: 'AlexanderLettering', cursive;
  width: 140px;
  height: 140px;
  margin: 2rem auto 1rem;
  display: block;
  filter: brightness(0) saturate(100%) invert(39%) sepia(13%) saturate(938%) hue-rotate(51deg) brightness(94%) contrast(86%);
}

.donacion-subtitulo2 {
  font-family: 'Breathing', sans-serif;
  font-size: 2.8rem;
  color: var(--color-verde);
  margin-top: 0.5rem;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.9);
    opacity: 0;
  }
}

/* Bloqueo de scroll cuando el modal está abierto */
body.modal-abierto {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .donacion {
    padding: 40px 15px;
  }

  .donacion h2 {
    font-size: 3rem;
  }

  .donacion-subtitulo {
    font-size: 1rem;
  }

  .donacion-opciones {
    flex-direction: column;
    gap: 1rem;
    border: none;
  }

  .donacion-opciones li {
    border: none !important;
  }

  .donacion-opciones li::after {
    display: none;
  }

  .donacion-gracias {
    width: 120px;
    height: 120px;
  }

  .donacion-subtitulo2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 3rem 1.2rem 2rem;
    font-size: 0.95rem;
    max-height: 85vh;
  }

  .cerrar2 {
    font-size: 2.4rem;
    top: 16px;
    right: 16px;
  }

  .donacion h2 {
    font-size: 2rem;
  }

  .donacion-subtitulo {
    font-size: 0.95rem;
  }

  .donacion-subtitulo2 {
    font-size: 2rem;
  }

  .donacion-gracias {
    width: 100px;
    height: 100px;
  }
}
