/* =====================================================================
   StilTex · stx-looks.css — brillo, tornasol, reflejo y muestrario
   (va junto con stx-looks.js; lo usan las tarjetas reales y el simulador)
   ===================================================================== */

/* Brillo que cruza los metálicos */
.stx-metal { position: relative; overflow: hidden; }
.stx-sheen { position: absolute; inset: -40%; pointer-events: none; z-index: 1;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  animation: stxSheen 4.5s ease-in-out infinite; }
@keyframes stxSheen { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }

/* Tornasol: el color se mueve con la luz */
.stx-holo { background-size: 260% 260% !important; animation: stxHolo 7s ease-in-out infinite alternate; }
@keyframes stxHolo { 0% { background-position: 0% 30%; } 100% { background-position: 100% 70%; } }

/* Flotar suave + reflejo de luz debajo */
.stx-float { animation: stxFloat 5s ease-in-out infinite; }
@keyframes stxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.stx-floor { width: 70%; height: 18px; margin: 14px auto 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--c-glow, rgba(0,0,0,.4)), transparent); filter: blur(2px); }

/* Luz que sigue el dedo o el mouse */
.stx-glare { position: absolute; inset: 0; pointer-events: none; z-index: 5; border-radius: inherit; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,.30), transparent 45%); mix-blend-mode: soft-light; }
.stx-lit > .stx-glare { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .stx-sheen { display: none; }
  .stx-holo, .stx-float { animation: none; }
}

/* Muestrario de colores */
.stx-sw-group { margin-top: 8px; }
.stx-sw-title { font-size: .74rem; font-weight: 700; letter-spacing: .03em; opacity: .8; margin-bottom: 5px; }
.stx-sw-row { display: flex; flex-wrap: wrap; gap: 7px; }
.stx-sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); cursor: pointer; padding: 0;
  position: relative; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 2px 6px rgba(0,0,0,.35); transition: transform .15s; }
.stx-sw:hover { transform: scale(1.08); }
.stx-sw[aria-pressed="true"] { outline: 3px solid #fbbf24; outline-offset: 2px; }
.stx-sw.stx-metal::after { content: ""; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%); animation: stxSheen 4.5s ease-in-out infinite; }
.stx-sw-custom { display: grid; place-items: center; background: conic-gradient(#f43f5e, #f59e0b, #facc15, #10b981, #06b6d4, #6366f1, #d946ef, #f43f5e); }
.stx-sw-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.stx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
