    /* ============================================================
       PANEL DE NOTIFICACIONES
       ============================================================ */
    .notif-panel {
      position: fixed !important;
      bottom: 50px !important;
      top: auto !important;
      left: 82px !important;
      z-index: 9998;
      width: 360px;
      max-height: min(800px, calc(100vh - 80px));
      height: auto;
      background: #fff;
      border-radius: 14px;
      box-shadow: 0 8px 32px rgba(0,0,0,.18);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      animation: slideRight .25s ease;
    }
    
    @keyframes slideRight {
      from { opacity: 0; transform: translateX(-15px) scale(.97); }
      to   { opacity: 1; transform: translateX(0) scale(1); }
    }

    /* En vistas angostas el panel arranca a la altura del boton flotante de
       notificaciones (misma posicion que .notification-bell, segun el rol). */
    @media (max-width: 768px) {
      .notif-panel:not(.no-admin) { bottom: 195px !important; }
      .notif-panel.no-admin       { bottom: 135px !important; }
    }
    @media (max-width: 480px) {
      .notif-panel:not(.no-admin) { bottom: 180px !important; }
      .notif-panel.no-admin       { bottom: 120px !important; }
    }

    .notif-panel__header {
      display: flex; 
      align-items: center; 
      justify-content: space-between;
      padding: 15px 20px;
      background: linear-gradient(135deg, #649FBE 0%, #195C9A 100%);
      color: #fff; 
      font-weight: 600; 
      font-size: 1rem;
      flex-shrink: 0;
    }
    
    .notif-panel__header i { 
      margin-right: 8px; 
      font-size: 1.1rem;
    }
    
    .notif-panel__close { 
      background: transparent; 
      border: none; 
      color: #fff; 
      cursor: pointer; 
      font-size: 1.2rem;
      padding: 0; 
      transition: opacity .2s; 
    }
    
    .notif-panel__close:hover { 
      opacity: .7; 
    }
    
    .notif-panel__body {
      overflow-y: auto;
      flex: 0 1 auto;
      min-height: 0;
      max-height: 250px;
      overscroll-behavior: contain;
      padding-bottom: 4px;
    }

    .notif-item {
      display: grid;
      grid-template-columns: 40px 1fr 12px;
      gap: 0 12px;
      padding: 16px 18px;
      border-bottom: 1px solid #eef2f7;
      transition: background .15s;
    }
    
    .notif-item:last-child { 
      border-bottom: none; 
    }
    
    .notif-item:hover { 
      background: #f4f8ff; 
    }
    
    .notif-item--leida { 
      opacity: .6; 
    }
    
    .notif-item--leida:hover {
      opacity: .8; 
    }

    .notif-item__icon { 
      font-size: 1.6rem;
      line-height: 1; 
      display: flex; 
      align-items: flex-start; 
      padding-top: 2px; 
    }
    
    .notif-item__content { 
      display: flex; 
      flex-direction: column; 
      gap: 6px;
      min-width: 0; 
    }
    
    .notif-item__meta { 
      display: flex; 
      align-items: center; 
      justify-content: space-between; 
      gap: 10px;
    }

    .notif-item__tag {
      font-size: .7rem;
      font-weight: 700; 
      text-transform: uppercase;
      letter-spacing: .05em; 
      padding: 3px 10px;
      border-radius: 20px;
      color: #fff; 
      white-space: nowrap; 
      flex-shrink: 0;
    }
    
    .notif-tag--vehiculo  { background: #1a6fa8; }
    .notif-tag--aprobada  { background: #27ae60; }
    .notif-tag--rechazada { background: #e74c3c; }
    .notif-tag--cancelada { background: #7f8c8d; }
    .notif-tag--sala      { background: #8e44ad; }
    .notif-tag--contacto  { background: #27ae60; }
    .notif-tag--vacante   { background: #e67e22; }
    .notif-tag--general   { background: #7f8c8d; }

    .notif-item__time { 
      font-size: .7rem;
      color: #888; 
      white-space: nowrap; 
      flex-shrink: 0; 
    }
    
    .notif-item__title { 
      font-size: .9rem;
      font-weight: 600; 
      color: #1a2e4a; 
      white-space: normal;
      overflow: visible;
      text-overflow: clip;
      line-height: 1.4;
    }
    
    .notif-item__msg { 
      font-size: .85rem;
      color: #444; 
      line-height: 1.5;
      margin: 0; 
      display: block;
      -webkit-line-clamp: unset;
      -webkit-box-orient: unset;
      overflow: visible;
      word-break: break-word;
      white-space: pre-line; /* respeta los saltos de línea del mensaje */
      max-height: none;
    }

    .notif-item__dot { 
      width: 10px;
      height: 10px; 
      border-radius: 50%; 
      background: #1a6fa8; 
      margin-top: 5px; 
      flex-shrink: 0; 
    }

    .notif-empty { 
      display: flex; 
      flex-direction: column; 
      align-items: center; 
      justify-content: center; 
      padding: 50px 20px;
      color: #bbb; 
      gap: 15px; 
    }
    
    .notif-empty i { 
      font-size: 3rem;
    }
    
    .notif-empty p { 
      margin: 0; 
      font-size: .95rem;
    }

    /* Personalización de la barra de scroll */
    .notif-panel__body::-webkit-scrollbar {
      width: 8px;
    }
    
    .notif-panel__body::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
    }
    
    .notif-panel__body::-webkit-scrollbar-thumb {
      background: #195C9A;
      border-radius: 4px;
    }
    
    .notif-panel__body::-webkit-scrollbar-thumb:hover {
      background: #0e3d6b;
    }

    .notif-item--entrando {
      animation: notifEntrada .3s ease;
    }
    @keyframes notifEntrada {
      from { opacity: 0; transform: translateY(-10px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 600px) {
      .notif-panel {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        bottom: 50px !important;
        max-height: 90vh !important;
      }
    }

    /* ── Modo oscuro ── */
    .dark-mode .notif-panel {
      background: #1e2a3a;
      box-shadow: 0 8px 32px rgba(0,0,0,.45);
    }
    .dark-mode .notif-item {
      border-bottom-color: #2d3f55;
    }
    .dark-mode .notif-item:hover {
      background: #253345;
    }
    .dark-mode .notif-item__title {
      color: #e8edf4;
    }
    .dark-mode .notif-item__msg {
      color: #b8c4d2;
    }
    .dark-mode .notif-item__time {
      color: #7a96b0;
    }
    .dark-mode .notif-empty {
      color: #5a7a95;
    }
    .dark-mode .notif-panel__body::-webkit-scrollbar-track {
      background: #1a2535;
    }
