/* Oculta el cursor normal */
body,
a,
button,
.card-link,
.card-extra {
  cursor: none;
}

/* Cursor personalizado */
#custom-cursor {
  position: fixed;
  width: 42px;
  height: 42px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
}

/* Aro exterior */
.cursor-ring {
  position: absolute;
  inset: 6px;
  border: 2px solid #556b2f;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(85, 107, 47, 0.7);
  transition: 0.15s ease;
}

/* Cruz blanca */
.cursor-v,
.cursor-h {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  transition: 0.15s ease;
}

.cursor-v {
  width: 1px;
  height: 42px;
  left: 50%;
  top: 0;
}

.cursor-h {
  width: 42px;
  height: 1px;
  top: 50%;
  left: 0;
}

/* Punto central rojo */
.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ff0000;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px #ff0000;
  transition: 0.15s ease;
}

/* Al pasar sobre enlace, botón o tarjeta */
#custom-cursor.cursor-hover .cursor-ring {
  border-color: #c00000;
  box-shadow: 0 0 14px rgba(192, 0, 0, 0.95);
  transform: scale(1.15);
}

#custom-cursor.cursor-hover .cursor-dot {
  background: #00ff4c;
  box-shadow: 0 0 10px #00ff4c;
}

/* Al hacer clic */
#custom-cursor.cursor-click {
  transform: translate(-50%, -50%) scale(0.82);
}

/* Evita el cursor personalizado en móviles y pantallas táctiles */
@media (hover: none), (pointer: coarse) {
  #custom-cursor {
    display: none;
  }

  body,
  a,
  button,
  .card-link,
  .card-extra {
    cursor: auto;
  }
}