/* Notificación nueva versión — diseño moderno y visual */

#notification-update-app {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99998;
  width: 360px;
  max-width: calc(100vw - 32px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 25px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

#notification-update-app.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

#notification-update-app .notification-update-inner {
  padding: 0;
}

/* Hero: fila 1 (icono + título + badge), fila 2 (subtítulo a ancho completo) */
#notification-update-app .notification-update-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  padding: 20px 20px 16px;
  background: linear-gradient(160deg, #f0f4ff 0%, #eef2ff 50%, #e0e7ff 100%);
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}

#notification-update-app .notification-update-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

#notification-update-app .notification-update-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

#notification-update-app .notification-update-hero-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#notification-update-app .notification-update-title {
  margin: 0;
  font-weight: 700;
  font-size: 17px;
  color: #1e293b;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

#notification-update-app .notification-update-title-date {
  font-weight: 600;
  color: #64748b;
}

#notification-update-app .notification-update-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px 10px;
  background: rgba(5, 150, 105, 0.12);
  border-radius: 20px;
  color: #059669;
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
}

#notification-update-app .notification-update-subtitle {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

/* Card CTA */
#notification-update-app .notification-update-card {
  margin: 14px 16px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

#notification-update-app .notification-update-card-cta {
  background: #fff;
  border-color: #e2e8f0;
}

#notification-update-app .notification-update-text {
  margin: 0;
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
}

#notification-update-app .notification-update-text strong {
  color: #334155;
}

/* Ayuda expandible */
#notification-update-app .notification-update-help {
  margin: 12px 16px 0;
  padding-bottom: 4px;
}

#notification-update-app .notification-update-help-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  color: #6366f1;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

#notification-update-app .notification-update-help-toggle:hover {
  color: #4f46e5;
  text-decoration: underline;
}

#notification-update-app .notification-update-tip {
  margin: 10px 0 0 0;
  padding: 10px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 12px;
  color: #64748b;
  border-left: 3px solid #94a3b8;
}

#notification-update-app .notification-update-tip kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: inherit;
  background: #e2e8f0;
  border-radius: 4px;
  color: #475569;
}

/* Botones */
#notification-update-app .notification-update-actions {
  display: flex;
  gap: 10px;
  padding: 16px 16px 18px;
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
}

#notification-update-app .notification-update-btn {
  flex: 1;
  min-width: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.12s ease, box-shadow 0.2s ease;
}

#notification-update-app .notification-update-btn:active {
  transform: scale(0.98);
}

#notification-update-app .notification-update-btn-primary {
  background: linear-gradient(145deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

#notification-update-app .notification-update-btn-primary:hover {
  background: linear-gradient(145deg, #5558e3 0%, #4338ca 100%);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
}

#notification-update-app .notification-update-btn-secondary {
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
}

#notification-update-app .notification-update-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
