/* =========================================================
   BRAYAN ANGARITA
   HEADER + FOOTER
========================================================= */


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

.ba-site-header-v3,
.ba-site-header-v3 * {
    box-sizing: border-box;
}


.ba-site-header-v3 {
    position: sticky;
    z-index: 99999;
    top: 0;

    width: 100%;

    border-bottom:
        1px solid transparent;

    background:
        var(--ba-header-bg);

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

    backdrop-filter:
        blur(18px);

    transition:
        background-color
        var(--ba-transition-theme, .18s ease),

        border-color
        var(--ba-transition-theme, .18s ease),

        box-shadow
        var(--ba-transition-theme, .18s ease);
}


body.admin-bar
.ba-site-header-v3 {
    top: 32px;
}


@media screen and (max-width: 782px) {

    body.admin-bar
    .ba-site-header-v3 {
        top: 46px;
    }

}


.ba-site-header-v3.is-scrolled {
    border-bottom-color:
        var(--ba-border);

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, .08);
}



/* =========================================================
   HEADER INNER
========================================================= */

.ba-header-v3__inner {
    position: relative;
    z-index: 20;

    display: grid;

    grid-template-columns:
        minmax(190px, 1fr)
        auto
        minmax(250px, 1fr);

    align-items: center;

    width:
        calc(100% - 88px);

    max-width:
        var(--ba-content-max, 1140px);

    min-height:
        82px;

    margin:
        0 auto;
}



/* =========================================================
   BRAND
========================================================= */

.ba-header-v3__brand {
    justify-self: start;

    color:
        var(--ba-text) !important;

    font-family:
        inherit;

    font-size:
        20px;

    font-weight:
        650;

    line-height:
        1;

    letter-spacing:
        -.025em;

    white-space:
        nowrap;

    text-decoration:
        none !important;

    transition:
        color
        var(--ba-transition-fast, .16s ease);
}


.ba-header-v3__brand:hover {
    color:
        var(--ba-accent) !important;
}



/* =========================================================
   NAV
========================================================= */

.ba-header-v3__nav {
    display: flex;

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

    gap: 30px;
}


.ba-header-v3__nav a {
    position: relative;

    display: flex;

    align-items: center;

    min-height:
        82px;

    color:
        var(--ba-text-soft) !important;

    font-size:
        15px;

    font-weight:
        550;

    line-height:
        1;

    white-space:
        nowrap;

    text-decoration:
        none !important;

    transition:
        color
        var(--ba-transition-fast, .16s ease);
}


.ba-header-v3__nav a::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: 19px;

    width: 0;
    height: 2px;

    background:
        var(--ba-accent);

    transform:
        translateX(-50%);

    transition:
        width
        var(--ba-transition-fast, .16s ease);
}


.ba-header-v3__nav a:hover,
.ba-header-v3__nav a.is-active {
    color:
        var(--ba-text) !important;
}


.ba-header-v3__nav a:hover::after,
.ba-header-v3__nav a.is-active::after {
    width: 100%;
}



/* =========================================================
   ACTIONS
========================================================= */

.ba-header-v3__actions {
    display: flex;

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

    gap: 8px;
}



/* =========================================================
   TRANSLATEPRESS LANGUAGE SWITCHER
========================================================= */

.ba-language-switcher-native {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 44px;

    width: 44px;
    height: 40px;

    margin: 0;
    padding: 0;

    /*
     * TranslatePress queda ópticamente ~1px más alto
     * que nuestros botones.
     */
    transform: translateY(1px);
}



/* =========================================================
   TRANSLATEPRESS ROOT
========================================================= */

.ba-language-switcher-native
.trp-language-switcher {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    min-width: 44px !important;

    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background:
        transparent !important;

    background-image:
        none !important;

    box-shadow:
        none !important;

    filter:
        none !important;

    line-height:
        1 !important;

    vertical-align:
        middle !important;

    --switcher-width:
        44px !important;
}



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

.ba-language-switcher-native
.trp-language-switcher-inner {
    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background:
        transparent !important;

    box-shadow:
        none !important;
}



/* =========================================================
   LANGUAGE ITEM
========================================================= */

.ba-language-switcher-native
.trp-language-item,

.ba-language-switcher-native
a.trp-language-item,

