/* ==========================================================================
   CURSOR + GRANO
   ========================================================================== */

/* Con mouse: escondemos la flecha normal (el punto la reemplaza) */
.has-cursor,
.has-cursor * { cursor: none !important; }

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid transparent;
  mix-blend-mode: difference;       /* se invierte sobre lo que pasa */
  pointer-events: none;
  opacity: 0;
  transition:
    width .35s var(--ease-out), height .35s var(--ease-out),
    background-color .25s, border-color .25s, opacity .3s;
}
.cursor.is-visible { opacity: 1; }

/* Sobre algo clicable: anillo grande con puntito al centro */
.cursor.is-hover {
  width: 76px;
  height: 76px;
  background: transparent;
  border-color: #fff;
}
.cursor.is-hover::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
}
.cursor.is-down { width: 10px; height: 10px; }
.cursor.is-hover.is-down { width: 58px; height: 58px; }

/* Los elementos magnéticos regresan suave a su lugar */
.magnetic {
  transition: translate .35s var(--ease-out);
}

/* Grano sutil sobre todo el sitio (textura tipo impresión) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
