:root {
    --zurich-primary: #23366F;
    --zurich-blue: #2167AE;
    --zurich-light-dove: #E4E9EC;
    --zurich-gray-3: #45484A;
    --zurich-gray-9: #C9D0D2;
    --zurich-white: #ffffff;

    --desktop-logo-width: 9.875rem;
    --mobile-logo-width: 8.25rem;

    /* Mobile header variables (rem) */
    --mobile-header-total-height: 3.5rem;


    --desktop-header-level1-height: 4.5rem;
    --desktop-header-level2-height: 6.23rem;
    --desktop-header-base-height: calc(var(--desktop-header-level1-height) + var(--desktop-header-level2-height));
    --desktop-header-dynamic-height: var(--desktop-header-base-height);
    --desktop-header-max-height: 45rem;

    --app-vh-100: 100vh;

}
@supports (height: 100dvh) {
    :root {
        --app-vh-100: 100dvh;
    }
}

/* Base */
.zurich-megamenu {
    position: fixed;
    top: calc(var(--control-menu-container-height, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    z-index: 980;
    font-family: inherit;
}

#main-content {
    padding-top: var(--desktop-header-dynamic-height);
}

.page-editor__wrapper .zurich-megamenu {
    position: relative;
    top: unset;
}

.page-editor__wrapper #main-content {
    padding-top: unset;
}

.zurich-megamenu *,
.zurich-megamenu *::before,
.zurich-megamenu *::after {
    box-sizing: border-box;
}


.zurich-megamenu ul {
    margin: 0;
    list-style: none;
}

/* ========== NIVEL 1: Tabs main ========== */
.zurich-megamenu-root .megamenu-level1 {
    background-color: var(--zurich-light-dove);
    border-bottom: none;
    position: relative;
    z-index: 980;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.zurich-megamenu-root .megamenu-level1-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    height: var(--desktop-header-level1-height);
}

.zurich-megamenu-root .megamenu-level1-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    flex: 1;
    align-self: flex-end;
    padding: 0;
}

.zurich-megamenu-root .megamenu-level1-button {
    padding: .75rem 1rem;
    font-size: 18px;
    font-weight: 300;
    color: var(--zurich-gray-3, #45484A);
    background-color: var(--zurich-light-dove);
    border-radius: 12px 12px 0 0;
    white-space: nowrap;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.zurich-megamenu-root .megamenu-level1-button:hover {
    text-underline-offset: 0.5rem;
    text-decoration: underline;
}

.zurich-megamenu-root .megamenu-level1-button.is-active {
    background-color: var(--bg-color-white, var(--zurich-white));
    color: var(--text-color-zurich-blue, var(--zurich-blue));
    font-weight: 500;
    z-index: 1;
}

.zurich-megamenu-root .megamenu-level1-button:focus-visible {
    outline: 1px solid var(--btn-primary-focus-outline-color, var(--zurich-blue));
    outline-offset: 2px;
    box-shadow: none !important;
}

.zurich-megamenu-root .megamenu-utils {
    display: flex;
    align-items: center;
    gap: 16px;
    align-self: center;
}

.zurich-megamenu-root .megamenu-utils .journal-content-article .btn[data-mobile-header="true"] {
    display: none;
}

/* ========== NIVEL 2: Barra horizontal ========== */
.zurich-megamenu-root .megamenu-level2 {
    display: none;
    background-color: var(--bg-color-white, var(--zurich-white));
    border-bottom: 0.031rem solid var(--zurich-light-dove);
    position: relative;
    z-index: 979;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.zurich-megamenu-root .megamenu-level2.is-visible {
    display: block;
}

.zurich-megamenu-root .megamenu-level2-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 4rem;
}



.zurich-megamenu-root .megamenu-level2-logo {
    flex-shrink: 0;
    width: var(--desktop-logo-width);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zurich-megamenu-root .megamenu-col-logo {
    flex-shrink: 0;
    width: var(--desktop-logo-width);
    height: auto;
    display: flex;
    align-items: center;
    justify-content: start;
}

.zurich-megamenu-root .megamenu-level2-logo .nav-logo,
.zurich-megamenu-root .megamenu-col-logo .nav-logo {
    width: inherit;
}

.zurich-megamenu-root .megamenu-level2-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
    overflow-x: visible;
}

.zurich-megamenu-root .megamenu-level2-list::-webkit-scrollbar {
    height: 4px;
}

.zurich-megamenu-root .megamenu-level2-button,
.zurich-megamenu-root .megamenu-level2-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: .75rem 1rem;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-color-dark-blue, var(--zurich-primary));

    white-space: nowrap;
    transition: all 0.2s ease;
}