.ba-language-switcher-native
.trp-language-item__current {
    position: relative;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    min-width: 44px !important;

    height: 40px !important;
    min-height: 40px !important;

    margin: 0 !important;

    padding:
        0 9px !important;

    border:
        1px solid
        var(--ba-border) !important;

    border-radius:
        var(--ba-radius-sm, 8px) !important;

    /*
     * Flat design — same visual language
     * as the theme toggle.
     */
    background:
        var(--ba-surface) !important;

    background-color:
        var(--ba-surface) !important;

    background-image:
        none !important;

    color:
        var(--ba-text-soft) !important;

    box-shadow:
        none !important;

    text-shadow:
        none !important;

    filter:
        none !important;

    appearance:
        none !important;

    -webkit-appearance:
        none !important;

    font-family:
        inherit !important;

    font-size:
        14px !important;

    font-weight:
        700 !important;

    line-height:
        1 !important;

    letter-spacing:
        .04em !important;

    text-align:
        center !important;

    text-transform:
        uppercase !important;

    text-decoration:
        none !important;

    cursor:
        pointer;

    transform:
        none !important;

    transition:
        color
        var(--ba-transition-fast, .16s ease),

        background-color
        var(--ba-transition-fast, .16s ease),

        border-color
        var(--ba-transition-fast, .16s ease);
}



/* =========================================================
   HOVER
========================================================= */

.ba-language-switcher-native
.trp-language-item:hover,

.ba-language-switcher-native
a.trp-language-item:hover,

.ba-language-switcher-native
.trp-language-item__current:hover {
    border-color:
        var(--ba-accent-border) !important;

    background:
        var(--ba-surface-hover) !important;

    background-color:
        var(--ba-surface-hover) !important;

    background-image:
        none !important;

    color:
        var(--ba-accent) !important;

    box-shadow:
        none !important;

    transform:
        none !important;
}



/* =========================================================
   LANGUAGE NAME
========================================================= */

.ba-language-switcher-native
.trp-language-item-name {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    color:
        inherit !important;

    font: inherit !important;

    line-height:
        1 !important;

    letter-spacing:
        inherit !important;

    text-shadow:
        none !important;
}



/* =========================================================
   REMOVE FLAGS
========================================================= */

.ba-language-switcher-native
.trp-flag-image {
    display:
        none !important;
}



/* =========================================================
   REMOVE ARROWS / DECORATION
========================================================= */

.ba-language-switcher-native
.trp-language-item::before,

.ba-language-switcher-native
.trp-language-item::after,

.ba-language-switcher-native
.trp-language-item__current::before,

.ba-language-switcher-native
.trp-language-item__current::after {
    display:
        none !important;

    content:
        none !important;
}



/* =========================================================
   DROPDOWN
   Should not normally be visible with opposite-language mode,
   but prevents plugin styling leaking into our header.
========================================================= */

.ba-language-switcher-native
.trp-switcher-dropdown-list {
    box-shadow:
        none !important;

    background:
        var(--ba-surface) !important;

    border-color:
        var(--ba-border) !important;
}



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

@media (max-width: 620px) {

    .ba-language-switcher-native {
        flex-basis: 38px;

        width: 38px;
        height: 38px;

        transform:
            translateY(1px);
    }


    .ba-language-switcher-native
    .trp-language-switcher,

    .ba-language-switcher-native
    .trp-language-switcher-inner {
        width:
            38px !important;

        min-width:
            38px !important;

        height:
            38px !important;

        min-height:
            38px !important;

        --switcher-width:
            38px !important;
    }


    .ba-language-switcher-native
    .trp-language-item,

    .ba-language-switcher-native
    a.trp-language-item,

    .ba-language-switcher-native
    .trp-language-item__current {
        width:
            38px !important;

        min-width:
            38px !important;

        height:
            38px !important;

        min-height:
            38px !important;

        padding:
            0 !important;

        font-size:
            10px !important;
    }

}

/* =========================================================
   THEME BUTTON
========================================================= */

.ba-theme-toggle-v3 {
    position: relative;

    display: inline-flex;

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

    flex:
        0 0 40px;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border:
        1px solid
        var(--ba-border) !important;

    border-radius:
        var(--ba-radius-sm, 8px) !important;

    background:
        var(--ba-surface) !important;

    color:
        var(--ba-text) !important;

    box-shadow:
        none !important;

    cursor: pointer;

    transition:
        background-color
        var(--ba-transition-fast, .16s ease),

        border-color
        var(--ba-transition-fast, .16s ease);
}


.ba-theme-toggle-v3:hover {
    background:
        var(--ba-surface-hover) !important;

    border-color:
        var(--ba-accent-border) !important;
}


