/*
------------------------------
#header-mobile - mobile
------------------------------
*/

#header-mobile {
    z-index: 1000;
    position: fixed;
    width: 100%;
    top: 0;
    max-height: 60px;
    -webkit-transition: 200ms;
    transition: 200ms;
    text-transform: uppercase;
    font-size: 14px;

}

#header-mobile.hovered .contenedor-barra-mobile,
#header-mobile.menu-open .contenedor-barra-mobile,
.is-scrolled #header-mobile .contenedor-barra-mobile,
.no-home #header-mobile .contenedor-barra-mobile {
    background: white;
    -webkit-box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.3);
}


#header-mobile .contenedor-barra-mobile {
    z-index: 1000;
    display: flex;
    width: 100%;
    padding: 16px;

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

}

#header-mobile #site-mobile-menu .menu-item-has-children>a {
    display: flex;
    justify-content: space-between;
}

#header-mobile .menu-menu-mobile-container {
    margin: 0 32px;
}

#header-mobile .contenedor-barra-menu {
    display: flex;
    /* Updated from 'none' */
    z-index: 99;
    position: fixed;
    /* Fixed position to ensure it's relative to the viewport */
    width: 85vw;
    height: calc(100vh - 58px);
    background: white;
    padding: 32px 16px;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(-100%);
    /* Start off-screen */
    transition: transform 0.3s ease;
    /* Smooth transition for sliding effect */
}

.rtl #header-mobile .contenedor-barra-menu {
    transform: translateX(100%);
}

#header-mobile.menu-open .contenedor-barra-menu {
    transform: translateX(0);
    position: relative;
    overflow: hidden;
    /* Slide in when menu-open is added */
}

#header-mobile .contenedor-barra-menu .elementos-top-bar {
    padding: 16px 0px;
    border-bottom: 1px solid #CCC;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header-mobile .contenedor-barra-menu .elementos-top-bar .contacto-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}


#header-mobile .sub-menu .title {
    height: 60px;
    color: #555;
    font-feature-settings: 'clig' off, 'liga' off;
    font-size: 18px;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    padding: 16px 0px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #CCC;
}

#header-mobile .menu-mobile li.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #CCC;
    padding: 16px 0px;
    cursor: pointer;

}

#header-mobile .menu-mobile li.menu-item.page_current {
    color: #000;

}

#header-mobile .footer-menu-mobile {
    color: #757474;
    font-feature-settings: 'clig' off, 'liga' off;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
}

.home #header-mobile .logo-mobile {

    background: url(../img/logo-mobile-blanco.svg);
}

#header-mobile .logo-mobile,
.is-scrolled #header-mobile .logo-mobile,
#header-mobile.hovered .logo-mobile,
#header-mobile.menu-open .logo-mobile {

    background: url(../img/logo-mobile-negro.svg);
}

#header-mobile .sub-menu {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 58px);
    background: white;
    padding: 32px 16px;
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.1s, opacity 0.3s ease, transform 0.2s ease;
    overflow: hidden;
    flex-direction: column;
}

#header-mobile .sub-menu.active {
    transform: translateX(0%);
    overflow: hidden;
    visibility: visible;
    opacity: 1;

    transition-delay: 0s;
    /* Sin retraso al volverse visible */
}


#header-mobile .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 14px;
    width: 18px;

}

#header-mobile .nav-toggle .bar {
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background-color: #555555;
    transition: all 100ms ease-in-out;
}

.home.is-scrolled #header-mobile .nav-toggle .bar,
#header-mobile .nav-toggle .bar {
    background-color: #555555;

}

.home #header-mobile .nav-toggle .bar {
    background-color: white;
}


.home #header-mobile .nav-toggle .bar {
    background-color: white;
}

#header-mobile.hovered .nav-toggle .bar,
#header-mobile.menu-open .nav-toggle .bar {
    background-color: #555555;
}

.is-scrolled #header-mobile .nav-toggle .bar {
    background-color: #555555;

}

#header-mobile .nav-toggle:hover {
    cursor: pointer;
}

#header-mobile .nav-toggle .x:nth-of-type(1) {
    transition: all 100ms ease-in-out;
    transform: rotate(45deg);
    transform-origin: top left;
    width: 18px;
}

#header-mobile .nav-toggle .x:nth-of-type(2) {
    transition: all 100ms ease-in-out;
    transform-origin: center;
    width: 0;
}