.zurich-megamenu-root .megamenu-level2-link:hover {
    color: var(--text-color-dark-blue, var(--zurich-primary));
    text-underline-offset: 15px;
    text-decoration-thickness: 2px;
}

.zurich-megamenu-root .megamenu-level2-button.is-active,
.zurich-megamenu-root .megamenu-level2-link.is-active {
    color: var(--text-color-dark-blue, var(--zurich-primary));
    font-weight: 500;
    border-bottom-color: var(--text-color-dark-blue, var(--zurich-primary));
}

.zurich-megamenu-root .megamenu-level2-button:focus-visible,
.zurich-megamenu-root .megamenu-level2-link:focus-visible {
    outline: 1px solid var(--btn-primary-focus-outline-color, var(--zurich-blue));
    outline-offset: -2px;
    box-shadow: none !important;
}

/* ========== SEARCH OVERLAY ========== */
.zurich-megamenu-root .megamenu-search-overlay {
    position: fixed;
    top: calc(
            var(--control-menu-container-height, 0px) + var(--desktop-header-level1-height));
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: var(--bg-color-white, var(--zurich-white));
    border-bottom: 0.031rem solid var(--zurich-gray-9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 981;
    max-height: min(calc(var(--app-vh-100) - var(--control-menu-container-height, 0px) - var(--desktop-header-level1-height)), var(--desktop-header-max-height));
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.zurich-megamenu-root .megamenu-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.zurich-megamenu-root .megamenu-search-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 4rem 4rem 4rem;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 4rem;
    row-gap: 2rem;
    align-items: start;
    position: relative;
}

.zurich-megamenu-root .megamenu-search-header {
    display: contents;
}

.zurich-megamenu-root .megamenu-search-logo {
    grid-column: 1;
    grid-row: 1;
}

.zurich-megamenu-root .megamenu-search-form {
    grid-column: 2;
    grid-row: 1;
}

.zurich-megamenu-root .megamenu-search-recommendations {
    grid-column: 2;
    grid-row: 2;
    padding-top: 2.875rem;
}

.zurich-megamenu-root .megamenu-search-close {
    position: absolute;
    top: 1.5rem;
    right: 3rem;
    transition: all 0.2s ease;
    z-index: 10;
}

.zurich-megamenu-root .megamenu-search-input-wrapper {
    position: relative;
    width: 100%;
    max-width: 58rem;
}

.zurich-megamenu-root .megamenu-search-submit {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}


.zurich-megamenu-root .megamenu-search-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--zurich-light-dove);
    padding: .5rem 0 .5rem 3rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.zurich-megamenu-root .megamenu-search-input:focus {
    border-bottom-color: var(--text-color-zurich-blue, var(--zurich-blue));
}

.zurich-megamenu-root .megamenu-search-recommend-title {
    color: var(--text-color-dark-blue, var(--zurich-primary));
    font-weight: 600;
    margin-bottom: 1rem;
}

.zurich-megamenu-root .megamenu-search-links {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding-left: .5rem;
}

.zurich-megamenu-root .megamenu-search-links.is-visible {
    display: flex;
}

.zurich-megamenu-root .megamenu-search-links li {
    list-style: none;
}


/* ========== NIVEL 3: Mega menu (overlay) ========== */
.zurich-megamenu-root .megamenu-level3 {
    position: absolute;
    top: var(--desktop-header-level1-height);
    left: 0;
    right: 0;
    background-color: var(--bg-color-white, var(--zurich-white));
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 981;
    max-height: min(calc(var(--app-vh-100) - var(--control-menu-container-height, 0px) - var(--desktop-header-level1-height)), var(--desktop-header-max-height));
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    border-bottom: 0.031rem solid var(--zurich-light-dove);
}

.zurich-megamenu-root .megamenu-level3.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.zurich-megamenu-root .megamenu-level3-inner {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    min-height: 500px;
    /* Permitir scroll interno si el contenido excede la altura */
    max-height: 100%;
    overflow-y: auto;
    /* Scroll invisible en nivel 3 */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge antiguo */
}

.zurich-megamenu-root .megamenu-level3-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Edge */
}

