/* =========================================================
   TENACITY SOFT
   HEADER COMPLETO
========================================================= */

.site-header,
.site-header *,
.site-header *::before,
.site-header *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER WRAPPER
========================================================= */

.site-header {
    --header-height: 88px;
    --header-background: rgba(2, 10, 22, 0.72);

    --header-blue: #1688ff;
    --header-blue-light: #65bdff;
    --header-yellow: #ffc400;

    --header-text: #f6f8fc;
    --header-muted: #a8b4c4;

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    width: 100%;
    height: var(--header-height);

    display: flex;
    align-items: center;

    border-bottom:
        1px solid transparent;

    background:
        linear-gradient(
            180deg,
            rgba(2, 10, 22, 0.91) 0%,
            rgba(2, 10, 22, 0.76) 65%,
            rgba(2, 10, 22, 0.42) 100%
        );

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

    transition:
        height 250ms ease,
        background 250ms ease,
        border-color 250ms ease,
        box-shadow 250ms ease;
}


.site-header.is-scrolled {
    height: 74px;

    border-bottom-color:
        rgba(92, 169, 242, 0.12);

    background:
        rgba(2, 10, 22, 0.94);

    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.3);
}


/* =========================================================
   INNER CONTAINER
========================================================= */

.site-header .header-inner {
    position: relative;

    width:
        min(
            calc(100% - 64px),
            1380px
        );

    max-width: 1380px;
    height: 100%;

    margin-right: auto;
    margin-left: auto;

    padding: 0;

    display: grid;

    grid-template-columns:
        minmax(185px, auto)
        minmax(480px, 1fr)
        minmax(200px, auto);

    align-items: center;

    column-gap:
        clamp(24px, 3vw, 54px);
}


/*
Evita que estilos globales de .container
desplacen el header.
*/

.site-header .container.header-inner {
    margin-right: auto !important;
    margin-left: auto !important;

    padding-right: 0 !important;
    padding-left: 0 !important;

    transform: none !important;
}


/* =========================================================
   LOGO
========================================================= */

.site-header .brand {
    position: relative;

    min-width: 0;

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

    gap: 11px;

    justify-self: start;

    color: #ffffff;

    text-decoration: none;

    transition:
        opacity 200ms ease,
        transform 200ms ease;
}


.site-header .brand:hover {
    opacity: 0.94;

    transform:
        translateY(-1px);
}


.site-header .brand-mark {
    width: 39px;
    height: 39px;

    display: grid;
    place-items: center;

    flex: 0 0 39px;
}


.site-header .brand-mark svg {
    width: 100%;
    height: 100%;

    display: block;

    overflow: visible;

    fill: var(--header-yellow);

    stroke: var(--header-blue);
    stroke-width: 2;

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

    filter:
        drop-shadow(
            0 0 8px rgba(22, 136, 255, 0.2)
        );
}


.site-header .brand-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    line-height: 0.92;
}


.site-header .brand-copy strong {
    display: block;

    color: var(--header-text);

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

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

    letter-spacing: 0.04em;

    white-space: nowrap;
}


