/* =========================================================
   effects.css — Canvas de partículas + Cursor magnético
   Global para todas las páginas
   ========================================================= */

/* Canvas siempre fijo al fondo, sin ocupar espacio en el flujo */
body { position: relative; }
main, .nav-wrap, .footer { position: relative; z-index: 1; }

#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;               /* detrás de TODO */
  pointer-events: none;      /* no bloquea clics */
  opacity: .55;
  display: block;
}

/* Cursor magnético amarillo (punto que sigue al mouse) */
.magnetic-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;     /* centra respecto al puntero */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0);
  background: radial-gradient(circle, rgba(245, 196, 81, 1) 0%, rgba(245, 196, 81, .7) 40%, rgba(245, 196, 81, 0) 70%);
  box-shadow: 0 0 12px rgba(245, 196, 81, .8), 0 0 28px rgba(245, 196, 81, .4);
  mix-blend-mode: screen;
  transition: opacity .25s ease, transform .18s ease;
  will-change: left, top;
}

.magnetic-cursor.activo {
  opacity: 1;
  transform: scale(1);
}

@media (pointer: coarse) {
  .magnetic-cursor { display: none; }
}