/* ==========================================================================
   Integración WordPress — recuperación del preloader y accesibilidad sin JS.
   El sitio aprobado ocultaba el contenido hasta que JS disparaba la entrada
   (.ig-in / .revealed) y removía el #loader. En WordPress el contenido debe
   permanecer visible aunque el JS/WebGL falle. Estas reglas garantizan eso.
   ========================================================================== */

/* 1) SIN JavaScript: nunca bloquear con el loader; mostrar contenido y menú. */
html:not(.iig-js) #loader { display: none !important; }
html:not(.iig-js) #site-header { opacity: 1 !important; transform: none !important; }
html:not(.iig-js) .ig-hero__eyebrow,
html:not(.iig-js) .ig-hero__title .ig-line,
html:not(.iig-js) .ig-hero__cta,
html:not(.iig-js) .ig-cap { opacity: 1 !important; transform: none !important; filter: none !important; }
html:not(.iig-js) .ig-hero__text { opacity: 0.85 !important; transform: none !important; filter: none !important; }
/* Sin JS, la foto del hero se ve directamente (el halftone es una mejora). */
html:not(.iig-js) .ig-hero__img { opacity: 1 !important; }
html:not(.iig-js) .ig-hero__canvas { display: none !important; }

/* 2) Liberación por recuperación (la clase la añade loader-recovery.js). */
html.is-ready #loader { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }

/* 3) Si hubo error de carga, dejamos rastro visual mínimo (sin romper diseño). */
html.has-load-error #loader { display: none !important; }
