/* =========================================================
   TENACITY SOFT
   FOOTER
========================================================= */

.ts-footer {
    position: relative;

    overflow: hidden;

    padding:
        90px 0 28px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);

    background:
        linear-gradient(
            180deg,
            rgba(2, 9, 20, 0.95),
            #01060d 65%
        );

    isolation: isolate;
}


/* =========================================================
   FONDO
========================================================= */

.ts-footer__background {
    position: absolute;

    inset: 0;

    z-index: -2;

    pointer-events: none;
}


.ts-footer__grid-pattern {
    position: absolute;

    inset: 0;

    opacity: 0.14;

    background-image:
        linear-gradient(
            rgba(48, 129, 222, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(48, 129, 222, 0.12) 1px,
            transparent 1px
        );

    background-size:
        76px 76px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8),
            transparent 78%
        );
}


.ts-footer__glow {
    position: absolute;

    border-radius: 50%;

    filter:
        blur(120px);

    opacity: 0.11;
}


.ts-footer__glow--blue {
    width: 430px;
    height: 430px;

    left: -180px;
    top: 10%;

    background:
        var(--ts-primary);
}


.ts-footer__glow--yellow {
    width: 300px;
    height: 300px;

    right: -120px;
    bottom: -60px;

    background:
        var(--ts-accent);

    opacity: 0.055;
}


/* =========================================================
   LÍNEA SUPERIOR
========================================================= */

.ts-footer__top-line {
    position: absolute;

    width: min(84%, 1350px);
    height: 1px;

    left: 50%;
    top: 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(22, 136, 255, 0.54),
            rgba(255, 196, 0, 0.52),
            transparent
        );

    transform:
        translateX(-50%);
}


.ts-footer__top-line span {
    position: absolute;

    width: 170px;
    height: 34px;

    left: 50%;
    top: 50%;

    border-radius: 50%;

    background:
        rgba(22, 136, 255, 0.13);

    filter:
        blur(22px);

    transform:
        translate(-50%, -50%);
}


/* =========================================================
   LAYOUT PRINCIPAL
========================================================= */

.ts-footer__main {
    display: grid;

    grid-template-columns:
        minmax(260px, 0.85fr)
        minmax(0, 2.15fr);

    gap:
        clamp(60px, 7vw, 120px);

    align-items: start;
}


/* =========================================================
   MARCA
========================================================= */

.ts-footer__brand-column {
    max-width: 340px;
}


.ts-footer__brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;
}


.ts-footer__brand-mark {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    color:
        var(--ts-accent);

    transition:
        transform var(--ts-transition),
        filter var(--ts-transition);
}


.ts-footer__brand:hover
.ts-footer__brand-mark {
    filter:
        drop-shadow(
            0 0 14px rgba(255, 196, 0, 0.4)
        );

    transform:
        translateY(-3px)
        rotate(-2deg);
}


.ts-footer__brand-mark svg {
    width: 100%;
    height: 100%;

    fill:
        var(--ts-accent);

    stroke:
        var(--ts-primary);

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.ts-footer__brand-copy {
    display: grid;

    font-family:
        "Space Grotesk",
        sans-serif;

    line-height: 0.92;
}


.ts-footer__brand-copy strong {
    color:
        var(--ts-text);

    font-size: 19px;
    font-weight: 700;

    letter-spacing: 0.045em;
}


.ts-footer__brand-copy span {
    margin-top: 4px;

    color:
        var(--ts-primary);

    font-size: 19px;
    font-weight: 700;

    letter-spacing: 0.055em;
}


.ts-footer__description {
    margin:
        24px 0 0;

    color:
        #8294a8;

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   REDES SOCIALES
========================================================= */

.ts-footer__socials {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 28px;
}


.ts-footer__socials a {
    width: 41px;
    height: 41px;

    display: grid;
    place-items: center;

    border:
        1px solid rgba(77, 151, 241, 0.16);

    border-radius: 12px;

    color:
        #8fa1b5;

    background:
        rgba(255, 255, 255, 0.022);

    transition:
        color var(--ts-transition),
        background var(--ts-transition),
        border-color var(--ts-transition),
        transform var(--ts-transition),
        box-shadow var(--ts-transition);
}


.ts-footer__socials a:hover {
    color:
        var(--ts-primary-light);

    border-color:
        rgba(22, 136, 255, 0.5);

    background:
        rgba(22, 136, 255, 0.09);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.26),
        0 0 24px rgba(22, 136, 255, 0.12);

    transform:
        translateY(-4px);
}


.ts-footer__socials svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   COLUMNAS DE ENLACES
========================================================= */

.ts-footer__links-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap:
        clamp(28px, 4vw, 62px);
}


.ts-footer__column {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 11px;
}


.ts-footer__column h3 {
    position: relative;

    margin:
        0 0 12px;

    color:
        #f0f4f8;

    font-family:
        "Space Grotesk",
        sans-serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}


.ts-footer__column h3::after {
    content: "";

    position: absolute;

    width: 26px;
    height: 2px;

    left: 0;
    bottom: -9px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--ts-accent),
            transparent
        );
}


.ts-footer__column > a:not(
    .ts-footer__contact-item,
    .ts-footer__contact-button
) {
    position: relative;

    color:
        #8394a8;

    font-size: 12px;

    transition:
        color var(--ts-transition),
        transform var(--ts-transition);
}


