/* ═══════════════════════════════════════════════════════
   NAVBAR SHIMMER — CerveretaDev
   Opción B: Shimmer Elegante
   Inyectado via server.js (mismo patrón que chatbot-widget.js)
   ═══════════════════════════════════════════════════════ */

/* ── CerveretaDev: Shimmer completo ── */
/* Apunta al span del logo dentro del header */
header a[href="/"] span.font-serif {
  position: relative;
  background: linear-gradient(
    90deg,
    currentColor 0%,
    currentColor 40%,
    rgba(0, 129, 175, 0.85) 50%,
    currentColor 60%,
    currentColor 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cvd-shimmer 4s ease-in-out infinite;
}

/* "Dev" con gradiente cyan→teal permanente + glow */
header a[href="/"] span.font-serif span.text-ember {
  background: linear-gradient(135deg, #0081AF 0%, #02907D 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: cvd-shimmer-dev 4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(0, 129, 175, 0.2));
}

@keyframes cvd-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes cvd-shimmer-dev {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Blog: Gradiente + línea animada + punto "nuevo" ── */
header nav a[href="/blog"] {
  position: relative;
  background: linear-gradient(135deg, #0081AF 0%, #02907D 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 600 !important;
  padding-right: 10px !important;
}

/* Línea animada debajo de Blog */
header nav a[href="/blog"]::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #0081AF 0%, #02907D 100%);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header nav a[href="/blog"]:hover::after {
  width: 100%;
}

/* Punto "nuevo" parpadeante */
header nav a[href="/blog"]::before {
  content: '';
  position: absolute;
  top: 2px;
  right: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #02907D;
  box-shadow: 0 0 6px rgba(2, 144, 125, 0.6);
  animation: cvd-pulse-dot 2s ease-in-out infinite;
}

@keyframes cvd-pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ── Respetar prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  header a[href="/"] span.font-serif,
  header a[href="/"] span.font-serif span.text-ember,
  header nav a[href="/blog"]::before {
    animation: none !important;
  }
}