:root {
    --c-red-1: #8b0000;
    --c-red-2: #c0392b;
    --c-violet-1: #2d0057;
    --c-violet-2: #6a0572;
    --c-body-base: #0a0015;
    --mesh-speed: 11s; /* duración de un ciclo del degradado */
}

html, body {
    height: 100%;
    margin: 0;
}

body.fondo-foto-efecto {
    background: var(--c-body-base);
    position: relative;
    min-height: 100vh;
}

/* Efecto: manchas que se desplazan detrás de la foto */
body.fondo-foto-efecto::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    will-change: background-position;
    background-image:
        radial-gradient(ellipse 60% 50% at 0% 0%,     var(--c-red-1)    0%, transparent 70%),
        radial-gradient(ellipse 55% 45% at 100% 100%, var(--c-violet-1) 0%, transparent 70%),
        radial-gradient(ellipse 50% 55% at 100% 0%,   var(--c-violet-2) 0%, transparent 65%),
        radial-gradient(ellipse 45% 50% at 0% 100%,   var(--c-red-2)    0%, transparent 65%);
    background-size: 200% 200%;
    background-position: 0% 0%, 100% 100%, 100% 0%, 0% 100%;
    animation: meshMove var(--mesh-speed) ease-in-out infinite;
}

@keyframes meshMove {
    0%,
    100% { background-position:  0%  0%,  100% 100%, 100%  0%,   0% 100%; }
    35%  { background-position: 20% 15%,   80%  85%,  80%  15%,  20%  85%; }
    45%,
    55%  { background-position: 38% 28%,   62%  72%,  62%  28%,  38%  72%; }
    65%  { background-position: 20% 15%,   80%  85%,  80%  15%,  20%  85%; }
}

/* Foto encima del efecto. Ajustar ruta, tamaño y opacidad. */
body.fondo-foto-efecto::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url('../img/mapamundi.webp');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 80%; /* cover = pantalla completa; 80% = como el login actual */
    opacity: 0.15;        /* 0.15 = tenue, para que se vea el degradado; 1 = foto opaca */
}
