/* ===========================
   Clases para el Header
=========================== */

.site-header {
    position: fixed;
    top: 0;
    width: 100vw;
    background: #F7CE35;
    z-index: 3;

    /* ===========================
       Inner wrapper
    =========================== */
    & .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.875rem 1.875rem;
        box-sizing: border-box;
        width: 100%;
		height: 70px;
		
		@media (min-width: 1281px) {
			height: 79px;
		}
    }

    /* ===========================
       Branding
    =========================== */
    & .site-branding {
        & > a > .custom-logo {
            width: 7.5rem;
            height: 2.625rem;
        }
    }

    /* ===========================
       Desktop Navigation
    =========================== */
    & .main-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    & .desktop-navigation {
        & > ul {
            display: flex;
            width: 80vw;
            justify-content: space-between;
            align-items: center;
            padding: 0;
            margin: 0;
            list-style: none;

            & > li > a {
                font-family: 'Boston' !important;
                font-size: 20px;
                font-weight: 700;
                line-height: 130%;
                color: var(--white);
                text-decoration: none;
            }
        }
    }

    /* ===========================
       Language Switcher
    =========================== */
    & #menu-item-46 {
        padding-left: 8%;

        & > ul:nth-child(2) {
            position: absolute;
            padding: 0.5rem;
            background: var(--yellow);
            border-radius: 21px;
            margin: 0;
            width: 100px;
            right: 1%;
			display: none;

            & > li,
            & > li > a {
                padding: 0.5rem;
                list-style: none;
                font-family: Boston;
                font-size: 20px;
                font-weight: 700;
                line-height: 130%;
                color: var(--white);
                text-decoration: none;
            }
        }
    }

    /* ===========================
       Mobile Navigation
    =========================== */
    & .mobile-navigation {
        & .menu-toggle {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.625rem;
            flex-shrink: 0;
            padding: 0;
            background: transparent;
            border: none;

            & > span {
                border: 2px solid var(--white);
                width: 50px;
            }
        }

        & .mobile-menu {
            display: none;
            grid-template-rows: 100px auto;
            grid-template-columns: 1fr;
            position: absolute;
            left: 0;
            top: 0;
            width: 100vw;
            height: 100vh;
            padding: 1.5rem;
            background: var(--yellow);

            & .mobile-menu-header {
                display: grid;
                grid-template-columns: repeat(2, 1fr);

                & .mobile-menu-logo > .custom-logo-link > .custom-logo {
                    width: 7.5rem;
                    height: 2.625rem;
                }

                & .mobile-menu-close {
                    background: none;
                    border: none;
                    padding: 0;
                    display: flex;
                    justify-content: end;
                }
            }

            & #mobile-menu-items {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 2.5rem;
                padding: 0;
                margin: 0;
                list-style: none;

                & > li > a {
                    font-family: Boston;
                    font-size: 1.5rem;
                    font-weight: 700;
                    line-height: 130%;
                    color: var(--white);
                    text-decoration: none;
                }
            }

            & .sub-menu {
                display: none;
            }
        }
    }  
}



/* ===========================
   ESTADOS BASE (sin media queries)
=========================== */

.site-header .mobile-navigation {
    display: none;
}

.site-header .desktop-navigation {
    display: flex;
}

/* ===========================
   MÓVIL + TABLET + DESKTOP HASTA 1280px
=========================== */
@media (max-width: 1280px) {

    .site-header .logotype {
        display: none;
    }

    .site-header .desktop-navigation {
        display: none !important;
    }

    .site-header .mobile-navigation {
        display: flex !important;
    }
}

/* ===========================
   DESKTOP DESDE 1281px
=========================== */
@media (min-width: 1281px) {

    .site-header .mobile-navigation {
        display: none !important;
    }

    .site-header .desktop-navigation {
        display: flex !important;
    }
}
