/* ============ MODAL DE CONFIRMACIÓN (REUTILIZABLE) ============ */

.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('img/fondo2.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.success-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.success-modal.show {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.success-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, rgba(20, 30, 50, 0.98), rgba(10, 20, 40, 0.99));
  border: 3px solid var(--color-primary, #f2c200);
  border-radius: 32px;
  padding: 50px 40px;
  max-width: 520px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(242, 194, 0, 0.1);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-checkmark {
  width: 90px;
  height: 90px;
  margin: 0 auto 25px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  color: white;
  animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

@keyframes popIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-card h2 {
  color: var(--color-primary, #f2c200);
  font-size: 2.2rem;
  margin: 20px 0 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.success-card p {
  color: #e0e7ff;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 12px 0;
}

.success-btn {
  background: linear-gradient(135deg, var(--color-primary, #f2c200), var(--color-primary-dark, #d9a800));
  color: var(--color-text-dark, #0a1a2a);
  border: none;
  padding: 12px 32px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 20px;
  transition: all 0.2s ease;
}

.success-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ffd83b, var(--color-primary, #f2c200));
}

/* ============ RESPONSIVE ============ */
@media (max-width: 600px) {
  .success-card {
    padding: 40px 30px;
    max-width: 90%;
  }

  .success-card h2 {
    font-size: 1.8rem;
  }

  .success-card p {
    font-size: 1rem;
  }

  .success-checkmark {
    width: 70px;
    height: 70px;
    font-size: 42px;
  }
}
