.mto_encabezado {
  background: #49f333;
  box-shadow: 0 10px 28px rgba(7, 18, 38, .08);
}

.mto_nav {
  min-height: 58px;
  background: #49f333;
}

.mto_nav__envoltorio {
  min-height: 58px;
  padding-inline: clamp(14px, 4vw, 24px);
}

.mto_nav__contenedor {
  min-height: 58px;
}

.mto_nav__marca {
  display: inline-flex;
  align-items: center;
}

.mto_nav__logo {
  width: 152px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

.mto_nav__enlace_usuario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(7, 18, 38, .86);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #071226;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.mto_nav__enlace_usuario:hover,
.mto_nav__enlace_usuario:focus,
.mto_nav__enlace_usuario.mto_usuario_abierto {
  background: rgba(255, 255, 255, .24);
  color: #071226;
  text-decoration: none;
}

.mto_nav__enlace_usuario:focus-visible {
  outline: 3px solid rgba(7, 18, 38, .24);
  outline-offset: 3px;
}

.mto_nav__usuario_texto {
  max-width: min(180px, 22vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mto_menu_usuario {
  min-width: 292px;
  padding: 10px;
  border: 1px solid rgba(7, 18, 38, .10);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 18, 38, .18);
}

.mto_menu_usuario.show {
  display: grid;
  gap: 2px;
}

.mto_menu_usuario__item {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 8px;
  color: #1a2538;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.mto_menu_usuario__item:hover,
.mto_menu_usuario__item:focus {
  background: #efffee;
  color: #071226;
  text-decoration: none;
}

.mto_menu_usuario__item:focus-visible {
  outline: 3px solid rgba(73, 243, 51, .32);
  outline-offset: 2px;
}

.mto_menu_usuario__separador {
  margin: 8px 8px;
  border-top: 1px solid #e4e9f0;
  opacity: 1;
}

.mto_menu_usuario__item svg {
  width: 15px;
  height: 15px;
}

.mto_menu_usuario__aviso {
  align-items: center;
  background: #071226;
  border: 1px solid rgba(90, 241, 57, .42);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(7, 18, 38, .12);
  color: #5af139;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  margin-left: auto;
  position: relative;
  width: 26px;
}

.mto_menu_usuario__aviso::after {
  background: #5af139;
  border: 2px solid #ffffff;
  border-radius: 999px;
  content: "";
  height: 9px;
  position: absolute;
  right: -2px;
  top: -2px;
  width: 9px;
}

.mto_menu_usuario__item:hover .mto_menu_usuario__aviso,
.mto_menu_usuario__item:focus .mto_menu_usuario__aviso {
  background: #0f172a;
  color: #ffffff;
}

.mto_nav__boton_menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 0 0 1px rgba(7, 18, 38, .08);
}

.mto_nav__boton_menu:hover,
.mto_nav__boton_menu:focus {
  background: rgba(255, 255, 255, .58);
}

.mto_nav__boton_menu:focus-visible {
  outline: 3px solid rgba(7, 18, 38, .22);
  outline-offset: 3px;
}

.mto_nav__boton_menu[aria-expanded="true"] .mto_nav__icono_menu {
  background: transparent;
  opacity: 1;
}

.mto_nav__boton_menu[aria-expanded="true"] .mto_nav__icono_menu::before {
  top: 0;
  transform: rotate(45deg);
}

.mto_nav__boton_menu[aria-expanded="true"] .mto_nav__icono_menu::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.mto_menu_usuario_abierto::before,
.mto_menu_principal_abierto::before {
  background: rgba(7, 18, 38, .22);
  backdrop-filter: blur(3px);
}

@media (min-width: 992px) {
  .mto_nav__item {
    position: relative;
  }

  .mto_menu_usuario {
    top: calc(100% + 12px);
    right: 0;
    max-height: min(74vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (max-width: 991.98px) {
  .mto_nav__envoltorio {
    align-items: center;
  }

  .mto_nav__panel.show {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100dvh - 58px);
    padding: 10px 0 14px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .mto_menu_usuario--movil {
    display: grid;
    gap: 2px;
    width: min(430px, calc(100% - 24px));
    max-height: calc(100dvh - 82px);
    margin: 0 auto;
    overflow-y: auto;
    border-radius: 8px;
  }

  .mto_menu_usuario__item {
    min-height: 42px;
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .mto_nav__logo {
    width: 132px;
  }

  .mto_nav__envoltorio {
    min-height: 56px;
    padding-inline: 12px;
  }

  .mto_nav__contenedor {
    min-height: 56px;
  }

  .mto_nav__boton_menu {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 991.98px) and (orientation: landscape) {
  .mto_nav__panel.show {
    max-height: calc(100dvh - 54px);
    padding: 8px 0;
  }

  .mto_menu_usuario--movil {
    width: min(520px, calc(100% - 24px));
    max-height: calc(100dvh - 70px);
    padding: 8px;
  }

  .mto_menu_usuario__item {
    min-height: 36px;
    font-size: 14px;
  }

  .mto_menu_usuario__separador {
    margin-block: 5px;
  }
}

@supports (height: 100svh) {
  @media (max-width: 991.98px) {
    .mto_nav__panel.show {
      max-height: calc(100svh - 58px);
    }

    .mto_menu_usuario--movil {
      max-height: calc(100svh - 82px);
    }
  }

  @media (max-width: 991.98px) and (orientation: landscape) {
    .mto_nav__panel.show {
      max-height: calc(100svh - 54px);
    }

    .mto_menu_usuario--movil {
      max-height: calc(100svh - 70px);
    }
  }
}
