.js-nav-notificaciones.has-unread .fa-bell {
  animation: cyBellRing 1.8s ease-in-out infinite;
}

@keyframes cyBellRing {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(8deg); }
  40% { transform: rotate(-6deg); }
  50% { transform: rotate(0deg); }
}
.js-nav-notificaciones {
  position: relative;
}

.js-nav-notificaciones .fa-bell {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.js-nav-notificaciones.has-unread .fa-bell {
  animation: cyBellIdle 2.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 214, 10, 0.35));
}

.js-nav-notificaciones.has-unread.is-new .fa-bell {
  animation: cyBellAlert 0.9s ease-in-out 3;
}

.js-nav-notificaciones .t-Button-badge,
.js-nav-notificaciones .a-NavBar-badge,
.js-nav-notificaciones .badge {
  background: #ff2d55 !important;
  color: #fff !important;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.95);
  animation: cyBadgePulse 2.2s ease-in-out infinite;
}

.js-nav-notificaciones.has-unread::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.22);
  animation: cyNotifHalo 2.6s ease-out infinite;
}

@keyframes cyBellIdle {
  0%, 100% { transform: rotate(0deg); }
  4% { transform: rotate(10deg); }
  8% { transform: rotate(-8deg); }
  12% { transform: rotate(6deg); }
  16% { transform: rotate(0deg); }
}

@keyframes cyBellAlert {
  0% { transform: scale(1) rotate(0deg); }
  15% { transform: scale(1.12) rotate(14deg); }
  30% { transform: scale(1.08) rotate(-12deg); }
  45% { transform: scale(1.10) rotate(10deg); }
  60% { transform: scale(1.06) rotate(-8deg); }
  75% { transform: scale(1.03) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes cyBadgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes cyNotifHalo {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.24);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 45, 85, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 45, 85, 0);
  }
}
.cy-notif-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cy-notif-popup {
  width: min(520px, 100%);
  background: #ffffff;
  color: #111827;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  overflow: hidden;
  animation: cyNotifPopupIn 0.22s ease-out;
}

.cy-notif-popup.tipo-urgente {
  border-top: 6px solid #dc2626;
}

.cy-notif-popup.tipo-alerta {
  border-top: 6px solid #f59e0b;
}

.cy-notif-popup.tipo-info {
  border-top: 6px solid #2563eb;
}

.cy-notif-popup-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 12px 20px;
}

.cy-notif-popup-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cy-notif-popup-title-wrap {
  flex: 1;
  min-width: 0;
}

.cy-notif-popup-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.cy-notif-popup-type {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cy-notif-popup-body {
  padding: 0 20px 18px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #374151;
  white-space: pre-line;
}

.cy-notif-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px 20px;
}

.cy-notif-popup-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.cy-notif-popup-btn:hover {
  transform: translateY(-1px);
}

.cy-notif-popup-btn-secondary {
  background: #e5e7eb;
  color: #111827;
}

.cy-notif-popup-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

@keyframes cyNotifPopupIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cy-toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cy-toast {
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  animation: cyToastIn 0.2s ease-out;
}

@keyframes cyToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}