/* =========================================
   Shared custom cursor (optimizado)
   ========================================= */

/* Ocultar cursor nativo en páginas que usan cursor custom */
body.page-index,
body.page-trabajos {
  cursor: none;
}

/* Cursor custom */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;

  width: 30px;
  height: 30px;

  border: 0;
  border-radius: 50%;

  background: #FFD600;
  mix-blend-mode: difference;

  pointer-events: none;

  transform: translate3d(-50%, -50%, 0);
  will-change: transform;

  z-index: 3000000;
}

/* Desktop */
@media (min-width: 901px) {

  body.page-index,
  body.page-trabajos {
    cursor: none;
  }

  body.page-index a,
  body.page-index button,
  body.page-trabajos a,
  body.page-trabajos button {
    cursor: none;
  }

}

/* Mobile / tablet */
@media (max-width: 900px) {

  #custom-cursor {
    display: none;
  }

  body.page-index,
  body.page-trabajos {
    cursor: auto !important;
  }

}

body.no-custom-cursor,
body.no-custom-cursor a,
body.no-custom-cursor button {
  cursor: auto !important;
}

body.no-custom-cursor #custom-cursor {
  display: none !important;
}

/* Safari fallback: force native cursor even if JS detection fails/cached. */
@supports (-webkit-touch-callout: none) {
  body.page-index,
  body.page-trabajos,
  body.page-index a,
  body.page-index button,
  body.page-trabajos a,
  body.page-trabajos button {
    cursor: auto !important;
  }

  #custom-cursor {
    display: none !important;
  }
}
