/* =========================================================
   CuporaNotify — componente de notificación flotante
   Uso desde JS: CuporaNotify.show(mensaje, 'error' | 'success' | 'info')
   ========================================================= */

.cup-notify {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  max-width: min(420px, calc(100vw - 2rem));
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 1rem;
  padding: .9rem 1rem;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .14);
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--cup-ink-black, #17110b);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 240ms ease-out, transform 240ms ease-out;
}

.cup-notify.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Variantes */
.cup-notify--error {
  border-color: rgba(180, 0, 0, .25);
  background: rgba(255, 245, 245, .98);
  color: #7b241c;
}

.cup-notify--success {
  border-color: rgba(74, 124, 89, .30);
  background: rgba(240, 252, 244, .98);
  color: #2d5a3d;
}

/* Contenido */
.cup-notify__message {
  flex: 1;
}

/* Botón cerrar */
.cup-notify__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: none;
  cursor: pointer;
  color: inherit;
  font-size: .85rem;
  line-height: 1;
  opacity: .45;
  transition: opacity 150ms ease, background 150ms ease;
}

.cup-notify__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, .07);
}

/* Mobile: aparece abajo centrado */
@media (max-width: 480px) {
  .cup-notify {
    right: 1rem;
    left: 1rem;
    max-width: none;
    bottom: 1rem;
    transform: translateY(10px);
  }

  .cup-notify.is-visible {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cup-notify {
    transition: none;
  }
}
