
/* =========================================
   GOTAY - HEADER GENERAL
   ========================================= */

.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 9999;

    background: #14242D;
    border-bottom: 1px solid rgba(255, 255, 255, .1);

    box-shadow: 0 4px 24px rgba(0, 0, 0, .12);
}

.nav {
    min-height: 76px;

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

    gap: 20px;
}

/* LOGO */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;

    color: #FFFFFF;
    text-decoration: none;

    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.brand small {
    display: block;

    margin-top: 5px;

    color: #39C5ED;
    font-size: 9px;
    letter-spacing: 2.3px;
}

.brand-logo {
    width: 43px;
    height: 43px;

    display: grid;
    place-items: center;

    border-radius: 12px;
    background: #0AA0CB;

    color: #FFFFFF;
    font-size: 27px;
}

.brand-logo span {
    color: #F36E22;
}

/* ENLACES */

.nav-links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 12px 11px;

    border-radius: 9px;

    color: #D8E4E9;
    text-decoration: none;

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

    transition: .25s ease;
}

.nav-link svg {
    width: 16px;
    height: 16px;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(57, 197, 237, .12);
    color: #39C5ED;
}

/* ACCIONES */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 12px;

    border: 1px solid rgba(57, 197, 237, .25);
    border-radius: 12px;

    background: rgba(57, 197, 237, .08);
    color: #FFFFFF;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.cart-button svg {
    width: 19px;
    height: 19px;
}

.cart-button b {
    display: grid;
    place-items: center;

    min-width: 22px;
    height: 22px;

    padding: 0 5px;
    border-radius: 50px;

    background: #F36E22;
    color: #FFFFFF;

    font-size: 11px;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    white-space: nowrap;
}

.header-cta svg {
    width: 16px;
    height: 16px;
}

/* BOTÓN HAMBURGUESA */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

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

    padding: 0;

    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 11px;

    background: rgba(255, 255, 255, .07);
    cursor: pointer;

    position: relative;
    z-index: 10002;
}

.menu-toggle span {
    display: block;

    width: 23px;
    height: 2px;

    background: #FFFFFF;
    border-radius: 5px;

    transition: transform .25s ease,
                opacity .25s ease;
}

/* ESTADO ABIERTO */

.menu-toggle[aria-expanded="true"] {
    background: #F36E22;
    border-color: #F36E22;
}

.menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   TABLETAS
   ========================================= */

@media (max-width: 1100px) {

    .header-cta {
        display: none;
    }

    .nav-links {
        gap: 2px;
    }

    .nav-link {
        padding: 10px 7px;
    }
}

/* =========================================
   TELÉFONOS
   ========================================= */

@media (max-width: 850px) {

    .header {
        z-index: 9999;
    }

    .nav {
        min-height: 68px;
    }

    .brand {
        font-size: 19px;
    }

    .brand-logo {
        width: 39px;
        height: 39px;
    }

    .menu-toggle {
        display: flex !important;
        flex-shrink: 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none !important;
        flex-direction: column;
        align-items: stretch;

        gap: 5px;
        padding: 16px;

        background: #14242D;

        border-top: 1px solid rgba(255,255,255,.1);
        box-shadow: 0 18px 35px rgba(0,0,0,.3);

        max-height: calc(100dvh - 68px);
        overflow-y: auto;

        z-index: 10000;
    }

    .nav-links.open {
        display: flex !important;
    }

    .nav-link {
        width: 100%;
        padding: 16px;

        font-size: 15px;
        border-radius: 10px;

        background: rgba(255,255,255,.035);
    }

    .nav-link svg {
        width: 20px;
        height: 20px;
        color: #39C5ED;
    }

    .nav-link:hover {
        background: rgba(243,110,34,.15);
        color: #FFFFFF;
    }

    .cart-label {
        display: none;
    }

    .cart-button {
        padding: 9px;
    }
}

@media (max-width: 380px) {

    .nav {
        gap: 8px;
    }

    .nav-actions {
        gap: 7px;
    }

    .brand {
        font-size: 17px;
    }

    .brand small {
        font-size: 8px;
    }
}