.ba-theme-toggle-v3 > span {
    position: absolute;

    display: flex;

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

    transition:
        opacity
        var(--ba-transition-fast, .16s ease),

        transform
        var(--ba-transition-fast, .16s ease);
}


.ba-theme-toggle-v3 svg {
    display: block;

    width: 17px;
    height: 17px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.8;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}



/* DARK */

html[data-theme="dark"]
.ba-theme-toggle-v3__sun {
    opacity: 1;

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


html[data-theme="dark"]
.ba-theme-toggle-v3__moon {
    opacity: 0;

    transform:
        scale(.7)
        rotate(-20deg);
}



/* LIGHT */

html[data-theme="light"]
.ba-theme-toggle-v3__sun {
    opacity: 0;

    transform:
        scale(.7)
        rotate(20deg);
}


html[data-theme="light"]
.ba-theme-toggle-v3__moon {
    opacity: 1;

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



/* =========================================================
   HEADER CTA
========================================================= */

.ba-header-v3__cta {
    display: inline-flex;

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

    gap: 11px;

    min-height: 40px;

    padding:
        7px 8px 7px 15px;

    border:
        1px solid
        var(--ba-accent-fill);

    border-radius:
        var(--ba-radius-sm, 8px) !important;

    background:
        var(--ba-accent-fill);

    color:
        var(--ba-on-accent) !important;

    font-size:
        14px;

    font-weight:
        600;

    line-height:
        1;

    white-space:
        nowrap;

    text-decoration:
        none !important;

    transition:
        background-color
        var(--ba-transition-fast, .16s ease),

        border-color
        var(--ba-transition-fast, .16s ease);
}


.ba-header-v3__cta:hover {
    background:
        var(--ba-accent-fill-hover);

    border-color:
        var(--ba-accent-fill-hover);

    color:
        var(--ba-on-accent) !important;
}


.ba-header-v3__cta-icon {
    display: flex;

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

    width: 26px;
    height: 26px;

    border-radius:
        var(--ba-radius-xs, 6px);

    background:
        rgba(0, 0, 0, .18);
}


.ba-header-v3__cta-icon svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        2;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;

    transition:
        transform
        var(--ba-transition-fast, .16s ease);
}


.ba-header-v3__cta:hover
.ba-header-v3__cta-icon svg {
    transform:
        translateX(2px);
}



/* =========================================================
   HAMBURGER
========================================================= */

.ba-nav-toggle-v3 {
    position: relative;

    display: none;

    flex:
        0 0 40px;

    width: 40px;
    height: 40px;

    margin: 0;
    padding: 0;

    border:
        1px solid
        var(--ba-border) !important;

    border-radius:
        var(--ba-radius-sm, 8px) !important;

    background:
        var(--ba-surface) !important;

    box-shadow:
        none !important;

    cursor: pointer;
}


.ba-nav-toggle-v3 span {
    position: absolute;

    left: 10px;

    width: 18px;
    height: 1.5px;

    background:
        var(--ba-text);

    transition:
        top .22s ease,
        transform .22s ease;
}


.ba-nav-toggle-v3 span:first-child {
    top: 15px;
}


.ba-nav-toggle-v3 span:last-child {
    top: 22px;
}


.ba-nav-toggle-v3.is-open
span:first-child {
    top: 19px;

    transform:
        rotate(45deg);
}


.ba-nav-toggle-v3.is-open
span:last-child {
    top: 19px;

    transform:
        rotate(-45deg);
}



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

.ba-mobile-panel-v3 {
    position: absolute;

    z-index: 10;

    top: 100%;
    right: 0;
    left: 0;

    display: none;

    width: 100%;

    max-height:
        calc(100vh - 74px);

    overflow-x: hidden;
    overflow-y: auto;

    border-top:
        1px solid
        var(--ba-border);

    border-bottom:
        1px solid
        var(--ba-border);

    background:
        var(--ba-bg);

    box-shadow:
        0 18px 40px
        rgba(0, 0, 0, .18);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform:
        translateY(-8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease;
}


.ba-mobile-panel-v3.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform:
        translateY(0);
}


.ba-mobile-panel-v3__inner {
    width:
        calc(100% - 36px);

    max-width:
        var(--ba-content-max, 1140px);

    margin:
        0 auto;

    padding:
        13px 0 22px;
}


.ba-mobile-panel-v3__nav {
    display: flex;

    flex-direction: column;
}


.ba-mobile-panel-v3__nav > a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 57px;

    border-bottom:
        1px solid
        var(--ba-border-soft);

    color:
        var(--ba-text) !important;

    font-size:
        16px;

    font-weight:
        550;

    text-decoration:
        none !important;
}


