/* ============================================================================
   Marca de agua fija de AliSoft
   ----------------------------------------------------------------------------
   El logo queda centrado en la ventana y NO se desplaza con el scroll
   (position: fixed). z-index: -1 + isolation: isolate lo coloca por encima
   del fondo del body pero por debajo de todo el contenido, así no interfiere
   con la lectura ni con los clics.
   ========================================================================== */

body {
    isolation: isolate;
}

body.no-watermark::before {
    content: none;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url("../images/logo.webp?v=20261018b");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: min(58vmin, 680px);
    opacity: 0.05;
    pointer-events: none;
    transform: translate3d(0, var(--wm-y, 0px), 0);
    will-change: transform;
}

html.dark body::before,
body.dark::before,
body.bg-dark-900::before {
    opacity: 0.08;
    filter: brightness(0) invert(1);
}

@media (max-width: 640px) {
    body::before {
        background-size: min(80vmin, 460px);
        opacity: 0.04;
    }

    html.dark body::before,
    body.dark::before,
    body.bg-dark-900::before {
        opacity: 0.07;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        transform: none;
    }
}