.site-header .brand-copy > span {
    display: block;

    margin-top: 5px;

    color: var(--header-blue);

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

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

    letter-spacing: 0.09em;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
========================================================= */

.site-header .main-nav {
    position: relative;

    min-width: 0;

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

    gap: 4px;

    justify-self: center;
}


.site-header .nav-link {
    position: relative;

    min-height: 42px;

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

    padding:
        0 15px;

    border:
        1px solid transparent;

    border-radius: 11px;

    color: var(--header-muted);

    background: transparent;

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

    line-height: 1;

    text-decoration: none;

    white-space: nowrap;

    transition:
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}


.site-header .nav-link:hover {
    color: #ffffff;

    border-color:
        rgba(87, 174, 255, 0.12);

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

    transform:
        translateY(-1px);
}


.site-header .nav-link.is-active {
    color: #ffffff;

    border-color:
        rgba(88, 181, 255, 0.23);

    background:
        linear-gradient(
            135deg,
            rgba(22, 136, 255, 0.16),
            rgba(22, 136, 255, 0.055)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 24px rgba(0, 92, 196, 0.09);
}


.site-header .nav-link:focus-visible {
    outline:
        2px solid rgba(92, 187, 255, 0.88);

    outline-offset: 3px;
}


/* Elimina cualquier punto o línea anterior */

.site-header .nav-link::before,
.site-header .nav-link::after {
    display: none !important;

    content: none !important;
}


/* =========================================================
   CALL BUTTON
========================================================= */

.site-header .header-call {
    min-width: 190px;
    min-height: 52px;

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

    gap: 12px;

    justify-self: end;

    padding:
        8px 18px;

    border:
        1px solid rgba(255, 226, 104, 0.72);

    border-radius: 11px;

    color: #07101b;

    background:
        linear-gradient(
            135deg,
            #ffda55 0%,
            #ffc400 57%,
            #ffb800 100%
        );

    box-shadow:
        0 13px 32px rgba(255, 196, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.52);

    text-decoration: none;

    transition:
        transform 190ms ease,
        box-shadow 190ms ease,
        filter 190ms ease;
}


.site-header .header-call:hover {
    transform:
        translateY(-2px);

    filter:
        brightness(1.035);

    box-shadow:
        0 17px 38px rgba(255, 196, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.58);
}


.site-header .header-call:active {
    transform:
        translateY(0);
}


.site-header .header-call > svg {
    width: 20px;
    height: 20px;

    display: block;

    flex: 0 0 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;

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

    transition:
        transform 190ms ease;
}


.site-header .header-call:hover > svg {
    transform:
        rotate(-8deg)
        scale(1.06);
}


.site-header .header-call__copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 5px;

    line-height: 1;
}


.site-header .header-call__copy small {
    display: block;

    color:
        rgba(7, 16, 27, 0.66);

    font-size: 8px;
    font-weight: 800;

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

    white-space: nowrap;
}


.site-header .header-call__copy strong {
    display: block;

    color: #07101b;

    font-size: 13px;
    font-weight: 850;

    letter-spacing: 0.015em;

    white-space: nowrap;
}


/* =========================================================
   MENU TOGGLE
========================================================= */

.site-header .menu-toggle {
    width: 45px;
    height: 45px;

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

    gap: 5px;

    justify-self: end;

    padding: 0;

    border:
        1px solid rgba(89, 174, 255, 0.18);

    border-radius: 11px;

    color: #ffffff;

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

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}


.site-header .menu-toggle:hover {
    border-color:
        rgba(89, 174, 255, 0.32);

    background:
        rgba(22, 136, 255, 0.12);
}


.site-header .menu-toggle span {
    width: 20px;
    height: 2px;

    display: block;

    border-radius: 999px;

    background: currentColor;

    transition:
        transform 230ms ease,
        opacity 180ms ease;
}


.site-header .menu-toggle.is-open span:nth-child(1) {
    transform:
        translateY(7px)
        rotate(45deg);
}


.site-header .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}


.site-header .menu-toggle.is-open span:nth-child(3) {
    transform:
        translateY(-7px)
        rotate(-45deg);
}


/* =========================================================
   WIDE DESKTOP
========================================================= */

@media (min-width: 1600px) {

    .site-header .header-inner {
        width:
            min(
                calc(100% - 96px),
                1460px
            );

        max-width: 1460px;
    }

}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1360px) {

    .site-header .header-inner {
        width:
            min(
                calc(100% - 48px),
                1240px
            );

        max-width: 1240px;

        grid-template-columns:
            minmax(170px, auto)
            minmax(430px, 1fr)
            minmax(180px, auto);

        column-gap: 20px;
    }


    .site-header .main-nav {
        gap: 1px;
    }


    .site-header .nav-link {
        padding-inline: 11px;

        font-size: 12px;
    }


    .site-header .header-call {
        min-width: 180px;

        padding-inline: 15px;
    }

}


/* =========================================================
   SMALL LAPTOP
========================================================= */

@media (max-width: 1140px) {

    .site-header .header-inner {
        width:
            calc(100% - 36px);

        grid-template-columns:
            minmax(160px, auto)
            minmax(390px, 1fr)
            minmax(172px, auto);

        column-gap: 14px;
    }


    .site-header .nav-link {
        padding-inline: 9px;

        font-size: 11px;
    }


    .site-header .header-call {
        min-width: 170px;

        gap: 9px;

        padding-inline: 13px;
    }


    .site-header .header-call__copy strong {
        font-size: 12px;
    }

}


/* =========================================================
   TABLET / MOBILE NAVIGATION
========================================================= */

