/* Conexia — Exit intent popup
   Aparece una vez por sesión si el usuario mueve el ratón hacia arriba (intent de cerrar tab). */

.cx-exit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9300;
  background: rgba(8, 12, 28, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
}
.cx-exit-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cx-exit-modal {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 32px;
  box-shadow: 0 32px 80px -20px rgba(15, 23, 42, .55), 0 0 0 1px rgba(15, 23, 42, .05);
  font-family: var(--cx-font);
  color: var(--cx-ink);
  transform: scale(.92) translateY(12px);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.34, 1.56, .64, 1), opacity 240ms ease;
  text-align: center;
}
.cx-exit-backdrop.is-open .cx-exit-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.cx-exit-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cx-line, #e6e9f2);
  background: #fff;
  color: var(--cx-ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all 200ms ease;
}
.cx-exit-modal__close:hover {
  background: var(--cx-bg-mute, #f2f4fa);
  transform: rotate(90deg);
}
.cx-exit-modal__close svg { width: 14px; height: 14px; }

.cx-exit-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(47, 107, 255, .12), rgba(14, 165, 233, .12));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--cx-blue, #2f6bff);
}
.cx-exit-modal__icon svg { width: 28px; height: 28px; }

.cx-exit-modal__title {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.cx-exit-modal__title em {
  font-style: normal;
  background: linear-gradient(135deg, #2f6bff, #0EA5E9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cx-exit-modal__desc {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cx-mute, #5f6b8a);
}

.cx-exit-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cx-exit-modal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all 200ms ease;
}
.cx-exit-modal__btn--primary {
  background: linear-gradient(135deg, #2f6bff, #0EA5E9);
  color: #fff;
  box-shadow: 0 6px 18px -4px rgba(47, 107, 255, .45);
}
.cx-exit-modal__btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -4px rgba(47, 107, 255, .55);
  color: #fff;
}
.cx-exit-modal__btn--ghost {
  background: transparent;
  color: var(--cx-mute);
  border-color: var(--cx-line);
}
.cx-exit-modal__btn--ghost:hover {
  background: var(--cx-bg-soft);
  color: var(--cx-ink);
}

@media (max-width: 480px) {
  .cx-exit-modal { padding: 28px 22px 22px; }
  .cx-exit-modal__title { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-exit-backdrop, .cx-exit-modal { transition: opacity 200ms ease; transform: none !important; }
}