.ts-footer__column > a:not(
    .ts-footer__contact-item,
    .ts-footer__contact-button
)::before {
    content: "";

    position: absolute;

    width: 4px;
    height: 4px;

    left: -12px;
    top: 50%;

    border-radius: 50%;

    background:
        var(--ts-primary);

    box-shadow:
        0 0 9px var(--ts-primary);

    opacity: 0;

    transform:
        translateY(-50%)
        scale(0);

    transition:
        opacity var(--ts-transition),
        transform var(--ts-transition);
}


.ts-footer__column > a:not(
    .ts-footer__contact-item,
    .ts-footer__contact-button
):hover {
    color:
        var(--ts-text);

    transform:
        translateX(7px);
}


.ts-footer__column > a:not(
    .ts-footer__contact-item,
    .ts-footer__contact-button
):hover::before {
    opacity: 1;

    transform:
        translateY(-50%)
        scale(1);
}


/* =========================================================
   CONTACTO
========================================================= */

.ts-footer__column--contact {
    gap: 12px;
}


.ts-footer__contact-item {
    display: flex;
    align-items: center;

    gap: 10px;

    color:
        #8a9caf;

    font-size: 12px;

    transition:
        color var(--ts-transition);
}


a.ts-footer__contact-item:hover {
    color:
        var(--ts-text);
}


.ts-footer__contact-icon {
    width: 31px;
    height: 31px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border:
        1px solid rgba(255, 196, 0, 0.18);

    border-radius: 9px;

    color:
        var(--ts-accent);

    background:
        rgba(255, 196, 0, 0.045);
}


.ts-footer__contact-icon svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.ts-footer__contact-button {
    min-height: 43px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 7px;

    padding:
        0 15px;

    border:
        1px solid rgba(52, 211, 120, 0.26);

    border-radius: 10px;

    color:
        #dff9ea;

    background:
        rgba(23, 143, 77, 0.1);

    font-size: 10px;
    font-weight: 750;

    text-transform: uppercase;

    transition:
        transform var(--ts-transition),
        border-color var(--ts-transition),
        background var(--ts-transition),
        box-shadow var(--ts-transition);
}


.ts-footer__contact-button:hover {
    border-color:
        rgba(52, 211, 120, 0.5);

    background:
        rgba(23, 143, 77, 0.17);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.24),
        0 0 22px rgba(52, 211, 120, 0.08);

    transform:
        translateY(-2px);
}


.ts-footer__contact-button span {
    display: inline-flex;
}


.ts-footer__contact-button svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   PARTE INFERIOR
========================================================= */

.ts-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    margin-top: 70px;

    padding-top: 24px;

    border-top:
        1px solid rgba(255, 255, 255, 0.055);
}


.ts-footer__bottom p {
    margin: 0;

    color:
        #617286;

    font-size: 10px;
}


.ts-footer__legal {
    display: flex;
    align-items: center;

    gap: 22px;
}


.ts-footer__legal a {
    color:
        #617286;

    font-size: 10px;

    transition:
        color var(--ts-transition);
}


.ts-footer__legal a:hover {
    color:
        var(--ts-accent);
}


/* =========================================================
   VOLVER ARRIBA
========================================================= */

.ts-footer__back-to-top {
    position: fixed;

    width: 46px;
    height: 46px;

    right: 24px;
    bottom: 24px;

    z-index: 900;

    display: grid;
    place-items: center;

    padding: 0;

    border:
        1px solid rgba(50, 147, 255, 0.3);

    border-radius: 14px;

    color:
        var(--ts-primary-light);

    background:
        rgba(4, 19, 37, 0.84);

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.35),
        0 0 24px rgba(22, 136, 255, 0.1);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

    cursor: pointer;

    opacity: 0;

    visibility: hidden;

    transform:
        translateY(14px);

    transition:
        opacity var(--ts-transition),
        visibility var(--ts-transition),
        transform var(--ts-transition),
        border-color var(--ts-transition),
        color var(--ts-transition);
}


.ts-footer__back-to-top.is-visible {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(0);
}


.ts-footer__back-to-top:hover {
    color:
        var(--ts-accent);

    border-color:
        rgba(255, 196, 0, 0.45);

    transform:
        translateY(-3px);
}


.ts-footer__back-to-top svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.9;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {

    .ts-footer__main {
        grid-template-columns:
            280px 1fr;

        gap: 55px;
    }


    .ts-footer__links-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        row-gap: 45px;
    }

}


@media (max-width: 820px) {

    .ts-footer {
        padding-top: 75px;
    }


    .ts-footer__main {
        grid-template-columns:
            1fr;

        gap: 55px;
    }


    .ts-footer__brand-column {
        max-width: 520px;
    }


    .ts-footer__links-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .ts-footer__bottom {
        align-items: flex-start;
        flex-direction: column;

        margin-top: 55px;
    }

}


@media (max-width: 560px) {

    .ts-footer {
        padding:
            62px 0 24px;
    }


    .ts-footer__links-grid {
        grid-template-columns:
            1fr;

        gap: 38px;
    }


    .ts-footer__brand-column {
        max-width: none;
    }


    .ts-footer__description {
        font-size: 12px;
    }


    .ts-footer__legal {
        flex-wrap: wrap;

        gap:
            12px 18px;
    }


    .ts-footer__back-to-top {
        width: 42px;
        height: 42px;

        right: 16px;
        bottom: 16px;
    }

}