@media (max-width: 1024px) {

    .site-header {
        --header-height: 76px;
    }


    .site-header.is-scrolled {
        height: 70px;
    }


    .site-header .header-inner {
        width:
            min(
                calc(100% - 32px),
                920px
            );

        max-width: 920px;

        grid-template-columns:
            auto 1fr auto auto;

        column-gap: 14px;
    }


    .site-header .brand {
        grid-column: 1;
    }


    .site-header .header-call {
        grid-column: 3;

        min-width: 175px;

        margin-left: auto;
    }


    .site-header .menu-toggle {
        grid-column: 4;

        display: flex;
    }


    .site-header .main-nav {
        position: fixed;

        top:
            calc(
                var(--header-height) + 10px
            );

        left: 16px;
        right: 16px;

        z-index: 1100;

        display: grid;

        gap: 6px;

        justify-self: stretch;

        padding: 14px;

        border:
            1px solid rgba(79, 164, 244, 0.15);

        border-radius: 16px;

        background:
            rgba(2, 11, 24, 0.97);

        box-shadow:
            0 24px 60px rgba(0, 0, 0, 0.44);

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

        opacity: 0;
        visibility: hidden;

        transform:
            translateY(-10px)
            scale(0.985);

        transform-origin:
            top center;

        transition:
            opacity 210ms ease,
            visibility 210ms ease,
            transform 210ms ease;
    }


    .site-header .main-nav.is-open {
        opacity: 1;
        visibility: visible;

        transform:
            translateY(0)
            scale(1);
    }


    .site-header .nav-link {
        width: 100%;
        min-height: 49px;

        justify-content: flex-start;

        padding-inline: 17px;

        border-radius: 10px;

        font-size: 14px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 680px) {

    .site-header .header-inner {
        width:
            calc(100% - 24px);

        grid-template-columns:
            auto 1fr auto auto;

        column-gap: 10px;
    }


    .site-header .brand-mark {
        width: 35px;
        height: 35px;

        flex-basis: 35px;
    }


    .site-header .brand-copy strong {
        font-size: 14px;
    }


    .site-header .brand-copy > span {
        font-size: 13px;
    }


    .site-header .header-call {
        min-width: 145px;
        min-height: 44px;

        gap: 8px;

        padding:
            7px 11px;
    }


    .site-header .header-call > svg {
        width: 17px;
        height: 17px;

        flex-basis: 17px;
    }


    .site-header .header-call__copy small {
        display: none;
    }


    .site-header .header-call__copy strong {
        font-size: 11px;
    }


    .site-header .menu-toggle {
        width: 43px;
        height: 43px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .site-header {
        --header-height: 70px;
    }


    .site-header .header-inner {
        width:
            calc(100% - 20px);

        grid-template-columns:
            auto 1fr auto;

        column-gap: 9px;
    }


    .site-header .brand {
        grid-column: 1;
    }


    .site-header .brand-copy {
        display: none;
    }


    .site-header .header-call {
        grid-column: 2;

        min-width: 0;
        min-height: 42px;

        justify-self: end;

        padding:
            7px 10px;
    }


    .site-header .header-call__copy strong {
        font-size: 10px;
    }


    .site-header .menu-toggle {
        grid-column: 3;

        width: 42px;
        height: 42px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 370px) {

    .site-header .header-call {
        gap: 5px;

        padding-inline: 8px;
    }


    .site-header .header-call > svg {
        display: none;
    }


    .site-header .header-call__copy strong {
        font-size: 9px;
    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

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

    .site-header *,
    .site-header *::before,
    .site-header *::after {
        transition-duration:
            0.01ms !important;
    }

}

/*       LOGO FIX           */
/* =========================================================
   HEADER LOGO
========================================================= */

.header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    flex: 0 0 auto;

    width: 245px;
    min-width: 245px;

    overflow: visible;
}


.header-logo a {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 100%;

    line-height: 0;
}


.ts-logo {
    display: block;

    width: 190px;
    max-width: none;
    height: auto;

    object-fit: contain;
    object-position: left center;

    transform: scale(1.22);
    transform-origin: left center;

    user-select: none;
    -webkit-user-drag: none;
}


/* =========================================================
   MEDIUM DESKTOP
========================================================= */

@media (max-width: 1280px) {

    .header-logo {
        width: 210px;
        min-width: 210px;
    }

    .ts-logo {
        width: 205px;

        transform: scale(1.18);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .header-logo {
        width: 180px;
        min-width: 180px;
    }

    .ts-logo {
        width: 175px;

        transform: scale(1.14);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .header-logo {
        width: 155px;
        min-width: 155px;
    }

    .ts-logo {
        width: 150px;

        transform: scale(1.1);
    }

}
/*       LOGO FIX           */
