@media (max-width: 850px) {
  html.msf-menu-open,
  html.msf-menu-open body {
    overflow: hidden !important;
  }

  .msf .msf-header {
    z-index: 100000;
  }

  .msf .msf-header .msf-menu {
    position: relative;
    z-index: 100002;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 76px;
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 22px;
    background: rgba(8,14,48,.38);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(8px);
  }

  .msf .msf-header .msf-menu[aria-expanded="true"] {
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    right: 18px;
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.12);
  }

  .msf .msf-header nav {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100001;
    display: none;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    padding: calc(88px + env(safe-area-inset-top)) 24px calc(35px + env(safe-area-inset-bottom));
    overflow-y: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    background: radial-gradient(circle at 18% 15%, #3e51b9 0, transparent 34%), linear-gradient(150deg,#0b1238,#202f80 68%,#263696);
    text-align: center;
  }

  .msf .msf-header nav.is-open {
    display: flex !important;
    animation: msfMenuOpen .24s ease both;
  }

  .msf .msf-header nav::before {
    content: "MENÚ MUNICIPAL";
    display: block;
    margin-top: auto;
    margin-bottom: 20px;
    color: #ff9a7b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
  }

  .msf .msf-header nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 430px);
    min-height: 62px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 750;
    line-height: 1.15;
    transition: background .18s ease, transform .18s ease;
  }

  .msf .msf-header nav a:first-of-type {
    border-top: 1px solid rgba(255,255,255,.14);
  }

  .msf .msf-header nav a:active,
  .msf .msf-header nav a:focus-visible {
    border-radius: 8px;
    background: rgba(255,255,255,.1);
    outline: 2px solid #ff9a7b;
    transform: scale(.98);
  }

  .msf .msf-header nav::after {
    content: "";
    margin-bottom: auto;
  }
}

@keyframes msfMenuOpen {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: none; }
}
