/* El ancho real de los enlaces determina cuándo mostrar la hamburguesa. */
.cont--menu a {
    font-size: .82rem;
    padding: 10px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}
.cont--header .header--right,
.cont--header .header--right > .d--flex { min-width: 0; }
.cont--header .header--right > .d--flex { width: 100%; }
.btn--menu { border: 0; background: transparent; flex-shrink: 0; }
.btn--menu:focus-visible,
.cont--menu a:focus-visible { outline: 2px solid var(--color-web-1); outline-offset: 4px; }
.nav--compact .btn--menu { display: block; }
.nav--compact .cont--menu { display: none; }
.nav--compact .cont--header .header--right .d--flex > div { justify-content: flex-end; }
.nav--wide .cont--menu { display: flex; }
.nav--wide .btn--menu { display: none; }
.scroll--down #header .header--right .d--flex > div:first-child { display: none; }
.scroll--down #header .header--right .d--flex > div:nth-of-type(2) {
    height: 100%;
    transform: none;
}
.visible--menu .btn--menu > span { background: transparent; }
.visible--menu .btn--menu > span:before { top: 0; transform: rotate(45deg); }
.visible--menu .btn--menu > span:after { bottom: 0; transform: rotate(-45deg); }
.visible--menu .cont--header .cont--menu {
    top: var(--nav-header-height, var(--h-header));
    height: calc(100dvh - var(--nav-header-height, var(--h-header)));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 15px 30px;
    transform: none;
    align-items: stretch;
}
.visible--menu .cont--menu a { justify-content: center; white-space: normal; }
.visible--menu .cont--menu a.activo { color: var(--color-web-1); }
.menu--measure { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
