/* Ocultar el cursor del sistema en la web */
body.liquid-cursor-ready:not(.in-footer),
body.liquid-cursor-ready:not(.in-footer) * {
  cursor: none !important;
}

/* Lienzo WebGL fixed e intocable sobre el fondo */
#ribbonCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  pointer-events: none;
}

/* Puntero SVG flotante */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-3px, -2px);
  will-change: transform, opacity;
  transition: opacity 0.2s ease;
}

.custom-cursor .cursor-arrow {
  width: 100%;
  height: 100%;
  fill: #FFB088; /* Tono salmón/ámbar base FOSEMA */
  filter: drop-shadow(0 2px 6px rgba(255, 176, 136, 0.45));
  transition: fill 0.3s ease, filter 0.3s ease;
}

/* Adaptación a contraste en secciones claras */
body.theme-cream .custom-cursor .cursor-arrow {
  fill: #8A2BE2;
  filter: drop-shadow(0 2px 6px rgba(138, 43, 226, 0.45));
}

/* EXCLUSIÓN EN FOOTER: Restaurar cursor nativo y ocultar puntero custom */
body.liquid-cursor-ready footer,
body.liquid-cursor-ready footer * {
  cursor: auto !important;
}

body.in-footer .custom-cursor {
  opacity: 0;
}
/* Enable only after successful WebGL and pointer input. */
#ribbonCanvas,.custom-cursor{opacity:0;}
body.liquid-cursor-ready.liquid-cursor-visible:not(.in-footer) #ribbonCanvas,
body.liquid-cursor-ready.liquid-cursor-visible:not(.in-footer) .custom-cursor{opacity:1;}
body.in-footer #ribbonCanvas,body.in-footer .custom-cursor{opacity:0;}
@media(pointer:coarse),(hover:none),(prefers-reduced-motion:reduce){#ribbonCanvas,.custom-cursor{display:none;}}
