/* ============================================================
   SOBERANOLAB — FX ADICIONAL (cursor, magnetismo, hover polish)
   No modifica tu style.css. Solo agrega comportamiento nuevo
   enganchado a clases que ya existen en tu index.html.
   ============================================================ */

:root {
  --fx-accent: #6B6B66; /* gris neutro, se ve tanto en el fondo claro como en las secciones oscuras */
}

/* --------------------------------------------
   1. CURSOR CUSTOM
   -------------------------------------------- */
.fx-cursor-dot,
.fx-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.fx-cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--fx-accent);
}
.fx-cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.fx-cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  border-color: var(--fx-accent);
  background: rgba(242, 242, 240, 0.08);
}

/* activa el cursor custom solo en dispositivos con mouse real */
body.fx-cursor-active,
body.fx-cursor-active a,
body.fx-cursor-active button {
  cursor: none;
}

/* --------------------------------------------
   2. BOTONES MAGNÉTICOS
   se aplica automáticamente a .btn, .demo-launcher,
   .proyecto-card__live, .service-item__link
   -------------------------------------------- */
.btn,
.demo-launcher,
.proyecto-card__live {
  will-change: transform;
  transition: transform .15s ease-out, background .3s ease, color .3s ease, border-color .3s ease;
}

/* --------------------------------------------
   3. HOVER POLISH — íconos de "quiénes somos"
   (no hace falta un segundo ícono: solo animamos
   color + escala + leve rotación del que ya tenés)
   -------------------------------------------- */
.why-item__icon svg {
  transition: transform .4s cubic-bezier(.16,1,.3,1), color .4s ease, filter .4s ease;
}
.info-card:hover .why-item__icon svg,
.service-item:hover .why-item__icon svg {
  transform: scale(1.12) rotate(-6deg);
  color: var(--fx-accent);
  filter: drop-shadow(0 0 10px rgba(242, 242, 240, 0.35));
}

.service-item__link {
  position: relative;
}
.service-item__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: var(--fx-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.service-item:hover .service-item__link::after {
  transform: scaleX(1);
}
.service-item__link span {
  display: inline-block;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.service-item:hover .service-item__link span {
  transform: translateX(4px);
}

/* --------------------------------------------
   4. HOVER POLISH — tarjetas de producto
   -------------------------------------------- */
.product-card {
  transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .35s ease;
}
.product-card:hover {
  transform: translateY(-6px);
}
.product-card__logo {
  transition: transform .4s cubic-bezier(.16,1,.3,1), filter .4s ease;
}
.product-card:hover .product-card__logo {
  transform: scale(1.08) rotate(3deg);
  filter: drop-shadow(0 0 8px rgba(242, 242, 240, 0.25));
}

/* --------------------------------------------
   5. HOVER POLISH — logos de clientes (marquee)
   -------------------------------------------- */
.client-logo {
  transition: transform .35s ease, filter .35s ease, opacity .35s ease;
}
.client-logo:hover {
  transform: translateY(-3px) scale(1.05);
  filter: grayscale(0) brightness(1.1);
}

/* respeta accesibilidad: sin cursor custom ni animaciones agresivas
   si el usuario pidió reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fx-cursor-dot, .fx-cursor-ring { display: none !important; }
  body.fx-cursor-active, body.fx-cursor-active a, body.fx-cursor-active button {
    cursor: auto;
  }
  * { transition-duration: 0.01ms !important; }
}

/* apaga el cursor custom en touch (celulares/tablets) */
@media (hover: none) {
  .fx-cursor-dot, .fx-cursor-ring { display: none !important; }
}
