/*
    assets/css/footer.css
    Footer global de ELANGIT.

    Diseño:
    - Logotipo centrado.
    - Políticas centradas.
    - Sin menú de navegación.
    - Formato fino y compacto.
*/


/* =====================================================
   CONTENEDOR PRINCIPAL
===================================================== */

.site-footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            circle at 16% 50%,
            rgba(32, 102, 226, 0.24) 0%,
            rgba(32, 102, 226, 0.07) 25%,
            transparent 48%
        ),
        radial-gradient(
            circle at 84% 50%,
            rgba(114, 57, 207, 0.20) 0%,
            rgba(114, 57, 207, 0.06) 25%,
            transparent 50%
        ),
        linear-gradient(
            110deg,
            rgba(6, 12, 29, 0.90) 0%,
            rgba(3, 8, 21, 0.86) 50%,
            rgba(10, 8, 28, 0.88) 100%
        );

    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);

    border-top: 1px solid rgba(63, 130, 255, 0.34);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 -1px 18px rgba(40, 95, 210, 0.10);

    color: rgba(255, 255, 255, 0.76);
}


/* =====================================================
   HALOS SUAVES
===================================================== */

.site-footer::before,
.site-footer::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;

    border-radius: 50%;
    filter: blur(80px);
}

.site-footer::before {
    width: 340px;
    height: 170px;
    top: -110px;
    left: -40px;

    background: rgba(42, 105, 255, 0.20);
}

.site-footer::after {
    width: 320px;
    height: 170px;
    right: -30px;
    bottom: -110px;

    background: rgba(128, 62, 220, 0.17);
}


/* =====================================================
   DISTRIBUCIÓN
===================================================== */

.footer-inner {
    position: relative;
    z-index: 1;

    width: min(calc(100% - 48px), 1100px);
    margin: 0 auto;
    padding: 28px 0 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 18px;
    text-align: center;
}


/* =====================================================
   LOGOTIPO
===================================================== */

.footer-logo-column,
.footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-image {
    display: block;

    width: clamp(210px, 15vw, 280px);
    max-width: 100%;
    height: auto;

    opacity: 1;

    filter:
        drop-shadow(0 0 16px rgba(44, 145, 255, 0.22))
        drop-shadow(0 0 28px rgba(112, 76, 255, 0.12));

    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}

.footer-logo-link:hover .footer-logo-image,
.footer-logo-link:focus-visible .footer-logo-image {
    transform: translateY(-2px);

    filter:
        drop-shadow(0 0 20px rgba(44, 145, 255, 0.36))
        drop-shadow(0 0 34px rgba(112, 76, 255, 0.18));
}


/* =====================================================
   POLÍTICAS
===================================================== */

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px 26px;
}

.footer-legal a {
    position: relative;

    color: rgba(255, 255, 255, 0.62);

    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.4;

    text-decoration: none;
    white-space: nowrap;

    transition:
        color 0.24s ease,
        transform 0.24s ease;
}

.footer-legal a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -4px;

    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        rgba(45, 168, 255, 0.92),
        rgba(126, 82, 255, 0.86)
    );

    transform: scaleX(0);
    transform-origin: center;

    transition: transform 0.25s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: rgba(255, 255, 255, 0.96);
    transform: translateY(-2px);
}

.footer-legal a:hover::after,
.footer-legal a:focus-visible::after {
    transform: scaleX(1);
}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

.footer-logo-link:focus-visible,
.footer-legal a:focus-visible {
    outline: 1px solid rgba(83, 142, 255, 0.92);
    outline-offset: 5px;
}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 640px) {

    .footer-inner {
        width: min(calc(100% - 24px), 560px);
        padding: 24px 0 26px;
        gap: 16px;
    }

    .footer-logo-image {
        width: 210px;
    }

    .footer-legal {
        gap: 10px 18px;
    }

    .footer-legal a {
        font-size: 0.78rem;
    }

}


/* =====================================================
   MÓVILES MUY ESTRECHOS
===================================================== */

@media (max-width: 390px) {

    .footer-inner {
        width: min(calc(100% - 18px), 370px);
    }

    .footer-logo-image {
        width: 185px;
    }

    .footer-legal {
        gap: 9px 14px;
    }

    .footer-legal a {
        font-size: 0.70rem;
    }

}


/* =====================================================
   REDUCCIÓN DE MOVIMIENTO
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .footer-logo-image,
    .footer-legal a,
    .footer-legal a::after {
        transition: none;
    }

}