/* ========== Estructura Flat: Grid adaptativo ========== */
.zurich-megamenu-root .megamenu-flat {
    display: flex;
    flex-direction: column;
}

.zurich-megamenu-root .megamenu-col-title {
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--text-color-dark-blue, var(--zurich-primary));
}

.zurich-megamenu-root .megamenu-grid-container {
    display: grid;
    gap: 1rem;
    min-height: min(calc(var(--app-vh-100) - var(--control-menu-container-height, 0px) - var(--desktop-header-level1-height) - 1px), 40rem);
    grid-template-columns: clamp(200px, 29vw, 416px) 1fr 1fr;
    grid-template-areas: "nav col2 col3";
}

/* ========== COLUMNA 1: Navigation vertical ========== */
.zurich-megamenu-root .megamenu-col-nav {
    grid-area: nav;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--zurich-gray-9);
    padding: 1.75rem 2rem 3rem 0;
    position: relative;
    gap: 1.5rem;
    max-height: min(calc(var(--app-vh-100) - var(--control-menu-container-height, 0px) - var(--desktop-header-level1-height)), var(--desktop-header-max-height));
}

.zurich-megamenu-root .megamenu-vertical-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge antiguo */
    padding: 0.2rem;
}

.zurich-megamenu-root .megamenu-vertical-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Edge */
}

.zurich-megamenu-root .megamenu-vertical-item {
    margin-bottom: 4px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.zurich-megamenu-root .megamenu-vertical-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-color-dark-blue, var(--zurich-primary));
    border-radius: 999rem;
    text-align: left;
    transition: all 0.2s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.zurich-megamenu-root .megamenu-vertical-link[data-has-children="true"] {
    text-decoration: none;
}

.zurich-megamenu-root .megamenu-vertical-link:hover {
    background-color: var(--zurich-light-dove);
}

.zurich-megamenu-root .megamenu-vertical-link:focus-visible {
    outline: 1px solid var(--btn-primary-focus-outline-color, var(--zurich-blue));
    outline-offset: 2px;
    box-shadow: none !important;
}

.zurich-megamenu-root .megamenu-vertical-item.is-active .megamenu-vertical-link {
    background-color: var(--zurich-light-dove);
    font-weight: 500;
}

.zurich-megamenu-root .megamenu-fixed-links {
    padding: 1rem 0 0 0;
    border-top: 1px solid var(--zurich-gray-9);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.zurich-megamenu-root .megamenu-fixed-links .btn {
    padding-left: 1rem;
}

/* ========== COLUMNA 2: Nivel 4 ========== */
.zurich-megamenu-root .megamenu-level4-wrapper {
    display: none;
    flex-direction: column;
    padding: 5.75rem 0 3rem 2rem;
    overflow-y: auto;
    grid-area: col2;
    max-height: min(calc(var(--app-vh-100) - var(--control-menu-container-height, 0px) - var(--desktop-header-level1-height)), var(--desktop-header-max-height));
}

.zurich-megamenu-root .megamenu-level4-wrapper.is-active {
    display: flex;
}

.zurich-megamenu-root .megamenu-level4-wrapper.has-level5 {
    border-right: 1px solid var(--zurich-gray-9);
    padding-right: 2rem;
}

.zurich-megamenu-root .megamenu-subcategories {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge antiguo */
}

.zurich-megamenu-root .megamenu-subcategories::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Edge */
}

.zurich-megamenu-root .megamenu-subcategory-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    color: var(--text-color-dark-blue, var(--zurich-primary));
    border-radius: 999rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.zurich-megamenu-root .megamenu-subcategory-link:hover {
    text-decoration: none;
}

.zurich-megamenu-root .megamenu-subcategory-link:focus-visible {
    outline: 1px solid var(--btn-primary-focus-outline-color, var(--zurich-blue));
    outline-offset: 2px;
    box-shadow: none !important;
}

.zurich-megamenu-root .megamenu-subcategory-link.is-active {
    background-color: var(--zurich-light-dove);
    font-weight: 500;
}