#header-mobile .nav-toggle .x:nth-of-type(3) {
    transition: all 100ms ease-in-out;
    transform: rotate(-45deg);
    transform-origin: bottom left;
    width: 18px;
}

#header-mobile .logo-mobile {
    width: 83px;
    height: 20px;
    display: block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}



#header-mobile .menu-mobile-trigger {
    float: right;
    width: 30px;
    height: 26px;
    margin-right: 10px;
    line-height: 38px;
    text-align: right;
    font-size: 20px;
    cursor: pointer;
}



#header-mobile #menu-menu-movil {
    display: none;
    padding: 0px;
    margin: 0px;
    position: absolute;
    width: 100%;
    background-color: #fff;
    left: 0px;
    top: 50px;
    text-align: right;
    padding-top: 20px;

}

#header-mobile #menu-menu-movil>li {
    margin: 0px 20px;
}

#header-mobile #menu-menu-movil>li>a {
    padding: 10px 0px;
    font-size: 12px;
    line-height: 20px;
    font-weight: normal;
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    border-top: 1px solid #dedede;
}

#header-mobile #menu-menu-movil>li.button_container>a {
    border-top: 1px solid #333333;
    border-radius: 0px;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px !important;
    padding-right: 20px !important;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#header-mobile #menu-menu-movil>li.button_container>a:hover {
    border-radius: 0px;
    background-color: #ccc;
    border: 2px solid #ccc;
    color: #000;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px !important;
    -webkit-box-shadow: none;
    box-shadow: none;
    padding-right: 20px !important;
}

#header-mobile #menu-menu-movil>li>.sub-menu {
    display: none;
    position: absolute;
    background-color: white;
    -webkit-box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.2);
}

#header-mobile #menu-menu-movil>li:hover>.sub-menu {
    display: block;
}

#header-mobile #menu-menu-movil>li>.sub-menu>li>a {
    padding: 8px 20px;
    display: block;
    font-size: 12px;
    line-height: 20px;
    font-weight: normal;
    text-transform: uppercase;
    text-decoration: none;
    min-width: 140px;
}

#header-mobile #menu-menu-movil>li>.sub-menu>li>a:hover {
    background-color: #fafafa;
}


#header-mobile .new_lang_menu {
    position: relative;
}

#header-mobile .new_lang_menu .wrapper__lang {
    position: absolute;
    right: -8px;

    padding: 15px;
    transition: all 0.3s ease;
    visibility: hidden;
    opacity: 0;
    background: #ffffff;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}



#header-mobile .new_lang_menu:hover .wrapper__lang {
    top: 35px;
    visibility: visible;
    opacity: 1;
}


#header-mobile .new_lang_menu .wrapper__lang .lang_item {
    display: block;
    padding: 10px;
    color: #555;
    font-size: 16px;
    line-height: 20px;
    padding-bottom: 20px;
    font-style: normal;
    font-weight: normal;
    position: relative;
}

#header-mobile .new_lang_menu .wrapper__lang .lang_item.selected {
    display: none;
}

#header-mobile .new_lang_menu .wrapper__lang .lang_item::after {
    content: "";
    display: block;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: black;
    transition: all 0.2s;
}

#header-mobile .new_lang_menu .wrapper__lang .lang_item:hover:after {
    width: 100%;
}

#header-mobile .new_lang_menu .current__lang {
    background: url(../img/select-arrow-white.svg) no-repeat center right;
    background-size: 8px auto;
}


#header-mobile .new_lang_menu .current__lang {
    background: url(../img/select-arrow.svg) no-repeat center right;
    background-size: 8px auto;
}

#header-mobile .new_lang_menu .current__lang {
    text-transform: uppercase;
    font-size: 16px;
    background: url(../img/select-arrow.svg) no-repeat center right;
    background-size: 8px auto;
    padding: 0 20px 0 0;
}



#header-mobile .cta .button {
    display: block;
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 50px;
    margin-left: 0%;
    border: 0px !important;
    line-height: 50px;
    padding: 0px 10px;
    color: #fff !important;
    background-color: #555555 !important;
    font-weight: bold;
    border-radius: 0px;
    margin: 0;
    -webkit-box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 0px 20px -5px rgba(0, 0, 0, 0.3);

}

#header-mobile .cta .button:hover {
    background-color: #333333 !important;
}


@media (max-width:992px) {
    .festivewinter a {

        position: relative;
    }

    .festivewinter a::after {

        position: absolute;
        content: url(../img/winter-grey.svg);
        width: 21px;
        height: 24px;
        right: -32px;
        top: 0px;


    }

}