/* Okapi'SW — efectos fx- (solo parte pública; en el editor se ve el estado estático de las clases globales). */

/* ---------- Botón con pulso dorado ---------- */
.fx-pulse { animation: okfx-pulse-glow 2.2s ease-in-out infinite; }
@keyframes okfx-pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,172,65,.35), 0 8px 24px rgba(255,172,65,.25); }
  50% { box-shadow: 0 0 0 16px rgba(255,172,65,0), 0 8px 32px rgba(255,172,65,.4); }
}

/* ---------- Pista táctil "Toca para revelar" (solo táctil) ---------- */
@media (hover: none) and (pointer: coarse) {
  .fx-touch-hint { display: inline-flex !important; }
  .fx-hero, .fx-circle { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}
.fx-touch-hint { transition: opacity .5s ease; }
.fx-touch-hint.is-hidden { opacity: 0; }
.fx-touch-hint svg { animation: okfx-hint-pulse 1.6s ease-in-out infinite; }
@keyframes okfx-hint-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.82); opacity: .65; } }

/* ---------- Hero: revelado tras el cursor ---------- */
.fx-hero-reveal { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }

/* ---------- Eventos: carrusel 3D "coverflow" ---------- */
.fx-coverflow.is-fx-ready { outline: none; }
.fx-coverflow.is-fx-ready .fx-coverflow-track {
  position: relative; display: block; overflow: visible; padding: 0;
  perspective: var(--okfx-cf-persp, 1800px); perspective-origin: 50% 45%;
  transform-style: preserve-3d;
  touch-action: pan-y; cursor: grab;
}
.fx-coverflow.is-fx-ready .fx-coverflow-track:active { cursor: grabbing; }
.fx-coverflow.is-fx-ready .ok-event-card {
  position: absolute; top: 50%; left: 50%; margin: 0;
  transform-style: preserve-3d; user-select: none;
  transition: transform .55s cubic-bezier(.22,1,.36,1), opacity .55s ease, border-color .35s ease, box-shadow .35s ease;
  will-change: transform, opacity;
}
.fx-coverflow.is-fx-ready .ok-event-card.is-active {
  border-color: #FFAC41; box-shadow: 0 26px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,172,65,.35);
}
.fx-coverflow.is-fx-ready .ok-event-card img { pointer-events: none; -webkit-user-drag: none; }
.okfx-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 60;
  width: 46px !important; height: 46px !important; padding: 0 !important; border-radius: 999px !important;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06) !important; border: 1px solid rgba(255,172,65,.28) !important;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: #fff; cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .15s ease;
}
.okfx-arrow:hover { background: rgba(255,172,65,.16) !important; border-color: #FFAC41 !important; }
.okfx-arrow:active { transform: translateY(-50%) scale(.92); }
.okfx-arrow--prev { left: 0; }
.okfx-arrow--next { right: 0; }
.okfx-arrow svg { width: 20px; height: 20px; flex-shrink: 0; }
.okfx-arrow:disabled { opacity: .35; pointer-events: none; }
.okfx-dots { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.okfx-dot { width: 8px !important; height: 8px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: rgba(255,255,255,.22) !important; cursor: pointer; transition: background .2s ease, width .2s ease; }
.okfx-dot.is-active { background: #FFAC41 !important; width: 26px !important; }

/* ---------- Instalaciones: efecto onda (WebGL) ---------- */
.okfx-ripple-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.fx-ripple.is-ready .okfx-ripple-canvas { opacity: 1; }
.fx-ripple.is-ready .fx-ripple-img { opacity: 0 !important; }
.okfx-ripple-dots { position: absolute; right: clamp(16px, 2vw, 24px); bottom: clamp(18px, 2.4vw, 28px); z-index: 3; display: flex; gap: 8px; pointer-events: none; }
.okfx-ripple-dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.3); transition: background .25s ease, width .25s ease; }
.okfx-ripple-dot.is-active { background: #FFAC41; width: 18px; }
.fx-ripple:hover .fx-ripple-link { gap: 12px; }
.fx-ripple .fx-ripple-link svg { transition: transform .25s ease; }
.fx-ripple:hover .fx-ripple-link svg { transform: translateX(2px); }

/* ---------- "Así de fácil": vídeo de fondo único (como el original, sin pin) ---------- */
.okfx-howpin-bgvideo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; z-index: 0; pointer-events: none; }
.okfx-howpin-stage { position: relative; width: 100%; max-width: 1080px; margin: 0 auto; }
.okfx-howpin-stage .fx-howpin-row, .okfx-howpin-viewport .fx-howpin-row { position: relative; z-index: 1; }
.okfx-howpin-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(18,16,11,.15) 0%, rgba(18,16,11,.35) 55%, rgba(18,16,11,.72) 100%); }
.fx-howpin.is-bgvideo > :first-child { padding-left: clamp(1.25rem, 4.5vw, 5rem); padding-right: clamp(1.25rem, 4.5vw, 5rem); }

/* ---------- "Así de fácil": carrusel manual (móvil) ---------- */
.okfx-howpin-viewport { position: relative; width: 100%; max-width: 480px; margin: 0 auto; overflow: hidden; border-radius: 18px; }
.fx-howpin.is-carousel .fx-howpin-row { flex-direction: row !important; flex-wrap: nowrap; gap: 0 !important; height: auto; max-width: none; transition: transform .4s cubic-bezier(.4,0,.2,1); will-change: transform; touch-action: pan-y; }
.fx-howpin.is-carousel .ok-how-card { flex: none !important; width: 100%; padding-bottom: 76px; background-color: rgba(10,8,6,.55) !important; border-color: #FFAC41 !important; }
.fx-howpin.is-carousel .ok-how-num { color: #FFAC41 !important; }
.fx-howpin.is-carousel .ok-how-title { color: #F4F1EE !important; }
.fx-howpin.is-carousel .ok-how-text { color: #fff !important; }
.okfx-howpin-viewport .okfx-arrow { top: auto; bottom: 14px; transform: none; }
.okfx-howpin-viewport .okfx-arrow--prev { left: 14px; }
.okfx-howpin-viewport .okfx-arrow--next { right: 14px; }
.okfx-howpin-viewport .okfx-arrow:active { transform: scale(.92); }
.fx-howpin .okfx-dots { margin-top: 18px; }

/* ---------- Normas: vídeo del termómetro ligado al scroll ---------- */
.fx-scrub.js-scrub-ready { height: 150vh; }
.fx-scrub.js-scrub-ready .fx-scrub-card { position: sticky; top: 128px; }

/* ---------- Círculo privado: vídeo tras el cursor ---------- */
.fx-circle-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.8 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 90px 90px;
}
.fx-circle-grain::after {
  content: ''; position: absolute; inset: 0;
  opacity: .1; mix-blend-mode: screen;
  background-image: inherit; background-size: 90px 90px; background-position: 37px 19px;
}
.fx-circle-video { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }

@media (prefers-reduced-motion: reduce) {
  .fx-pulse, .fx-touch-hint svg { animation: none; }
}
