/* -------- MODAL DE DONACIÓN (por cada proyecto) -------- */

.dsp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: flex-start; /* Para que aparezca arriba */
  justify-content: center;
  padding: 40px 20px; /* Espacio arriba y abajo */
  overflow-y: auto; /* Scroll solo en overlay si es necesario */
}

.dsp-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh; /* Limita la altura del modal */
  overflow-y: auto; /* Scroll interno del contenido */
  padding: 25px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
}

.dsp-modal-content::-webkit-scrollbar {
  width: 6px;
}
.dsp-modal-content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.dsp-close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 26px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
  transition: color 0.3s ease;
}

.dsp-close-modal:hover {
  color: #000;
}

.dsp-proyecto-nombre {
  font-size: 1.2rem;
  color: #0073aa;
  margin-bottom: 15px;
  
}

.paypal-button-container {
  margin-top: 20px;
}
.dsp-donar-widget input[type="number"] {
    padding: 0.5em;
   
    width: 100%;
    margin-bottom: 1em;
}

.dsp-donar-widget button {
    padding: 5px 20px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    background-color: #042e58;
    color: white;
    cursor: pointer;
}

.dsp-agradecimiento {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #28a745;
  display: none;
}

/* -------- MODAL GLOBAL DE ÉXITO (animado con SVG) -------- */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #fff;
  border-radius: 10px;
  padding: 35px 30px 25px 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
  position: relative;
  font-family: 'Segoe UI', sans-serif;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close-btn:hover {
  color: #000;
}

.success-icon {
  margin: 0 auto 20px auto;
  width: 72px;
  height: 72px;
  stroke: #4BB543;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.6s ease forwards;
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

.modal-message {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
}

.modal-submessage {
  font-size: 1rem;
  color: #666;
}

/* -------- TOAST -------- */

#dsp-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #0073aa;
  color: #fff;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
  z-index: 11000;
  transition: opacity 0.4s ease;
}
