/* Estilos para el menú desplegable */
.navbar .dropdown-menu {
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
}

.navbar .dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 400;
    color: #666666;
    transition: all 0.3s;
}

.navbar .dropdown-item:hover, 
.navbar .dropdown-item:focus {
    color: #004f66;
    background-color: rgba(0, 79, 102, 0.05);
}

/* Ajustes responsive */
@media (max-width: 991px) {
    .navbar .dropdown-menu {
        border: none;
        box-shadow: none;
        padding-left: 1.5rem;
    }
    
    .navbar .dropdown-item {
        padding: 0.5rem 0;
    }
    
    .navbar .dropdown-toggle::after {
        float: right;
        margin-top: 0.7rem;
    }
}

/* Activar menú desplegable al pasar el mouse en pantallas grandes */
@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
}

.whatsapp-float i {
  line-height: 60px;
}

/* Bolita de notificación verde parpadeante */
.notif-dot {
  position: absolute;
  top: -11px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: #ff3300;
  border-radius: 50%;
  animation: blink 1s infinite;
  box-shadow: 0 0 8px rgba(255, 51, 0, 0.8);
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Badge "New" parpadeante */
.nav-new-badge {
  display: inline-block;
  padding: .15rem .45rem;
  font-size: .70rem;
  font-weight: 600;
  line-height: 1;
  border-radius: .5rem;
  color: #0d6efd;                 /* azul Bootstrap */
  background: #e7f1ff;            /* azul claro */
  border: 1px solid rgba(13,110,253,.2);
  box-shadow: 0 0 0 rgba(13,110,253,0);
  animation: badgePulse 1.6s ease-in-out infinite;
  white-space: nowrap;
}

/* Versión compacta para el dropdown */
.nav-new-badge--menu {
  font-size: .65rem;
  padding: .10rem .4rem;
}

/* Animación */
@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(13,110,253,0);
    transform: scale(1);
    background: #e7f1ff;
  }
  50% {
    box-shadow: 0 0 12px rgba(13,110,253,.45);
    transform: scale(1.05);
    background: #dbe9ff;
  }
}

/* Respeto a usuarios con "reduce motion" */
@media (prefers-reduced-motion: reduce) {
  .nav-new-badge { animation: none; }
}
