/* Contenedor flotante para notificaciones */
.notification-floating-container {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 24rem;
  width: calc(100% - 2rem);
}

/* Notificación flotante individual */
.floating-notification {
  position: relative;
  background-color: var(--pehuen-primary-50); /* #f4f7f5 - mismo verde que el index */
  border: 1px solid var(--pehuen-primary-200);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  padding: 1rem;
  pointer-events: auto;
  cursor: pointer;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  overflow: hidden;
  min-width: 20rem;
  max-width: 24rem;
  font-family: "Cabin", var(--font-sans, ui-sans-serif, system-ui, sans-serif);
}

/* Animación de entrada */
.floating-notification.notification-enter {
  transform: translateX(0);
  opacity: 1;
}

/* Animación de salida */
.floating-notification.notification-exit {
  transform: translateX(-100%);
  opacity: 0;
}

/* Link de la notificación */
.floating-notification__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.floating-notification__link:hover {
  text-decoration: none;
}

/* Contenido de la notificación */
.floating-notification__content {
  padding-right: 1.5rem;
}

.floating-notification__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgb(28 25 23); /* stone-900 - negro del estilo pehuen */
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.floating-notification__body {
  font-size: 0.8125rem;
  color: rgb(87 83 78); /* stone-600 - negro/gris del estilo pehuen */
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.floating-notification__time {
  font-size: 0.75rem;
  color: rgb(168 162 158); /* stone-400 */
}

/* Botón de cerrar */
.floating-notification__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  color: var(--pehuen-primary-600);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  opacity: 0.6;
  transition: opacity 0.2s, background-color 0.2s;
}

.floating-notification__close:hover {
  opacity: 1;
  background-color: var(--pehuen-primary-100);
}

.floating-notification__close:focus {
  outline: 2px solid var(--pehuen-primary-500);
  outline-offset: 2px;
}

/* Hover effect en la notificación completa */
.floating-notification:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transform: translateX(0) translateY(-2px);
  border-color: var(--pehuen-primary-300);
}

.floating-notification.notification-exit:hover {
  transform: translateX(-100%);
}

/* Responsive: en pantallas pequeñas, ajustar ancho */
@media (max-width: 640px) {
  .notification-floating-container {
    max-width: calc(100% - 2rem);
    width: calc(100% - 2rem);
  }
}