.zurich-megamenu-root .megamenu-col2-ctas {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zurich-megamenu-root .megamenu-col2-ctas a,
.zurich-megamenu-root .megamenu-col3-ctas a {
    width: 60%;
}

/* ========== COLUMNA 3: Nivel 5 o Promo ========== */
.zurich-megamenu-root .megamenu-level5-wrapper {
    display: none;
    flex-direction: column;
    padding: 5.75rem 2rem 3rem 2rem;
    overflow-y: auto;
    grid-area: col3;
}

.zurich-megamenu-root .megamenu-level5-wrapper.is-active {
    display: flex;
}

.zurich-megamenu-root .megamenu-promo-wrapper {
    display: none;
    flex-direction: column;
    padding: 5.75rem 0 3rem 0;
    grid-area: col3;
    height: 100%;
    max-height: min(calc(var(--app-vh-100) - var(--control-menu-container-height, 0px) - var(--desktop-header-level1-height)), var(--desktop-header-max-height));
}

.zurich-megamenu-root .megamenu-promo-wrapper.is-active {
    display: flex;
}

/* Forzar que el contenido del promo ocupe todo el alto disponible */
.zurich-megamenu-root .megamenu-promo-wrapper > .journal-content-article:has(.z-hero-card) {
    flex: 1;
}

.zurich-megamenu-root .megamenu-level5-title .btn {
    font-weight: 600;
}

.zurich-megamenu-root .megamenu-level5-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.2rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge antiguo */
}

.zurich-megamenu-root .megamenu-level5-list::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none; /* Chrome, Safari, Edge */
}

