/* ═══════════════════════════════════════════════════════════════════════
   MODAL.CSS — Modal de agradecimiento y animaciones
   ═════════════════════════════════════════════════════════════════════════ */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

#ibpModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 40, 64, .72);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#ibpModal.ibp-modal-visible {
  display: flex;
  animation: fadeInModal .35s ease;
}

.ibp-modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 80px rgba(10, 40, 64, .28);
  animation: slideUpModal .35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}

.ibp-modal-logo {
  margin: 0 auto 20px;
  display: block;
  height: 100px;
  width: auto;
}

.ibp-modal-emoji {
  font-size: 56px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.ibp-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0A2840;
  margin-bottom: 10px;
}

.ibp-modal-msg {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: #3D6070;
  line-height: 1.7;
  margin-bottom: 28px;
}

.ibp-modal-btn {
  background: #29ABE2;
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 36px;
  border-radius: 10px;
  transition: background .2s, transform .2s;
}

.ibp-modal-btn:hover {
  background: #1A8ABF;
  transform: translateY(-1px);
}

.ibp-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #7BAEC4;
  line-height: 1;
  transition: color .2s;
}

.ibp-modal-close:hover {
  color: #0A2840;
}

.ibp-modal-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #29ABE2, #00B8A9);
  border-radius: 4px;
  margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 480px) {
  .ibp-modal-box {
    padding: 40px 24px 32px;
  }

  .ibp-modal-logo {
    height: 80px;
  }

  .ibp-modal-title {
    font-size: 18px;
  }

  .ibp-modal-msg {
    font-size: 14px;
  }
}
