/* =========================================================
   GRUPO SEINTO · HEADER RESPONSIVE
   ========================================================= */

@media (max-width: 1260px) {
    .gs-header__inner {
        width: min(var(--gs-header-container), calc(100% - 32px));
        grid-template-columns: auto 1fr auto;
    }

    .gs-header__nav {
        display: none;
    }

    .gs-header__actions {
        justify-self: end;
    }

    .gs-header__cta {
        display: none;
    }

    .gs-header__burger {
        justify-self: end;

        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;

        width: 44px;
        height: 44px;
        padding: 0;

        border: 1px solid rgba(17, 24, 39, 0.16);
        border-radius: 11px;

        color: #111827;
        background: rgba(255, 255, 255, 0.12);

        cursor: pointer;
    }

    .gs-header__burger:hover {
        border-color: var(--gs-blue);
        background: rgba(8, 114, 190, 0.12);
    }

    .gs-header__burger span {
        display: block;

        width: 18px;
        height: 1.5px;

        border-radius: 2px;
        background: currentColor;

        transition:
            transform 0.18s ease,
            opacity 0.18s ease;
    }

    .gs-header__burger[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .gs-header__burger[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .gs-header__burger[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .gs-mobile-nav {
        position: fixed;
        top: var(--gs-header-height);
        left: 0;
        right: 0;

        display: block;

        max-height: calc(100vh - var(--gs-header-height));
        overflow: auto;

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

        background: rgba(8, 13, 20, 0.94);

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

        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;

        transition:
            opacity 0.18s ease,
            visibility 0.18s ease,
            transform 0.18s ease;
    }

    .admin-bar .gs-mobile-nav {
        top: calc(var(--gs-header-height) + 32px);
    }

    .gs-mobile-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .gs-mobile-nav__inner {
        width: min(100% - 32px, 760px);
        margin: 0 auto;
        padding: 18px 0 28px;
    }

    .gs-mobile-menu,
    .gs-mobile-submenu {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .gs-mobile-menu__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .gs-mobile-menu__row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .gs-mobile-menu__row > a {
        flex: 1;

        padding: 17px 0;

        color: #ffffff;
        text-decoration: none;

        font-family: var(--gs-font);
        font-size: 16px;
        font-weight: 620;
        letter-spacing: -0.015em;
    }

    .gs-mobile-menu__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;

        width: 40px;
        height: 40px;
        padding: 0;

        border: 0;
        border-radius: 9px;

        color: rgba(255, 255, 255, 0.68);
        background: rgba(255, 255, 255, 0.045);

        cursor: pointer;
    }

    .gs-mobile-menu__toggle[aria-expanded="true"] {
        color: var(--gs-orange);
    }

    .gs-mobile-menu__toggle svg {
        transition: transform 0.18s ease;
    }

    .gs-mobile-menu__toggle[aria-expanded="true"] svg {
        transform: rotate(180deg);
    }

    .gs-mobile-submenu {
        display: none;
        padding: 0 0 14px 14px;
    }

    .gs-mobile-menu__item.is-open > .gs-mobile-submenu {
        display: block;
    }

    .gs-mobile-submenu a {
        display: block;

        padding: 10px 0;

        color: rgba(255, 255, 255, 0.58);
        text-decoration: none;

        font-size: 14px;
        line-height: 1.35;
    }

    .gs-mobile-submenu a:hover,
    .gs-mobile-submenu a:focus-visible {
        color: var(--gs-orange);
    }

    .gs-mobile-menu__item.is-cta {
        margin-top: 16px;
        border-bottom: 0;
    }

    .gs-mobile-menu__item.is-cta .gs-mobile-menu__row > a {
        display: inline-flex;
        justify-content: center;
        flex: none;

        width: 100%;
        padding: 14px 18px;

        border-radius: 999px;

        color: #ffffff;
        background: var(--gs-blue);

        text-align: center;
    }

    .gs-mobile-nav__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;

        width: 100%;
        min-height: 50px;
        margin-top: 22px;
        padding: 0 20px;

        border: 1px solid var(--gs-blue);
        border-radius: 999px;

        color: #ffffff;
        background: var(--gs-blue);

        text-decoration: none;
        font-family: var(--gs-font);
        font-size: 15px;
        font-weight: 680;
    }

    .gs-mobile-nav__cta:active {
        color: #111827;
        background: var(--gs-orange);
        border-color: var(--gs-orange);
    }

    body.gs-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 782px) {
    .admin-bar .gs-header {
        top: 46px;
    }

    .admin-bar .gs-mobile-nav {
        top: calc(var(--gs-header-height) + 46px);
    }
}

@media (max-width: 767px) {
    :root {
        --gs-header-height: 70px;
    }

    .gs-header__inner {
        width: calc(100% - 24px);
        min-height: var(--gs-header-height);
    }

    .gs-header__brand .custom-logo {
        max-width: 175px;
        max-height: 40px;
    }
}
