/* Fondo animado COSCAL (degradado + aureolas lentas) + firma Barrios.
   Cargar despues del CSS propio de cada pagina. */

html {
    background: #2a8a55;
    min-height: 100%;
}

body {
    background: transparent !important;
    padding-bottom: 40px;
}

.fa-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 40% at 8% 0%, rgba(0, 0, 0, .18), transparent 70%),
        linear-gradient(135deg, #0f4a33 0%, #1d6e45 38%, #3a9e64 72%, #6cc28c 100%);
}

.fa-aura {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .04) 45%, transparent 70%);
    animation: fa-drift 28s ease-in-out infinite alternate;
}

.fa-aura-a {
    width: 520px;
    height: 520px;
    left: -170px;
    bottom: -230px;
}

.fa-aura-b {
    width: 460px;
    height: 460px;
    right: -150px;
    top: -260px;
    animation-duration: 34s;
    animation-delay: -8s;
}

.fa-aura-c {
    width: 600px;
    height: 600px;
    right: -210px;
    bottom: -320px;
    animation-duration: 40s;
    animation-delay: -15s;
}

.fa-aura-d {
    width: 320px;
    height: 320px;
    left: 38%;
    top: 30%;
    border-color: rgba(255, 255, 255, .07);
    background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
    animation-duration: 46s;
    animation-delay: -20s;
}

@keyframes fa-drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.05); }
    100% { transform: translate(-25px, 20px) scale(.97); }
}

@media screen and (max-width: 768px) {
    .fa-aura-a { width: 320px; height: 320px; left: -120px; bottom: -150px; }
    .fa-aura-b { width: 300px; height: 300px; right: -110px; top: -170px; }
    .fa-aura-c { width: 380px; height: 380px; right: -150px; bottom: -200px; }
    .fa-aura-d { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fa-aura { animation: none; }
}

.fa-barrios {
    position: fixed;
    right: 18px;
    bottom: 14px;
    z-index: 50;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10251a;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: .01em;
    pointer-events: none;
}

.fa-barrios img {
    display: block;
    height: 20px;
    width: auto;
}

@media screen and (max-width: 768px) {
    .fa-barrios {
        right: 10px;
        bottom: 10px;
        font-size: 10px;
    }

    .fa-barrios img {
        height: 15px;
    }
}
