/* =========================
   LOADER (FULLSCREEN OVERLAY)
   Solo afecta a #ianp-loader
========================= */
#ianp-loader {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;

  background: #fff; /* cambia a blanco cuando termines de testear */
  z-index: 2147483647 !important; /* por encima de Woo / modales */
  opacity: 1;
  visibility: visible;

  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  isolation: isolate; /* crea su propio stacking context */
  pointer-events: all;
}

/* Hidden */
#ianp-loader.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* =========================
   CENTER LOGO
========================= */
#ianp-loader .ianp-loader__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#ianp-loader .ianp-loader__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

#ianp-loader .ianp-loader__logo {
  width: 160px;
  max-width: 70vw;
  height: auto;
  animation: ianpFadeIn 0.6s ease both;
}

/* =========================
   TAGLINE
========================= */
#ianp-loader .ianp-loader__tagline {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.75);
  animation: ianpFadeIn 0.6s ease 0.08s both;
}

#ianp-loader .ianp-loader__tagline span {
  color: rgba(0, 0, 0, 1);
}

/* =========================
   CORNER SPINNER
========================= */
#ianp-loader .ianp-loader__corner {
  position: absolute;
  right: 24px;
  bottom: 24px;
}

#ianp-loader .ianp-loader__spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.7);
  animation: ianpSpin 0.8s linear infinite;
}

#ianp-loader img {
  width: auto !important;
  max-width: 70vw !important;
  height: auto !important;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes ianpSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ianpFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 480px) {
  #ianp-loader .ianp-loader__logo {
    width: 120px;
  }
  #ianp-loader .ianp-loader__corner {
    right: 16px;
    bottom: 16px;
  }
}
