/* Okapi'SW — Cabecera y pie V4 (solo parte pública; en el editor se ven como bloques normales). */

/* ---------- Cabecera pegada arriba en escritorio (en móvil ya la fija la CSS general del sitio) ---------- */
@media (min-width: 768px) {
  header.elementor-location-header:has(.ok-topbar) { position: sticky; top: 0; z-index: 120; }
}

/* ---------- Marquesina ---------- */
.fx-marquee-track { animation: okfx-marquee 22s linear infinite; }
@keyframes okfx-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Estado al hacer scroll ---------- */
.ok-headerbar.is-scrolled {
  background-color: rgba(10,9,11,.86) !important;
  border-bottom-color: rgba(255,255,255,.1) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.35) !important;
}

/* ---------- Menú lateral ---------- */
.fx-menu-backdrop {
  position: fixed !important; inset: 0; width: auto !important; height: auto !important;
  z-index: 99990; opacity: 0; visibility: hidden; transition: opacity .4s ease;
}
.fx-menu-backdrop.is-open { opacity: 1; visibility: visible; }
.fx-menu-panel {
  position: fixed !important; top: 0; right: 0; left: auto !important; height: 100vh;
  width: min(440px, 100vw) !important; max-width: none !important; z-index: 99991;
  transform: translateX(100%); transition: transform .5s cubic-bezier(.16,1,.3,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.fx-menu-panel.is-open { transform: translateX(0); }
@media (max-width: 480px) {
  .fx-menu-panel { width: 100vw !important; border-left: none !important; padding: 80px 24px 24px !important; }
}
.ok-menu-icon-line { transition: transform .35s cubic-bezier(.16,1,.3,1), opacity .2s; }
.fx-menu-toggle.is-open .ok-menu-icon-line { transform: rotate(45deg) !important; }
.fx-menu-toggle.is-open .ok-menu-icon-line:nth-child(2) { transform: rotate(-45deg) !important; }
.fx-menu-toggle:focus-visible, .ok-menu-item:focus-visible, .fx-menu-panel button:focus-visible, .ok-menu-social:focus-visible {
  outline: 2px solid #FFAC41 !important; outline-offset: 2px;
}

/* ---------- Verificación de edad ---------- */
.fx-age-gate { position: fixed !important; inset: 0; z-index: 200; display: flex !important; width: auto !important; }
html.ok-age-ok .fx-age-gate, .fx-age-gate.is-hidden { display: none !important; }

/* ---------- Cargador ---------- */
.fx-loader {
  position: fixed !important; inset: 0; z-index: 300; display: flex !important; width: auto !important;
  transition: opacity .6s ease;
  animation: okfx-loader-out .6s ease 6s forwards; /* red de seguridad si el JS no llega a ejecutarse */
}
.fx-loader.is-hide { opacity: 0; pointer-events: none; }
.fx-loader.is-gone { display: none !important; }
@keyframes okfx-loader-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ---------- Logo flotante y texto del cargador ---------- */
.fx-float { animation: okfx-float 3.6s ease-in-out infinite; }
.fx-loader-text { animation: okfx-pulse 1.8s ease-in-out infinite; }
@keyframes okfx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3.2%); } }
@keyframes okfx-pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .fx-marquee-track, .fx-float, .fx-loader-text { animation: none; }
  .fx-loader-text { opacity: .9; }
}