.ba-mobile-panel-v3__nav
> a
> span:last-child {
    color:
        var(--ba-text-muted);

    font-size:
        10px;

    font-weight:
        600;
}



/* MOBILE CTA */

.ba-mobile-panel-v3__cta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    min-height: 48px;

    margin-top: 18px;

    padding:
        0 15px;

    border:
        1px solid
        var(--ba-accent-fill);

    border-radius:
        var(--ba-radius-sm, 8px) !important;

    background:
        var(--ba-accent-fill);

    color:
        var(--ba-on-accent) !important;

    font-size:
        14px;

    font-weight:
        600;

    text-decoration:
        none !important;
}


.ba-mobile-panel-v3__cta svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        2;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;
}



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

@media (max-width: 1050px) {

    .ba-header-v3__inner {
        grid-template-columns:
            1fr auto;

        width:
            calc(100% - 36px);

        min-height:
            74px;
    }


    .ba-header-v3__nav {
        display: none;
    }


    .ba-nav-toggle-v3 {
        display: block;
    }


    .ba-mobile-panel-v3 {
        display: block;
    }

}


@media (max-width: 620px) {

    .ba-header-v3__inner {
        width:
            calc(100% - 28px);

        min-height:
            68px;
    }


    .ba-header-v3__brand {
        font-size:
            15px;
    }


    .ba-header-v3__cta {
        display: none;
    }


    .ba-header-v3__actions {
        gap: 7px;
    }


    .ba-language-switcher__link {
        min-width: 40px;

        height: 38px;

        padding:
            0 8px;

        font-size:
            10px;
    }


    .ba-theme-toggle-v3,
    .ba-nav-toggle-v3 {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }


    .ba-mobile-panel-v3__inner {
        width:
            calc(100% - 28px);
    }

}


@media (max-width: 390px) {

    .ba-header-v3__inner {
        width:
            calc(100% - 22px);
    }


    .ba-header-v3__brand {
        font-size:
            14px;
    }


    .ba-header-v3__actions {
        gap: 5px;
    }


    .ba-language-switcher__link {
        min-width: 37px;
        width: 37px;

        padding: 0;
    }


    .ba-theme-toggle-v3,
    .ba-nav-toggle-v3 {
        width: 37px;
        height: 37px;

        flex-basis: 37px;
    }

}



/* =========================================================
   FOOTER
========================================================= */

.ba-footer,
.ba-footer * {
    box-sizing: border-box;
}


.ba-footer {
    width: 100%;

    border-top:
        1px solid
        var(--ba-border);

    background:
        var(--ba-bg);

    color:
        var(--ba-text);
}


.ba-footer__inner {
    width:
        calc(100% - 48px);

    max-width:
        var(--ba-content-max, 1140px);

    margin:
        0 auto;

    padding:
        74px 0 34px;
}



/* =========================================================
   FOOTER CONTACT
========================================================= */

.ba-footer__contact {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(260px, .65fr);

    align-items: center;

    gap: 72px;
}


.ba-footer__eyebrow {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom:
        17px;

    color:
        var(--ba-accent);

    font-size:
        11px;

    font-weight:
        700;

    letter-spacing:
        .12em;

    text-transform:
        uppercase;
}


.ba-footer__eyebrow-line {
    width: 28px;
    height: 2px;

    background:
        var(--ba-accent);
}


.ba-footer__title {
    max-width:
        720px;

    margin: 0;

    color:
        var(--ba-text) !important;

    font-size:
        clamp(42px, 4.8vw, 62px);

    font-weight:
        600;

    line-height:
        1.02;

    letter-spacing:
        -.052em;

    text-wrap:
        balance;
}



/* =========================================================
   FOOTER ACTIONS
========================================================= */

.ba-footer__actions {
    display: flex;

    flex-direction: column;

    justify-self: end;

    gap: 11px;

    width: 100%;
    max-width: 275px;
}


.ba-footer__primary {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 50px;

    padding:
        6px 7px 6px 17px;

    border:
        1px solid
        var(--ba-accent-fill);

    border-radius:
        var(--ba-radius-sm, 8px) !important;

    background:
        var(--ba-accent-fill);

    color:
        var(--ba-on-accent) !important;

    font-size:
        14px;

    font-weight:
        650;

    text-decoration:
        none !important;
}


