/* ============================================================
   🎨 CAMPANA DE NOTIFICACIONES MODERNA - CUENTA FÁCIL
   ============================================================ */

/* Botón principal */
.noti-bell {
    position: relative;
    background: linear-gradient(145deg, #ffffff, #f1f3f6);
    border: none;
    border-radius: 50%;
    padding: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease-in-out;
  }
  
  .noti-bell:hover {
    transform: scale(1.1);
    background: linear-gradient(145deg, #f7fafc, #e9eef5);
  }
  
  .noti-bell i {
    font-size: 20px;
    color: #198754; /* Verde corporativo CuentaFácil */
    transition: transform 0.3s;
  }
  
  /* 🔔 Animación de llegada */
  @keyframes bell-shake {
    0%, 100% { transform: rotate(0deg); }
    15%, 45%, 75% { transform: rotate(15deg); }
    30%, 60%, 90% { transform: rotate(-15deg); }
  }
  @keyframes bell-pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
  }
  .noti-activa i {
    animation: bell-shake 1s ease-in-out, bell-pulse 2s ease-out;
  }
  
  /* Badge rojo del contador */
  .noti-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: #dc3545;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
  }
  
  .noti-badge:not(.hidden) {
    transform: scale(1.1);
  }
  
  /* Panel de lista flotante */
  .noti-panel {
    position: absolute;
    right: 0;
    top: 50px;
    width: 320px;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(220, 220, 220, 0.6);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 9999;
    animation: fadeInDown 0.3s ease;
  }
  
  /* Animación de aparición */
  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* Lista interna */
  .noti-lista {
    max-height: 350px;
    overflow-y: auto;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .noti-lista li {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .noti-lista li:hover {
    background-color: #f1f9f4;
  }
  
  .hidden {
    display: none !important;
  }