/*
------------------------------
#promo-bar-mobile - Barra de promoción mobile
------------------------------
*/

.promo-bar-mobile {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  background: var(--brand-bg-dark);
  color: var(--brand-text-dark);
  z-index: 1020 !important; /* Por encima del header (1015), menú off-canvas (1002), niveles (1003-1004), overlay (1001) y footer (1007-1009) */
  height: 40px;
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: center; /* Centrado horizontal */
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease-in-out; /* Transición para ocultar/mostrar */
  /* Siempre visible, incluso cuando el menú está abierto */
  visibility: visible !important;
  opacity: 1 !important;
}

a.promo-bar-mobile {
  cursor: pointer;
}

.logged-in .promo-bar-mobile {
  top: 46px;
}

.promo-bar-mobile .contenedor {
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: center; /* Centrado horizontal */
  width: 100%;
  height: 100%; /* Altura completa para centrado vertical */
  padding-left: 16px;
  padding-right: 16px;
}

.promo-bar-mobile .promo-bar-content {
  display: flex;
  align-items: center; /* Centrado vertical */
  justify-content: center; /* Centrado horizontal */
  width: 100%;
  max-width: 100%;
  height: 100%; /* Altura completa para centrado vertical */
  text-wrap: balance;
}

.promo-bar-mobile .promo-bar-text {
  color: var(--brand-text-dark);
  text-decoration: none;
  transition: opacity 0.2s ease;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
}

a.promo-bar-mobile:hover .promo-bar-text {
  opacity: 0.8;
}

/* Ajustes del header mobile cuando hay promo bar */
body:has(.promo-bar-mobile) #header-mobile {
  top: 40px;
}

body.logged-in:has(.promo-bar-mobile) #header-mobile {
  top: 86px;
}

/* Ajuste del menú mobile cuando hay promo bar */
body:has(.promo-bar-mobile) #header-mobile .contenedor-barra-menu {
  height: calc(100vh - 40px);
  height: calc(100dvh - 40px);
}

body.logged-in:has(.promo-bar-mobile) #header-mobile .contenedor-barra-menu {
  height: calc(100vh - 86px);
  height: calc(100dvh - 86px);
}

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

/* Botón teléfono mobile */
.boton-telefono {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.icono-telefono-mobile {
    width: 24px;
    height: 24px;
    background: url(../img/icons/phone-black.svg) center no-repeat;
    background-size: contain;
    display: inline-block;
    transition: background-image 0.15s ease-in-out;
}

/* Alineado con header 2025 (.site-header-desktop): #2c2c2c salvo header transparente */
body:not(.off-canvas-open):not(.no-home):not(.lang-menu-open) .site-header-desktop:not(.is-scrolled) .icono-telefono-mobile {
    background-image: url(../img/icons/phone-white.svg) !important;
}

/* Popup teléfonos mobile */
.popup-telefonos-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999; /* CRITICAL: Must be above everything else */
    visibility: hidden;
    opacity: 0;
    pointer-events: none; /* CRITICAL: Don't block clicks when hidden */
    transition: visibility 0s 0.3s, opacity 0.3s ease; /* Delay visibility for smooth hide */
}

.popup-telefonos-mobile.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto; /* CRITICAL: Enable clicks when visible */
    transition: visibility 0s, opacity 0.3s ease; /* No delay on show */
}

.popup-overlay-mobile {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1; /* Behind content but visible */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-telefonos-mobile.active .popup-overlay-mobile {
    visibility: visible;
    opacity: 1;
}

.popup-content-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 16px 16px 0 0;
    height: auto;
    max-height: 100dvh;
    transform: translateY(100%); /* Initially hidden below viewport */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth easing */
    z-index: 2; /* Above overlay (z-index: 1) */
    overflow-y: auto; /* Allow scroll if content is too long */
}

.popup-telefonos-mobile.active .popup-content-mobile {
    transform: translateY(0); /* Slide up into view */
}

.popup-drag-bar {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin: 12px auto 8px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: none;
    /* Oculto por defecto */
}

.popup-drag-bar:hover {
    background: #bbb;
}

.popup-drag-bar.active {
    display: block;
}



.cerrar-popup-mobile {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.popup-body-mobile {
    padding: 20px;
}

.zona-tel-mobile {
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    margin-top: 20px;
    font-size: 18px;
    padding-left: 16px;
}

.zona-tel-mobile:first-child {
    margin-top: 0;
}

.lista-telefonos-mobile {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.lista-telefonos-mobile li {
    margin-bottom: 17px;
}

.telefono-link-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 18px;
}

.telefono-link-mobile:hover {
    background: white;
    color: #333;
}

.flag-icon-mobile {
    width: 16px;

    object-fit: cover;
}

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

#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: 1001; /* CRITICAL: Must be ABOVE menu panel (999) to stay visible when menu opens */
    display: flex;
    width: 100%;
    padding: 16px;
    align-items: center;
    justify-content: space-between;
    position: relative; /* Create stacking context */
    background: transparent; /* Ensure no background hides the bars */
}

/* Ensure hamburger icon is always visible */
#header-mobile .nav-toggle {
    opacity: 1 !important;
    visibility: visible !important;
}

#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;
    z-index: 999; /* FIXED: Must be below header bar (1000) to show hamburger icon on top */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    /* CRITICAL iOS FIX: Use dvh (dynamic viewport height) instead of vh */
    /* dvh accounts for iOS address bar and navigation bar dynamically */
    height: calc(100dvh - 58px);
    height: calc(100vh - 58px); /* Fallback for older browsers */
    background: white;
    padding: 32px 16px;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#header-mobile.menu-open .contenedor-barra-menu {
    transform: translateY(0);
}

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

.rtl #header-mobile.menu-open .contenedor-barra-menu {
    transform: translateY(0);
}


#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%;
    /* CRITICAL iOS FIX: Use dvh for dynamic viewport height */
    height: calc(100dvh - 58px);
    height: calc(100vh - 58px); /* Fallback */
    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;
    cursor: pointer;
}

#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,
#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;


    }

}