.zurich-megamenu-root .megamenu-col3-ctas {
    margin-top: auto;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


/* ========== Button close megamenu ========== */
.zurich-megamenu-root .megamenu-close {
    position: absolute;
    top: 1.5rem;
    right: 3rem;
    transition: all 0.2s ease;
    z-index: 10;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== Button Scroll down ========== */
.zurich-megamenu-root .scroll-down-button {
    position: sticky;
    bottom: 0;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    max-width: 4rem;
    margin: 0 auto;
}

.zurich-megamenu-root .scroll-down-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.btn.btn-icon-arrow-down.scroll-down-button::before {
    width: 2.5rem;
    height: 2.5rem;
}

.zurich-megamenu-root .megamenu-vertical-nav,
.zurich-megamenu-root .megamenu-subcategories,
.zurich-megamenu-root .megamenu-level5-list {
    position: relative;
}

.zurich-megamenu-root .megamenu-vertical-nav li a,
.zurich-megamenu-root .megamenu-subcategories li a,
.zurich-megamenu-root .megamenu-level5-list li a {
    text-align: left;
}

/* ========== Accesibilidad ========== */
@media (prefers-reduced-motion: reduce) {
    .zurich-megamenu *,
    .zurich-megamenu *::before,
    .zurich-megamenu *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========== Skip links (para accesibilidad) ========== */
.zurich-megamenu-root .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.zurich-megamenu-root .sr-only:focus-visible {
    outline: 1px solid var(--btn-primary-focus-outline-color, var(--zurich-blue));
    outline-offset: 2px;
    box-shadow: none !important;
}

/* ================= VISIBILIDAD CONDICIONAL ================= */

/*Items only show in mobile */
.zurich-megamenu-root .megamenu-fixed-links .journal-content-article:has(> .only-mobile) {
    display: none !important;
}

.only-mobile {
    display: none !important;
}


/* ================= MOBILE BASE ================= */
.zurich-megamenu-root .megamenu-mobile-header {
    display: none;
}

/* ================= PROMO (layout definitivo tipo overlay Figma) ================= */

.z-hero-card {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
}

/* Imagen ocupa todo el card */
.z-hero-card__image {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay degradado */
.z-hero-card::after {
    content: "";
    grid-area: 1 / 1;
    background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 36.5%,
            rgba(0, 0, 0, 0.48) 67.6%,
            rgba(0, 0, 0, 0.6) 80.92%
    );
    pointer-events: none;
}

/* Contenido superpuesto abajo */
.z-hero-card__content {
    grid-area: 1 / 1;
    align-self: end;
    padding: 1.5rem;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1;
}

.z-hero-card__title {
    margin: 0;
    font-weight: 300;
    font-size: 2.25rem;
    line-height: 3rem;
}

.z-hero-card__link a {
    display: inline-block;
    background: transparent;
    color: #FFF;
}

/* Oculto en mobile */
@media (max-width: 1024px) {
    .z-hero-card {
        display: none;
    }
}

@media (max-width: 1024px) {

    .zurich-megamenu-root .megamenu-fixed-links .journal-content-article:has(> .only-mobile) {
        display: block !important;
    }

    .only-mobile {
        display: inline-flex !important;
    }

    .zurich-megamenu-root .megamenu-mobile-header {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: calc(
                var(--control-menu-container-height, 0px));
        left: 0;
        width: 100%;
        height: var(--mobile-header-total-height);
        background: var(--bg-color-white, var(--zurich-white));
        z-index: 990;
        border-bottom: 0.031rem solid var(--zurich-gray-9);
    }

    .zurich-megamenu-root .megamenu-mobile-inner {
        height: 3.5rem;
        padding: 0 1.5rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .zurich-megamenu-root .megamenu-mobile-logo {
        width: var(--mobile-logo-width);
    }

    .zurich-megamenu-root .megamenu-mobile-logo img {
        width: 100%;
        height: auto;
    }

    .zurich-megamenu-root .megamenu-mobile-icons .journal-content-article .btn[data-mobile-header="false"] {
        display: none;
    }

    .zurich-megamenu-root .megamenu-mobile-icons {
        display: flex;
        align-items: center;
    }

    /* ===== FASE 4: Search full screen mobile ===== */
    /* In search mode mobile hidden all icons */
    body.search-open .zurich-megamenu-root .megamenu-mobile-icons .btn{
        display: none;
    }

    body.search-open .zurich-megamenu-root .megamenu-mobile-icons .mobile-search-trigger {
        display: inline-flex !important;
    }

    .zurich-megamenu-root .megamenu-search-overlay {
        top: calc(
                var(--control-menu-container-height, 0px) +
                var(--mobile-header-total-height)
        ) !important;
        left: 0 !important;
        transform: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: calc(
                var(--app-vh-100) -
                var(--control-menu-container-height, 0px) -
                var(--mobile-header-total-height)
        ) !important;
        max-height: none !important;
        border-bottom: none !important;
    }

    .zurich-megamenu-root .megamenu-search-inner {
        display: block;
        padding: 2rem 1.5rem 3rem 1.5rem;
    }

    .zurich-megamenu-root .megamenu-search-close {
        display: none !important;
    }

    .zurich-megamenu-root .megamenu-search-logo {
        display: none !important;
    }

    /* Level 1 hidden default in mobile (only show with burger) */
    .zurich-megamenu-root .megamenu-level1 {
        display: none !important;
        background: var(--zurich-light-dove);
        width: 100%;
        margin-left: 0;
    }

    body.menu-open .zurich-megamenu-root .megamenu-level1 {
        display: block !important;
    }

    /* hidden utils in mobile */
    .zurich-megamenu-root .megamenu-utils {
        display: none !important;
    }

    .zurich-megamenu-root .megamenu-level1-inner {
        padding: 0 .5rem;
        height: 64px;
        align-items: center;
    }

    /* Ocultar barra horizontal nivel 2 y promos */
    .zurich-megamenu-root .megamenu-level2,
    .zurich-megamenu-root .megamenu-promo-wrapper {
        display: none !important;
    }

    /* ===== FASE 2: Menu full screen mobile ===== */
    .zurich-megamenu {
        display: none;
        position: fixed;
        top: calc(
                var(--control-menu-container-height, 0px) +
                var(--mobile-header-total-height)
        );
        left: 0;
        transform: none;
        max-width: 100%;
        width: 100%;
        height: calc(
                var(--app-vh-100) -
                var(--control-menu-container-height, 0px) -
                var(--mobile-header-total-height)
        );
        overflow: hidden;
        z-index: 989 !important;
    }

    /* Compensation global mobile */
    #main-content {
        padding-top: calc(
                var(--control-menu-container-height, 0px) +
                var(--mobile-header-total-height)
        );
    }

    body.menu-open .zurich-megamenu {
        display: block;
    }

    /* In mobile level 3 bottom tabs */
    .zurich-megamenu-root .megamenu-level3 {
        display: none;
        position: relative;
        top: -1px;
        left: 0;
        width: 100%;
        height: calc(100% - 4rem);
        overflow: hidden;
        transform: none;
        border-bottom: none;

        /* Anular sistema desktop */
        opacity: 1;
        visibility: visible;
    }

    .zurich-megamenu-root .megamenu-level3.is-open {
        display: block;
    }

    /* hidden logo in mobile*/
    .zurich-megamenu-root .megamenu-col-logo {
        display: none !important;
    }

    /* hidden button close inside in mobile */
    .zurich-megamenu-root .megamenu-close {
        display: none !important;
    }

    .zurich-megamenu-root .megamenu-level3-inner {
        padding: 0 1.5rem 2rem 1.5rem;
        max-width: 100%;
        position: relative;
        height: 100%;
        overflow: hidden;
        min-height: 0;
    }

    /* Desactivar grid desktop */
    .zurich-megamenu-root .megamenu-grid-container {
        display: block;
        height: 100%;
        min-height: 0;
    }

    .zurich-megamenu-root .megamenu-col-nav {
        border-right: none;
        padding: 1.5rem;
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .zurich-megamenu-root .megamenu-vertical-nav,
    .zurich-megamenu-root .megamenu-subcategories,
    .zurich-megamenu-root .megamenu-level5-list {
        max-height: none;
        padding-bottom: 0;
        overflow: visible;
    }

    .zurich-megamenu-root .megamenu-level4-wrapper,
    .zurich-megamenu-root .megamenu-level5-wrapper {
        display: none !important;
    }

    /* Override: permit wrappers inside of drilldown mobile */
    .zurich-megamenu-root .mobile-panel .megamenu-level4-wrapper,
    .zurich-megamenu-root .mobile-panel .megamenu-level5-wrapper {
        display: flex !important;
        padding: .1rem;
        border: unset;
        flex-direction: column;
        height: auto;
        width: 100%;
        flex: 1 1 auto;
    }

    .zurich-megamenu-root .mobile-panel .megamenu-level4-wrapper ul.megamenu-subcategories,
    .zurich-megamenu-root .mobile-panel .megamenu-level5-wrapper ul.megamenu-level5-list {
        padding: 0 1rem;
        max-height: calc(var(--app-vh-100) - 15rem);
        flex: 1 1 auto;
        overflow-y: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE y Edge antiguo */
    }

    .zurich-megamenu-root .mobile-panel .megamenu-level4-wrapper ul.megamenu-subcategories::-webkit-scrollbar,
    .zurich-megamenu-root .mobile-panel .megamenu-level5-wrapper ul.megamenu-level5-list::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none; /* Chrome, Safari, Edge */
    }


    /* Panel base */
    .zurich-megamenu-root .mobile-panel {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-color-white, var(--zurich-white));
        overflow-y: auto;
        overflow-x: hidden;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateX(100%);
        padding: 1.5rem 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        will-change: transform;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
    }

    .zurich-megamenu-root .mobile-panel.is-active {
        transform: translateX(0);
    }

    .zurich-megamenu-root .mobile-panel.is-prev {
        transform: translateX(-100%);
    }

    .zurich-megamenu-root .mobile-back-icon-fix.btn.btn-icon-angle-left {
        text-decoration: none !important;
    }

    /* Override size icon back mobile */
    .zurich-megamenu-root .mobile-back-icon-fix.btn.btn-icon-angle-left::before {
        width: 1rem !important;
        height: 1rem !important;
    }

    /* CTAs pegados abajo del panel */
    .zurich-megamenu-root .mobile-panel .megamenu-col2-ctas,
    .zurich-megamenu-root .mobile-panel .megamenu-col3-ctas {
        margin-top: auto;
        padding: 1.5rem 1.25rem 0.1rem 1.25rem;
    }

    /* CTAs full width en drilldown mobile */
    .zurich-megamenu-root .mobile-panel .megamenu-col2-ctas a,
    .zurich-megamenu-root .mobile-panel .megamenu-col3-ctas a {
        width: 100% !important;
        max-width: min(100%, 25rem);
    }

    /* ===== Show titles nivel 4 y 5 in mobile (solo drilldown) ===== */
    .zurich-megamenu-root .mobile-panel .mobile-heading {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-weight: 600;
        font-size: 1.125rem;
        color: var(--text-color-dark-blue, var(--zurich-primary));
        padding: 0.75rem 1.30rem;
        font-family: 'ZurichSans-Medium', Arial, sans-serif;
    }

    .zurich-megamenu-root .megamenu-search-overlay.is-open .mobile-heading {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip: auto;
        white-space: normal;
        font-weight: 400;
        font-size: 1.25rem;
        color: var(--text-color-dark-blue, var(--zurich-primary));
        padding-bottom: 1.5rem;
    }

}

/* ================= Ajustes negocio ================= */
.zurich-megamenu .btn-tertiary{
    text-underline-offset: 0.4em;
}