/* cursor.css — Cursor personalizado + estados (btn / media) */

/* Solo activo en dispositivos con mouse Y sin movimiento reducido.
   (Se añadió 'prefers-reduced-motion: no-preference' para que coincida con la
   condición del JS: si solo se exigiera pointer:fine, los usuarios con
   reduced-motion perderían el cursor nativo sin recibir el custom.) */
@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body { cursor: none; }

  .cursor {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 999999;
    will-change: transform;
    transform: translate(-50%, -50%) scale(0);
    transition:
      width .22s ease,
      height .22s ease,
      border-radius .22s ease;
  }

  /* Hover sobre links y botones */
  .cursor.is-btn {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  /* Hover sobre áreas de video/media */
  .cursor.is-media {
    width: 72px;
    height: 72px;
    border-radius: 50%;
  }

  /* Label dentro del cursor */
  .cursor::after {
    content: attr(data-label);
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    color: #0a0a0a;
    opacity: 0;
    transition: opacity .15s ease;
    white-space: nowrap;
    pointer-events: none;
  }
  .cursor.is-media::after { opacity: 1; }
}
