/* ==========================================================================
   effects.css — Capas de efectos globales: barra de progreso, cursor,
   transición entre páginas, spotlight, tilt y wordmark del footer.
   Todo lo interactivo se activa solo con puntero fino y movimiento permitido.
   ========================================================================== */

/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: linear-gradient(90deg, var(--habil-cream), var(--habil-blue));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Cursor personalizado ---------- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  display: none;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block;
  }
}

.cursor__ring {
  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  margin: -1.25rem 0 0 -1.25rem;
  border: 1.5px solid #fff;
  border-radius: 50%;
  mix-blend-mode: difference; /* visible tanto sobre azul como sobre claro */
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

.cursor.is-link .cursor__ring {
  transform: scale(1.7);
}

.cursor.is-text .cursor__ring {
  transform: scale(0.25);
}

.cursor.is-hidden .cursor__ring {
  opacity: 0;
}

.cursor__label {
  position: absolute;
  display: grid;
  width: 3.75rem;
  height: 3.75rem;
  margin: -1.875rem 0 0 -1.875rem;
  place-items: center;
  border-radius: 50%;
  background: var(--habil-cream);
  color: var(--habil-ink);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
}

.cursor.has-label .cursor__label {
  transform: scale(1);
}

.cursor.has-label .cursor__ring {
  transform: scale(0);
}

/* ---------- Spotlight: resplandor que sigue al cursor ---------- */
[data-spotlight] {
  --mx: 50%;
  --my: 50%;
  --spot: rgb(0 70 255 / 14%);

  position: relative;
}

[data-spotlight]::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(22rem circle at var(--mx) var(--my), var(--spot), transparent 60%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

[data-spotlight]:hover::after {
  opacity: 1;
}

.plan--featured,
.trust-card--blue {
  --spot: rgb(245 245 245 / 22%);
}

/* ---------- Tilt 3D ---------- */
[data-tilt] {
  will-change: transform;
}

/* ---------- Wordmark gigante del footer ---------- */
.footer__wordmark {
  margin-top: 1.5rem;
  overflow: hidden;
  color: rgb(245 245 245 / 16%);
  font-family: var(--font-display);
  font-stretch: 125%;
  font-size: clamp(3.5rem, 17.5vw, 19rem);
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.footer__wordmark span {
  display: block;
  padding-bottom: 0.04em;
  white-space: nowrap;
}

.footer__wordmark strong {
  font-weight: 800;
}

.footer {
  padding-bottom: 0;
}

.footer__legal {
  margin-bottom: 0;
}

/* ---------- Ticker movido por GSAP (reacciona a la velocidad del scroll) ---------- */
.ticker--js .ticker__track {
  animation: none;
}