.ba-footer__primary:hover {
    background:
        var(--ba-accent-fill-hover);

    border-color:
        var(--ba-accent-fill-hover);

    color:
        var(--ba-on-accent) !important;
}


.ba-footer__primary-icon {
    display: flex;

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

    width: 34px;
    height: 34px;

    border-radius:
        var(--ba-radius-xs, 6px);

    background:
        rgba(0, 0, 0, .24);
}


.ba-footer__primary-icon svg {
    width: 15px;
    height: 15px;

    fill: none;

    stroke:
        currentColor;

    stroke-width: 2;
}


.ba-footer__secondary {
    display: flex;

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

    gap: 10px;

    min-height: 48px;

    border:
        1px solid
        var(--ba-border);

    border-radius:
        var(--ba-radius-sm, 8px) !important;

    background:
        transparent;

    color:
        var(--ba-text) !important;

    font-size:
        14px;

    font-weight:
        600;

    text-decoration:
        none !important;
}


.ba-footer__secondary:hover {
    border-color:
        var(--ba-accent-border);

    background:
        var(--ba-surface);

    color:
        var(--ba-accent) !important;
}


.ba-footer__whatsapp-icon {
    width: 18px;
    height: 18px;

    fill:
        currentColor;
}



/* =========================================================
   FOOTER BOTTOM
========================================================= */

.ba-footer__divider {
    width: 100%;
    height: 1px;

    margin:
        54px 0 26px;

    background:
        var(--ba-border);
}


.ba-footer__bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 36px;
}


.ba-footer__email {
    color:
        var(--ba-text-soft) !important;

    font-size:
        14px;

    font-weight:
        600;

    text-decoration:
        none !important;
}


.ba-footer__email:hover {
    color:
        var(--ba-accent) !important;
}



/* SOCIALS */

.ba-footer__social {
    display: flex;

    align-items: center;

    gap: 10px;
}


.ba-footer__social-link {
    display: inline-flex;

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

    width: 48px;
    height: 48px;

    border:
        1px solid
        var(--ba-border);

    border-radius:
        var(--ba-radius-sm, 8px);

    background:
        transparent;

    color:
        var(--ba-text-soft) !important;

    text-decoration:
        none !important;

    transition:
        color
        var(--ba-transition-fast, .16s ease),

        border-color
        var(--ba-transition-fast, .16s ease),

        background-color
        var(--ba-transition-fast, .16s ease),

        transform
        var(--ba-transition-fast, .16s ease);
}


.ba-footer__social-link:hover {
    border-color:
        var(--ba-accent-border);

    background:
        var(--ba-surface);

    color:
        var(--ba-accent) !important;

    transform:
        translateY(-2px);
}


.ba-footer__brand-icon {
    width: 20px;
    height: 20px;

    fill:
        currentColor;

    stroke:
        none;
}


.ba-footer__workana-logo {
    display: block;

    width: 22px;
    height: 22px;

    object-fit:
        contain;

    border-radius:
        4px;
}



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

@media (max-width: 900px) {

    .ba-footer__inner {
        width:
            calc(100% - 36px);
    }


    .ba-footer__contact {
        grid-template-columns:
            minmax(0, 1fr)
            240px;

        gap: 42px;
    }


    .ba-footer__actions {
        max-width:
            240px;
    }

}


@media (max-width: 700px) {

    .ba-footer__inner {
        width:
            calc(100% - 28px);

        padding:
            52px 0 26px;
    }


    .ba-footer__contact {
        grid-template-columns:
            1fr;

        gap: 28px;
    }


    .ba-footer__title {
        font-size:
            clamp(38px, 11vw, 48px);
    }


    .ba-footer__actions {
        justify-self:
            stretch;

        max-width:
            none;
    }


    .ba-footer__divider {
        margin:
            40px 0 23px;
    }


    .ba-footer__bottom {
        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 20px;
    }

}


@media (max-width: 430px) {

    .ba-footer__title {
        font-size:
            38px;
    }


    .ba-footer__social-link {
        width: 46px;
        height: 46px;
    }

}



/* =========================================================
   REDUCED MOTION
========================================================= */

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

    .ba-site-header-v3 *,
    .ba-site-header-v3 *::before,
    .ba-site-header-v3 *::after,

    .ba-footer *,
    .ba-footer *::before,
    .ba-footer *::after {
        transition:
            none !important;
    }

}